/* =========================================================
   SuperNova JSC — Design System
   Cyberpunk dark-blue tokens + primitives
   Consumed by css/style.css and per-page CSS files.
   ========================================================= */

:root {
    --bg:        #030711;
    --bg-2:      #05101F;
    --bg-3:      #081A33;
    --ink:       #E6F4FF;
    --ink-2:     #8AA4C8;
    --muted:     #4E6386;
    --line:      rgba(80, 180, 255, 0.10);
    --line-2:    rgba(80, 180, 255, 0.24);
    --blue:      #00BFFF;
    --blue-2:    #4DD4FF;
    --blue-3:    #006EB8;
    --blue-glow: #00D4FF;
    --cyan:      #7BE6FF;
    --radius:    14px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --wrap-pad:  40px;
    --wrap-max:  1280px;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ---------- typography utilities ---------- */
.serif {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.mono {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-2);
}

/* ---------- wrap ---------- */
.wrap {
    max-width: var(--wrap-max);
    margin: 0 auto;
    padding: 0 var(--wrap-pad);
    position: relative;
}

/* ---------- backdrop field (global) ---------- */
.field {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.grid-bg {
    position: absolute;
    inset: -1px;
    background-image:
        linear-gradient(to right, rgba(100,140,220,.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(100,140,220,.05) 1px, transparent 1px);
    background-size: 80px 80px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
            mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.6;
}
.orb.a { width: 720px; height: 720px; top: -260px; right: -220px; background: radial-gradient(circle, #0080C8 0%, transparent 60%); }
.orb.b { width: 540px; height: 540px; top: 320px;  left: -200px;  background: radial-gradient(circle, #003E78 0%, transparent 60%); }
.orb.c { width: 560px; height: 560px; bottom: -140px; right: 8%;  background: radial-gradient(circle, #00A8DC 0%, transparent 60%); opacity: 0.35; }

.scan {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,191,255,.025) 3px 4px);
    pointer-events: none;
}

.rings {
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 1400px;
    height: 1400px;
    opacity: 0.25;
}
.rings::before,
.rings::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(0,191,255,.28);
    border-radius: 50%;
}
.rings::after { inset: 120px; border-color: rgba(0,191,255,.18); }

/* ---------- section helper ---------- */
section { position: relative; z-index: 1; }

/* ---------- eyebrow + pulse ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: rgba(120,150,220,.05);
    font-size: 12px;
    color: var(--ink-2);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.eyebrow .pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue-2);
    box-shadow: 0 0 0 0 rgba(110,160,255,.6);
}
@media (prefers-reduced-motion: no-preference) {
    .eyebrow .pulse { animation: dsPulse 2s infinite; }
    @keyframes dsPulse {
        0%   { box-shadow: 0 0 0 0   rgba(110,160,255,.6); }
        70%  { box-shadow: 0 0 0 10px rgba(110,160,255,0); }
        100% { box-shadow: 0 0 0 0   rgba(110,160,255,0); }
    }
}

/* ---------- section head ---------- */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.section-head .left { max-width: 620px; }
.section-head h2 {
    font-size: clamp(36px, 4.4vw, 52px);
    letter-spacing: -0.03em;
    font-weight: 500;
    margin: 16px 0 0;
    line-height: 1.02;
}
.section-head h2 .serif {
    color: var(--blue-glow);
    text-shadow: 0 0 24px rgba(0,212,255,.35);
}
.section-head .right {
    color: var(--ink-2);
    font-size: 15px;
    max-width: 340px;
    line-height: 1.55;
}

/* ---------- cta button primitives ---------- */
.cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 4px;
    background: linear-gradient(135deg, #00D4FF 0%, #0080C8 100%);
    color: #031021;
    font-weight: 600;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(125,230,255,.6);
    box-shadow: 0 0 0 1px rgba(0,212,255,.15), 0 8px 24px -6px rgba(0,191,255,.45);
    cursor: pointer;
    line-height: 1;
}
.cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(0,212,255,.35), 0 14px 34px -6px rgba(0,191,255,.7);
    filter: brightness(1.08);
    color: #031021;
}
.cta.ghost {
    background: transparent;
    border: 1px solid var(--line-2);
    color: var(--ink);
    box-shadow: none;
}
.cta.ghost:hover {
    background: rgba(120,150,220,.08);
    border-color: rgba(120,150,220,.4);
    color: var(--ink);
    filter: none;
}
.cta.small { padding: 9px 16px; font-size: 13px; }
.cta .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #031021;
    box-shadow: 0 0 8px rgba(0,212,255,.6);
}

/* ---------- floating tag ---------- */
.floating-tag {
    position: absolute;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(8,16,40,.8);
    border: 1px solid var(--line-2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-2);
    display: flex;
    align-items: center;
    gap: 8px;
}
.floating-tag .d {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue-2);
}

/* ---------- canvas corners helper ---------- */
.canvas-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1px solid var(--blue-2);
    pointer-events: none;
}
.canvas-corner.tl { top: 16px;    left: 16px;    border-right: 0; border-bottom: 0; }
.canvas-corner.tr { top: 16px;    right: 16px;   border-left: 0;  border-bottom: 0; }
.canvas-corner.bl { bottom: 16px; left: 16px;    border-right: 0; border-top: 0; }
.canvas-corner.br { bottom: 16px; right: 16px;   border-left: 0;  border-top: 0; }

/* ---------- pill ---------- */
.pill {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    font-size: 13px;
    color: var(--ink-2);
    background: rgba(120,150,220,.03);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.pill:hover {
    border-color: var(--blue-2);
    color: var(--ink);
    background: rgba(61,123,255,.08);
}
.pill .d {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--blue-2);
}

/* ---------- scroll anim helpers (kept for main.js observers) ---------- */
.fade-in,
.slide-in-left,
.slide-in-right,
.zoom-in {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}
.slide-in-left  { transform: translateX(-40px); }
.slide-in-right { transform: translateX(40px); }
.zoom-in        { transform: scale(0.92); }
.fade-in.visible, .fade-in.revealed, .fade-in.show,
.slide-in-left.visible, .slide-in-left.revealed, .slide-in-left.show,
.slide-in-right.visible, .slide-in-right.revealed, .slide-in-right.show,
.zoom-in.visible, .zoom-in.revealed, .zoom-in.show,
.scroll-reveal.revealed, .scroll-reveal.show {
    opacity: 1;
    transform: none;
}
.stat-card, .info-card, .app-card, .product-card, .partner-card, .testimonial-card, .partners-logo {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .fade-in, .slide-in-left, .slide-in-right, .zoom-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- selection ---------- */
::selection {
    background: rgba(0, 212, 255, 0.35);
    color: #fff;
}

/* ---------- scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: rgba(0,191,255,.22);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(0,212,255,.45); }
