/* style.css – CockpitKingdom unified theme (original landing + marketplace) */
:root {
    --navy: #0A0E1A;
    --navy2: #0F1628;
    --panel: #131929;
    --border: rgba(100,160,255,0.15);
    --blue: #3B82F6;
    --blue-glow: rgba(59,130,246,0.3);
    --gold: #F5A623;
    --gold-dim: rgba(245,166,35,0.15);
    --text: #E8EDF5;
    --muted: #6B7A99;
    --success: #22D3A0;
    --error: #F87171;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--navy);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    overflow-x: hidden;
    position: relative;
}

/* === NOISE & GRID OVERLAYS (from original) === */
body::before {
    content: '';
    position: fixed; inset: 0; z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.4;
}
.grid-bg {
    position: fixed; inset: 0; z-index: 0;
    background-image:
      linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
    pointer-events: none;
}

/* === TYPOGRAPHY === */
h1, h2, h3, .logo, .section-label, .stat-val, .step-num {
    font-family: 'Orbitron', monospace;
}

/* === NAVIGATION (original sticky style) === */
nav {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 32px;
    background: rgba(10,14,26,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.logo { font-family: 'Orbitron', monospace; font-weight: 900; font-size: 18px; letter-spacing: 0.05em; }
.logo span { color: var(--gold); }
.nav-links a, .nav-links button.nav-btn {
    color: var(--text);
    text-decoration: none;
    margin-left: 24px;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
}
.nav-links a:hover { color: var(--blue); }

/* === BUTTONS (original + marketplace) === */
.btn, button:not(.nav-btn) {
    background: var(--blue);
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn:hover, button:not(.nav-btn):hover {
    background: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59,130,246,0.3);
}
.btn-gold {
    background: var(--gold);
    color: #0A0E1A;
}
.btn-gold:hover { background: #e69500; }
.nav-cta {
    background: var(--blue);
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
}

/* === HERO SECTION (original) === */
.hero {
    position: relative; z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    text-align: center;
}
.hero::after {
    content: '';
    position: absolute; top: 10%; left: 50%; transform: translateX(-50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse, rgba(59,130,246,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold-dim);
    border: 1px solid rgba(245,166,35,0.3);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 28px;
    animation: fadeUp 0.6s ease both;
}
.badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    animation: pulse 2s ease infinite;
}
.hero h1 {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: clamp(32px, 6vw, 72px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    animation: fadeUp 0.6s 0.1s ease both;
}
.hero h1 .line2 { color: var(--blue); display: block; }
.hero-sub {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--muted);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 48px;
    font-weight: 300;
    animation: fadeUp 0.6s 0.2s ease both;
}
.waitlist-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
    animation: fadeUp 0.6s 0.3s ease both;
}
.waitlist-input {
    width: 300px;
    padding: 14px 18px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}
.waitlist-input:focus { border-color: var(--blue); }
.waitlist-btn {
    padding: 14px 28px;
    background: var(--blue);
    border-radius: 8px;
    font-weight: 500;
    white-space: nowrap;
}
.form-note {
    font-size: 12px;
    color: var(--muted);
    animation: fadeUp 0.6s 0.35s ease both;
}
.stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 64px;
    animation: fadeUp 0.6s 0.4s ease both;
}
.stat { text-align: center; }
.stat-val {
    font-family: 'Orbitron', monospace;
    font-size: 28px;
    font-weight: 700;
    display: block;
}
.stat-val span { color: var(--blue); }
.stat-label {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

/* === DIVIDER === */
.divider {
    position: relative; z-index: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 0 48px;
}

/* === SECTIONS (original pain grid, steps) === */
.section {
    position: relative; z-index: 1;
    padding: 80px 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.section-label {
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--blue);
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}
.section-sub {
    font-size: 16px;
    color: var(--muted);
    max-width: 520px;
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 48px;
}
.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.pain-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.2s, transform 0.2s;
}
.pain-card:hover {
    border-color: rgba(100,160,255,0.35);
    transform: translateY(-3px);
}
.pain-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}
.pain-card:hover::before { opacity: 1; }
.pain-icon { font-size: 28px; margin-bottom: 14px; display: block; }
.pain-title { font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.pain-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }

.products-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}
.product-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
    cursor: pointer;
}
.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(100,160,255,0.4);
}
.product-thumb {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    position: relative;
}
.product-thumb.blue { background: linear-gradient(135deg, #0F2040 0%, #1a3a6e 100%); }
.product-thumb.green { background: linear-gradient(135deg, #0A2018 0%, #163d28 100%); }
.product-thumb.amber { background: linear-gradient(135deg, #201408 0%, #3d2a10 100%); }
.product-thumb.purple { background: linear-gradient(135deg, #180A28 0%, #2e1550 100%); }
.product-type {
    position: absolute; top: 10px; right: 10px;
    font-size: 10px; font-weight: 500;
    padding: 3px 8px; border-radius: 4px;
}
.type-config { background: rgba(59,130,246,0.2); color: #93C5FD; border: 1px solid rgba(59,130,246,0.3); }
.type-plan { background: rgba(34,197,94,0.15); color: #86EFAC; border: 1px solid rgba(34,197,94,0.25); }
.type-guide { background: rgba(245,158,11,0.15); color: #FCD34D; border: 1px solid rgba(245,158,11,0.25); }
.type-bundle { background: rgba(168,85,247,0.15); color: #D8B4FE; border: 1px solid rgba(168,85,247,0.25); }
.product-body { padding: 14px; }
.product-name { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.product-meta { font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.product-price {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}
.product-stars { font-size: 11px; color: var(--gold); }

.steps-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.step-card {
    background: var(--panel);
    padding: 28px 24px;
}
.step-num {
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    color: var(--blue);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}
.step-icon { font-size: 28px; margin-bottom: 12px; display: block; }
.step-title { font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* === CTA SECTION (original) === */
.cta-section {
    position: relative; z-index: 1;
    text-align: center;
    padding: 80px 24px 100px;
    background: linear-gradient(to bottom, transparent, rgba(59,130,246,0.04), transparent);
}
.cta-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}
.cta-sub {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 40px;
    font-weight: 300;
}

/* === FORMS & CARDS (marketplace additions) === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}
.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: rgba(100,160,255,0.4); transform: translateY(-2px); }
.form-group { margin-bottom: 20px; }
label {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
    color: var(--muted);
}
input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    background: #1e243b;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
}
.error-message {
    color: var(--error);
    background: rgba(248,113,113,0.1);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.success-message {
    color: var(--success);
    background: rgba(34,211,160,0.1);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}
/* === WAITLIST FEEDBACK (original classes) === */
.success-msg {
    display: none;
    align-items: center;
    gap: 10px;
    background: rgba(34,211,160,0.1);
    border: 1px solid rgba(34,211,160,0.3);
    border-radius: 8px;
    padding: 14px 24px;
    color: var(--success);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    width: fit-content;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}
.error-msg-global {
    display: none;
    align-items: center;
    gap: 10px;
    background: rgba(248,113,113,0.1);
    border: 1px solid rgba(248,113,113,0.3);
    border-radius: 8px;
    padding: 14px 24px;
    color: var(--error);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    width: fit-content;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin: 40px 0;
}
.product-card.marketplace {
    cursor: default;
}
.product-title { font-weight: 600; margin-bottom: 6px; font-size: 16px; }
.product-price { color: var(--gold); font-size: 20px; font-weight: 700; }
.product-meta { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* === UTILITIES === */
.text-center { text-align: center; }
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }

/* === FOOTER === */
footer {
    position: relative; z-index: 1;
    border-top: 1px solid var(--border);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-logo {
    font-family: 'Orbitron', monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}
.footer-logo span { color: var(--gold); }
.footer-note { font-size: 12px; color: var(--muted); }

/* === ANIMATIONS (original) === */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}