/* STEALERS Design System - Shared */
:root {
    --brand-h: 252; --brand-s: 100%; --brand-l: 34%;
    --brand: #1800ad;
    --brand-light: #2d1bd6;
    --brand-dark: #130087;
    --brand-darker: #0a0050;
    --brand-glow: #4f35f0;

    --surface-primary: #ffffff;
    --surface-secondary: #f9fafb;
    --surface-glass: rgba(255,255,255,0.8);
    --surface-glass-strong: rgba(255,255,255,0.95);

    --text-heading: #111827;
    --text-body: #4b5563;
    --text-muted: #9ca3af;
    --text-faint: #d1d5db;

    --text-on-brand: #ffffff;
    --text-on-brand-muted: rgba(255,255,255,0.7);
    --text-on-brand-faint: rgba(255,255,255,0.45);

    --tag-red-bg: #fef2f2; --tag-red-text: #dc2626;
    --tag-green-bg: #f0fdf4; --tag-green-text: #16a34a;
    --tag-orange-bg: #fff7ed; --tag-orange-text: #ea580c;
    --tag-blue-bg: #eff6ff; --tag-blue-text: #2563eb;
    --tag-cyan-bg: #ecfeff; --tag-cyan-text: #0891b2;
    --tag-violet-bg: #f5f3ff; --tag-violet-text: #7c3aed;

    --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
    --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
    --sp-12: 48px; --sp-16: 64px;

    --radius-sm: 4px; --radius-md: 6px; --radius-lg: 8px; --radius-xl: 8px;

    --shadow-card: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-glow: none;

    --ease-out: ease;
    --ease-spring: ease;
    --duration-fast: 150ms;
    --duration-normal: 150ms;
    --duration-slow: 200ms;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --border: #e5e7eb;
    --border-light: #f3f4f6;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* Scrollbar styling */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1800ad; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.4); }
* { scrollbar-color: rgba(255,255,255,0.25) #1800ad; scrollbar-width: thin; }

body {
    font-family: var(--font);
    background: var(--brand);
    color: var(--text-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.s-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* NAV */
.s-nav {
    position: sticky; top: 12px; z-index: 100;
    max-width: 680px;
    margin: 12px auto 0;
    padding: 0 20px;
    background: rgba(19, 0, 135, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    transition: max-width 200ms ease, border-radius 200ms ease, margin 200ms ease, top 200ms ease;
}
.s-nav.docked {
    top: 0;
    max-width: 100%;
    margin-top: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
}
.s-nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 48px;
    max-width: 680px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .s-nav { top: 16px; margin-top: 16px; }
    .s-nav.docked { top: 0; margin-top: 0; }
    .s-nav-inner { height: 52px; }
    .s-nav-logo img { height: 30px; }
}
.s-nav-logo {
    display: flex; align-items: center; gap: 10px; text-decoration: none;
    position: relative;
}
.s-nav-logo img { height: 26px; }
.s-nav-logo .logo-full,
.s-nav-logo .logo-icon {
    transition: opacity 400ms ease-in-out;
}
.s-nav-logo .logo-icon {
    position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    opacity: 0; height: 32px;
}
.s-nav-logo .logo-full { opacity: 1; }
@media (max-width: 639px) {
    .s-nav-logo .logo-full { opacity: 0; height: 20px; }
    .s-nav-logo .logo-icon { opacity: 1; height: 32px; }
    .s-nav.docked .s-nav-logo .logo-full { opacity: 1; height: 20px; }
    .s-nav.docked .s-nav-logo .logo-icon { opacity: 0; }
}
.s-nav-actions { display: flex; align-items: center; gap: 20px; }
.s-nav-link {
    font-size: 12px; font-weight: 500;
    color: rgba(255,255,255,0.6); text-decoration: none;
    transition: color 150ms ease;
}
.s-nav-link:hover { color: #fff; }
.s-nav-btn {
    font-size: 12px; font-weight: 500;
    padding: 6px 14px; border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.2); background: transparent;
    color: rgba(255,255,255,0.7); text-decoration: none;
    transition: border-color 150ms ease, color 150ms ease;
}
.s-nav-btn:hover { border-color: rgba(255,255,255,0.5); color: #fff; }
.s-nav-cta {
    font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
    padding: 6px 14px; border-radius: var(--radius-sm);
    background: #fff; color: var(--brand); text-decoration: none;
    transition: opacity 150ms ease;
}
.s-nav-cta:hover { opacity: 0.85; }
@media (max-width: 639px) {
    .s-nav { max-width: 80%; margin-left: auto; margin-right: auto; padding: 0 16px; transition: none; }
    .s-nav.docked { max-width: none !important; width: 100vw !important; margin-left: 0 !important; margin-right: 0 !important; padding-left: 16px; padding-right: 16px; border-radius: 0 !important; border: none !important; border-bottom: 1px solid rgba(255,255,255,0.1) !important; left: 0; right: 0; }
    .s-nav-inner { height: 40px; max-width: none; padding: 0 16px; }
    .s-nav-actions { gap: 14px; }
    .s-nav-link { font-size: 11px; }
    .s-nav-cta { font-size: 10px; padding: 4px 10px; }
    .s-nav-btn { display: none; }
}



/* NAV DROPDOWNS */
.s-nav-dropdown {
    position: relative;
}
.s-nav-dropdown > .s-nav-link {
    cursor: default;
    user-select: none;
}
.s-nav-dropdown-menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    margin-top: 10px; min-width: 160px;
    background: rgba(19, 0, 135, 0.85);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px; padding: 6px;
    opacity: 0; pointer-events: none;
    transition: opacity 150ms ease, transform 150ms ease;
    transform: translateX(-50%) translateY(4px);
}
/* Desktop: hover to open */
@media (hover: hover) and (pointer: fine) {
    .s-nav-dropdown:hover .s-nav-dropdown-menu {
        opacity: 1; pointer-events: all;
        transform: translateX(-50%) translateY(0);
    }
    .s-nav-dropdown-menu::before {
        content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
    }
}
/* Mobile & touch: tap to open via JS class */
.s-nav-dropdown.open > .s-nav-dropdown-menu {
    opacity: 1; pointer-events: all;
    transform: translateX(-50%) translateY(0);
}
.s-nav-dropdown-menu a {
    display: block; padding: 7px 12px; border-radius: 4px;
    font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.7);
    text-decoration: none; transition: all 100ms ease;
}
.s-nav-dropdown-menu a:hover {
    background: rgba(255,255,255,0.1); color: #fff;
}
.s-nav-dropdown-notice {
    min-width: 200px; padding: 14px 16px;
}
.s-nav-dropdown-notice p {
    font-size: 12px; color: rgba(255,255,255,0.55);
    line-height: 1.5; margin: 0;
}
/* Mobile: position dropdown from right edge to avoid overflow */
@media (max-width: 640px) {
    .s-nav-dropdown-menu {
        left: auto; right: 0;
        transform: translateX(0) translateY(4px);
    }
    .s-nav-dropdown:hover .s-nav-dropdown-menu,
    .s-nav-dropdown.open > .s-nav-dropdown-menu {
        transform: translateX(0) translateY(0);
    }
}

/* FOOTER */
.s-footer {
    background: var(--brand-darker);
    margin-top: 0;
    padding-top: 24px;
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
}
.s-footer-inner {
    display: flex; flex-wrap: wrap; justify-content: space-between;
    align-items: center; gap: 16px; padding: 28px 0;
}
.s-footer-brand { display: flex; align-items: center; gap: 10px; }
.s-footer-brand img { height: 22px; opacity: 0.7; }
.s-footer-links { display: flex; gap: 20px; list-style: none; }
.s-footer-links a {
    font-size: 12px; color: var(--text-on-brand-faint);
    text-decoration: none; transition: color 150ms ease;
}
.s-footer-links a:hover { color: var(--text-on-brand); }
.s-footer-copy {
    text-align: center; font-size: 11px;
    color: rgba(255,255,255,0.2);
    padding-top: 16px; margin-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* NEWSLETTER POPUP */
.nl-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 200ms ease;
    pointer-events: none;
}
.nl-overlay.active { opacity: 1; pointer-events: all; }
.nl-popup {
    background: #fff; border-radius: var(--radius-lg); padding: 32px;
    max-width: 400px; width: 90%; position: relative;
    transform: translateY(8px);
    transition: transform 200ms ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.nl-overlay.active .nl-popup { transform: translateY(0); }
.nl-popup-close {
    position: absolute; top: 12px; right: 12px;
    width: 28px; height: 28px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: #fff; color: #666;
    font-size: 16px; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    transition: background 150ms ease;
}
.nl-popup-close:hover { background: var(--surface-secondary); }
.nl-popup h3 {
    font-size: 18px; font-weight: 700; color: var(--text-heading);
    margin-bottom: 6px; margin-top: 8px;
}
.nl-popup p {
    font-size: 14px; color: var(--text-muted);
    line-height: 1.5; margin-bottom: 20px;
}
.nl-popup input {
    width: 100%; padding: 10px 12px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 14px; font-family: var(--font); color: var(--text-heading);
    outline: none; transition: border-color 150ms ease;
    margin-bottom: 8px;
}
.nl-popup input:focus { border-color: var(--brand); }
.nl-popup input::placeholder { color: var(--text-faint); }
.nl-popup button[type="submit"] {
    width: 100%; padding: 10px;
    border: none; border-radius: var(--radius-sm);
    background: var(--brand); color: #fff;
    font-size: 14px; font-weight: 600; font-family: var(--font);
    cursor: pointer; transition: background 150ms ease;
}
.nl-popup button[type="submit"]:hover { background: var(--brand-light); }
.nl-popup .nl-success { text-align: center; padding: 16px 0; }
.nl-popup .nl-success h4 { font-size: 16px; font-weight: 600; color: #16a34a; margin-bottom: 6px; }
.nl-popup .nl-success p { color: var(--text-muted); margin-bottom: 0; }
.nl-popup .nl-error { color: #dc2626; font-size: 13px; margin-top: -4px; margin-bottom: 8px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity 0.3s ease, transform 0.3s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    .s-container { padding: 0 16px; }
}
