/* ============================================================
   n8tiveio.app — "Sui" theme layer
   Loaded AFTER style.css on every page. Reskins the existing
   markup to match the Sui (sui.io) visual language:
   pure-black canvas, vertical blue "light-bar" aurora hero,
   high-contrast bold type, Sui-blue accent, mono micro-labels.
   Implemented as a non-destructive override so the existing
   structure / JS keeps working.
   ============================================================ */

:root {
    --sui-black: #04060b;       /* page canvas */
    --sui-panel: #0a0e16;       /* cards / raised surfaces */
    --sui-panel-2: #080b12;
    --sui-line: rgba(120, 170, 255, 0.12);
    --sui-blue: #4da2ff;        /* primary accent */
    --sui-blue-deep: #1f6feb;
    --sui-blue-bright: #9fd0ff;
    --sui-ink: #f5f8ff;         /* high-contrast text */
    --sui-mute: rgba(226, 236, 255, 0.62);
}

/* ---------- Base canvas ---------- */
html, body,
body.bg-gray-900 {
    background-color: var(--sui-black) !important;
    color: var(--sui-ink) !important;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Kill the purple Vanta globe, paint the Sui aurora ---------- */
#vanta-bg {
    background: var(--sui-black) !important;
}
#vanta-bg > canvas { display: none !important; }   /* hide WebGL globe everywhere */

/* vertical blue light bars fanning out of a dark centre */
#vanta-bg::before {
    content: "";
    position: absolute;
    inset: -10% -10% -10% -10%;
    background:
        radial-gradient(130% 80% at 50% -8%, rgba(77, 162, 255, 0.30), transparent 58%),
        repeating-linear-gradient(90deg,
            rgba(77, 162, 255, 0)    0px,
            rgba(77, 162, 255, 0.08) 26px,
            rgba(31, 111, 235, 0.42) 60px,
            rgba(159, 208, 255, 0.22) 92px,
            rgba(77, 162, 255, 0)    132px);
    filter: blur(5px);
    opacity: 1;
    animation: suiDrift 26s linear infinite;
    will-change: transform;
}
/* dark centre vignette so the middle reads near-black like sui.io */
#vanta-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(46% 72% at 50% 42%, #000 26%, rgba(4, 6, 11, 0.55) 60%, transparent 82%),
        linear-gradient(180deg, transparent 50%, var(--sui-black) 90%);
    pointer-events: none;
}
@keyframes suiDrift {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-150px, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
    #vanta-bg::before { animation: none; }
}

/* faint blue mesh grid instead of purple */
#mesh-grid { opacity: 0.12 !important; }
#mesh-grid path,
#mesh-grid rect { stroke: rgba(77, 162, 255, 0.25) !important; }

/* particles -> blue */
.floating-particle {
    background: radial-gradient(circle, rgba(77, 162, 255, 0.85), rgba(31, 111, 235, 0.35)) !important;
}

/* ---------- Typography: bigger, bolder, tighter (Sui grotesk feel) ---------- */
h1, h2, h3, .hero-subtitle { letter-spacing: -0.03em; }
#hero h1 { font-weight: 800 !important; letter-spacing: -0.045em; }
#hero h2, #about h2, #demo h2, #mission h2 { font-weight: 800 !important; }
.hero-subtitle { color: var(--sui-mute) !important; letter-spacing: -0.01em; }

/* Sui mono micro-label pill (eyebrow above headlines) */
.sui-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sui-blue-bright);
    background: rgba(77, 162, 255, 0.08);
    border: 1px solid rgba(77, 162, 255, 0.28);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
}
.sui-eyebrow::before {
    content: "";
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--sui-blue);
    box-shadow: 0 0 10px 2px rgba(77, 162, 255, 0.8);
}

/* ---------- Recolor Tailwind purple/blue utilities -> Sui blue ---------- */
/* gradient text + gradient fills (from-* first, to-* after so it wins) */
[class*="from-purple-"],
[class*="from-blue-"],
[class*="from-indigo-"] {
    --tw-gradient-from: var(--sui-blue) var(--tw-gradient-from-position) !important;
    --tw-gradient-to: rgb(77 162 255 / 0) var(--tw-gradient-to-position) !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}
[class*="to-purple-"],
[class*="to-indigo-"] { --tw-gradient-to: var(--sui-blue-bright) var(--tw-gradient-to-position) !important; }
[class*="to-blue-"]   { --tw-gradient-to: var(--sui-blue-deep)   var(--tw-gradient-to-position) !important; }
[class*="via-purple-"],
[class*="via-indigo-"] { --tw-gradient-via: var(--sui-blue) !important; }

/* solid text colors */
.text-purple-300, .text-purple-400, .text-purple-500,
.text-blue-300, .text-blue-400, .text-blue-500,
.text-indigo-400 { color: var(--sui-blue) !important; }

/* borders + hover borders */
[class*="border-purple-"], [class*="border-indigo-"] { border-color: var(--sui-blue-deep) !important; }
.hover\:border-purple-500:hover, .hover\:border-purple-400:hover,
.hover\:border-blue-500:hover,   .hover\:border-blue-400:hover,
.hover\:border-cyan-400:hover,   .hover\:border-indigo-500:hover {
    border-color: var(--sui-blue) !important;
}

/* colored shadows -> blue glow */
[class*="shadow-purple-"], [class*="shadow-blue-"], [class*="shadow-indigo-"],
[class*="hover\:shadow-purple-"], [class*="hover\:shadow-blue-"] {
    --tw-shadow-color: rgba(77, 162, 255, 0.35) !important;
    --tw-shadow: var(--tw-shadow-colored) !important;
}

/* ---------- Surfaces ---------- */
.bg-gray-900 { background-color: var(--sui-black) !important; }
.bg-gray-800 { background-color: var(--sui-panel) !important; }
.bg-gray-800\/50, .bg-gray-800\/40 { background-color: rgba(10, 14, 22, 0.55) !important; }
.bg-gray-900\/50 { background-color: rgba(4, 6, 11, 0.55) !important; }
[class*="from-gray-900"] { --tw-gradient-from: var(--sui-black) var(--tw-gradient-from-position) !important; }
[class*="to-gray-800"]   { --tw-gradient-to: var(--sui-panel-2) var(--tw-gradient-to-position) !important; }
.border-gray-700 { border-color: var(--sui-line) !important; }

/* cards: crisper panels + blue hover lift */
.vertical-card, .demo-card {
    background: linear-gradient(180deg, rgba(13, 18, 28, 0.9), rgba(7, 10, 16, 0.9)) !important;
    border-color: var(--sui-line) !important;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.vertical-card:hover, .demo-card:hover {
    transform: translateY(-4px);
    border-color: rgba(77, 162, 255, 0.55) !important;
    box-shadow: 0 18px 50px -20px rgba(77, 162, 255, 0.45) !important;
}

/* ---------- Inline SVG illustration recolor (hardcoded purples) ---------- */
[fill="#8b5cf6"], [fill="#a78bfa"], [fill="#c4b5fd"],
[fill="#6366f1"], [fill="#a855f7"], [fill="#7c3aed"] { fill: var(--sui-blue) !important; }
[stroke="#8b5cf6"], [stroke="#a78bfa"], [stroke="#c4b5fd"],
[stroke="#6366f1"], [stroke="#a855f7"], [stroke="#7c3aed"] { stroke: var(--sui-blue) !important; }
[fill="#3b82f6"]   { fill: var(--sui-blue-bright) !important; }
[stroke="#3b82f6"] { stroke: var(--sui-blue-bright) !important; }

/* ---------- Buttons ---------- */
/* primary gradient buttons collapse to a clean Sui-blue pill */
a[class*="from-blue-"][class*="to-purple-"],
.waitlist-submit-btn {
    background: var(--sui-blue) !important;
    background-image: none !important;
    color: #03101f !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 24px -10px rgba(77, 162, 255, 0.7) !important;
}
a[class*="from-blue-"][class*="to-purple-"]:hover,
.waitlist-submit-btn:hover {
    background: var(--sui-blue-bright) !important;
    transform: translateY(-1px);
}

/* ---------- Waitlist modal + inputs ---------- */
.waitlist-modal-content {
    background: var(--sui-panel) !important;
    border: 1px solid var(--sui-line) !important;
}
.waitlist-input {
    background: rgba(4, 6, 11, 0.8) !important;
    border-color: var(--sui-line) !important;
    color: var(--sui-ink) !important;
}
.waitlist-input:focus { border-color: var(--sui-blue) !important; }

/* section dividers (the ::before glow on non-hero sections) -> blue */
section:not(#hero)::before { background: rgba(77, 162, 255, 0.04) !important; }

/* ---------- Feature columns (#about: Automation / Visualization / Technology) ---------- */
/* Editorial icon + title + "Learn more ->" columns, no card chrome. */
.feature-col { text-align: left; padding: 0.25rem 0; }
.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(77, 162, 255, 0.28);
    background: rgba(77, 162, 255, 0.06);
    margin-bottom: 1.4rem;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.feature-col:hover .feature-icon {
    border-color: rgba(77, 162, 255, 0.6);
    background: rgba(77, 162, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(77, 162, 255, 0.06);
}
.feature-icon svg { width: 26px; height: 26px; display: block; }
.feature-col h3 { letter-spacing: -0.02em; }
.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--sui-blue);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.25s ease, color 0.25s ease;
}
.feature-link:hover { color: var(--sui-blue-bright); gap: 0.7rem; }
.feature-arrow { transition: transform 0.25s ease; }
.feature-link:hover .feature-arrow { transform: translateX(2px); }

/* ---------- CTA section (#about): Squarespace-style particle-sphere call-to-action ---------- */
.cta-section {
    background: var(--sui-black) !important;
    isolation: isolate;
}
/* dot-globe backdrop, centred behind the content, edges faded to black */
.cta-sphere {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(860px, 128vw);
    max-width: none;
    transform: translate(-50%, -50%);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 46%, transparent 70%);
            mask-image: radial-gradient(circle at 50% 50%, #000 46%, transparent 70%);
    animation: ctaSpin 90s linear infinite;
}
@keyframes ctaSpin { from { transform: translate(-50%, -50%) rotate(0); }
                     to   { transform: translate(-50%, -50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cta-sphere { animation: none; } }

.cta-title { letter-spacing: -0.04em; line-height: 1.05; }
.cta-sub   { letter-spacing: -0.01em; }

/* features sit inside the CTA: centred icon + title + line */
.cta-features .feature-col { text-align: center; }
.cta-features .feature-icon { margin-left: auto; margin-right: auto; }

.cta-button {
    display: inline-block;
    background: var(--sui-blue);
    color: #03101f;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.95rem 2.4rem;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 12px 34px -12px rgba(77, 162, 255, 0.75);
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.cta-button:hover {
    background: var(--sui-blue-bright);
    transform: translateY(-2px);
    box-shadow: 0 16px 40px -12px rgba(77, 162, 255, 0.85);
}

/* ---------- Workflow Automation: modern node-flow canvas ---------- */
.wf-canvas {
    background:
        radial-gradient(rgba(120, 170, 255, 0.10) 1px, transparent 1px) 0 0 / 18px 18px,
        linear-gradient(180deg, #070b13, #05070d);
    border: 1px solid var(--sui-line);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
}
.wf-toolbar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(120, 170, 255, 0.10);
    background: rgba(8, 12, 20, 0.7);
}
.wf-dots { display: inline-flex; gap: 6px; }
.wf-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(120,170,255,.25); }
.wf-dots i:nth-child(1) { background: #ff5f57; }
.wf-dots i:nth-child(2) { background: #febc2e; }
.wf-dots i:nth-child(3) { background: #28c840; }
.wf-file { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.72rem; color: var(--sui-mute); letter-spacing: 0.02em; }
.wf-zoom { margin-left: auto; font-size: 0.7rem; color: var(--sui-mute); border: 1px solid var(--sui-line); border-radius: 6px; padding: 0.1rem 0.45rem; }

.wf-flow { padding: 1.4rem 1.25rem 0.5rem; }
.wf-node {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: linear-gradient(180deg, rgba(16, 22, 34, 0.92), rgba(10, 14, 22, 0.92));
    border: 1px solid var(--sui-line);
    border-radius: 12px;
    padding: 0.8rem 0.95rem;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.wf-node:hover {
    border-color: rgba(77, 162, 255, 0.5);
    transform: translateX(2px);
    box-shadow: 0 12px 34px -20px rgba(77, 162, 255, 0.6);
}
.wf-node-icon {
    flex: 0 0 auto;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 9px;
    border: 1px solid rgba(77, 162, 255, 0.3);
    background: rgba(77, 162, 255, 0.08);
}
.wf-node-icon svg { width: 20px; height: 20px; }
.wf-node-icon-ok { border-color: rgba(52, 211, 154, 0.35); background: rgba(52, 211, 154, 0.10); }
.wf-node-body { min-width: 0; }
.wf-node-title { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.95rem; color: var(--sui-ink); }
.wf-node-sub { font-size: 0.75rem; color: var(--sui-mute); margin-top: 0.1rem; }
.wf-tag { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.12rem 0.45rem; border-radius: 999px; }
.wf-tag-live { color: #34d39a; background: rgba(52, 211, 154, 0.12); border: 1px solid rgba(52, 211, 154, 0.3); }
.wf-tag-run  { color: var(--sui-blue-bright); background: rgba(77, 162, 255, 0.12); border: 1px solid rgba(77, 162, 255, 0.32); }
.wf-tag-ok   { color: #34d39a; background: rgba(52, 211, 154, 0.12); border: 1px solid rgba(52, 211, 154, 0.3); }

/* vertical connector with a travelling pulse */
.wf-link { position: relative; height: 26px; margin-left: 1.9rem; }
.wf-link::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0;
    width: 2px; background: linear-gradient(180deg, rgba(77,162,255,.55), rgba(77,162,255,.12));
}
.wf-link-dot {
    position: absolute; left: -2.5px; top: 0;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--sui-blue);
    box-shadow: 0 0 8px 1px rgba(77, 162, 255, 0.8);
    animation: wfFlow 2.4s ease-in-out infinite;
}
@keyframes wfFlow {
    0% { top: -2px; opacity: 0; }
    25% { opacity: 1; }
    75% { opacity: 1; }
    100% { top: 24px; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .wf-link-dot { animation: none; opacity: 0.7; } }

.wf-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem;
    padding: 1rem 1.25rem 1.25rem;
}
.wf-stats > div {
    text-align: center;
    background: rgba(77, 162, 255, 0.06);
    border: 1px solid rgba(77, 162, 255, 0.14);
    border-radius: 9px;
    padding: 0.55rem 0.3rem;
    font-size: 0.68rem; color: var(--sui-mute);
    display: flex; flex-direction: column; gap: 0.1rem;
}
.wf-stats > div span { font-size: 1.05rem; font-weight: 700; color: var(--sui-blue); }
