/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0a0a0f;
    --bg-card: rgba(15, 15, 25, 0.7);
    --bg-card-hover: rgba(20, 20, 35, 0.85);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(0, 255, 136, 0.3);
    --text: #e0e0e8;
    --text-muted: #7a7a8e;
    --accent-1: #00ff88;
    --accent-2: #00d4ff;
    --accent-3: #8b5cf6;
    --gradient: linear-gradient(135deg, #00ff88, #00d4ff);
    --gradient-bg: linear-gradient(135deg, #00ff8815, #00d4ff15);
    --radius: 16px;
    --radius-sm: 10px;
    --font: 'Inter', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ── Animated Background ─────────────────────────────── */
.bg-grid {
    position: fixed; inset: 0; z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.glow {
    position: fixed; border-radius: 50%; filter: blur(120px);
    pointer-events: none; z-index: 0;
    animation: float 15s ease-in-out infinite;
}
.glow-1 { width: 600px; height: 600px; top: -200px; right: -100px; background: rgba(0,255,136,0.08); }
.glow-2 { width: 500px; height: 500px; bottom: -150px; left: -100px; background: rgba(0,212,255,0.06); animation-delay: -5s; }
.glow-3 { width: 400px; height: 400px; top: 50%; left: 50%; background: rgba(139,92,246,0.05); animation-delay: -10s; }

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

/* ── Navigation ──────────────────────────────────────── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 40px;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}
.nav-scrolled {
    background: rgba(10,10,15,0.85);
    border-bottom-color: var(--border);
}
.nav-brand {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none;
}
.nav-logo { width: 36px; height: 36px; border-radius: 8px; }
.nav-title {
    font-size: 20px; font-weight: 800;
    background: var(--gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
    color: var(--text-muted); text-decoration: none;
    font-size: 14px; font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.btn-nav-cta {
    background: var(--gradient) !important; color: #000 !important;
    padding: 8px 20px !important; border-radius: 8px !important;
    font-weight: 600 !important; font-size: 13px !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}
.btn-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0,255,136,0.3);
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
    padding: 160px 24px 100px;
    max-width: 900px; margin: 0 auto;
}
.hero-badge {
    display: inline-flex; align-items: center;
    padding: 8px 20px; border-radius: 50px;
    background: var(--gradient-bg);
    border: 1px solid rgba(0,255,136,0.15);
    font-size: 13px; font-weight: 500; color: var(--accent-1);
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease;
}
.hero-title {
    font-size: clamp(42px, 7vw, 72px);
    font-weight: 900; line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.1s both;
}
.gradient-text {
    background: var(--gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle {
    font-size: 18px; color: var(--text-muted);
    max-width: 600px; line-height: 1.7;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.2s both;
}
.hero-actions {
    display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px; border-radius: var(--radius-sm);
    font-family: var(--font); font-size: 15px; font-weight: 600;
    text-decoration: none; cursor: pointer; border: none;
    transition: all 0.3s ease;
}
.btn-primary {
    background: var(--gradient); color: #000;
    box-shadow: 0 4px 24px rgba(0,255,136,0.2);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,255,136,0.35);
}
.btn-secondary {
    background: transparent; color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    border-color: var(--border-hover);
    background: rgba(0,255,136,0.05);
}
.btn-large { padding: 18px 36px; font-size: 17px; border-radius: var(--radius); }

/* ── Stats ────────────────────────────────────────────── */
.hero-stats {
    display: flex; align-items: center; gap: 40px;
    animation: fadeInUp 0.6s ease 0.4s both;
}
.stat { text-align: center; }
.stat-value {
    display: block; font-size: 32px; font-weight: 800;
    background: var(--gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ── Sections ─────────────────────────────────────────── */
.section {
    position: relative; z-index: 1;
    padding: 100px 24px; max-width: 1100px; margin: 0 auto;
}
.section-dark { max-width: 100%; background: rgba(0,0,0,0.3); }
.section-dark > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.section-title {
    font-size: clamp(28px, 4vw, 42px); font-weight: 800;
    text-align: center; margin-bottom: 16px; letter-spacing: -1px;
}
.section-subtitle {
    font-size: 16px; color: var(--text-muted);
    text-align: center; max-width: 500px; margin: 0 auto 60px;
}

/* ── Feature Cards ────────────────────────────────────── */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px;
    transition: all 0.4s ease;
    opacity: 0; transform: translateY(20px);
}
.feature-card.visible { opacity: 1; transform: translateY(0); }
.feature-card:hover {
    background: var(--bg-card-hover); border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,255,136,0.08);
}
.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── Platform Cards ───────────────────────────────────── */
.platforms-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.platform-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px; text-align: center;
    transition: all 0.4s ease;
    opacity: 0; transform: translateY(20px);
}
.platform-card.visible { opacity: 1; transform: translateY(0); }
.platform-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,255,136,0.08);
}
.platform-card-special {
    border-color: rgba(139,92,246,0.3);
    background: rgba(139,92,246,0.05);
}
.platform-card-special:hover {
    border-color: rgba(139,92,246,0.5);
    box-shadow: 0 8px 30px rgba(139,92,246,0.1);
}
.platform-name { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.platform-desc { font-size: 13px; color: var(--text-muted); }

/* ── Steps ────────────────────────────────────────────── */
.steps-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px; counter-reset: step;
}
.step-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px;
    position: relative; text-align: center;
    transition: all 0.4s ease;
    opacity: 0; transform: translateY(20px);
}
.step-card.visible { opacity: 1; transform: translateY(0); }
.step-number {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--gradient); color: #000;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 800; margin-bottom: 16px;
}
.step-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.step-card code {
    background: rgba(0,255,136,0.1); color: var(--accent-1);
    padding: 2px 8px; border-radius: 4px; font-size: 12px;
}

/* ── CTA Section ──────────────────────────────────────── */
.cta-section { max-width: 800px; }
.cta-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 24px; padding: 60px 40px; text-align: center;
    position: relative; overflow: hidden;
}
.cta-card::before {
    content: ''; position: absolute; inset: -2px;
    background: var(--gradient); border-radius: 26px;
    z-index: -1; opacity: 0.15;
}
.cta-card h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.cta-card p { font-size: 16px; color: var(--text-muted); margin-bottom: 32px; }
.cta-note { display: block; margin-top: 16px; font-size: 13px; color: var(--text-muted); }

/* ── Footer ───────────────────────────────────────────── */
.footer {
    position: relative; z-index: 1;
    border-top: 1px solid var(--border);
    padding: 32px 40px;
}
.footer-content {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1100px; margin: 0 auto;
}
.footer-brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 16px;
}
.footer-logo { width: 28px; height: 28px; border-radius: 6px; }
.footer-copy { font-size: 13px; color: var(--text-muted); }

/* ── Animations ───────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
    .nav { padding: 12px 20px; }
    .nav-links a:not(.btn-nav-cta) { display: none; }
    .hero { padding: 120px 20px 60px; }
    .hero-stats { gap: 24px; }
    .stat-value { font-size: 24px; }
    .section { padding: 60px 20px; }
    .features-grid { grid-template-columns: 1fr; }
    .platforms-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: 1fr; }
    .cta-card { padding: 40px 24px; }
    .footer-content { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
    .hero-title { letter-spacing: -1px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .platforms-grid { grid-template-columns: 1fr; }
}
