:root {
  --bg: #0c0d10;
  --bg-elev: #15171c;
  --line: rgba(255, 184, 71, 0.18);
  --ink: #f6f1e8;
  --muted: #a39b8e;
  --accent: #ffb847;
  --accent-ink: #1a1308;
  --max: 1080px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC", "Noto Serif SC", serif;
  --sans: "Avenir Next", "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 480px at 12% -10%, rgba(255, 184, 71, 0.12), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(255, 184, 71, 0.06), transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #ffd27a;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(12, 13, 16, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .wrap,
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 18px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  padding: 72px 0 48px;
  scroll-margin-top: 80px;
}

#inside,
.flow,
.faq {
  scroll-margin-top: 80px;
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.9fr);
  gap: 48px 40px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(36px, 5vw, 64px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.stats li {
  padding: 12px 14px 11px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.stats strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0.01em;
}

.stats span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.device {
  justify-self: center;
  width: min(100%, 340px);
}

.device-bezel {
  padding: 12px;
  border-radius: 32px;
  background: linear-gradient(180deg, #2a2d34, #121318);
  box-shadow:
    0 0 0 1px rgba(255, 184, 71, 0.18),
    0 30px 80px rgba(0, 0, 0, 0.45);
}

.device-screen {
  overflow: hidden;
  border-radius: 22px;
  background: #101217;
  padding: 16px 14px 12px;
}

.device-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.device-search {
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

.device-row-title {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.device-posters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.poster {
  position: relative;
  aspect-ratio: 3 / 4.2;
  border-radius: 10px;
  overflow: hidden;
}

.poster span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 1;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}

.poster b {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.25);
}

.poster b::after {
  content: "";
  display: block;
  height: 100%;
  width: 62%;
  border-radius: inherit;
  background: var(--accent);
}

.poster-b b::after { width: 40%; }
.poster-c b::after { width: 72%; }

.poster-a { background: linear-gradient(160deg, #5b4630, #d7a25a 55%, #2a1d12); }
.poster-b { background: linear-gradient(160deg, #3a4458, #8ea4c4 58%, #1c2430); }
.poster-c { background: linear-gradient(160deg, #4a3038, #c47b7a 52%, #241418); }

.device-shelf {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.chip {
  display: block;
  height: 54px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.chip:nth-child(2) { background: linear-gradient(180deg, #3e3428, #1a1713); }
.chip:nth-child(3) { background: linear-gradient(180deg, #2c3644, #14181e); }
.chip:nth-child(4) { background: linear-gradient(180deg, #3a2a32, #161214); }

.device-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.device-tabs .is-on {
  color: var(--accent);
}

.kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0 0 18px;
  max-width: 11em;
  font-size: clamp(40px, 7vw, 72px);
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
}

h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.lede {
  max-width: 42ch;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 19px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  color: var(--accent-ink);
  filter: brightness(1.05);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 12px 0 64px;
}

.card {
  background: var(--bg-elev);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 22px 22px 20px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.panel {
  padding: 8px 0 72px;
}

.panel p {
  max-width: 68ch;
  color: var(--muted);
}

.card-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.catalog {
  padding: 8px 0 28px;
}

.catalog h2,
.flow h2,
.langs h2,
.faq h2,
.note h2,
.cta h2 {
  max-width: 18em;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.catalog-grid article {
  padding: 18px 16px 16px;
  border-top: 1px solid var(--line);
}

.catalog-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.band {
  margin: 12px 0 28px;
  padding: 36px 0;
  background: linear-gradient(180deg, rgba(255, 184, 71, 0.05), transparent 80%);
  border-block: 1px solid rgba(255, 255, 255, 0.05);
}

.splits {
  display: grid;
  gap: 48px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px 40px;
  align-items: start;
}

.split p {
  max-width: 48ch;
  color: var(--muted);
}

.ticks {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #d8d0c4;
  font-size: 15px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.flow,
.langs,
.faq,
.note {
  padding: 28px 0 56px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.steps li {
  padding: 22px 20px 20px;
  border-radius: 18px;
  background: var(--bg-elev);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.steps span {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.langs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr);
  gap: 32px;
  align-items: center;
}

.langs p:not(.kicker) {
  max-width: 48ch;
  color: var(--muted);
}

.lang-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang-cloud li {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
}

.faq-list {
  margin-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-list details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-weight: 600;
}

.faq-list summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 500;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list p {
  margin: 0 0 16px;
  max-width: 70ch;
  color: var(--muted);
}

.note p {
  max-width: 68ch;
  color: var(--muted);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 56px;
  padding: 28px 28px;
  border-radius: 22px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
}

.cta p {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
}

.legal {
  padding: 48px 0 80px;
}

.legal h1 {
  max-width: none;
  font-size: clamp(34px, 5vw, 52px);
}

.legal .meta {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 14px;
}

.legal h2 {
  margin-top: 32px;
  font-size: 26px;
}

.legal p,
.legal li {
  color: #d8d0c4;
}

.legal ul {
  padding-left: 1.2em;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 13px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

@media (max-width: 900px) {
  .catalog-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .split,
  .langs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero-split {
    grid-template-columns: 1fr;
  }

  .device {
    order: -1;
    width: min(100%, 300px);
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .site-header .wrap,
  .site-footer .wrap {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }

  .nav {
    justify-content: flex-start;
  }

  .grid,
  .catalog-grid,
  .steps,
  .stats {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }

  .cta {
    padding: 22px 18px;
  }
}
