/* ============================================================
   DESIGN TOKENS & SYSTEM VARIABLES
   ============================================================ */
:root {
    /* Color Palette - Deep Black Foundation & Multi-Accent System */
    --bg: #07060a;
    --bg-soft: #0b0914;
    --bg-card: #100d1d;
    --bg-card-hover: #161226;
    --bg-glass: rgba(16, 13, 29, 0.75);
    --bg-glass-hover: rgba(22, 18, 38, 0.85);
    
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.18);
    --glass-border: rgba(255, 255, 255, 0.12);
    
    --text: #f9fafb;
    --text-dim: #9ca3af;
    --text-faint: #6b7280;

    /* Multi-Accent System */
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --primary-deep: #1e0b36;
    
    --accent-purple: #7c3aed;
    --accent-cyan: #06b6d4;
    --accent-cyan-light: #38bdf8;
    --accent-orange: #f97316;
    --accent-orange-light: #fb923c;
    
    --secondary: #06b6d4;
    --accent: #ec4899;
    --warning: #f59e0b;

    /* Gradients */
    --grad-brand: linear-gradient(135deg, #7c3aed 0%, #06b6d4 50%, #f97316 100%);
    --grad-glow: linear-gradient(135deg, #a78bfa, #06b6d4);
    --grad-fire: linear-gradient(135deg, #f97316, #ec4899);
    --grad-cyan: linear-gradient(135deg, #06b6d4 0%, #38bdf8 100%);
    --grad-purple: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    --grad-orange: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    --grad-dark: linear-gradient(180deg, #100d1d, #07060a);
    --grad-multi: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.15), rgba(249, 115, 22, 0.15));

    /* Glows */
    --glow-primary: 0 0 35px rgba(124, 58, 237, 0.3);
    --glow-secondary: 0 0 35px rgba(6, 182, 212, 0.25);
    --glow-orange: 0 0 35px rgba(249, 115, 22, 0.25);
    --glow-accent: 0 0 35px rgba(236, 72, 153, 0.2);

    /* Typography */
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', SFMono-Regular, Consolas, monospace;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-script: 'Give You Glory', cursive;

    /* Spacing & Sizing */
    --container: 1200px;
    --radius: 20px;
    --radius-sm: 12px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Mode Overrides */
[data-theme="light"] {
    --bg: #f8f9fc;
    --bg-soft: #f1f3f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f9fafc;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-glass-hover: rgba(255, 255, 255, 0.95);
    
    --border: rgba(124, 58, 237, 0.1);
    --border-strong: rgba(124, 58, 237, 0.25);
    --glass-border: rgba(124, 58, 237, 0.15);
    
    --text: #0b0914;
    --text-dim: #4b5563;
    --text-faint: #9ca3af;

    --primary-light: #6d28d9;
    --primary-deep: #f5f3ff;
    
    --grad-brand: linear-gradient(135deg, #6d28d9 0%, #0891b2 50%, #ea580c 100%);
    --grad-dark: linear-gradient(180deg, #ffffff, #f1f3f9);
    
    --glow-primary: 0 10px 30px rgba(124, 58, 237, 0.12);
    --glow-secondary: 0 10px 30px rgba(6, 182, 212, 0.1);
}

/* ============================================================
   RESET & BASE STYLES
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.5s ease, color 0.3s ease;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    user-select: none; /* Security measure: prevent selection */
}

/* GPU Hardware Acceleration for Buttery Smooth Scrolling */
.ticker-track,
.spot-card,
.project-card,
.btn,
#graph-canvas,
.hero-inner,
.bento,
.subpage-hero {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--grad-brand);
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none; /* Security measure: prevent dragging images */
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }
}

/* ============================================================
   TYPOGRAPHY & UTILITIES
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary-light);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-weight: 600;
}
.eyebrow::before {
    content: '';
    width: 16px;
    height: 1px;
    background: var(--grad-brand);
}

.section-head {
    max-width: 680px;
    margin: 0 auto 60px;
    text-align: center;
}
.section-head.left {
    margin: 0 0 48px;
    text-align: left;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 16px;
    font-weight: 700;
}

.section-sub {
    color: var(--text-dim);
    font-size: 1.05rem;
}

.grad-text {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
}

.script-tag {
    font-family: 'Alex Brush', 'Great Vibes', 'Sacramento', cursive, sans-serif !important;
    font-size: clamp(1.2rem, 3vw, 1.7rem) !important;
    font-weight: 400 !important;
    font-style: normal !important;
    letter-spacing: 0.05em !important;
    color: #ffffff !important;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.85), 0 0 35px rgba(255, 255, 255, 0.45) !important;
    transform: rotate(-5deg) translateY(-2px) !important;
    display: inline-block !important;
    margin-bottom: 8px !important;
    -webkit-font-smoothing: antialiased;
}

/* Ambient glow blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
.preload-logo-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 24px;
    padding: 2px;
    background: var(--grad-brand);
    animation: preloaderPulse 2s infinite ease-in-out;
}
.preload-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
}
.preload-progress {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}
.preload-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--grad-brand);
    box-shadow: 0 0 10px var(--primary-light);
    transition: width 0.3s ease;
}
.preload-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--primary-light);
    text-transform: uppercase;
}

/* ============================================================
   NAVBAR (Glassmorphism)
   ============================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: transparent;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    backdrop-filter: blur(20px) saturate(1.4);
    border-color: var(--border);
    padding: 12px 0;
}
.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.01em;
}
.brand .mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--grad-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-primary);
    overflow: hidden;
    flex-shrink: 0;
}
.brand .mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}
.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dim);
    padding: 8px 16px;
    border-radius: 30px;
    position: relative;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}
.nav-links a .dot {
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary-light);
    transform: translate(-50%, 0) scale(0);
    transition: var(--transition);
}
.nav-links a.active .dot,
.nav-links a:hover .dot {
    transform: translate(-50%, 0) scale(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}
.icon-btn:hover {
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
    transform: scale(1.05);
}
.nav-toggle {
    display: none;
}

@media(max-width: 960px) {
    .nav-links {
        position: fixed;
        inset: 0 0 0 auto;
        width: 85%;
        max-width: 340px;
        background: var(--bg-glass-hover);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-left: 1px solid var(--glass-border);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
        flex-direction: column;
        align-items: flex-start;
        padding: 96px 28px 40px;
        gap: 12px;
        transform: translateX(100%);
        transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
    }
    .nav-links.open {
        transform: translateX(0);
    }
    .nav-links a {
        width: 100%;
        padding: 14px 20px;
        font-size: 1.05rem;
        font-weight: 600;
        border-radius: var(--radius-sm);
        border: 1px solid transparent;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: rgba(255, 255, 255, 0.02);
    }
    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(124, 58, 237, 0.12);
        border-color: var(--border-strong);
        color: #ffffff;
    }
    .nav-links a .dot {
        position: static;
        width: 8px;
        height: 8px;
        transform: none;
        background: var(--accent-cyan);
        box-shadow: 0 0 10px var(--accent-cyan);
    }
    .nav-toggle {
        display: flex;
    }
}

.nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
    z-index: 998;
}
.nav-scrim.open {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    justify-content: center;
}
.btn-primary {
    background: var(--grad-brand);
    color: #ffffff;
    box-shadow: var(--glow-primary);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.45);
}
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-strong);
    color: var(--text);
}
.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.06);
    transform: translateY(-2px);
}
.btn-light {
    background: #ffffff;
    color: #0d091d;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.btn-light:hover {
    background: #f4f3f8;
    transform: translateY(-2px);
}
.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}
.magnetic {
    will-change: transform;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
    padding: 140px 0 80px;
    min-height: 95vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at 50% 30%, rgba(139, 92, 246, 0.08), transparent 60%);
}
#graph-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: auto;
}
#hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 40%, transparent 20%, var(--bg) 80%);
    pointer-events: none;
    z-index: 1;
}
.hero-wordmark {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: min(20vw, 280px);
    color: transparent;
    -webkit-text-stroke: 1px rgba(167, 139, 250, 0.1);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    letter-spacing: -0.02em;
}
.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.hero-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    border: 1px solid var(--border-strong);
    padding: 8px 18px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    background: rgba(124, 58, 237, 0.05);
    backdrop-filter: blur(6px);
    margin-bottom: 24px;
}
.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
    animation: preloaderPulse 1.8s infinite ease-in-out;
}
.hero-inner h1 {
    font-size: clamp(2.5rem, 6.5vw, 4.5rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}
.hero-inner h1 .line {
    display: block;
    overflow: hidden;
}
.hero-inner h1 .line span {
    display: inline-block;
    transform: translateY(105%);
}
.hero-lead {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 640px;
    margin: 0 auto 36px;
}
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 720px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}
.hero-stats .stat {
    border-right: 1px solid var(--border);
    padding: 12px;
}
.hero-stats .stat:last-child {
    border-right: none;
}
.hero-stats .num {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
}
.hero-stats .lab {
    font-size: 0.7rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

@media(max-width: 768px) {
    #hero {
        padding: 120px 0 60px;
    }
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .hero-stats .stat {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .hero-stats .stat:nth-child(3),
    .hero-stats .stat:nth-child(4) {
        border-bottom: none;
    }
}

.scroll-cue {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-faint);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: var(--font-mono);
}
.scroll-cue .cue-line {
    width: 1px;
    height: 32px;
    background: linear-gradient(var(--primary-light), transparent);
}

/* ============================================================
   SLANTED ACTIVE POST-HERO BRAND MARQUEE
   ============================================================ */
.brand-ticker-section {
    position: relative;
    padding: 24px 0;
    background: linear-gradient(90deg, rgba(16, 13, 29, 0.9), rgba(22, 18, 38, 0.95));
    border-top: 1px solid var(--border-strong);
    border-bottom: 1px solid var(--border-strong);
    transform: rotate(-2.2deg) scale(1.025);
    margin: 30px -15px 50px;
    z-index: 10;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), 0 0 25px rgba(124, 58, 237, 0.15);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.brand-ticker-section:hover {
    transform: rotate(-1.5deg) scale(1.03);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.55), 0 0 35px rgba(249, 115, 22, 0.22);
}
.brand-ticker-container {
    display: flex;
    width: 100%;
    overflow: hidden;
    user-select: none;
    mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
}
.ticker-track {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
    animation: marqueeContinuous 26s linear infinite;
    will-change: transform;
    flex-shrink: 0;
}
.brand-ticker-section:hover .ticker-track {
    animation-play-state: paused;
}
@keyframes marqueeContinuous {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}
.ticker-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 40px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
    text-decoration: none;
}
.ticker-card:hover {
    background: rgba(124, 58, 237, 0.18);
    border-color: var(--primary-light);
    transform: translateY(-3px) scale(1.04);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}
.ticker-card img {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    object-fit: cover;
}
.ticker-icon-badge {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(124, 58, 237, 0.2);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid rgba(124, 58, 237, 0.3);
}
.ticker-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 3px 9px;
    border-radius: 20px;
    background: rgba(6, 182, 212, 0.12);
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ============================================================
   STATUS BADGES & BRAND WATERMARK
   ============================================================ */
.status-pill {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.status-pill.released {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.status-pill.beta {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.3);
}
.status-pill.incubator {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.footer-watermark {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: clamp(5.5rem, 15vw, 17rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.035);
    pointer-events: none;
    white-space: nowrap;
    z-index: 0;
    user-select: none;
}


/* ============================================================
   BENTO GRID & SPOTLIGHT CARDS
   ============================================================ */
.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 170px;
    gap: 20px;
}
.b-w2 { grid-column: span 2; }
.b-w3 { grid-column: span 3; }
.b-w4 { grid-column: span 4; }
.b-w6 { grid-column: span 6; }
.b-h2 { grid-row: span 2; }

@media(max-width: 960px) {
    .bento {
        grid-template-columns: repeat(2, 1fr);
    }
    .b-w2, .b-w3, .b-w4, .b-w6 { grid-column: span 2; }
}
@media(max-width: 600px) {
    .bento {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .b-w2, .b-w3, .b-w4, .b-w6, .b-h2 {
        grid-column: span 1;
        grid-row: auto;
    }
}

.spot-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 30px;
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.spot-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(350px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 58, 237, 0.12), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.spot-card:hover::before {
    opacity: 1;
}
.spot-card:hover {
    border-color: var(--border-strong);
    background: var(--bg-card-hover);
}
.spot-card.tilt {
    transition: transform 0.15s ease-out, border-color 0.4s, background 0.4s;
}

.b-feature {
    background: linear-gradient(155deg, rgba(124, 58, 237, 0.08), rgba(6, 182, 212, 0.04));
    position: relative;
}
.b-feature::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from 0deg, var(--primary), var(--secondary), var(--accent), var(--warning), var(--primary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.b-feature:hover::after {
    opacity: 0.6;
}

.icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(124, 58, 237, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-light);
    margin: 0 auto 20px;
    transition: var(--transition);
    border: 1px solid var(--border);
}
.spot-card:hover .icon-wrap {
    background: var(--grad-brand);
    color: #ffffff;
    transform: scale(1.06) rotate(-4deg);
    box-shadow: var(--glow-primary);
}
.spot-card h5 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}
.spot-card p {
    color: var(--text-dim);
    font-size: 0.92rem;
}

/* ============================================================
   PROJECT CARDS & PORTFOLIO
   ============================================================ */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media(max-width: 960px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media(max-width: 640px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    transform: translateY(-8px);
}
.project-media {
    height: 240px;
    overflow: hidden;
    position: relative;
    background: #000;
}
.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover .project-media img {
    transform: scale(1.08);
}
.project-logo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 9, 29, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}
.project-card:hover .project-logo-overlay {
    opacity: 1;
}
.project-logo-overlay img {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    object-fit: contain;
}
.project-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(13, 9, 29, 0.8);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border-radius: 20px;
    z-index: 2;
}
.project-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.project-body h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}
.project-body p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-grow: 1;
}
.project-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}
.project-link i {
    transition: var(--transition);
}
.project-card:hover .project-link i {
    transform: translateX(4px);
}

.upcoming-strip {
    margin-top: 48px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.upcoming-strip i {
    font-size: 1.6rem;
    color: var(--secondary);
}
.upcoming-strip h6 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}
.upcoming-strip p {
    font-size: 0.88rem;
    color: var(--text-dim);
}

@media(max-width: 768px) {
    .upcoming-strip {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
}

/* ============================================================
   STEALTH / LAB SECTION
   ============================================================ */
.stealth-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
@media(max-width: 768px) {
    .stealth-grid {
        grid-template-columns: 1fr;
    }
}
.stealth-card {
    background: linear-gradient(180deg, var(--bg-card), var(--bg-soft));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.stealth-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(0deg, var(--primary-light) 0 1px, transparent 1px 4px);
    opacity: 0.03;
    pointer-events: none;
}
.stealth-card:hover {
    border-color: var(--secondary);
    box-shadow: var(--glow-secondary);
    transform: translateY(-4px);
}
.classify-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    background: rgba(6, 182, 212, 0.08);
    color: var(--secondary);
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 6px 14px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}
.classify-badge .b-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 6px var(--secondary);
}
.stealth-card h4 {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
    min-height: 1.5em;
}
.stealth-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.stealth-status {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-faint);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.confidential-banner {
    margin-top: 40px;
    text-align: center;
}
.confidential-banner span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--glow-primary);
}

/* ============================================================
   PROCESS / TIMELINE
   ============================================================ */
.timeline {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding-left: 48px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border);
}
.timeline-fill {
    position: absolute;
    left: 11px;
    top: 8px;
    width: 2px;
    background: var(--grad-brand);
    height: 0%;
    transition: height 0.1s linear;
    box-shadow: 0 0 10px var(--primary-light);
}
.t-item {
    position: relative;
    padding-bottom: 48px;
}
.t-item:last-child {
    padding-bottom: 0;
}
.t-dot {
    position: absolute;
    left: -48px;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border-strong);
    color: var(--text-faint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    transition: var(--transition);
}
.t-item.done .t-dot {
    background: var(--grad-brand);
    border-color: transparent;
    color: #ffffff;
    box-shadow: var(--glow-primary);
}
.t-item h5 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}
.t-item p {
    font-size: 0.92rem;
    color: var(--text-dim);
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-q {
    width: 100%;
    background: none;
    border: none;
    padding: 24px 8px;
    text-align: left;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.faq-q i {
    color: var(--primary-light);
    transition: var(--transition);
}
.faq-item.open .faq-q i {
    transform: rotate(135deg);
}
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-a p {
    color: var(--text-dim);
    padding: 0 8px 24px;
    font-size: 0.95rem;
}

/* ============================================================
   TESTIMONIALS CAROUSEL
   ============================================================ */
.testi-wrap {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}
.testi-track {
    overflow: hidden;
    border-radius: var(--radius);
}
.testi-slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.testi-slide {
    min-width: 100%;
    padding: 50px 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}
.testi-slide i.quote {
    font-size: 2.2rem;
    color: var(--primary-light);
    opacity: 0.35;
}
.testi-slide p {
    font-size: 1.15rem;
    margin: 20px 0 28px;
}
.testi-person {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.testi-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--grad-brand);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}
.testi-name {
    font-weight: 600;
    font-size: 0.95rem;
}
.testi-role {
    font-size: 0.78rem;
    color: var(--text-faint);
}
.testi-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}
.testi-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-strong);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.testi-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 8px;
}
.testi-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}
.testi-arrow.prev { left: -64px; }
.testi-arrow.next { right: -64px; }

@media(max-width: 960px) {
    .testi-arrow {
        display: none;
    }
}

/* ============================================================
   COLLABORATE / BANNER CARD
   ============================================================ */
.collab {
    background: var(--grad-brand);
    color: #ffffff;
    border-radius: 32px;
    padding: 72px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--glow-primary);
}
.collab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.12), transparent 45%),
                radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.2), transparent 45%);
}
.collab > * {
    position: relative;
    z-index: 1;
}
.collab h2 {
    color: #ffffff;
}
.collab p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 36px;
    font-size: 1.05rem;
}
.collab-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
@media(max-width: 768px) {
    .collab-grid {
        grid-template-columns: 1fr;
    }
}
.collab-card {
    background: rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    backdrop-filter: blur(6px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.collab-card:hover {
    background: rgba(0, 0, 0, 0.24);
    transform: translateY(-4px);
}
.collab-card i {
    font-size: 1.5rem;
    margin: 0 auto 12px;
    display: block;
    color: #ffffff;
}
.collab-card h6 {
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: #ffffff;
}
.collab-card p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ============================================================
   TEAM / LEADERSHIP (Flipping Cards)
   ============================================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
@media(max-width: 1100px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media(max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media(max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.flip-card {
    perspective: 1000px;
    height: 280px;
}
.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}
.flip-card:hover .flip-inner {
    transform: rotateY(180deg);
}
.flip-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-card);
}
.flip-front .initials {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--grad-brand);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    box-shadow: var(--glow-primary);
    font-family: var(--font-display);
}
.flip-front h5 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.role-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(124, 58, 237, 0.08);
    color: var(--primary-light);
    padding: 4px 12px;
    border-radius: 30px;
}
.flip-back {
    transform: rotateY(180deg);
    background: var(--grad-brand);
    color: #ffffff;
    padding: 20px;
}
.flip-back p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}
.flip-back .social {
    display: flex;
    gap: 8px;
}
.flip-back .social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.85rem;
}
.flip-back .social a:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
}
@media(max-width: 900px) {
    .contact-wrap {
        grid-template-columns: 1fr;
    }
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}
.contact-card:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}
.contact-card .icon-wrap {
    margin-bottom: 0;
}
.contact-card h6 {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-faint);
    margin-bottom: 2px;
}
.contact-card strong {
    font-size: 0.98rem;
    font-weight: 600;
}
.copy-toast {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    background: var(--grad-brand);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}
.contact-card.copied .copy-toast {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}
.map-embed {
    border-radius: 16px;
    border: 1px solid var(--border);
    height: 190px;
    object-fit: cover;
    filter: grayscale(0.5) invert(0.9) contrast(0.85);
}
[data-theme="light"] .map-embed {
    filter: none;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
}
.form-row {
    margin-bottom: 20px;
}
.form-row label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-faint);
    margin-bottom: 6px;
}
.form-row input,
.form-row textarea {
    width: 100%;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}
.form-row input:focus,
.form-row textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.form-msg {
    margin-top: 16px;
    font-size: 0.85rem;
    display: none;
    align-items: center;
    gap: 8px;
    color: #22c55e;
}
.form-msg.show {
    display: flex;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
    margin-top: auto;
    position: relative;
    z-index: 10;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.footer-brand .brand {
    margin-bottom: 12px;
}
.footer-brand p {
    color: var(--text-faint);
    font-size: 0.88rem;
    max-width: 300px;
}
.footer-social {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 0.95rem;
}
.footer-social a:hover {
    background: var(--grad-brand);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-3px);
}
.footer-cols {
    display: flex;
    gap: 64px;
    flex-wrap: wrap;
}
.footer-col h6 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-faint);
    margin-bottom: 16px;
}
.footer-col a {
    display: block;
    color: var(--text-dim);
    font-size: 0.88rem;
    margin-bottom: 10px;
}
.footer-col a:hover {
    color: var(--primary-light);
}
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-faint);
}

/* ============================================================
   SUBPAGES CORE AND WIDGETS
   ============================================================ */
.subpage-hero {
    padding: 160px 0 60px;
    background: radial-gradient(circle at 50% 10%, rgba(139, 92, 246, 0.06), transparent 50%);
    position: relative;
    border-bottom: 1px solid var(--border);
}
.subpage-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.product-logo-lg {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    object-fit: contain;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--glow-primary);
    margin: 0 auto 24px;
}
.subpage-hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    margin-bottom: 16px;
}
.subpage-hero p {
    font-size: 1.15rem;
    color: var(--text-dim);
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
@media(max-width: 640px) {
    .spec-grid {
        grid-template-columns: 1fr;
    }
}
.spec-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}
.spec-card .val {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 4px;
}
.spec-card .lbl {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-faint);
}

.product-showcase {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}
@media(max-width: 800px) {
    .product-showcase {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
.product-visual {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--glow-secondary);
}
.product-mock-window {
    background: #0d091d;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}
.product-mock-bar {
    background: rgba(255,255,255,0.03);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.product-mock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}
.product-mock-body {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #a78bfa;
}

/* Float Stack */
.float-stack {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 900;
}
.fab {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border: none;
    transition: var(--transition);
}
.fab-top {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}
.fab-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.fab-top:hover {
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}
.fab-wa {
    background: #25d366;
    color: #ffffff;
}
.fab-wa:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

/* Security Protection Overlay & Notification Warning */
.security-alert {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(239, 68, 68, 0.95);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 999999;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 8px;
}
.security-alert.show {
    transform: translateX(-50%) translateY(0);
}

/* ============================================================
   INFINITE POST-HERO BRAND TICKER (REACT/NEXT.JS MASTERPIECE)
   ============================================================ */
.brand-ticker-section {
    background: #040307;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 22px 0;
    position: relative;
    overflow: hidden;
    z-index: 10;
}
.brand-ticker-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}
.ticker-track {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-shrink: 0;
    animation: tickerMarquee 26s linear infinite;
}
.ticker-track:hover {
    animation-play-state: paused;
}
.ticker-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 18px;
    border-radius: 50px;
    white-space: nowrap;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.9rem;
    font-weight: 600;
}
.ticker-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.2);
}
.ticker-card img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}
.ticker-card .ticker-icon-badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    background: rgba(124, 58, 237, 0.2);
    color: var(--accent-purple);
    border: 1px solid rgba(124, 58, 237, 0.4);
}
.ticker-card .ticker-tag {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 12px;
    background: rgba(6, 182, 212, 0.12);
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.25);
}
@keyframes tickerMarquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* Footer Transparent Outline Watermark */
.footer-watermark {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: min(20vw, 260px);
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.035);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    letter-spacing: 0.08em;
    user-select: none;
}

/* ============================================================
   CARD CONTENT CENTRALIZATION & MOBILE RESPONSIVENESS
   ============================================================ */
.project-card,
.spot-card,
.spec-card,
.stealth-card,
.flip-card .flip-front,
.flip-card .flip-back {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.project-card .project-body,
.spot-card,
.spec-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.project-card .project-body h4,
.project-card .project-body p,
.spot-card h5,
.spot-card h4,
.spot-card p,
.spec-card .val,
.spec-card .lbl {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.project-card .project-link,
.spot-card .project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
}

/* Mobile Responsiveness Improvements & 50% Badge Scaling */
@media (max-width: 768px) {
    .hero-inner h1 {
        font-size: clamp(1.8rem, 7.5vw, 2.75rem);
    }
    
    .script-tag {
        font-size: clamp(0.95rem, 4.5vw, 1.35rem) !important;
        transform: rotate(-4deg) translateY(-1px) !important;
    }

    /* 50% Badge & Status Scaling on Mobile */
    .hero-badge {
        font-size: 0.52rem !important;
        padding: 4px 10px !important;
        margin-bottom: 12px !important;
        gap: 5px !important;
        letter-spacing: 0.06em !important;
        border-width: 1px !important;
    }
    .hero-badge .pulse-dot {
        width: 5px !important;
        height: 5px !important;
    }

    /* Subpage Mobile Polish */
    .subpage-hero {
        padding: 95px 0 35px !important;
    }
    .subpage-hero h1 {
        font-size: clamp(1.5rem, 6vw, 2.2rem) !important;
    }
    .subpage-hero p {
        font-size: 0.92rem !important;
        padding: 0 8px;
    }
    .product-logo-lg {
        width: 56px !important;
        height: 56px !important;
        border-radius: 14px !important;
        margin-bottom: 14px !important;
    }

    .product-showcase {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .product-visual {
        padding: 10px !important;
        width: 100% !important;
        overflow: hidden !important;
    }
    .product-mock-body {
        padding: 14px !important;
        font-size: 0.75rem !important;
        word-break: break-word !important;
        overflow-x: auto !important;
    }

    .project-grid,
    .bento,
    .team-grid,
    .spec-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .spec-card {
        padding: 16px 12px !important;
    }
    .spec-card .val {
        font-size: 1.4rem !important;
    }

    .spot-card,
    .project-card {
        padding: 20px 16px !important;
        width: 100% !important;
    }

    .footer-top {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .footer-brand,
    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-social {
        justify-content: center;
    }
}

