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

:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a28;
    --bg-highlight: #0d1117;
    --surface: #16161f;
    --border: #1e1e2e;
    --border-light: #2a2a3e;
    --text: #e4e4ef;
    --text-dim: #8888a0;
    --text-muted: #55556a;
    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --accent-glow: rgba(108, 92, 231, 0.15);
    --green: #00e676;
    --green-dim: #00c853;
    --yellow: #ffd740;
    --red: #ff5252;
    --blue: #40c4ff;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #fff;
}

code {
    font-family: var(--mono);
    font-size: 0.88em;
    background: var(--surface);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--accent-light);
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s;
}

.nav.scrolled {
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo:hover { color: #fff; }

.logo-image {
    height: 1.8rem;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: #fff; }

.nav-cta {
    background: var(--accent);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
    background: #7c6cf7 !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
    position: relative;
    padding: 160px 0 80px;
    text-align: center;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(108, 92, 231, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 92, 231, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 70%);
}

.hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-light);
    background: var(--accent-glow);
    border: 1px solid rgba(108, 92, 231, 0.2);
    padding: 6px 18px;
    border-radius: 100px;
    margin-bottom: 32px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: #fff;
}

.strike {
    text-decoration: line-through;
    text-decoration-color: var(--red);
    text-decoration-thickness: 3px;
    color: var(--text-dim);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-subtitle strong {
    color: var(--green);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 24px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    background: #7c6cf7;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 32px rgba(108, 92, 231, 0.4);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    color: #fff;
    transform: translateY(-2px);
}

/* Terminal */
.hero-terminal {
    max-width: 700px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
    text-align: left;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.terminal-bar {
    background: #1a1a28;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: var(--red); }
.terminal-dot.yellow { background: var(--yellow); }
.terminal-dot.green { background: var(--green); }

.terminal-title {
    margin-left: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--mono);
}

.terminal-body {
    background: #0d0d14;
    padding: 20px 20px 24px;
    font-family: var(--mono);
    font-size: 0.85rem;
    line-height: 1.9;
}

.terminal-line {
    white-space: nowrap;
    overflow: hidden;
}

.t-prompt { color: var(--green); font-weight: 700; }
.t-cmd { color: #fff; }
.t-output { color: var(--text-dim); }
.t-success { color: var(--green); }
.t-accent { color: var(--accent-light); font-weight: 600; }
.t-dim { color: var(--text-muted); }
.t-fade { opacity: 0.85; }

/* ===== SECTION SHARED ===== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== FEATURES GRID ===== */
.features {
    background: var(--bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

.feature-card.visible:hover {
    transform: translateY(-4px);
}

.feature-highlight {
    border-color: rgba(108, 92, 231, 0.2);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(108, 92, 231, 0.05) 100%);
}

.feature-highlight:hover {
    border-color: rgba(108, 92, 231, 0.35);
}

.feature-number {
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-dim);
    line-height: 1.7;
}

/* ===== PROVIDERS ===== */
.providers {
    background: var(--bg-highlight);
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.provider-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(16px);
}

.provider-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.provider-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(108, 92, 231, 0.1);
}

.provider-card.visible:hover {
    transform: translateY(-4px);
}

.provider-card-add {
    border-style: dashed;
    border-color: var(--border-light);
}

.provider-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.provider-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    background: var(--bg);
}

.steps {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(-20px);
}

.step.visible {
    opacity: 1;
    transform: translateX(0);
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
}

.step-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.step-code {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: var(--mono);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.step-code code {
    background: none;
    padding: 0;
    color: var(--green);
}

.step-note {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== COMPARISON TABLE ===== */
.comparison {
    background: var(--bg-highlight);
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: var(--surface);
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
    white-space: nowrap;
}

.comparison-table td {
    color: var(--text-dim);
}

.comparison-table td:first-child {
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: rgba(108, 92, 231, 0.03);
}

.highlight-col {
    background: rgba(108, 92, 231, 0.05) !important;
    color: #fff !important;
}

.highlight-col strong {
    color: var(--green);
}

/* ===== INSPIRED BY ===== */
.inspired-by {
    background: var(--bg);
}

.inspired-inline {
    color: var(--accent-light);
    font-weight: 600;
}

.inspired-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.inspired-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 36px;
    transition: all 0.3s;
    position: relative;
}

.inspired-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: var(--radius) var(--radius) 0 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.inspired-card:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

.inspired-card:hover::before {
    opacity: 1;
}

.inspired-logo {
    color: var(--accent-light);
    margin-bottom: 20px;
}

.inspired-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.inspired-tagline {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 16px;
}

.inspired-desc {
    font-size: 0.92rem;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 20px;
}

.inspired-lessons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lesson-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-light);
    background: var(--accent-glow);
    border: 1px solid rgba(108, 92, 231, 0.15);
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.3px;
}

.inspired-cta {
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.06) 0%, rgba(108, 92, 231, 0.02) 100%);
    border: 1px solid rgba(108, 92, 231, 0.12);
    border-radius: var(--radius);
}

.inspired-cta p {
    font-size: 1.05rem;
    color: var(--text-dim);
    line-height: 1.8;
}

.inspired-cta strong {
    color: #fff;
    font-size: 1.15rem;
}

/* ===== INSTALL ===== */
.install {
    background: var(--bg);
}

.install-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}

.install-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    opacity: 0;
    transform: translateY(16px);
}

.install-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.install-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.install-card p {
    color: var(--text-dim);
    font-size: 0.92rem;
}

.install-code {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    overflow-x: auto;
}

.install-code code {
    background: none;
    padding: 0;
    color: var(--green);
    font-size: 0.82rem;
    white-space: nowrap;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-highlight);
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
}

.footer-tagline {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 400;
}

.footer-links {
    display: flex;
    gap: 64px;
    flex-wrap: wrap;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
    margin-bottom: 4px;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ===== ANIMATIONS ===== */
.feature-card,
.provider-card,
.step,
.install-card {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card:nth-child(2) { transition-delay: 0.05s; }
.feature-card:nth-child(3) { transition-delay: 0.1s; }
.feature-card:nth-child(4) { transition-delay: 0.15s; }
.feature-card:nth-child(5) { transition-delay: 0.2s; }
.feature-card:nth-child(6) { transition-delay: 0.25s; }
.feature-card:nth-child(7) { transition-delay: 0.3s; }
.feature-card:nth-child(8) { transition-delay: 0.35s; }
.feature-card:nth-child(9) { transition-delay: 0.4s; }
.feature-card:nth-child(10) { transition-delay: 0.45s; }

.provider-card:nth-child(2) { transition-delay: 0.03s; }
.provider-card:nth-child(3) { transition-delay: 0.06s; }
.provider-card:nth-child(4) { transition-delay: 0.09s; }
.provider-card:nth-child(5) { transition-delay: 0.12s; }
.provider-card:nth-child(6) { transition-delay: 0.15s; }
.provider-card:nth-child(7) { transition-delay: 0.18s; }
.provider-card:nth-child(8) { transition-delay: 0.21s; }
.provider-card:nth-child(9) { transition-delay: 0.24s; }
.provider-card:nth-child(10) { transition-delay: 0.27s; }
.provider-card:nth-child(11) { transition-delay: 0.3s; }
.provider-card:nth-child(12) { transition-delay: 0.33s; }

.step:nth-child(2) { transition-delay: 0.1s; }
.step:nth-child(3) { transition-delay: 0.2s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.97);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .providers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .inspired-grid {
        grid-template-columns: 1fr;
    }

    .install-options {
        grid-template-columns: 1fr;
    }

    .footer-links {
        gap: 32px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 14px;
        font-size: 0.82rem;
    }

    section {
        padding: 72px 0;
    }

    .step {
        flex-direction: column;
        gap: 16px;
    }

    .terminal-body {
        font-size: 0.72rem;
    }
}

@media (max-width: 480px) {
    .providers-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }
}
