:root {
  --bg: #F4F2EE;
  --bg-2: #ECE9E3;
  --surface: #FBFAF8;
  --ink: #1D1C1A;
  --ink-2: #4A4741;
  --muted: #7A766E;
  --line: #DEDAD2;
  --accent: #C98A17;
  --accent-ink: #8A5D0B;
  --accent-soft: rgba(201, 138, 23, 0.12);
  --shadow: 0 24px 48px -28px rgba(60, 46, 20, 0.28);
  --radius: 18px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151413;
    --bg-2: #1C1B19;
    --surface: #201F1C;
    --ink: #EDEBE6;
    --ink-2: #BDB9B1;
    --muted: #8E8A82;
    --line: #2F2D29;
    --accent: #E0A33A;
    --accent-ink: #EDB85A;
    --accent-soft: rgba(224, 163, 58, 0.14);
    --shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; }
a { color: inherit; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Navegación */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
.brand img { border-radius: 7px; }
.brand.small { font-size: 14px; gap: 8px; }
.brand.small img { border-radius: 5px; }
.nav nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav nav a { text-decoration: none; color: var(--ink-2); transition: color .2s var(--ease); }
.nav nav a:hover { color: var(--ink); }
.nav-cta {
  color: var(--ink) !important; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
}

/* Tipografía */
.eyebrow {
  margin: 0 0 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent-ink);
}
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; line-height: 1.02; font-weight: 600; }
h1 { font-size: clamp(42px, 6vw, 68px); }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; }
h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0; }
kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.9em; height: 1.9em;
  padding: 0 .45em; margin: 0 .1em; font-family: var(--font); font-size: .82em; font-weight: 500;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-bottom-width: 2px; border-radius: 6px; vertical-align: .05em;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px;
  border-radius: 12px; font-weight: 500; font-size: 15px; text-decoration: none;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 88%, var(--accent)); }
.btn-quiet { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.btn-quiet:hover { border-color: var(--muted); }

/* Portada */
.hero {
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 56px;
  align-items: center; min-height: calc(100dvh - 64px); padding-top: 48px; padding-bottom: 72px;
}
.hero-copy { animation: rise .9s var(--ease) both; }
.lede { margin-top: 24px; font-size: 18px; color: var(--ink-2); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.specs { display: grid; grid-template-columns: repeat(3, auto); gap: 28px; margin: 44px 0 0; padding-top: 22px; border-top: 1px solid var(--line); justify-content: start; }
.specs dt { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.specs dd { margin: 0; font-size: 14px; font-weight: 500; }

/* Demo */
.demo { margin: 0; animation: rise .9s .12s var(--ease) both; }
.demo-stage {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.5); cursor: crosshair; overflow: hidden;
  touch-action: pan-y;
}
.demo-stage svg { display: block; width: 100%; height: auto; }
.bezel { fill: var(--ink); opacity: .92; }
.panel { fill: var(--bg-2); }
.stand, .base { fill: color-mix(in srgb, var(--ink) 30%, var(--bg)); }
.win-body { fill: var(--surface); stroke: var(--line); }
.win-bar { fill: var(--line); transition: fill .35s var(--ease); }
.win.active .win-bar { fill: var(--accent); }
.dot { fill: var(--surface); opacity: .8; }
.line { fill: var(--line); }
.term { font-family: var(--mono); font-size: 10.5px; fill: var(--ink-2); }
.caret { animation: blink 1.1s steps(1) infinite; }
.cursor path { fill: var(--surface); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.cursor { transition: transform .5s var(--ease); }
.win.blurred { filter: url(#soft); }
.veil { opacity: 0; transition: opacity .3s var(--ease); pointer-events: none; }
.veil.on { opacity: 1; }
.veil rect { fill: color-mix(in srgb, var(--bg-2) 55%, transparent); }
.veil-eye path, .veil-eye circle { fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linecap: round; }
.flash { fill: none; stroke: var(--accent); stroke-width: 4; opacity: 0; transform-box: fill-box; transform-origin: center; }
.flash.go { animation: flash .55s var(--ease); }
.head { transform-box: view-box; transform-origin: 320px 350px; }
.skull { fill: color-mix(in srgb, var(--ink) 14%, var(--surface)); stroke: var(--ink); stroke-width: 1.6; }
.nose { fill: var(--ink); }
.pod { fill: var(--surface); stroke: var(--ink); stroke-width: 1.4; }

.readout {
  margin-top: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; align-items: center;
}
.readout-row { display: flex; flex-direction: column; gap: 2px; }
.readout .label { font-size: 12px; color: var(--muted); }
.readout .value { font-size: 15px; font-weight: 500; }
.dwell { grid-column: 1 / -1; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.dwell span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.status { grid-column: 1; font-size: 13px; color: var(--ink-2); min-height: 2.6em; }
.demo-buttons { grid-column: 2; justify-self: end; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.typing {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: 500 13px var(--font); cursor: pointer;
  transition: transform .15s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.typing svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.typing:active { transform: scale(.98); }
.typing[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }

/* Secciones */
section { position: relative; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-lede { margin-top: 18px; color: var(--ink-2); font-size: 17px; max-width: 58ch; }

.features { padding-top: 96px; padding-bottom: 72px; }
.row {
  display: grid; grid-template-columns: 72px minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px;
  padding: 36px 0; border-top: 1px solid var(--line);
}
.row:last-child { border-bottom: 1px solid var(--line); }
.row-num { font-size: 13px; color: var(--accent-ink); padding-top: 4px; }
.row-copy p { margin-top: 10px; color: var(--ink-2); max-width: 56ch; }
.row-facts { list-style: none; margin: 0; padding: 4px 0 0; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.row-facts li { padding-left: 18px; position: relative; }
.row-facts li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 1.5px; background: var(--accent); }

.how { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-inner { padding-top: 96px; padding-bottom: 88px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 0; }
.steps li { padding: 28px 28px 8px 0; border-top: 1.5px solid var(--ink); margin-right: 28px; }
.steps li:nth-child(2) { margin-top: 40px; }
.steps li:nth-child(3) { margin-top: 80px; margin-right: 0; }
.step-num {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); font-size: 12px; margin-bottom: 18px;
}
.steps p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.privacy {
  margin-top: 56px; display: inline-flex; align-items: center; gap: 12px; font-size: 15px;
  padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
}
.privacy svg { width: 20px; height: 20px; fill: none; stroke: var(--accent-ink); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; flex: none; }

.keys { padding-top: 96px; padding-bottom: 40px; }
.key-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.key-grid div { display: flex; align-items: center; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.key-grid div:nth-child(odd) { padding-right: 32px; }
.key-grid div:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--line); }
.key-grid dt { flex: none; width: 130px; font-size: 15px; }
.key-grid dd { margin: 0; color: var(--ink-2); font-size: 15px; }

.install {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center;
  padding-top: 96px; padding-bottom: 96px;
}
.install-copy p { margin-top: 16px; color: var(--ink-2); max-width: 46ch; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; font-size: 15px; }
.checks li { padding-left: 26px; position: relative; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px;
  border-left: 1.6px solid var(--accent-ink); border-bottom: 1.6px solid var(--accent-ink); transform: rotate(-45deg);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.download { display: grid; gap: 16px; }
.download-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.download-card img { border-radius: 14px; }
.download-meta { display: grid; gap: 2px; }
.download-meta strong { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.download-meta span { font-size: 13px; color: var(--muted); }
.first-open { padding: 22px 22px 20px; border-radius: var(--radius); border: 1px dashed var(--line); }
.first-open h3 { font-size: 16px; }
.first-open p { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.first-open ol { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.first-open strong { color: var(--ink); font-weight: 500; }
.small-note { font-size: 13px !important; color: var(--muted) !important; }
.terminal { border-radius: 16px; overflow: hidden; background: #1B1A18; border: 1px solid #2E2C28; box-shadow: var(--shadow); }
.terminal-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-bottom: 1px solid #2E2C28; }
.terminal-bar span { width: 11px; height: 11px; border-radius: 50%; background: #3A3833; }
.copy {
  margin-left: auto; height: 26px; padding: 0 10px; border-radius: 7px; border: 1px solid #3A3833;
  background: transparent; color: #CFCBC2; font: 500 12px var(--font); cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.copy:hover { border-color: #5A5750; color: #fff; }
.copy:active { transform: scale(.97); }
.terminal pre { margin: 0; padding: 20px 22px 24px; overflow-x: auto; font-family: var(--mono); font-size: 14px; line-height: 1.75; color: #ECE8DF; }
.terminal .c { color: #8C877C; }

.faq { padding-top: 40px; padding-bottom: 112px; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; }
.faq .section-head { margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 20px 36px 20px 0; font-weight: 500; font-size: 16px; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg);
  transition: transform .3s var(--ease);
}
details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
details p { padding: 0 36px 22px 0; color: var(--ink-2); max-width: 62ch; }

.footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; height: 72px; font-size: 13px; }

/* Animaciones */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes flash {
  0% { opacity: 0; transform: scale(1.6); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: scale(0.2); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Móvil */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 40px; padding-top: 40px; }
  .row { grid-template-columns: 1fr; gap: 12px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li:nth-child(2), .steps li:nth-child(3) { margin: 0 0 8px; padding-right: 0; }
  .install, .faq { grid-template-columns: 1fr; gap: 36px; }
  .key-grid { grid-template-columns: 1fr; }
  .key-grid div:nth-child(odd), .key-grid div:nth-child(even) { padding: 18px 0; border-left: 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav nav a:not(.nav-cta) { display: none; }
  .specs { grid-template-columns: 1fr 1fr; gap: 18px; }
  .readout { grid-template-columns: 1fr; }
  .status, .demo-buttons { grid-column: 1; justify-self: start; justify-content: flex-start; }
  .key-grid div { flex-direction: column; align-items: flex-start; gap: 8px; }
  .download-card { grid-template-columns: auto 1fr; }
  .download-card .btn { grid-column: 1 / -1; justify-content: center; }
}
