:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-alt: #eeede7;
  --ink: #141413;
  --muted: #5c5b56;
  --line: #e1dfd7;
  --accent: #ff5a1f;
  --accent-deep: #d9480f;
  --accent-ink: #141413;
  --ok: #2f9e5f;

  /* Fixed dark palette for the hero, terminal and contact bands */
  --night: #0d0d0c;
  --night-2: #181816;
  --night-line: #2a2926;
  --night-ink: #f2f1ec;
  --night-muted: #9d9c95;

  --radius: 16px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* The design alternates dark bands with light sections on purpose, so it ignores the OS dark mode */
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; background: var(--night); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.025em; line-height: 1.1; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 30; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
.hl { color: var(--accent-deep); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  color: var(--night-ink);
  transition: background .25s, border-color .25s, color .25s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-color: var(--line);
  color: var(--ink);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.nav nav { display: flex; gap: 30px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex; padding: 3px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid currentColor; color: inherit; opacity: .8;
  font: 500 12px var(--mono);
}
.lang:hover { opacity: 1; }
.lang span { padding: 4px 8px; border-radius: 999px; }
.lang span.on { background: var(--night-ink); color: var(--night); }
.nav.scrolled .lang span.on { background: var(--ink); color: var(--bg); }
.nav nav a { text-decoration: none; font-size: 15px; opacity: .7; transition: opacity .15s; }
.nav nav a:hover { opacity: 1; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.04em; }
.mark { width: 22px; height: 22px; fill: currentColor; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.brand:hover .mark { transform: rotate(90deg); }
.mark-accent { fill: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 999px;
  text-decoration: none; font-weight: 550; font-size: 16px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn .arrow { display: inline-block; transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-small { height: 38px; padding: 0 18px; font-size: 14px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { box-shadow: 0 8px 30px -8px var(--accent); transform: translateY(-2px); }
.btn-ghost { color: var(--night-ink); border-color: var(--night-line); }
.btn-ghost:hover { border-color: var(--night-ink); }
.btn-ink { background: var(--ink); color: var(--bg); margin-top: 30px; }
.btn-ink:hover { transform: translateY(-2px); }

/* ---------- Hero: live grid ---------- */
.hero {
  position: relative;
  background: var(--night);
  color: var(--night-ink);
  padding: 150px 0 110px;
  min-height: min(92vh, 860px);
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-copy { max-width: 640px; position: relative; }
/* Soft dark halo behind the text so the grid never fights the headline */
.hero-copy::before {
  content: ""; position: absolute; inset: -60px -80px -60px -120px; z-index: -1;
  background: radial-gradient(ellipse at 40% 50%, rgba(13,13,12,.92) 35%, rgba(13,13,12,0) 72%);
}
.hero .eyebrow { color: var(--night-muted); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.hero-inner { position: relative; }
.hero h1 { font-size: clamp(44px, 7vw, 86px); font-weight: 700; letter-spacing: -0.045em; line-height: 0.98; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero h1 .l1, .hero h1 em { display: inline-block; }
.hero h1.enter .l1 { animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
.hero h1.enter em { animation: rise .9s .18s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }

.rotator { margin-top: 30px; font-family: var(--mono); font-size: clamp(17px, 2vw, 21px); color: var(--night-muted); min-height: 1.6em; }
.prompt { color: var(--accent); margin-right: 4px; }
.rotator-word { color: var(--night-ink); display: inline-block; transition: opacity .25s, transform .25s; }
.rotator-word.out { opacity: 0; transform: translateY(-6px); }
.caret { display: inline-block; width: .55em; height: 1.05em; background: var(--accent); vertical-align: -0.15em; margin-left: 3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.lede { margin-top: 18px; font-size: 19px; color: var(--night-muted); max-width: 31em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

/* ---------- Marquee ---------- */
.marquee { background: var(--accent); color: var(--accent-ink); overflow: hidden; padding: 16px 0; border-block: 1px solid var(--accent); }
.marquee-track { display: flex; width: max-content; gap: 28px; align-items: center; animation: marquee 32s linear infinite; font-family: var(--mono); font-size: 15px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.marquee-track i { font-style: normal; font-size: 10px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Statement (scroll-lit words) ---------- */
.statement { padding: 150px 0 140px; }
.statement-text { max-width: 1040px; font-size: clamp(30px, 5.2vw, 66px); font-weight: 650; letter-spacing: -0.04em; line-height: 1.1; }
.statement-text .w { color: var(--ink); opacity: .14; transition: opacity .35s ease, color .35s ease; }
.statement-text .w.on { opacity: 1; }
.statement-text .w-accent.on { color: var(--accent-deep); }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section-head { max-width: 700px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section h2 { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -0.035em; }
.section-sub { margin-top: 18px; color: var(--muted); font-size: 19px; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px 32px; overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s;
}
.card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: 0 24px 50px -30px rgba(0,0,0,.35); }
.card:hover::after { transform: scaleX(1); }
.card-icon { width: 34px; height: 34px; fill: var(--ink); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.card-icon .a { fill: var(--accent); }
.card:hover .card-icon { transform: rotate(-8deg) scale(1.08); }
.card h3 { font-size: 20px; margin: 26px 0 10px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* Cases */
.section-cases { padding-top: 40px; }
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.case {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.case:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(0,0,0,.35); }
.case-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.case-tag { font-size: 22px; font-weight: 650; letter-spacing: -0.03em; }
.case-badge { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border: 1px dashed var(--line); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.case-row { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: baseline; }
.case-k { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.case-row.before .case-k { color: var(--muted); }
.case-row.before p { color: var(--muted); font-size: 15.5px; }
.case-row.after .case-k { color: var(--accent-deep); }
.case-row.after p { font-size: 15.5px; }
.chips { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-family: var(--mono); font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--surface-alt); border: 1px solid var(--line); }

/* FAQ */
.section-faq { padding-top: 40px; }
.faq-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: 19px; font-weight: 600; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; border-radius: 3px; background: var(--line);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s;
}
.faq summary:hover::after { background: var(--muted); }
.faq details[open] summary::after { background: var(--accent); transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 40px 24px 0; max-width: 38em; }

/* Legal page */
.page-legal { background: var(--bg); min-height: 100vh; }
.legal { max-width: 760px; padding-top: 130px; padding-bottom: 110px; }
.legal h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.045em; }
.legal-date { color: var(--muted); font-family: var(--mono); font-size: 13px; margin: 14px 0 44px; }
.legal h2 { font-size: 22px; margin: 36px 0 12px; }
.legal p { color: var(--muted); margin-bottom: 12px; }
.legal a { color: var(--accent-deep); }
.legal-back { margin-top: 48px; font-family: var(--mono); font-size: 14px; }

/* Admin panel */
.page-admin { background: var(--bg); min-height: 100vh; }
.admin-badge { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.admin { padding-top: 110px; padding-bottom: 80px; }
.admin-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.admin h1 { font-size: 40px; letter-spacing: -0.04em; }
.admin-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-filters button, .lead-actions button {
  font: 500 14px var(--font); border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
}
.admin-filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.admin-filters span { opacity: .6; margin-left: 4px; }
.admin-msg { color: var(--muted); margin: 8px 0 16px; }
.leads { display: grid; gap: 12px; }
.lead { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.lead-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.lead-name { font-size: 19px; }
.lead-meta { color: var(--muted); font-family: var(--mono); font-size: 12.5px; margin-top: 6px; word-break: break-word; }
.lead-status { font-family: var(--mono); font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.lead-status.is-nuevo { background: color-mix(in srgb, var(--accent) 15%, transparent); border-color: transparent; color: var(--accent-deep); }
.lead-status.is-respondido { color: var(--ok); }
.lead-status.is-descartado { color: var(--muted); }
.lead-message { margin: 16px 0; white-space: pre-wrap; word-break: break-word; }
.lead-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lead-reply { background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 550; font-size: 14px; padding: 8px 16px; border-radius: 999px; }
.lead-actions button:hover, .admin-filters button:hover { border-color: var(--ink); }

/* Product */
.section-product { background: var(--surface-alt); border-block: 1px solid var(--line); }
.product {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  padding: 56px; overflow: hidden; position: relative;
}
.product-title { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.product h3 { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; }
.tag { font-family: var(--mono); font-size: 12px; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent-deep); }
.product-pitch { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 14px; }
.product p { color: var(--muted); max-width: 30em; }
.product .product-pitch { color: var(--ink); }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: center; font-size: 15.5px; }
.checks li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); flex: none; }

.phones { position: relative; height: 480px; }
.phones::before {
  content: ""; position: absolute; inset: 10% 5%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 65%);
  filter: blur(10px);
}
.phone { position: absolute; width: 230px; filter: drop-shadow(0 30px 40px rgba(0,0,0,.25)); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.phone-back { left: 8%; top: 30px; transform: translate3d(0, var(--pb, 0px), 0) rotate(-9deg); }
.phone-front { right: 6%; top: 0; transform: translate3d(0, var(--pf, 0px), 0) rotate(6deg); }
.product:hover .phone-back { transform: translate3d(-10px, calc(var(--pb, 0px) + 6px), 0) rotate(-12deg); }
.product:hover .phone-front { transform: translate3d(0, calc(var(--pf, 0px) - 8px), 0) rotate(3deg); }
.more { margin-top: 28px; color: var(--muted); font-family: var(--mono); font-size: 14px; }
.blink { color: var(--accent); animation: blink 1.2s steps(1) infinite; margin-right: 6px; }

/* Process */
.process { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-n { font-family: var(--mono); font-size: 14px; color: var(--accent-deep); padding-top: 3px; }
.steps h3 { font-size: 20px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15.5px; }

.terminal {
  position: sticky; top: 110px;
  background: var(--night); color: var(--night-ink); border: 1px solid var(--night-line);
  border-radius: 18px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.5);
}
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--night-line); background: var(--night-2); }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--night-line); }
.terminal-bar i:first-child { background: var(--accent); }
.terminal-bar span { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--night-muted); }
.terminal-body { margin: 0; padding: 24px 22px 28px; min-height: 290px; font-family: var(--mono); font-size: 14.5px; line-height: 1.85; white-space: pre-wrap; }
.terminal-body .cmd { color: var(--night-ink); }
.terminal-body .dim { color: var(--night-muted); }
.terminal-body .ok { color: #5cc98a; }
.terminal-body .acc { color: var(--accent); }
.terminal-body span:not([class]) { color: var(--night-ink); }

/* Contact */
.contact { background: var(--night); color: var(--night-ink); padding: 140px 0 150px; position: relative; overflow: hidden; isolation: isolate; }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--night-line) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 60%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 60%, #000 20%, transparent 70%);
}
.contact-head { max-width: 820px; margin: 0 auto 64px; text-align: center; }
.contact .eyebrow { color: var(--night-muted); }
.contact h2 { font-size: clamp(64px, 13vw, 168px); font-weight: 700; letter-spacing: -0.06em; line-height: .9; color: var(--night-ink); white-space: nowrap; }
.contact h2::after { content: ""; display: inline-block; width: .18em; height: .18em; background: var(--accent); border-radius: .03em; margin-left: .02em; }
.contact-head p { margin: 28px auto 0; max-width: 34em; color: var(--night-muted); font-size: 19px; }
.btn-big { height: 60px; padding: 0 30px; font-size: 17px; background: var(--accent); color: var(--accent-ink); }
.btn-big:hover { box-shadow: 0 10px 40px -8px var(--accent); transform: translateY(-3px); }
.btn-big:disabled { opacity: .6; cursor: progress; transform: none; box-shadow: none; }

.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; max-width: 980px; margin: 0 auto; }
.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  background: var(--night-2); border: 1px solid var(--night-line); border-radius: 24px; padding: 32px;
}
.field { display: grid; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--night-muted); }
.field input, .field textarea {
  width: 100%; font: 400 16px var(--font); color: var(--night-ink);
  background: var(--night); border: 1px solid var(--night-line); border-radius: 12px; padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #5f5e58; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.form-status { font-size: 15px; color: var(--night-muted); }
.form-status.is-ok { color: #5cc98a; }
.form-status.is-error { color: #ff8f5c; }
.form-note { font-size: 13.5px; color: var(--night-muted); }
.form-note a { color: var(--night-ink); }

.direct {
  display: flex; flex-direction: column; gap: 12px; justify-content: center;
  border: 1px solid var(--night-line); border-radius: 24px; padding: 32px;
}
.direct-title { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--night-muted); margin-bottom: 6px; }
.direct-link {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px;
  background: var(--night-2); border: 1px solid var(--night-line); text-decoration: none; font-weight: 500;
  transition: border-color .2s, transform .2s;
}
.direct-link[hidden] { display: none; }
.direct-link svg { width: 22px; height: 22px; fill: var(--accent); flex: none; }
.direct-link span { overflow: hidden; text-overflow: ellipsis; }
.direct-link:hover { border-color: var(--accent); transform: translateX(3px); }

/* Footer */
.footer { padding: 28px 0; background: var(--night); color: var(--night-muted); border-top: 1px solid var(--night-line); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand-small { font-size: 17px; color: var(--night-ink); }
.brand-small .mark { width: 18px; height: 18px; }

/* Scroll reveal (only when JS + motion are available) */
.reveal.pre { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.pre.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.cards .reveal:nth-child(4), .steps .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; gap: 8px; }
  .hero-inner, .product, .process { grid-template-columns: 1fr; }
  .terminal { position: static; }
  .phones { height: 440px; max-width: 460px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav nav { display: none; }
  .hero { padding: 112px 0 72px; }
  .hero-inner { gap: 44px; }
  .hero-copy::before { inset: -40px -40px; }
  .hero { padding-bottom: 200px; }
  .lede { font-size: 17px; }
  .cta-row .btn { flex: 1 1 auto; }
  .statement { padding: 96px 0 90px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 36px; }
  .cards { grid-template-columns: 1fr; }
  .product { padding: 28px 22px; border-radius: 22px; }
  .product h3 { font-size: 34px; }
  .product-pitch { font-size: 21px; }
  .phones { height: 380px; }
  .phone { width: 176px; }
  .phone-back { left: 0; }
  .phone-front { right: 0; }
  .terminal-body { font-size: 12.5px; padding: 20px 16px; min-height: 250px; }
  .contact { padding: 100px 0 110px; }
  .contact-head { margin-bottom: 40px; }
  .contact-head p { font-size: 17px; }
  .btn-big { height: 56px; padding: 0 22px; font-size: 15px; }
  .cases { grid-template-columns: 1fr; }
  .case { padding: 22px; }
  .case-row { grid-template-columns: 1fr; gap: 4px; }
  .form { grid-template-columns: 1fr; padding: 20px; border-radius: 20px; }
  .direct { padding: 20px; border-radius: 20px; }
  .form-foot .btn-big { width: 100%; }
  .nav-actions .btn-small { padding: 0 14px; }
  .faq summary { font-size: 17px; padding: 18px 0; }
  .faq details p { padding-right: 0; }
  .legal { padding-top: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) { scroll-behavior: auto; }
  html:not(.force-motion) *, html:not(.force-motion) *::before, html:not(.force-motion) *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition: none !important; }
}
