/* ========================================
   PARSEFORGE - FUTURISTIC CYBER DESIGN
   Blue, Black & Dark Green Theme
   ======================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cyber Color Palette */
    --bg-primary: #0a0e27;
    --bg-secondary: #151932;
    --bg-tertiary: #1a1f3a;
    --bg-card: rgba(26, 31, 58, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.05);
    
    /* Neon Accents */
    --neon-blue: #00d9ff;
    --neon-green: #00ff88;
    --neon-purple: #b84dff;
    --electric-blue: #0066ff;
    --cyber-green: #1de9b6;
    
    /* Status Colors */
    --success: #00ff88;
    --danger: #ff3366;
    --warning: #ffaa00;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Effects */
    --glow-blue: 0 0 20px rgba(0, 217, 255, 0.5);
    --glow-green: 0 0 20px rgba(0, 255, 136, 0.5);
    --glow-purple: 0 0 20px rgba(184, 77, 255, 0.5);
    
    /* Borders */
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-neon: rgba(0, 217, 255, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(29, 233, 182, 0.03) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-primary) 0%, #0d1129 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

/* Cyber Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 217, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

/* Animated Background Particles */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.05) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: float 20s infinite ease-in-out;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ========================================
   NAVIGATION - Glassmorphism Style
   ======================================== */
.navbar {
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.navbar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--neon-blue) 50%, 
        transparent 100%);
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    width: 260px;
    height: 90px;
    overflow: hidden;
}

.logo-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap:1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--cyber-green));
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.nav-links a:hover::before {
    width: 100%;
}

.nav-links a.active {
    color: var(--neon-blue);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: var(--bg-glass);
    border: 1px solid var(--border-neon);
    color: var(--neon-blue);
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    box-shadow: var(--glow-blue);
}

/* ========================================
   BUTTONS - Neon & Holographic Styles
   ======================================== */
.btn-primary, .btn-secondary, .btn-cta, .btn-danger {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.2;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--electric-blue) 0%, var(--neon-blue) 100%);
    color: white !important;
    border: 1px solid var(--neon-blue);
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-blue), 0 8px 25px rgba(0, 217, 255, 0.4);
    color: white !important;
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--neon-blue);
    border: 1px solid var(--border-neon);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--neon-blue);
    box-shadow: var(--glow-blue);
    transform: translateY(-2px);
}

.btn-cta {
    background: linear-gradient(135deg, var(--cyber-green) 0%, var(--neon-green) 100%);
    color: var(--bg-primary);
    border: 1px solid var(--cyber-green);
    box-shadow: 0 4px 15px rgba(29, 233, 182, 0.3);
    font-weight: 700;
}

.btn-cta:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--glow-green), 0 8px 25px rgba(29, 233, 182, 0.5);
}

.btn-danger {
    background: linear-gradient(135deg, #ff3366 0%, #ff0055 100%);
    color: white;
    border: 1px solid #ff3366;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.5), 0 8px 25px rgba(255, 51, 102, 0.4);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Navigation Button Spacing */
.nav-links a.btn-primary {
    padding: 0.875rem 2rem;
    margin-left: 1.5rem;
    color: white !important;
}

/* ========================================
   HERO SECTION - Holographic Style
   ======================================== */
.hero {
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.15) 0%, transparent 70%);
    animation: float 15s infinite ease-in-out;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--neon-blue) 50%, var(--cyber-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom:2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    padding: 1.125rem 2.5rem;
    font-size: 1.0625rem;
    min-width: 180px;
    justify-content: center;
    text-align: center;
}

/* Cyber Code Window */
.hero-code {
    position: relative;
}

.code-window {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(26, 31, 58, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 0 0 1px rgba(0, 217, 255, 0.2),
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-glass);
}

.code-header {
    background: linear-gradient(90deg, rgba(0, 217, 255, 0.1) 0%, rgba(29, 233, 182, 0.1) 100%);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-glass);
}

.code-dots {
    display: flex;
    gap: 0.5rem;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.code-dots span:nth-child(1) { background: #ff3366; box-shadow: 0 0 10px #ff3366; }
.code-dots span:nth-child(2) { background: #ffaa00; box-shadow: 0 0 10px #ffaa00; }
.code-dots span:nth-child(3) { background: #00ff88; box-shadow: 0 0 10px #00ff88; }

.code-title {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
}

.code-window pre {
    padding: 1.5rem;
    overflow-x: auto;
    margin: 0;
}

.code-window code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.keyword { color: var(--neon-purple); font-weight: 600; }
.string { color: var(--cyber-green); }
.comment { color: var(--text-muted); font-style: italic; }
.function { color: var(--neon-blue); }

/* ========================================
   CARDS - Glassmorphism Design
   ======================================== */
.card, .feature-card, .stat-card, .chart-card, .key-item, .pricing-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before, .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05) 0%, rgba(29, 233, 182, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover, .feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-blue);
    box-shadow: 
        var(--glow-blue),
        0 20px 40px rgba(0, 0, 0, 0.3);
}

.card:hover::before, .feature-card:hover::before {
    opacity: 1;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features {
    padding: 6rem 0;
}

.features h2, section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--neon-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--neon-blue) 0%, var(--cyber-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.3));
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   STATS GRID
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
}

.stat-icon {
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2) 0%, rgba(29, 233, 182, 0.2) 100%);
    border: 1px solid var(--border-neon);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-blue);
    margin: 0.25rem 0;
}

.stat-change {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stat-change.positive {
    color: var(--success);
}

/* ========================================
   QUICK START / STEPS
   ======================================== */
.quick-start {
    padding: 6rem 0;
    text-align: center;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--neon-blue) 0%, var(--cyber-green) 100%);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    box-shadow: var(--glow-blue);
    border: 3px solid var(--bg-primary);
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
}

/* ========================================
   HOME EXPERIENCE - CONVERSION FOCUSED
   ======================================== */
.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 217, 255, 0.25);
    background: rgba(0, 217, 255, 0.08);
    color: var(--neon-blue);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.hero-description {
    max-width: 640px;
}

.home-hero {
    padding-top: 7rem;
}

.hero-proof-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.hero-proof-item,
.hero-floating-stat {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    backdrop-filter: blur(20px);
}

.hero-proof-item strong {
    display: block;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.hero-proof-item span,
.hero-floating-stat span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.hero-showcase {
    display: grid;
    gap: 1.25rem;
    position: relative;
}

.hero-panel {
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.92), rgba(21, 25, 50, 0.88));
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.hero-panel-main h3 {
    font-size: 1.55rem;
    margin: 1rem 0;
    color: var(--text-primary);
}

.signal-pill {
    display: inline-flex;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(29, 233, 182, 0.12);
    border: 1px solid rgba(29, 233, 182, 0.25);
    color: var(--cyber-green);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.hero-checklist {
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.hero-checklist li {
    position: relative;
    padding-left: 1.65rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.hero-checklist li::before {
    content: '';
    position: absolute;
    left: 0.15rem;
    top: 0.4rem;
    width: 0.48rem;
    height: 0.78rem;
    border-right: 2px solid var(--cyber-green);
    border-bottom: 2px solid var(--cyber-green);
    transform: rotate(45deg);
}

.hero-floating-stat {
    display: grid;
    gap: 0.35rem;
    justify-items: start;
}

.hero-floating-stat strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.trust-ribbon {
    padding: 0 0 3rem;
}

.trust-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    background: var(--border-glass);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.trust-chip {
    display: grid;
    gap: 0.35rem;
    padding: 1.15rem;
    background: rgba(21, 25, 50, 0.86);
    color: var(--text-secondary);
}

.trust-chip strong {
    color: var(--text-primary);
    font-size: 0.98rem;
    line-height: 1.25;
}

.trust-chip span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.section-intro {
    display: grid;
    gap: 0.9rem;
    justify-items: center;
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
}

.section-intro p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.marketplace-preview,
.solution-lanes {
    padding: 2rem 0 6rem;
}

.showcase-grid,
.lane-grid,
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.showcase-card,
.lane-card,
.closing-cta-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 1.6rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.showcase-card {
    display: grid;
    gap: 1rem;
}

.showcase-card-top,
.showcase-meta,
.showcase-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.showcase-chip,
.showcase-type,
.lane-label {
    display: inline-flex;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.showcase-chip {
    background: rgba(0, 217, 255, 0.12);
    border: 1px solid rgba(0, 217, 255, 0.25);
    color: var(--neon-blue);
}

.showcase-type,
.lane-label {
    background: rgba(29, 233, 182, 0.12);
    border: 1px solid rgba(29, 233, 182, 0.25);
    color: var(--cyber-green);
}

.showcase-title,
.lane-card h3,
.closing-cta-card h2 {
    font-size: 1.45rem;
    color: var(--text-primary);
}

.showcase-copy,
.lane-card p,
.closing-cta-card p {
    color: var(--text-secondary);
}

.showcase-meta span {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.showcase-pricing strong {
    display: block;
    font-size: 1.35rem;
    color: var(--text-primary);
}

.showcase-pricing span {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.showcase-link {
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: 700;
}

.lane-card {
    display: grid;
    gap: 1rem;
}

.lane-card ul {
    list-style: none;
    display: grid;
    gap: 0.7rem;
}

.lane-card li {
    position: relative;
    padding-left: 1.55rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.lane-card li::before {
    content: '';
    position: absolute;
    left: 0.1rem;
    top: 0.45rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--neon-blue);
    box-shadow: 0 0 0 4px rgba(0, 217, 255, 0.08);
}

.advantage-grid {
    margin-top: 1rem;
}

.advantage-grid .feature-card {
    min-height: 100%;
}

.closing-cta {
    padding: 0 0 6rem;
}

.closing-cta-card {
    display: grid;
    gap: 1rem;
    text-align: left;
}

/* ========================================
   FOOTER - Dark Cyber Style
   ======================================== */
.footer {
    background: linear-gradient(180deg, var(--bg-primary) 0%, #000000 100%);
    color: white;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-glass);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--neon-blue) 30%,
        var(--cyber-green) 70%,
        transparent 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--neon-blue);
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.footer-section a:hover {
    color: var(--neon-blue);
    padding-left: 5px;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 968px) {
    .navbar {
        padding: 0.65rem 0;
    }

    .navbar .container {
        min-height: 64px;
    }

    .logo-icon {
        width: 152px;
        height: 58px;
    }

    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-proof-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trust-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .mobile-menu-btn {
        display: block;
        flex: 0 0 auto;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 14, 39, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 1rem;
        border-bottom: 1px solid var(--border-glass);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--border-glass);
    }
    
    .nav-links a.btn-primary {
        margin-left: 0;
        margin-top: 0.5rem;
        color: white !important;
    }
    
    .features-grid, .quick-start-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .sdk-tabs {
        justify-content: flex-start;
        overflow-x: auto;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-proof-list {
        grid-template-columns: 1fr;
    }

    .trust-track {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .features h2, .quick-start h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: row;
    }
}

/* Theme switcher: dark remains the default. */
html[data-theme="light"] {
    --bg-primary: #f7f9fc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #edf3fb;
    --bg-card: rgba(255, 255, 255, 0.86);
    --bg-glass: rgba(10, 14, 39, 0.04);
    --neon-blue: #0066cc;
    --neon-green: #008a5a;
    --neon-purple: #7c3aed;
    --electric-blue: #0b66e4;
    --cyber-green: #008f68;
    --success: #047857;
    --danger: #c0264d;
    --warning: #b45309;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --glow-blue: 0 8px 22px rgba(0, 102, 204, 0.16);
    --glow-green: 0 8px 22px rgba(0, 143, 104, 0.16);
    --glow-purple: 0 8px 22px rgba(124, 58, 237, 0.16);
    --border-glass: rgba(15, 23, 42, 0.12);
    --border-neon: rgba(0, 102, 204, 0.28);
    --primary: var(--electric-blue);
    --primary-dark: #0747a6;
    --secondary: var(--cyber-green);
    --dark: var(--text-primary);
    --gray: var(--text-secondary);
    --light: #eef5ff;
    --border: var(--border-glass);
}

html[data-theme="light"] body {
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 102, 204, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 143, 104, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-primary) 0%, #edf3fb 100%);
}

html[data-theme="light"] body::before {
    background-image:
        linear-gradient(rgba(0, 102, 204, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 204, 0.04) 1px, transparent 1px);
}

html[data-theme="light"] body::after {
    opacity: 0;
}

html[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, #0052cc 0%, #0066ff 100%);
    color: #ffffff !important;
}

html[data-theme="light"] .btn-secondary {
    color: #0052cc;
    border-color: rgba(0, 82, 204, 0.35);
}

html[data-theme="light"] .nav-links {
    background: transparent;
}

html[data-theme="light"] .hero-panel {
    background: rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .trust-chip,
html[data-theme="light"] .hero-buyer-panel,
html[data-theme="light"] .hero-workflow-item,
html[data-theme="light"] .hero-spotlight,
html[data-theme="light"] .product-fact-card,
html[data-theme="light"] .signal-bar-item,
html[data-theme="light"] .collection-card {
    background: rgba(255, 255, 255, 0.88);
    color: var(--text-primary);
}

html[data-theme="light"] .signal-bar-track {
    background: rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .hero-workflow-item p,
html[data-theme="light"] .signal-bar-item div span,
html[data-theme="light"] .hero-spotlight li,
html[data-theme="light"] .collection-card p {
    color: var(--text-secondary);
}

html[data-theme="light"] .trust-chip strong,
html[data-theme="light"] .signal-bar-item strong {
    color: var(--text-primary);
}

html[data-theme="light"] .trust-chip span,
html[data-theme="light"] .signal-bar-item span {
    color: var(--text-secondary);
}

html[data-theme="light"] .signal-pill,
html[data-theme="light"] .status-badge,
html[data-theme="light"] .method.post {
    color: #00684d;
}

html[data-theme="light"] .method.get {
    color: #174ea6;
}

html[data-theme="light"] .method.put {
    color: #9a4f00;
}

html[data-theme="light"] .method.delete {
    color: #b42318;
}

html[data-theme="light"] .footer {
    background: linear-gradient(180deg, #eef5ff 0%, #dfeaf8 100%);
    color: var(--text-primary);
}

html[data-theme="light"] .footer-section a,
html[data-theme="light"] .footer-bottom,
html[data-theme="light"] .footer-section p {
    color: var(--text-secondary);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-width: 104px;
    height: 44px;
    padding: 0 0.85rem;
    border: 1px solid var(--border-neon);
    border-radius: 999px;
    background: rgba(0, 217, 255, 0.08);
    color: var(--neon-blue);
    cursor: pointer;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
    border-color: var(--neon-blue);
    box-shadow: var(--glow-blue);
    transform: translateY(-1px);
}

.theme-toggle-track {
    position: relative;
    width: 36px;
    height: 20px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.22);
    border: 1px solid var(--border-glass);
}

.theme-toggle-thumb {
    position: absolute;
    top: 50%;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--neon-blue);
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.45);
    transform: translateY(-50%);
    transition: left 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle[aria-pressed="true"] {
    background: rgba(0, 102, 204, 0.08);
}

.theme-toggle[aria-pressed="true"] .theme-toggle-thumb {
    left: 17px;
}

.theme-toggle.is-light .theme-toggle-thumb {
    left: 17px;
}

@media (max-width: 968px) {
    html[data-theme="light"] .nav-links {
        background: #ffffff;
    }

    .theme-toggle {
        width: 100%;
    }
}
