/* =================================================================
   DOCPILOT · Landing pública (docpilot.es)
   -----------------------------------------------------------------
   Standalone, sin Tailwind. Misma estructura que TalkPilot landing
   pero con paleta adaptada a DocPilot (acento azul-violeta).
   ================================================================= */

/* --------- Tokens --------- */
:root {
    --brand:          oklch(0.42 0.09 255);
    --brand-700:      oklch(0.32 0.10 255);
    --brand-soft:     oklch(0.96 0.018 255);
    --signal:         oklch(0.55 0.20 255);
    --signal-soft:    oklch(0.94 0.05 255);
    --ok:             oklch(0.62 0.13 155);
    --ink:            oklch(0.20 0.02 260);
    --ink-2:          oklch(0.36 0.018 260);
    --ink-3:          oklch(0.50 0.012 260);
    --ink-4:          oklch(0.62 0.010 260);
    --ink-5:          oklch(0.82 0.006 260);
    --line:           oklch(0.93 0.006 260);
    --bg:             oklch(0.99 0.003 260);
    --bg-sunken:      oklch(0.97 0.005 260);
    --bg-dark:        oklch(0.18 0.012 260);
    --bg-dark-2:      oklch(0.23 0.012 260);

    --r-2: 8px; --r-3: 12px; --r-4: 18px; --r-5: 28px;
    --d-fast: 160ms; --d-base: 240ms; --d-slow: 420ms;

    --font-ui: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* --------- Reset minimal --------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-ui);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "ss01" on, "ss02" on, "cv11" on, "cv05" on;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--d-fast); }
a:hover { color: var(--brand); }
em { font-style: normal; color: var(--signal); font-weight: 600; }
button { font: inherit; cursor: pointer; }

/* --------- Layout helpers --------- */
section { padding: 96px 24px; }
@media (max-width: 768px) { section { padding: 64px 18px; } }

/* --------- Botones --------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; font-size: 14px; font-weight: 500;
    border-radius: var(--r-2); border: 1px solid transparent;
    transition: transform var(--d-fast), box-shadow var(--d-fast), background-color var(--d-fast), color var(--d-fast);
    line-height: 1; letter-spacing: -0.005em;
}
.btn:active { transform: scale(0.97); }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-signal { background: var(--signal); color: white; border-color: var(--signal); }
.btn-signal:hover { background: oklch(0.48 0.22 255); color: white; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-sunken); color: var(--ink); border-color: var(--ink-5); }

/* --------- Nav --------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 16px 28px;
    background: oklch(0.99 0.003 260 / 0.85);
    backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; color: var(--brand); }
.brand-mark { height: 28px; width: auto; }
.nav-links { display: inline-flex; gap: 22px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.nav-links a:hover { color: var(--brand); }
.nav-cta { display: inline-flex; gap: 8px; }
@media (max-width: 800px) {
    .nav-links { display: none; }
}

/* --------- Hero --------- */
.hero {
    position: relative; overflow: hidden;
    padding-top: 80px; padding-bottom: 80px;
    background:
        radial-gradient(1100px 500px at 80% -10%, oklch(0.95 0.04 255) 0%, transparent 60%),
        radial-gradient(700px 400px at 0% 30%,   oklch(0.94 0.06 200) 0%, transparent 60%);
}
.hero-grid {
    position: relative; z-index: 2;
    max-width: 1240px; margin: 0 auto;
    display: grid; gap: 48px; grid-template-columns: 1.2fr 1fr; align-items: center;
}
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 56px; }
}
.eyebrow { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); font-weight: 600; margin-bottom: 14px; }
.display {
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.04; letter-spacing: -0.03em;
    font-weight: 600; color: var(--ink);
    margin: 0 0 20px 0;
}
.lead { font-size: 18px; color: var(--ink-2); max-width: 56ch; margin: 0 0 28px 0; }
.lead strong { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--ink-3); }
.hero-trust .dot { display: inline-block; width: 6px; height: 6px; border-radius: 9999px; background: var(--ok); margin-right: 6px; vertical-align: middle; }

/* Hero word split */
.hero-word {
    display: inline-block; overflow: hidden; vertical-align: bottom;
    line-height: 1.04; padding: 0 0.06em 0.06em 0;
}
.hero-word > span { display: inline-block; will-change: transform; }

/* Orbs */
.hero-orbs { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.orb {
    position: absolute; display: block;
    width: 520px; height: 520px; border-radius: 9999px;
    filter: blur(60px); opacity: 0.55; mix-blend-mode: multiply;
    will-change: transform;
}
.orb-1 { top: -140px; right: -140px; background: radial-gradient(closest-side, oklch(0.8 0.13 255) 0%, transparent 70%); }
.orb-2 { bottom: -200px; left: -160px; width: 620px; height: 620px; background: radial-gradient(closest-side, oklch(0.82 0.14 200) 0%, transparent 70%); opacity: 0.45; }
.orb-3 { top: 40%; left: 45%; width: 360px; height: 360px; background: radial-gradient(closest-side, oklch(0.90 0.08 280) 0%, transparent 70%); opacity: 0.45; }
.orb-grid {
    inset: 0; width: 100%; height: 100%;
    background-image:
        linear-gradient(to right, oklch(0.20 0.02 260 / 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, oklch(0.20 0.02 260 / 0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 70%);
    opacity: 0.7;
    filter: none;
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    color: var(--ink-3); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600;
    z-index: 2; pointer-events: none;
}
.hero-scroll-line { display: block; width: 1px; height: 36px; background: linear-gradient(to bottom, transparent, var(--ink-3)); animation: scrollHint 1.6s ease-in-out infinite; }
@keyframes scrollHint { 0%, 100% { transform: scaleY(0.4); transform-origin: top; } 50% { transform: scaleY(1); } }

/* --------- Cockpit en hero --------- */
.cockpit {
    background: linear-gradient(165deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
    color: oklch(0.95 0.005 260);
    padding: 22px; border-radius: var(--r-4);
    box-shadow: 0 24px 60px oklch(0.18 0.012 260 / 0.25);
    border: 1px solid oklch(0.30 0.012 260);
}
.cockpit-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: oklch(0.78 0.005 260); }
.cockpit-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.cockpit-time { font-family: var(--font-mono); font-weight: 500; padding: 3px 8px; background: oklch(1 0 0 / 0.06); border: 1px solid oklch(1 0 0 / 0.1); border-radius: 6px; }
.live-dot { width: 8px; height: 8px; border-radius: 9999px; background: var(--signal); box-shadow: 0 0 0 0 oklch(0.55 0.20 255 / 0.55); animation: lp 1.6s ease-out infinite; }
@keyframes lp { 0% { box-shadow: 0 0 0 0 oklch(0.55 0.20 255 / 0.55);} 80%,100%{ box-shadow: 0 0 0 12px oklch(0.55 0.20 255 / 0);}}
.cockpit-big {
    font-family: var(--font-ui); font-size: 64px; font-weight: 600;
    letter-spacing: -0.04em; line-height: 1.05; color: white; margin: 14px 0 8px 0;
    font-variant-numeric: tabular-nums;
}
.cockpit-big small { font-size: 13px; font-weight: 500; color: oklch(0.78 0.005 260); margin-left: 8px; letter-spacing: 0; text-transform: lowercase; }
.cockpit-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: oklch(0.78 0.005 260); padding-bottom: 14px; border-bottom: 1px dashed oklch(1 0 0 / 0.12); }
.waveform { display: inline-flex; gap: 2px; height: 18px; align-items: flex-end; }
.waveform span { display: inline-block; width: 3px; background: var(--signal); border-radius: 2px; animation: wf 1.2s ease-in-out infinite; }
.waveform span:nth-child(1) { height: 30%; animation-delay: 0.0s; }
.waveform span:nth-child(2) { height: 60%; animation-delay: 0.15s; }
.waveform span:nth-child(3) { height: 100%; animation-delay: 0.30s; }
.waveform span:nth-child(4) { height: 50%; animation-delay: 0.45s; }
.waveform span:nth-child(5) { height: 70%; animation-delay: 0.60s; }
@keyframes wf { 0%, 100% { transform: scaleY(0.6);} 50% { transform: scaleY(1.1);} }

.cockpit-funnel { padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.cf-row { display: grid; grid-template-columns: 90px 1fr 60px; gap: 10px; align-items: center; font-size: 12px; }
.cf-label { color: oklch(0.78 0.005 260); }
.cf-bar { height: 6px; background: oklch(1 0 0 / 0.08); border-radius: 9999px; overflow: hidden; }
.cf-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--signal) 0%, oklch(0.65 0.15 255) 100%); border-radius: 9999px; transition: width var(--d-slow) cubic-bezier(0.2,0.8,0.2,1); }
.cf-val { font-family: var(--font-mono); font-size: 12px; color: white; text-align: right; font-variant-numeric: tabular-nums; }

/* --------- Strip de KPIs --------- */
.strip { padding: 56px 24px; background: var(--bg-sunken); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
@media (max-width: 800px) { .strip-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; } }
.strip-item { text-align: left; }
.strip-num { font-family: var(--font-ui); font-weight: 600; font-size: 38px; letter-spacing: -0.025em; color: var(--ink); font-variant-numeric: tabular-nums; }
.strip-num small { font-size: 22px; color: var(--brand); margin-left: 2px; }
.strip-lbl { font-size: 13px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

/* --------- Section heads --------- */
.section-head { max-width: 720px; margin: 0 auto 56px auto; text-align: center; }
.section-head .eyebrow { color: var(--brand); }
.title { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); margin: 0 0 12px 0; }
.section-head .lead { color: var(--ink-2); margin: 0 auto; }

/* --------- Features --------- */
.features { background: var(--bg); }
.features-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
@media (max-width: 980px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features-grid { grid-template-columns: 1fr; } }
.feature {
    position: relative;
    padding: 32px 28px 28px 28px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    transition: box-shadow var(--d-fast), transform var(--d-fast), border-color var(--d-fast);
    overflow: hidden;
}
.feature::before {
    content: "";
    position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
    background: linear-gradient(90deg, var(--signal) 0%, transparent 100%);
    transform: scaleX(0.35); transform-origin: left center;
    transition: transform var(--d-base) cubic-bezier(0.2,0.8,0.2,1), opacity var(--d-base);
    opacity: 0.7;
}
.feature:hover {
    box-shadow: 0 12px 30px oklch(0.18 0.012 260 / 0.06);
    transform: translateY(-2px);
    border-color: var(--ink-5);
}
.feature:hover::before { transform: scaleX(1); opacity: 1; }
.feature-num {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 600;
    color: var(--signal);
    letter-spacing: 0.04em;
    margin-bottom: 14px;
    opacity: 0.85;
}
.feature h3 {
    font-size: 19px; margin: 0 0 8px 0;
    font-weight: 600; color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.feature p { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.6; }

/* --------- Bandeja inteligente (Growth) --------- */
.pbx-section {
    background:
        radial-gradient(900px 420px at 12% 6%, oklch(0.95 0.04 255) 0%, transparent 64%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-sunken) 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.pbx-shell {
    max-width: 1240px; margin: 0 auto;
    display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
@media (max-width: 980px) { .pbx-shell { grid-template-columns: 1fr; } }
.pbx-copy .title { max-width: 780px; }
.pbx-copy .lead { margin-bottom: 24px; }
.pbx-points {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
@media (max-width: 640px) { .pbx-points { grid-template-columns: 1fr; } }
.pbx-points article {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-3);
    padding: 16px; box-shadow: 0 10px 26px oklch(0.18 0.012 260 / 0.04);
}
.pbx-points strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 14px; }
.pbx-points span { display: block; color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }

.growth-pill {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 11px; margin-bottom: 16px; border-radius: 9999px;
    background: var(--signal-soft); border: 1px solid oklch(0.72 0.12 255);
    color: oklch(0.32 0.18 255); font-size: 11px; font-weight: 800;
    letter-spacing: 0.08em; text-transform: uppercase;
}
.growth-pill svg {
    width: 14px; height: 14px; fill: none; stroke: currentColor;
    stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}

.pbx-panel {
    background: linear-gradient(165deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
    color: oklch(0.96 0.005 260);
    border: 1px solid oklch(0.30 0.012 260);
    border-radius: var(--r-4); padding: 18px;
    box-shadow: 0 28px 70px oklch(0.18 0.012 260 / 0.22);
}
.pbx-panel-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding-bottom: 14px; border-bottom: 1px solid oklch(1 0 0 / 0.10);
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: oklch(0.82 0.006 260);
}
.pbx-panel-head span { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.pbx-panel-head small { font-family: var(--font-mono); font-size: 11px; text-transform: none; letter-spacing: 0; color: oklch(0.70 0.006 260); }
.pbx-dashboard { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; }
.pbx-call-card {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 16px; border-radius: var(--r-3);
    background: oklch(1 0 0 / 0.07); border: 1px solid oklch(1 0 0 / 0.10);
}
.pbx-call-card.is-active { box-shadow: 0 0 0 1px oklch(0.55 0.20 255 / 0.25), 0 18px 40px oklch(0.18 0.012 260 / 0.25); }
.pbx-call-card strong { display: block; color: white; font-size: 18px; margin: 2px 0; }
.pbx-call-card small, .pbx-label { display: block; color: oklch(0.78 0.006 260); font-size: 12px; }
.pbx-label { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.pbx-call-card button {
    border: 0; border-radius: var(--r-2); padding: 10px 14px;
    background: var(--signal); color: white; font-weight: 800;
}
.pbx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pbx-grid div {
    padding: 14px; border-radius: var(--r-2);
    background: oklch(1 0 0 / 0.06); border: 1px solid oklch(1 0 0 / 0.09);
}
.pbx-grid span { display: block; font-size: 11px; color: oklch(0.74 0.006 260); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; margin-bottom: 4px; }
.pbx-grid strong { color: white; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.pbx-team { display: flex; flex-direction: column; gap: 8px; }
.pbx-team div {
    display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center;
    padding: 10px 12px; border-radius: var(--r-2);
    background: oklch(1 0 0 / 0.05); border: 1px solid oklch(1 0 0 / 0.08);
}
.pbx-team p { margin: 0; color: white; font-size: 13px; font-weight: 700; }
.pbx-team small { display: block; color: oklch(0.74 0.006 260); font-weight: 500; margin-top: 1px; }
.pbx-team i { width: 9px; height: 9px; border-radius: 9999px; }
.pbx-team i.is-ok { background: var(--ok); }
.pbx-team i.is-busy { background: oklch(0.7 0.17 55); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 9999px; background: var(--signal); color: white; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.avatar-h { background: linear-gradient(135deg, oklch(0.48 0.18 255), oklch(0.40 0.16 280)); }

/* --------- How --------- */
.how { background: var(--bg-sunken); }
.how-steps { max-width: 1100px; margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 980px) { .how-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .how-steps { grid-template-columns: 1fr; } }
.how-steps li { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-3); padding: 24px; }
.step-num { display: inline-block; font-family: var(--font-mono); font-size: 13px; color: var(--signal); background: var(--signal-soft); padding: 4px 9px; border-radius: 6px; font-weight: 600; margin-bottom: 12px; }
.how-steps h3 { font-size: 16px; margin: 0 0 4px 0; font-weight: 600; color: var(--ink); }
.how-steps p { font-size: 13.5px; color: var(--ink-2); margin: 0; line-height: 1.55; }

/* --------- Xcailex Core --------- */
.core-section {
    background:
        radial-gradient(900px 420px at 85% 8%, oklch(0.96 0.05 255) 0%, transparent 62%),
        linear-gradient(180deg, var(--bg-sunken) 0%, var(--bg) 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.core-grid {
    max-width: 1000px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px;
}
@media (max-width: 768px) { .core-grid { grid-template-columns: 1fr; max-width: 400px; } }
.core-card {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-3);
    padding: 28px; text-align: center;
    transition: box-shadow var(--d-fast), transform var(--d-fast);
}
.core-card:hover { box-shadow: 0 12px 30px oklch(0.18 0.012 260 / 0.06); transform: translateY(-2px); }
.core-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: var(--r-2);
    background: var(--signal-soft); color: var(--signal);
    margin-bottom: 14px;
}
.core-icon svg { width: 24px; height: 24px; }
.core-card h3 { font-size: 18px; margin: 0 0 6px 0; font-weight: 600; color: var(--ink); }
.core-card p { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.55; }

/* --------- FAQ --------- */
.faq { background: var(--bg-sunken); }
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-3); padding: 16px 18px; transition: box-shadow var(--d-fast); }
.faq details[open] { box-shadow: 0 8px 18px oklch(0.18 0.012 260 / 0.05); }
.faq summary { font-weight: 600; color: var(--ink); cursor: pointer; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; color: var(--signal); font-size: 22px; font-weight: 400; transition: transform var(--d-fast); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--ink-2); font-size: 14px; line-height: 1.6; margin: 10px 0 0 0; }

/* --------- Contacto --------- */
.contact { background: linear-gradient(165deg, var(--brand) 0%, var(--brand-700) 100%); color: white; }
.contact .section-head { color: white; }
.contact .section-head .eyebrow { color: oklch(0.78 0.12 255); }
.contact .title, .contact .lead { color: white; }
.contact .lead { color: oklch(0.92 0.01 255); }

.contact-form { max-width: 720px; margin: 0 auto; background: var(--bg); color: var(--ink); border-radius: var(--r-4); padding: 28px; box-shadow: 0 24px 60px oklch(0.18 0.012 260 / 0.18); }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; margin-bottom: 14px; }
.contact-form input, .contact-form textarea {
    font: inherit; font-size: 15px; color: var(--ink); background: var(--bg);
    border: 1px solid var(--line); border-radius: var(--r-2); padding: 11px 13px;
    text-transform: none; letter-spacing: 0; font-weight: 400;
    transition: border-color var(--d-fast), box-shadow var(--d-fast);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 4px oklch(0.55 0.20 255 / 0.18); }
.contact-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .contact-form .row-2 { grid-template-columns: 1fr; gap: 0; } }
.row-check { flex-direction: row !important; align-items: flex-start; gap: 10px; text-transform: none !important; letter-spacing: 0 !important; font-size: 13px !important; color: var(--ink-2) !important; }
.row-check span { font-weight: 400; }
.row-check input { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.form-help { font-size: 13px; color: var(--ink-3); }
.form-help.is-ok { color: var(--ok); }
.form-help.is-err { color: oklch(0.55 0.18 25); }

/* --------- Footer --------- */
.foot { background: var(--bg-dark); color: oklch(0.85 0.005 260); padding: 64px 24px 28px 24px; border-top: 1px solid oklch(0.30 0.012 260); }
.foot-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; } }
.foot a { color: oklch(0.85 0.005 260); }
.foot a:hover { color: var(--signal); }
.foot .brand-mark { color: white; }
.foot-blurb { font-size: 13.5px; color: oklch(0.72 0.005 260); margin-top: 14px; max-width: 36ch; line-height: 1.55; }
.foot h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: white; margin: 6px 0 14px 0; }
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.status-ok { display: inline-block; width: 8px; height: 8px; border-radius: 9999px; background: var(--ok); margin-right: 8px; vertical-align: middle; }
.foot-base { max-width: 1240px; margin: 40px auto 0 auto; padding-top: 20px; border-top: 1px solid oklch(0.30 0.012 260); display: flex; justify-content: space-between; font-size: 12px; color: oklch(0.65 0.005 260); flex-wrap: wrap; gap: 8px; }

/* --------- Nav scrolled --------- */
.nav.is-scrolled {
    box-shadow: 0 4px 18px oklch(0.18 0.012 260 / 0.06);
    background: oklch(0.99 0.003 260 / 0.92);
}

/* --------- Marquee --------- */
.marquee {
    padding: 18px 0 !important;
    background: var(--bg-dark); color: oklch(0.85 0.005 260);
    border-top: 1px solid oklch(0.30 0.012 260);
    border-bottom: 1px solid oklch(0.30 0.012 260);
    overflow: hidden;
}
.marquee-track {
    display: inline-flex; gap: 38px; white-space: nowrap;
    font-family: var(--font-ui); font-weight: 500; font-size: 14px;
    letter-spacing: 0.02em;
    will-change: transform;
}
.marquee-track > span:first-child { color: var(--signal); }
.marquee-track > span { padding-left: 0; flex-shrink: 0; }

/* --------- prefers-reduced-motion --------- */
@media (prefers-reduced-motion: reduce) {
    .hero-word > span,
    [data-reveal], [data-reveal-down],
    .hero-orbs .orb,
    .hero-scroll-hint { opacity: 1 !important; transform: none !important; animation: none !important; }
    .live-dot, .waveform span, .cf-bar i, .marquee-track { animation: none !important; transition: none !important; }
}
