/* LIRIMI — landing page */

:root {
  --bg: #F5F0E8;
  --bg-2: #EDE5D6;
  --bg-3: #E4D9C4;
  --ink: #1A1F36;
  --ink-soft: #2D3450;
  --ink-mute: #6B6F82;
  --ink-faint: #A8A398;
  --accent: #C84B26;
  --accent-deep: #A93C1C;
  --accent-soft: #E8B4A0;
  --line: rgba(26, 31, 54, 0.12);
  --line-strong: rgba(26, 31, 54, 0.22);
  --paper: #FBF7EF;

  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;
  --r-xl: 28px;

  --density: 1;

  --topbar-h: 36px;
  --nav-h: 68px;
  --header-h: calc(var(--topbar-h) + var(--nav-h));
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--bg); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ───── Type scale ───── */
.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.95;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.display em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--accent);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  transform: translateY(-1px);
}

/* ───── Buttons ───── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s, color 0.3s;
  will-change: transform;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent); }
.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn .arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: transform 0.3s;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ───── Nav ───── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(245, 240, 232, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.brand img { width: 32px; height: 32px; object-fit: contain; }
.brand .tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.1em;
  margin-left: 4px;
  text-transform: uppercase;
}
.nav-links {
  display: flex; gap: 36px;
  font-size: 14px; color: var(--ink-soft);
}
.nav-links a {
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ""; position: absolute;
  left: 0; bottom: -4px; height: 1px; width: 0;
  background: var(--accent);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  display: flex; align-items: center; gap: 12px;
}

/* ───── Reveal ───── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 400ms; }

/* ───── Hero ───── */
.hero {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  padding: calc(var(--header-h) + 28px) 0 32px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(44px, 6.2vw, 88px);
  margin-bottom: 22px;
}
.hero .lead {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 26px;
  text-wrap: pretty;
  line-height: 1.5;
}
.hero-ctas {
  display: flex; gap: 14px; align-items: center;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 32px;
  display: flex; gap: 32px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-meta strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-transform: none;
  margin-bottom: 2px;
}

/* Hero background glyph */
.hero-glyph {
  position: absolute;
  pointer-events: none;
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  opacity: 0.05;
  font-size: 42vh;
  line-height: 1;
  top: -6vh;
  right: -2vw;
  letter-spacing: -0.06em;
  z-index: 0;
}

/* ───── Playground card ───── */
.pg {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 22px 24px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 30px 60px -30px rgba(26, 31, 54, 0.18),
    0 8px 20px -12px rgba(26, 31, 54, 0.08);
}
.pg-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.pg-tabs {
  display: flex; gap: 4px;
  background: var(--bg-2);
  padding: 4px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pg-tab {
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--ink-mute);
  transition: all 0.3s;
}
.pg-tab.active {
  background: var(--ink);
  color: var(--bg);
}
.pg-swap {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-2);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: transform 0.4s, background 0.3s;
}
.pg-swap:hover { background: var(--ink); color: var(--bg); transform: rotate(180deg); }

.pg-pane {
  position: relative;
  padding: 16px 0;
}
.pg-pane + .pg-pane { border-top: 1px dashed var(--line); }
.pg-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.pg-label .lang-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.pg-pane.target .pg-label .lang-dot { background: var(--ink); }

.pg-text {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  min-height: 60px;
  text-wrap: balance;
}
.pg-text.target { color: var(--ink-soft); }
.pg-text .typing-caret {
  display: inline-block;
  width: 2px; height: 0.85em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: caret 1s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.pg-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-mute);
  font-style: italic;
}

.pg-controls {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.pg-actions {
  display: flex; gap: 8px;
}
.pg-icon-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  transition: all 0.3s;
}
.pg-icon-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.pg-progress {
  display: flex; gap: 6px;
}
.pg-progress span {
  width: 22px; height: 3px; border-radius: 2px;
  background: var(--line);
  overflow: hidden; position: relative;
}
.pg-progress span.active::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent);
  transform-origin: left;
  animation: pgFill 3500ms linear forwards;
}
@keyframes pgFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pg-progress span.done {
  background: var(--accent);
}

/* Crossfade */
.pg-fade {
  transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pg-fade.out { opacity: 0; transform: translateY(-6px); }

/* ───── Capulana pattern divider ───── */
.capulana {
  height: 24px;
  background-image:
    linear-gradient(45deg, var(--accent) 25%, transparent 25%),
    linear-gradient(-45deg, var(--accent) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--accent) 75%),
    linear-gradient(-45deg, transparent 75%, var(--accent) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
  opacity: 0.15;
}

/* ───── Section base ───── */
section {
  position: relative;
  padding: calc(120px * var(--density)) 0;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  margin-bottom: 80px;
  align-items: end;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(42px, 5.5vw, 76px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}
.section-head h2 em {
  font-style: italic;
  color: var(--accent);
}
.section-head .lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 520px;
  text-wrap: pretty;
}

/* ───── How it works ───── */
.how {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  padding: 40px 28px 32px;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background 0.4s;
}
.step:last-child { border-right: 0; }
.step:hover { background: var(--bg-2); }
.step-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 36px;
  display: flex; align-items: center; gap: 8px;
}
.step-num::after {
  content: ""; flex: 1; height: 1px;
  background: var(--line);
}
.step h3 {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin-bottom: 14px;
  line-height: 1.1;
}
.step p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  text-wrap: pretty;
}

/* ───── About Xichangana ───── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-card {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-xl);
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 100% 0%, rgba(200, 75, 38, 0.4), transparent 50%);
  pointer-events: none;
}
.about-card h3 {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 28px;
}
.about-card h3 em { color: var(--accent-soft); font-style: italic; }
.about-card p {
  color: rgba(255,255,255,0.78);
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 16px;
  text-wrap: pretty;
}
.about-quotes {
  display: flex; flex-direction: column; gap: 20px;
}
.quote {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform 0.4s, box-shadow 0.4s;
}
.quote:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px rgba(26, 31, 54, 0.15);
}
.quote .xi-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}
.quote .pt-text {
  font-size: 14px;
  color: var(--ink-soft);
}
.quote .meta {
  margin-top: 18px;
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ───── Stats ───── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 56px 32px;
  border-right: 1px solid var(--line);
  transition: background 0.3s;
}
.stat:last-child { border-right: 0; }
.stat:hover { background: var(--paper); }
.stat .num {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--ink);
  display: block;
}
.stat .num em { font-style: italic; color: var(--accent); }
.stat .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ───── Apps ───── */
.apps {
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.apps-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.apps h2 {
  font-family: var(--serif);
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 24px;
}
.apps h2 em { font-style: italic; color: var(--accent); }
.apps .lead {
  font-size: 17px; color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 32px;
}
.app-buttons {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.app-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-md);
  transition: transform 0.3s, background 0.3s;
}
.app-btn:hover { background: var(--accent); transform: translateY(-2px); }
.app-btn small {
  display: block;
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}
.app-btn strong {
  display: block;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.phone-wrap {
  position: relative;
  display: flex; justify-content: center;
}
.phone {
  width: 280px;
  aspect-ratio: 9/19;
  background: var(--ink);
  border-radius: 36px;
  padding: 8px;
  box-shadow: 0 40px 80px -30px rgba(26, 31, 54, 0.4);
  position: relative;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.phone-screen {
  background: var(--bg);
  border-radius: 28px;
  height: 100%;
  padding: 24px 18px;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.phone-status {
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink);
  margin-bottom: 24px;
}
.phone-title {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.phone-input {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}
.phone-input .lbl {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.phone-input .text {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.phone-input.out { background: var(--ink); border-color: var(--ink); }
.phone-input.out .lbl { color: rgba(255,255,255,0.5); }
.phone-input.out .text { color: var(--bg); }

.phone-cta {
  margin-top: auto;
  background: var(--accent);
  color: var(--bg);
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
}

/* ───── Footer ───── */
.footer {
  background: var(--ink);
  color: var(--bg);
  padding: 100px 0 40px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 40px;
  background-image:
    linear-gradient(45deg, var(--accent) 25%, transparent 25%),
    linear-gradient(-45deg, var(--accent) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--accent) 75%),
    linear-gradient(-45deg, transparent 75%, var(--accent) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
  opacity: 0.18;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
}
.footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer ul a { color: rgba(255,255,255,0.78); transition: color 0.2s; font-size: 14px; }
.footer ul a:hover { color: var(--accent-soft); }

.newsletter h3 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.newsletter h3 em { font-style: italic; color: var(--accent-soft); }
.newsletter p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  margin-bottom: 24px;
  max-width: 380px;
  text-wrap: pretty;
}
.nl-input {
  display: flex;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 4px 4px 4px 20px;
  align-items: center;
  max-width: 380px;
}
.nl-input input {
  background: none; border: 0; color: var(--bg);
  font: inherit; font-size: 14px;
  flex: 1;
  padding: 10px 0;
  outline: none;
}
.nl-input input::placeholder { color: rgba(255,255,255,0.4); }
.nl-input button {
  background: var(--accent);
  color: var(--bg);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.3s;
}
.nl-input button:hover { background: var(--bg); color: var(--accent); }

.footer-bot {
  display: flex; justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}

/* ───── Launch / Countdown / Wishlist ───── */
.launch {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.launch-card {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-xl);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.launch-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 100%, rgba(200, 75, 38, 0.4), transparent 55%);
  pointer-events: none;
}
.launch-card > * { position: relative; z-index: 1; }
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.14);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  padding: 24px 0;
}
.cd-cell {
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
  padding: 8px 0;
}
.cd-cell:last-child { border-right: 0; }
.cd-num {
  font-family: var(--serif);
  font-size: 88px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  color: var(--bg);
  font-variant-numeric: tabular-nums;
}
.cd-lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 10px;
}
.launch-cta { display: flex; flex-direction: column; gap: 24px; }
.launch-copy {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: rgba(255,255,255,0.9);
  text-wrap: pretty;
}
.launch-btn { background: var(--accent); align-self: flex-start; }
.launch-btn:hover { background: var(--bg); color: var(--ink); }

/* ───── Top bar ───── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 110;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  height: var(--topbar-h, 36px);
  display: flex;
  align-items: center;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: nowrap;
  width: 100%;
  min-width: 0;
}
.topbar-inner > * { min-width: 0; }
.topbar-label {
  display: inline-flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.85);
}
.topbar-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(200,75,38,0.25);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(200,75,38,0.25); }
  50% { box-shadow: 0 0 0 7px rgba(200,75,38,0.05); }
}
.topbar-count {
  display: inline-flex; gap: 14px;
  color: rgba(255,255,255,0.7);
  font-variant-numeric: tabular-nums;
}
.topbar-count b {
  color: var(--accent-soft);
  font-weight: 500;
  margin-right: 2px;
}
.topbar-cta {
  color: var(--accent-soft);
  transition: color 0.2s;
}
.topbar-cta:hover { color: var(--bg); }
.topbar-cta span { margin-left: 6px; transition: transform 0.3s; display: inline-block; }
.topbar-cta:hover span { transform: translateX(3px); }

.nav { top: var(--topbar-h, 36px) !important; }

/* ───── Magnetic ───── */
.magnetic { display: inline-block; }

/* Density */
[data-density="compact"] { --density: 0.7; }
[data-density="comfortable"] { --density: 1; }
[data-density="spacious"] { --density: 1.3; }

/* ═══════════════════════════════════════════════════════════
   Responsive — end-to-end
   ═══════════════════════════════════════════════════════════ */

/* Laptop / small desktop */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  section { padding: calc(96px * var(--density)) 0; }
  .section-head { gap: 40px; margin-bottom: 56px; }
  .footer { padding: 80px 0 32px; }
  .footer-grid { gap: 36px; margin-bottom: 56px; }
  .launch-card { padding: 44px; gap: 36px; }
  .cd-num { font-size: 64px; }
  .nav-links { gap: 28px; }
}

/* Tablet portrait & large phones */
@media (max-width: 880px) {
  :root { --topbar-h: 36px; --nav-h: 60px; }
  .container { padding: 0 22px; }
  section { padding: calc(72px * var(--density)) 0; }

  .nav { padding: 14px 0; }
  .nav-links { display: none; }
  .brand { font-size: 20px; }
  .brand img { width: 28px; height: 28px; }
  .nav-cta .btn { padding: 10px 16px; font-size: 13px; }

  .hero {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: calc(var(--header-h) + 32px);
    padding-bottom: 56px;
  }
  .hero-grid,
  .about-grid,
  .apps-grid,
  .section-head { grid-template-columns: 1fr; gap: 36px; }
  .hero .lead,
  .section-head .lead,
  .apps .lead { max-width: 100%; }
  .hero-meta { gap: 22px; flex-wrap: wrap; }
  .hero-glyph { font-size: 38vh; right: -8vw; top: -2vh; }

  .pg { padding: 18px; }

  .section-head { margin-bottom: 40px; }

  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { border-bottom: 1px solid var(--line); }
  .step:nth-child(2n) { border-right: 0; }
  .step:nth-last-child(-n+2) { border-bottom: 0; }

  .about-card { padding: 36px 28px; }
  .about-card h3 { font-size: 36px; margin-bottom: 22px; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line); padding: 44px 24px; }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .stat .num { font-size: 52px; }

  .launch-card { grid-template-columns: 1fr; padding: 36px; gap: 28px; }
  .cd-num { font-size: 56px; }

  .phone { width: 240px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer { padding: 72px 0 28px; }
}

/* Phone */
@media (max-width: 560px) {
  :root { --topbar-h: 34px; --nav-h: 52px; }
  .container { padding: 0 16px; }
  section { padding: calc(56px * var(--density)) 0; }

  /* Top bar */
  .topbar { font-size: 10px; padding: 6px 0; letter-spacing: 0.08em; }
  .topbar-inner { gap: 12px; }
  .topbar-label { display: none; }
  .topbar-count { gap: 8px; font-size: 10px; }
  .topbar-cta { font-size: 10px; }

  /* Nav */
  .nav { padding: 10px 0; }
  .brand { font-size: 17px; gap: 8px; }
  .brand .tag { display: none; }
  .nav-cta .btn { padding: 9px 13px; font-size: 11.5px; gap: 6px; }
  .nav-cta .btn .arrow { width: 18px; height: 18px; }

  /* Hero */
  .hero {
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: 40px;
    min-height: auto;
  }
  .hero-grid { gap: 28px; }
  .hero-eyebrow { margin-bottom: 14px; }
  .hero-eyebrow .eyebrow { letter-spacing: 0.12em; font-size: 10.5px; }
  .hero h1 { font-size: clamp(32px, 11vw, 52px); margin-bottom: 18px; }
  .hero .lead { font-size: 14.5px; margin-bottom: 22px; line-height: 1.55; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-ctas .magnetic { width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-meta { margin-top: 24px; gap: 14px; justify-content: space-between; }
  .hero-meta strong { font-size: 18px; }
  .hero-meta div { flex: 1; min-width: 0; }
  .hero-meta span { font-size: 9.5px; letter-spacing: 0.06em; }
  .hero-glyph { font-size: 50vw; top: 6vh; right: -12vw; opacity: 0.06; }

  /* Playground */
  .pg { border-radius: 18px; padding: 14px; }
  .pg-header { gap: 10px; margin-bottom: 14px; }
  .pg-tabs { flex: 1; min-width: 0; padding: 3px; }
  .pg-tab { flex: 1; padding: 7px 10px; font-size: 10px; text-align: center; }
  .pg-swap { width: 32px; height: 32px; flex-shrink: 0; }
  .pg-pane { padding: 14px 0; }
  .pg-text { font-size: 21px; min-height: 48px; }
  .pg-note { font-size: 12px; }
  .pg-controls { flex-direction: column; align-items: stretch; gap: 12px; }
  .pg-actions { justify-content: flex-start; }
  .pg-progress { justify-content: center; }
  .pg-progress span { width: 18px; }

  /* Section heads */
  .section-head { gap: 20px; margin-bottom: 36px; }
  .section-head h2 { font-size: clamp(32px, 11vw, 50px); }
  .section-head .lead { font-size: 15px; }

  /* How */
  .steps { grid-template-columns: 1fr; }
  .step {
    padding: 28px 18px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .step:last-child { border-bottom: 0; }
  .step h3 { font-size: 24px; }
  .step p { font-size: 14px; }
  .step-num { margin-bottom: 24px; }

  /* About */
  .about-card { padding: 28px 22px; border-radius: 18px; }
  .about-card h3 { font-size: 28px; margin-bottom: 18px; }
  .about-card p { font-size: 14.5px; line-height: 1.65; }
  .quote { padding: 20px; border-radius: 14px; }
  .quote .xi-text { font-size: 20px; }

  /* Stats */
  .stats { grid-template-columns: 1fr; }
  .stat {
    padding: 26px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .stat:last-child { border-bottom: 0; }
  .stat .num { font-size: 42px; margin-bottom: 8px; }

  /* Launch */
  .launch-card { padding: 26px 22px; border-radius: 18px; gap: 22px; }
  .countdown { padding: 18px 0; }
  .cd-cell { padding: 4px 0; }
  .cd-num { font-size: 36px; }
  .cd-lbl { font-size: 9px; letter-spacing: 0.14em; margin-top: 6px; }
  .launch-copy { font-size: 17px; }
  .launch-cta { gap: 18px; }
  .launch-btn { align-self: stretch; justify-content: center; width: 100%; }

  /* Apps */
  .apps h2 { font-size: clamp(32px, 11vw, 48px); margin-bottom: 16px; }
  .apps .lead { font-size: 15px; margin-bottom: 22px; }
  .app-buttons { flex-direction: column; align-items: stretch; gap: 10px; }
  .app-buttons .magnetic { width: 100%; }
  .app-btn { justify-content: center; }
  .phone { width: min(100%, 240px); }

  /* Footer */
  .footer { padding: 56px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 36px; }
  .footer h4 { margin-bottom: 14px; }
  .footer ul { gap: 10px; }
  .newsletter h3 { font-size: 28px; }
  .newsletter p { max-width: none; margin-bottom: 18px; }
  .nl-input {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 6px;
    border-radius: 14px;
    max-width: none;
  }
  .nl-input input { padding: 10px 14px; }
  .nl-input button {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
  }
  .footer-bot {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-align: left;
  }
}

/* Small phones (≤ 380px) */
@media (max-width: 380px) {
  :root { --topbar-h: 32px; --nav-h: 48px; }
  .topbar { padding: 5px 0; }
  .topbar-count { gap: 6px; font-size: 9.5px; }
  .topbar-cta { font-size: 9.5px; letter-spacing: 0.06em; }
  .nav-cta .btn { padding: 8px 12px; font-size: 11px; }
  .hero h1 { font-size: clamp(28px, 10.5vw, 44px); }
  .pg-text { font-size: 19px; }
  .cd-num { font-size: 30px; }
}
