*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #050510;
    color: #f1f5f9;
    font-family: 'Rubik', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

.grid-overlay {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: #6366f1;
    top: -100px;
    left: -100px;
    animation: orb-float 20s ease-in-out infinite;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: #8b5cf6;
    top: 50%;
    right: -80px;
    animation: orb-float 25s ease-in-out infinite reverse;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: #10b981;
    bottom: -100px;
    left: 30%;
    animation: orb-float 22s ease-in-out infinite 5s;
}

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Header */

.header {
    text-align: center;
    margin-bottom: 3rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(99, 102, 241, 0.05);
    color: #a5b4fc;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #a5b4fc, #c4b5fd, #f0abfc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #94a3b8;
    font-size: 1.125rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Card Grid — 3 columns for 7 streams (3+3+1, last centered) */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    width: 100%;
}

.card-grid .card:last-child:nth-child(3n + 1) {
    grid-column: 2;
}

@media (max-width: 960px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Cards */

.card {
    background: #111128;
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateY(-2px);
}

.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

/* Stream accent colors */
.card[data-stream="web"] .card-accent { background: linear-gradient(90deg, #10b981, #34d399); }
.card[data-stream="frontend"] .card-accent { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.card[data-stream="backend"] .card-accent { background: linear-gradient(90deg, #6366f1, #818cf8); }
.card[data-stream="trainer"] .card-accent { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.card[data-stream="student"] .card-accent { background: linear-gradient(90deg, #ec4899, #f472b6); }
.card[data-stream="business"] .card-accent { background: linear-gradient(90deg, #0ea5e9, #38bdf8); }
.card[data-stream="native"] .card-accent { background: linear-gradient(90deg, #f97316, #fb923c); }

/* Card Icon */

.card-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.card[data-stream="web"] .card-icon { background: rgba(16, 185, 129, 0.1); color: #34d399; }
.card[data-stream="frontend"] .card-icon { background: rgba(139, 92, 246, 0.1); color: #a78bfa; }
.card[data-stream="backend"] .card-icon { background: rgba(99, 102, 241, 0.1); color: #818cf8; }
.card[data-stream="trainer"] .card-icon { background: rgba(245, 158, 11, 0.1); color: #fbbf24; }
.card[data-stream="student"] .card-icon { background: rgba(236, 72, 153, 0.1); color: #f472b6; }
.card[data-stream="business"] .card-icon { background: rgba(14, 165, 233, 0.1); color: #38bdf8; }
.card[data-stream="native"] .card-icon { background: rgba(249, 115, 22, 0.1); color: #fb923c; }

/* Card Labels */

.card-stream-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.375rem;
}

.card[data-stream="web"] .card-stream-label { color: #34d399; }
.card[data-stream="frontend"] .card-stream-label { color: #a78bfa; }
.card[data-stream="backend"] .card-stream-label { color: #818cf8; }
.card[data-stream="trainer"] .card-stream-label { color: #fbbf24; }
.card[data-stream="student"] .card-stream-label { color: #f472b6; }
.card[data-stream="business"] .card-stream-label { color: #38bdf8; }
.card[data-stream="native"] .card-stream-label { color: #fb923c; }

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: opacity 0.15s;
}

.card-description {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    min-height: 3.75rem;
    transition: opacity 0.15s;
}

/* Toggle Switch */

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0.625rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
}

.toggle-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #475569;
    transition: color 0.2s;
    min-width: 2rem;
    text-align: center;
    user-select: none;
}

.toggle-label.active {
    color: #f1f5f9;
}

.toggle-switch {
    position: relative;
    width: 40px;
    height: 22px;
    cursor: pointer;
    display: inline-block;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s;
}

.toggle-switch input:checked ~ .toggle-track { background: rgba(99, 102, 241, 0.3); }
.card[data-stream="web"] .toggle-switch input:checked ~ .toggle-track { background: rgba(16, 185, 129, 0.3); }
.card[data-stream="frontend"] .toggle-switch input:checked ~ .toggle-track { background: rgba(139, 92, 246, 0.3); }
.card[data-stream="backend"] .toggle-switch input:checked ~ .toggle-track { background: rgba(99, 102, 241, 0.3); }
.card[data-stream="trainer"] .toggle-switch input:checked ~ .toggle-track { background: rgba(245, 158, 11, 0.3); }
.card[data-stream="student"] .toggle-switch input:checked ~ .toggle-track { background: rgba(236, 72, 153, 0.3); }
.card[data-stream="business"] .toggle-switch input:checked ~ .toggle-track { background: rgba(14, 165, 233, 0.3); }
.card[data-stream="native"] .toggle-switch input:checked ~ .toggle-track { background: rgba(249, 115, 22, 0.3); }

.toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #64748b;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.toggle-switch input:checked ~ .toggle-thumb { transform: translateX(18px); }
.card[data-stream="web"] .toggle-switch input:checked ~ .toggle-thumb { background: #10b981; }
.card[data-stream="frontend"] .toggle-switch input:checked ~ .toggle-thumb { background: #8b5cf6; }
.card[data-stream="backend"] .toggle-switch input:checked ~ .toggle-thumb { background: #6366f1; }
.card[data-stream="trainer"] .toggle-switch input:checked ~ .toggle-thumb { background: #f59e0b; }
.card[data-stream="student"] .toggle-switch input:checked ~ .toggle-thumb { background: #ec4899; }
.card[data-stream="business"] .toggle-switch input:checked ~ .toggle-thumb { background: #0ea5e9; }
.card[data-stream="native"] .toggle-switch input:checked ~ .toggle-thumb { background: #f97316; }

/* Features List */

.card-features {
    list-style: none;
    margin-bottom: 1.25rem;
    min-height: 5.5rem;
}

.card-features li {
    font-size: 0.75rem;
    color: #94a3b8;
    padding: 0.2rem 0;
    padding-left: 1.125rem;
    position: relative;
    transition: opacity 0.15s;
}

.card-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    font-size: 0.6875rem;
}

.card[data-stream="web"] .card-features li::before { color: #34d399; }
.card[data-stream="frontend"] .card-features li::before { color: #a78bfa; }
.card[data-stream="backend"] .card-features li::before { color: #818cf8; }
.card[data-stream="trainer"] .card-features li::before { color: #fbbf24; }
.card[data-stream="student"] .card-features li::before { color: #f472b6; }
.card[data-stream="business"] .card-features li::before { color: #38bdf8; }
.card[data-stream="native"] .card-features li::before { color: #fb923c; }

/* Launch Button */

.launch-btn {
    display: block;
    width: 100%;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-family: 'Rubik', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.launch-btn:active { transform: scale(0.98); }
.launch-btn.available { color: #fff; }

.card[data-stream="web"] .launch-btn.available { background: #047857; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2); }
.card[data-stream="web"] .launch-btn.available:hover { background: #059669; box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3); }
.card[data-stream="frontend"] .launch-btn.available { background: #6d28d9; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2); }
.card[data-stream="frontend"] .launch-btn.available:hover { background: #7c3aed; box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3); }
.card[data-stream="backend"] .launch-btn.available { background: #4338ca; box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2); }
.card[data-stream="backend"] .launch-btn.available:hover { background: #4f46e5; box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3); }
.card[data-stream="trainer"] .launch-btn.available { background: #b45309; box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2); }
.card[data-stream="trainer"] .launch-btn.available:hover { background: #d97706; box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3); }
.card[data-stream="student"] .launch-btn.available { background: #be185d; box-shadow: 0 4px 15px rgba(236, 72, 153, 0.2); }
.card[data-stream="student"] .launch-btn.available:hover { background: #db2777; box-shadow: 0 6px 20px rgba(236, 72, 153, 0.3); }
.card[data-stream="business"] .launch-btn.available { background: #0369a1; box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2); }
.card[data-stream="business"] .launch-btn.available:hover { background: #0284c7; box-shadow: 0 6px 20px rgba(14, 165, 233, 0.3); }
.card[data-stream="native"] .launch-btn.available { background: #c2410c; box-shadow: 0 4px 15px rgba(249, 115, 22, 0.2); }
.card[data-stream="native"] .launch-btn.available:hover { background: #ea580c; box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3); }

.launch-btn.coming-soon {
    background: rgba(255, 255, 255, 0.05);
    color: #475569;
    cursor: not-allowed;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.launch-btn.signing-in {
    opacity: 0.7;
    pointer-events: none;
}

/* Pro Badge */

.pro-badge {
    display: none;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.card.is-pro .pro-badge { display: inline-block; }

.card[data-stream="web"] .pro-badge { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.card[data-stream="frontend"] .pro-badge { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.card[data-stream="backend"] .pro-badge { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.card[data-stream="trainer"] .pro-badge { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.card[data-stream="student"] .pro-badge { background: rgba(236, 72, 153, 0.15); color: #f472b6; }
.card[data-stream="business"] .pro-badge { background: rgba(14, 165, 233, 0.15); color: #38bdf8; }
.card[data-stream="native"] .pro-badge { background: rgba(249, 115, 22, 0.15); color: #fb923c; }

/* Price tag */

.price-tag {
    display: none;
    font-size: 0.6875rem;
    color: #64748b;
    margin-top: 0.375rem;
}

.card.is-pro .price-tag { display: block; }

/* Footer */

.footer {
    margin-top: 3rem;
    text-align: center;
    color: #475569;
    font-size: 0.8125rem;
}

.footer a {
    color: #6366f1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover { color: #818cf8; }

/* ===== Stub pages ===== */

.stub-page {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}

.stub-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.stub-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.stub-desc {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.stub-features {
    list-style: none;
    text-align: left;
    max-width: 320px;
    margin: 0 auto 2rem;
}

.stub-features li {
    font-size: 0.875rem;
    color: #94a3b8;
    padding: 0.375rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.stub-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    font-size: 0.8125rem;
    color: #6366f1;
}

.stub-status {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(99, 102, 241, 0.05);
    color: #a5b4fc;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.stub-back {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.2s, color 0.2s;
}

.stub-back:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}
