/* ─────────────────── Talos Labs IA — Stylesheet ─────────────────── */

:root {
  /* Palette — Esmeralda dark (default) */
  --bg: #0A0F0D;
  --bg-soft: #0F1714;
  --bg-elev: #131C18;
  --line: rgba(240, 253, 244, 0.08);
  --line-strong: rgba(240, 253, 244, 0.14);
  --ink: #F0FDF4;
  --ink-muted: rgba(240, 253, 244, 0.62);
  --ink-dim: rgba(240, 253, 244, 0.42);
  --accent: #10B981;
  --accent-soft: #34D399;
  --accent-glow: rgba(16, 185, 129, 0.35);
  --accent-mesh-a: #10B981;
  --accent-mesh-b: #064E3B;
  --accent-mesh-c: #022C22;

  /* Type */
  --font-sans: 'Geist', ui-sans-serif, -apple-system, system-ui, sans-serif;
  --font-serif: 'Instrument Serif', 'Times New Roman', serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;

  /* Density (regular) */
  --pad-section: clamp(80px, 10vw, 160px);
  --pad-x: clamp(20px, 9vw, 160px);
  --gap-card: 20px;
  --radius: 14px;
  --radius-lg: 22px;
}

[data-density="compact"] {
  --pad-section: clamp(56px, 7vw, 110px);
  --pad-x: clamp(16px, 5vw, 80px);
  --gap-card: 14px;
  --radius: 12px;
  --radius-lg: 18px;
}
[data-density="comfy"] {
  --pad-section: clamp(110px, 14vw, 220px);
  --pad-x: clamp(24px, 8vw, 140px);
  --gap-card: 28px;
  --radius: 18px;
  --radius-lg: 28px;
}

/* Palette variants */
[data-palette="indigo"] {
  --accent: #6366F1;
  --accent-soft: #818CF8;
  --accent-glow: rgba(99, 102, 241, 0.35);
  --accent-mesh-a: #6366F1;
  --accent-mesh-b: #312E81;
  --accent-mesh-c: #1E1B4B;
  --bg: #07070F;
  --bg-soft: #0C0C18;
  --bg-elev: #10101E;
  --line: rgba(235, 235, 255, 0.08);
  --line-strong: rgba(235, 235, 255, 0.14);
}
[data-palette="amber"] {
  --accent: #F59E0B;
  --accent-soft: #FBBF24;
  --accent-glow: rgba(245, 158, 11, 0.30);
  --accent-mesh-a: #F59E0B;
  --accent-mesh-b: #78350F;
  --accent-mesh-c: #1C1410;
  --bg: #0E0B07;
  --bg-soft: #14100A;
  --bg-elev: #1A140C;
}
[data-palette="rose"] {
  --accent: #F43F5E;
  --accent-soft: #FB7185;
  --accent-glow: rgba(244, 63, 94, 0.30);
  --accent-mesh-a: #F43F5E;
  --accent-mesh-b: #881337;
  --accent-mesh-c: #1F0A11;
  --bg: #0D0709;
  --bg-soft: #14090C;
  --bg-elev: #1A0C10;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  letter-spacing: -0.005em;
}

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

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; }

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

/* ───── Type scale ───── */
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.025em; line-height: 1.05; }
h1 { font-size: clamp(56px, 9vw, 132px); font-weight: 400; letter-spacing: -0.04em; }
h2 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.02em; }

.serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.mono { font-family: var(--font-mono); font-feature-settings: "ss01", "ss02"; }

/* ───── Layout shell ───── */
.shell {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

section { position: relative; }

/* ───── Nav ───── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--pad-x);
  transition: background 400ms ease, backdrop-filter 400ms ease, border-color 400ms ease, padding 400ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--line);
  padding-top: 6px;
  padding-bottom: 6px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: -0.01em; }
.nav-logo {
  width: 104px; height: 104px;
  object-fit: contain;
  transition: width 400ms ease, height 400ms ease;
}
.nav.scrolled .nav-logo {
  width: 48px; height: 48px;
}
.nav-brand .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--ink-muted); font-size: 14px; transition: color 200ms; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 200ms, border-color 200ms, transform 200ms;
}
.nav-cta:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ── Hamburger ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
  padding: 0 8px;
}
.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 300ms ease, opacity 300ms ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile menu ── */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 40px var(--pad-x);
  animation: menuFadeIn 250ms ease both;
}
.nav-mobile-menu a {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-muted);
  transition: color 200ms;
}
.nav-mobile-menu a:hover { color: var(--ink); }
@keyframes menuFadeIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile-menu { display: flex; }
  .nav-cta { display: none; }
}

/* ───── Hero ───── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.mesh {
  position: absolute;
  inset: -10% -10% -10% -10%;
  filter: blur(60px) saturate(140%);
  opacity: 0.85;
  transition: transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mesh-a {
  background: radial-gradient(45% 45% at 30% 30%, var(--accent-mesh-a) 0%, transparent 60%);
}
.mesh-b {
  background: radial-gradient(45% 45% at 70% 60%, var(--accent-mesh-b) 0%, transparent 65%);
}
.mesh-c {
  background: radial-gradient(50% 50% at 50% 100%, var(--accent-mesh-c) 0%, transparent 60%);
}

/* Particle canvas */
.particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Grid overlay */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
  z-index: -1;
}

.hero-inner {
  width: 100%;
  padding: 140px 0 80px;
  padding-left: 60px;
  position: relative;
}

@media (max-width: 768px) {
  .hero-inner {
    padding: 110px 0 60px;
    padding-left: 0;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-elev) 60%, transparent);
  backdrop-filter: blur(8px);
}
.hero-eyebrow .pulse {
  width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero-title {
  margin-top: 28px;
  max-width: 16ch;
}
.hero-title .accent { color: var(--accent); }
.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hero-sub {
  margin-top: 28px;
  max-width: 52ch;
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--ink-muted);
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-cta {
  margin-top: 44px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1), background 200ms, border-color 200ms, box-shadow 200ms;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 12px 36px -12px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 18px 50px -10px var(--accent-glow); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink-muted); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.btn .arrow { transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.btn:hover .arrow { transform: translateX(3px); }

/* Hero meta strip */
.hero-meta {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.hero-meta > div {
  padding-right: 24px;
}
.hero-meta > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.hero-meta .num {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  display: block;
  color: var(--ink);
}
.hero-meta .num .plus { color: var(--accent); font-style: normal; font-family: var(--font-sans); font-weight: 300; }
.hero-meta .lbl {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
@media (max-width: 768px) {
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .hero-meta > div + div { border-left: 0; padding-left: 0; }
  .hero-meta > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .hero-meta > div:nth-child(odd) { padding-right: 16px; }
  .hero-meta > div:nth-child(even) { padding-left: 16px; }
}

/* ───── Variant: split hero ───── */
.hero[data-variant="split"] .hero-bg .mesh { opacity: 0.5; }
.hero[data-variant="split"] .hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero[data-variant="split"] .hero-title { font-size: clamp(48px, 6.5vw, 96px); }
.hero[data-variant="split"] .hero-meta { grid-column: 1 / -1; }
@media (max-width: 1000px) {
  .hero[data-variant="split"] .hero-inner { grid-template-columns: 1fr; }
}

/* ───── Variant: minimal hero ───── */
.hero[data-variant="minimal"] .mesh { opacity: 0.25; }
.hero[data-variant="minimal"] .grid-overlay { opacity: 0.4; }
.hero[data-variant="minimal"] .hero-title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 18ch;
}
.hero[data-variant="minimal"] .hero-eyebrow,
.hero[data-variant="minimal"] .hero-sub,
.hero[data-variant="minimal"] .hero-cta {
  margin-left: auto;
  margin-right: auto;
}
.hero[data-variant="minimal"] .hero-sub { text-align: center; }
.hero[data-variant="minimal"] .hero-cta { justify-content: center; }
.hero[data-variant="minimal"] .hero-eyebrow-wrap { display: flex; justify-content: center; }

/* ───── Anim helpers ───── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 800ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.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; }

/* ───── Section header ───── */
.sec-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.sec-header .label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex; align-items: center; gap: 12px;
}
.sec-header .label::before {
  content: ''; width: 24px; height: 1px; background: var(--accent);
}
.sec-header h2 { max-width: 18ch; }
.sec-header h2 em { font-family: var(--font-serif); font-weight: 400; font-style: italic; color: var(--ink-muted); }
.sec-header .desc { max-width: 40ch; color: var(--ink-muted); }

/* ───── Products ───── */
.products { padding: var(--pad-section) 0; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-card);
}

.product-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  cursor: pointer;
  transition: border-color 320ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.product-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.product-card.expanded { border-color: var(--accent); }

.product-card .glow {
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 18%, transparent), transparent 40%);
  opacity: 0;
  transition: opacity 320ms;
  pointer-events: none;
  z-index: 0;
}
.product-card:hover .glow { opacity: 1; }

.product-card > * { position: relative; z-index: 1; }

.product-card .pc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.product-card .pc-name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.product-card .pc-name em { font-family: var(--font-serif); color: var(--accent); font-style: italic; font-weight: 400; }
.product-card .pc-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.product-card .pc-tag {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}
.product-card .pc-tag.live::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 999px;
  margin-right: 7px;
  vertical-align: middle;
  box-shadow: 0 0 8px var(--accent-glow);
}
.product-card .pc-blurb {
  margin-top: 14px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.55;
  text-wrap: pretty;
}

.product-card .pc-mock {
  margin-top: auto;
  padding-top: 24px;
}

.product-card .pc-toggle {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-muted);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.product-card .pc-toggle .arrow {
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
  display: inline-block;
}
.product-card.expanded .pc-toggle .arrow { transform: rotate(180deg); color: var(--accent); }

.product-card .pc-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 480ms cubic-bezier(0.2, 0.8, 0.2, 1), margin-top 480ms;
  margin-top: 0;
}
.product-card.expanded .pc-detail {
  grid-template-rows: 1fr;
  margin-top: 22px;
}
.product-card .pc-detail-inner {
  overflow: hidden;
  min-height: 0;
}

.pc-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.pc-features li {
  list-style: none;
  font-size: 13.5px;
  color: var(--ink-muted);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.pc-features li::before {
  content: '';
  flex-shrink: 0;
  width: 14px; height: 14px;
  margin-top: 4px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 80% no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 80% no-repeat;
}

/* Card sizing — all equal, 2 per row */
.product-card.size-lg,
.product-card.size-md,
.product-card.size-sm { grid-column: span 1; min-height: 360px; }

@media (max-width: 700px) {
  .products-grid { grid-template-columns: 1fr; }
  .product-card.size-lg, .product-card.size-md, .product-card.size-sm { grid-column: 1; }
  .pc-features { grid-template-columns: 1fr; }
  .product-card .pc-head { flex-wrap: wrap; }
  .product-card .pc-tags { flex-direction: row; align-items: flex-start; flex-wrap: wrap; flex-basis: 100%; }
  .product-card .pc-tag { white-space: normal; font-size: 10px; }
}

/* ───── Mockup styles (used inside cards & hero) ───── */
.mock {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: linear-gradient(180deg, #0d1411 0%, #060a08 100%);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7), 0 1px 0 rgba(255,255,255,0.04) inset;
}

.mock .mock-chrome {
  display: flex; gap: 5px; padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,0.25);
}
.mock .mock-chrome i {
  width: 8px; height: 8px; border-radius: 999px; background: var(--line-strong); display: block;
}

.mock .mock-body {
  padding: 14px;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  height: calc(100% - 28px);
}

.mock-side { display: flex; flex-direction: column; gap: 8px; }
.mock-side .item { height: 8px; border-radius: 3px; background: var(--line); }
.mock-side .item.active { background: var(--accent); width: 75%; }

.mock-main { display: flex; flex-direction: column; gap: 10px; }
.mock-main .title { height: 12px; width: 50%; background: var(--ink-muted); opacity: 0.7; border-radius: 3px; }
.mock-main .row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.mock-main .stat { padding: 8px; border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; gap: 4px; }
.mock-main .stat .v { height: 10px; background: var(--ink); border-radius: 2px; width: 60%; opacity: 0.85; }
.mock-main .stat .l { height: 5px; background: var(--line-strong); border-radius: 2px; width: 80%; }
.mock-main .chart { flex: 1; border: 1px solid var(--line); border-radius: 6px; padding: 10px; min-height: 60px; }

/* ───── Phone mockup ───── */
.phone {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 19;
  border-radius: 36px;
  border: 8px solid #0a0d0c;
  background: #0d1411;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8), 0 0 0 1px var(--line-strong);
  overflow: hidden;
  position: relative;
}
.phone::before {
  content: '';
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 6px;
  background: #050807;
  border-radius: 999px;
  z-index: 2;
}
.phone-screen {
  position: absolute;
  inset: 0;
  padding: 28px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ───── Marquee ───── */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  margin-top: 80px;
}
.marquee-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.marquee-track > span {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.marquee-track > span::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 999px;
  display: inline-block;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ───── Cómo trabajamos ───── */
.howwework { padding: var(--pad-section) 0; }

.hww-models {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-card);
}

@media (max-width: 768px) {
  .hww-models { grid-template-columns: 1fr; }
}

.hww-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hww-card--featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 6%, var(--bg-soft)), var(--bg));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent) inset;
}

.hww-card-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.hww-card--featured .hww-card-label { color: var(--accent); }
.hww-card:not(.hww-card--featured) .hww-card-label { color: var(--ink-dim); }

.hww-card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.hww-card h3 { font-size: clamp(22px, 2.2vw, 28px); }

.hww-card p {
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.6;
  text-wrap: pretty;
  margin: 0;
}

.hww-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hww-list li {
  font-size: 14px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hww-list li::before {
  content: '';
  flex-shrink: 0;
  width: 14px; height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 80% no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 80% no-repeat;
}

.hww-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 48px;
}

@media (max-width: 768px) {
  .hww-steps { grid-template-columns: 1fr; gap: 28px; }
  .hww-step + .hww-step { border-left: none; padding-left: 0; }
}

.hww-step {
  padding-right: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hww-step + .hww-step {
  padding-left: 40px;
  padding-right: 40px;
  border-left: 1px solid var(--line);
}

.hww-step:last-child { padding-right: 0; }

.hww-step-n {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.hww-step strong {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hww-step p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 0;
  text-wrap: pretty;
}

/* ───── CTA ───── */
.cta-section {
  padding: var(--pad-section) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.cta-section h2 { max-width: 18ch; margin: 0 auto; }
.cta-section h2 em { font-family: var(--font-serif); font-weight: 400; font-style: italic; color: var(--accent); }
.cta-section .desc { color: var(--ink-muted); margin: 24px auto 40px; max-width: 50ch; }
.cta-section .btn { margin: 0 8px; }

/* ───── Footer ───── */
.foot {
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
  position: relative;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: flex-start;
}
@media (max-width: 768px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.foot-brand { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 18px; }
.foot-brand img { width: 32px; height: 32px; }
.foot-tag { color: var(--ink-muted); margin-top: 16px; max-width: 32ch; font-size: 14px; line-height: 1.6; }
.foot h4 { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 16px; font-weight: 500; }
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot ul a { color: var(--ink-muted); font-size: 14px; transition: color 200ms; display: inline-flex; align-items: center; gap: 8px; }
.foot ul a:hover { color: var(--ink); }

.foot-bottom {
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  color: var(--ink-dim);
  font-size: 12px;
  flex-wrap: wrap;
}
.foot-bottom .mark {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-muted);
}

/* ───── Big logotype divider ───── */
.bigtype {
  --sx: 50%;
  --sy: 50%;
  --so: 0;
  font-size: clamp(80px, 18vw, 280px);
  letter-spacing: -0.06em;
  font-weight: 300;
  line-height: 0.9;
  white-space: nowrap;
  text-align: center;
  position: relative;
  padding: 60px 0 0;
  user-select: none;
  cursor: default;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-image:
    radial-gradient(circle 380px at var(--sx) var(--sy),
      rgba(255,255,255, calc(var(--so) * 0.95)) 0%,
      rgba(200,210,255, calc(var(--so) * 0.6)) 30%,
      transparent 65%),
    linear-gradient(180deg, color-mix(in srgb, var(--ink) 38%, transparent), transparent 90%);
  transition: background-image 0ms;
}

/* ───── Reduce motion ───── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
