/* =====================================================================
   Sophia — site system (based on the homepage hero, Oct 2026)
   Loaded LAST on every live page, after the page's inline <style>,
   so these rules win. Page-specific layout stays inline in each page.

   The hero sets the language:
   - one light page tone (#f7f7f6), white cards with hairlines, no radius
   - headlines: uppercase, bold, outline line(s) + solid line, Volt square dot
   - buttons: square black primary with arrow, hairline outline secondary
   - showcases (product UI, demos, diagrams) sit inside the Volt panel
   - Volt (#2E45FF) is the only accent colour
   ===================================================================== */

:root {
    --bg: #f7f7f6;
    --paper: #ffffff;
    --ink: #0a0a0a;
    --muted: rgba(0, 0, 0, 0.62);
    --faint: rgba(0, 0, 0, 0.45);
    --line: rgba(0, 0, 0, 0.1);
    --volt: #2E45FF;
    --volt-bright: #5E71FF;
    --volt-panel:
        radial-gradient(120% 90% at 0% 0%, rgba(205, 211, 255, 0.95) 0%, rgba(205, 211, 255, 0) 55%),
        linear-gradient(125deg, #8f9bff 0%, #5E71FF 28%, #2E45FF 55%, #1a27a8 80%, #0b1150 100%);
}

/* ---------- Page tone ---------- */
body { background-color: var(--bg) !important; color: var(--ink); }
section.bg-white { background-color: transparent !important; }
.zone-tint { background: transparent !important; border-top: 1px solid var(--line); border-bottom: 0; }

/* ---------- Kicker / section label: same as the hero's logo label ---------- */
.kicker {
    display: block !important; border: 0 !important; padding: 0 !important;
    font-size: 12px !important; letter-spacing: 2.5px !important; text-transform: uppercase;
    font-weight: 500 !important; color: var(--faint) !important;
}
.kicker.text-center { text-align: center; }
.kicker::before { content: "> "; font-weight: 800; color: var(--volt) !important; }
.kicker .idx { color: var(--ink) !important; font-weight: 700; }

/* ---------- Headlines (hero style) ----------
   Markup pattern:
   <h2 class="headline">
     <span class="outline-text">First part</span><br>
     Solid part<span class="dot"></span>
   </h2>                                                     */
.headline {
    font-weight: 700; text-transform: uppercase;
    line-height: 0.92; letter-spacing: -0.02em; color: var(--ink);
    font-size: clamp(40px, 6.2vw, 84px);
}
.headline.is-md { font-size: clamp(34px, 4.6vw, 64px); }
.headline.is-sm { font-size: clamp(28px, 3.4vw, 44px); }
.outline-text { color: transparent; -webkit-text-stroke: 2px var(--ink); }
@media (max-width: 640px) { .outline-text { -webkit-text-stroke-width: 1.5px; } }
.dot { display: inline-block; width: 0.15em; height: 0.15em; background: var(--volt) !important; margin-left: 0.09em; }
.statement { font-weight: 700; text-transform: uppercase; line-height: 0.95; letter-spacing: -0.02em; }

/* ---------- Lead copy ---------- */
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; color: rgba(0, 0, 0, 0.7); max-width: 600px; }
.lead-p { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 14px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase;
    padding: 16px 28px; border: 1px solid var(--ink);
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary { background: var(--ink); color: #fff !important; }
.btn-secondary { background: transparent; color: var(--ink) !important; border-color: rgba(0, 0, 0, 0.35); }
.btn-primary:hover, .btn-secondary:hover, .btn-hover:hover {
    background: var(--volt) !important; border-color: var(--volt) !important; color: #fff !important; opacity: 1 !important;
}
.btn-primary svg { width: 16px; height: 16px; flex: none; }

/* ---------- Cards ---------- */
.card { background: var(--paper); border: 1px solid var(--line); }

/* ---------- Volt panel: the showcase frame from the hero ----------
   USE SPARINGLY: at most twice per page — the hero visual and the closing CTA.
   Every other showcase is a .ui-card on the light page. Inset, not full-bleed:
   <div class="px-6 md:px-8"><div class="max-w-[1400px] mx-auto">
     <div class="volt-panel"> … </div>
   </div></div>                                               */
.volt-panel, .hero-panel {
    position: relative; overflow: hidden; color: #fff;
    background: var(--volt-panel);
    padding: clamp(28px, 5vw, 72px) clamp(16px, 4.5vw, 64px);
}
.volt-panel.is-flush { padding-bottom: 0; }
.volt-panel .kicker { color: rgba(255, 255, 255, 0.7) !important; }
.volt-panel .kicker::before, .volt-panel .kicker .idx { color: #fff !important; }
.volt-panel .outline-text { -webkit-text-stroke-color: #fff; }
.volt-panel .headline, .volt-panel h2, .volt-panel h3 { color: #fff; }
.volt-panel .dot { background: #fff !important; }
.volt-panel .lead, .volt-panel .lead-p { color: rgba(255, 255, 255, 0.82); }
/* buttons on Volt: invert, since the Volt hover would vanish */
.volt-panel .btn-primary, .zone-dark .btn-primary { background: #fff; color: var(--ink) !important; border-color: #fff; }
.volt-panel .btn-secondary, .zone-dark .btn-secondary { color: #fff !important; border-color: rgba(255, 255, 255, 0.55); }
.volt-panel .btn-primary:hover, .volt-panel .btn-secondary:hover,
.zone-dark .btn-primary:hover, .zone-dark .btn-secondary:hover { background: var(--ink) !important; border-color: var(--ink) !important; color: #fff !important; }
/* light UI cards (product windows, diagrams). On the light page: hairline + soft shadow.
   Inside the Volt panel: deeper shadow, like the hero inbox. */
.ui-card { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 24px 60px -30px rgba(10, 20, 60, 0.25); }
.volt-panel .ui-card { border-color: rgba(0, 0, 0, 0.08); box-shadow: 0 30px 80px -20px rgba(5, 10, 60, 0.55); }

/* ---------- Ink section: full-bleed charcoal band with grain to mark a key section ----------
   1–2 per page, never two in a row, never directly next to a Volt panel.
   <section class="ink-section py-20 md:py-28"><div class="px-6 md:px-8"><div class="max-w-[1400px] mx-auto"> … */
/* Charcoal, not flat black: near-black base, broad soft light falloffs, very fine even film grain */
.ink-section {
    position: relative; isolation: isolate; color: #fff; border-top: 0 !important;
    background:
        radial-gradient(60% 80% at 4% 30%, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0) 70%),
        radial-gradient(55% 70% at 78% 62%, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0) 70%),
        linear-gradient(160deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.035) 48%, rgba(255, 255, 255, 0) 62%),
        radial-gradient(120% 90% at 50% 120%, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 60%),
        #141414 !important;
}
.ink-section::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    opacity: 0.85; mix-blend-mode: overlay;
    background-size: 160px 160px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.2' numOctaves='1' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
.ink-section + section, section + .ink-section { border-top: 0 !important; }
.ink-section .headline, .ink-section h2, .ink-section h3 { color: #fff; }
.ink-section .outline-text { -webkit-text-stroke-color: #fff; }
.ink-section .dot { background: var(--volt-bright) !important; }
.ink-section .kicker { color: rgba(255, 255, 255, 0.55) !important; }
.ink-section .kicker::before { color: var(--volt-bright) !important; }
.ink-section .kicker .idx { color: #fff !important; }
.ink-section .lead, .ink-section .lead-p, .ink-section .text-black\/70, .ink-section .text-black\/60 { color: rgba(255, 255, 255, 0.7) !important; }
.ink-section .lead b, .ink-section .lead strong, .ink-section .lead-p b, .ink-section .lead-p strong { color: #fff; }
.ink-section .btn-primary { background: #fff; color: var(--ink) !important; border-color: #fff; }
.ink-section .btn-secondary { color: #fff !important; border-color: rgba(255, 255, 255, 0.45); }
.ink-section .ui-card { border-color: rgba(255, 255, 255, 0.12); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); }
.ink-section .card, .ink-section .ui-card { color: var(--ink); }
/* white cards inside an ink section keep their dark-on-light text */
.ink-section .card .text-black\/70, .ink-section .ui-card .text-black\/70 { color: rgba(0, 0, 0, 0.7) !important; }
.ink-section .card .text-black\/60, .ink-section .ui-card .text-black\/60 { color: rgba(0, 0, 0, 0.6) !important; }
.ink-section .card .lead, .ink-section .ui-card .lead, .ink-section .card .lead-p, .ink-section .ui-card .lead-p { color: var(--muted) !important; }
.ink-section .card .outline-text, .ink-section .ui-card .outline-text { -webkit-text-stroke-color: var(--ink); }
.ink-section .card .headline, .ink-section .ui-card .headline, .ink-section .card h3, .ink-section .ui-card h3 { color: var(--ink); }

/* ---------- Legacy dark zones ----------
   Pages are migrated section by section. Any .zone-dark that is left
   becomes an inset Volt panel instead of a full-bleed black band.     */
.zone-dark {
    background: var(--volt-panel) !important; color: #fff;
    width: calc(100% - 48px); max-width: 1400px; margin-left: auto; margin-right: auto;
}
@media (min-width: 768px) { .zone-dark { width: calc(100% - 64px); } }
.zone-dark .kicker { color: rgba(255, 255, 255, 0.7) !important; }
.zone-dark .kicker::before, .zone-dark .kicker .idx { color: #fff !important; }
.zone-dark .dot { background: #fff !important; }
.zone-dark .outline-text { -webkit-text-stroke-color: #fff; }

/* ---------- Footer stays the dark frame ---------- */
footer.bg-black { background: var(--ink) !important; }
