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

:root {
    --purple-400: #A78BFA;
    --purple-500: #8B5CF6;
    --purple-600: #6C5CE7;
    --purple-700: #4834D4;
    --purple-900: #1E1B4B;
    --bg: #09090B;
    --surface: #111114;
    --surface-2: #18181B;
    --border: #27272A;
    --text: #FAFAFA;
    --text-dim: #A1A1AA;
    --radius: 16px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(108, 92, 231, 0.15);
    top: -200px;
    left: -100px;
    animation: orbFloat 25s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(72, 52, 212, 0.1);
    bottom: 10%;
    right: -100px;
    animation: orbFloat 30s ease-in-out infinite reverse;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(167, 139, 250, 0.08);
    top: 50%;
    left: 30%;
    animation: orbFloat 20s ease-in-out infinite 5s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -40px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.95); }
}

/* NAV */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
    font-size: 20px;
}

.logo-icon {
    width: 36px;
    height: 36px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

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

.burger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 100px;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-nav {
    padding: 10px 24px;
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-nav:hover {
    background: var(--purple-600);
    border-color: var(--purple-600);
}

.btn-primary {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--purple-600), var(--purple-700));
    color: white;
    box-shadow: 0 4px 24px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(108, 92, 231, 0.45);
}

.btn-ghost {
    padding: 14px 32px;
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--purple-400);
    color: var(--text);
}

.btn-lg { font-size: 16px; }

.btn-glow {
    animation: btnPulse 3s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 4px 24px rgba(108, 92, 231, 0.3); }
    50% { box-shadow: 0 4px 40px rgba(108, 92, 231, 0.55); }
}

/* HERO */
.hero {
    position: relative;
    z-index: 1;
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--purple-400);
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
    letter-spacing: 0.03em;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--purple-400), #818CF8, var(--purple-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-dim);
    max-width: 480px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* PHONE MOCKUP */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    position: relative;
    z-index: 2;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 40px;
    padding: 12px;
    position: relative;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.05),
        0 20px 60px rgba(0,0,0,0.5),
        0 0 100px rgba(108, 92, 231, 0.1);
    animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

.phone-notch {
    width: 120px;
    height: 28px;
    background: var(--bg);
    border-radius: 0 0 16px 16px;
    margin: 0 auto 16px;
}

.phone-screen {
    padding: 16px;
}

.screen-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 24px;
}

.screen-amount {
    font-size: 36px;
    font-weight: 800;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.screen-label {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 4px;
    margin-bottom: 28px;
}

.screen-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 120px;
    margin-bottom: 24px;
}

.chart-bar {
    flex: 1;
    height: var(--h);
    background: linear-gradient(to top, var(--purple-700), var(--purple-400));
    border-radius: 6px 6px 2px 2px;
    transform: scaleY(0);
    transform-origin: bottom;
    animation: barGrow 0.8s ease-out forwards;
    animation-delay: calc(var(--delay, 0) * 0.1s + 0.8s);
}

@keyframes barGrow {
    to { transform: scaleY(1); }
}

.screen-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.screen-cat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-dim);
}

.cat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.hero-particles {
    position: absolute;
    inset: -40px;
    pointer-events: none;
    z-index: 1;
}

/* SECTIONS */
.section-label {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--purple-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 60px;
    letter-spacing: -0.02em;
}

/* FEATURES */
.features {
    position: relative;
    z-index: 1;
    padding: 120px 0;
}

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

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(108, 92, 231, 0.3);
    box-shadow: 0 8px 40px rgba(108, 92, 231, 0.08);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(108, 92, 231, 0.12);
    color: var(--purple-400);
    margin-bottom: 20px;
}

.feature-icon svg { width: 24px; height: 24px; }
.feature-icon.icon-blue { background: rgba(59,130,246,0.12); color: #60A5FA; }
.feature-icon.icon-green { background: rgba(16,185,129,0.12); color: #34D399; }
.feature-icon.icon-orange { background: rgba(245,158,11,0.12); color: #FBBF24; }
.feature-icon.icon-red { background: rgba(239,68,68,0.12); color: #F87171; }
.feature-icon.icon-cyan { background: rgba(6,182,212,0.12); color: #22D3EE; }

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
}

/* HOW IT WORKS */
.how {
    position: relative;
    z-index: 1;
    padding: 120px 0;
}

.steps {
    max-width: 640px;
    margin: 0 auto;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.3s;
}

.step:hover {
    border-color: rgba(108, 92, 231, 0.3);
}

.step-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--purple-600);
    opacity: 0.3;
    line-height: 1;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.step-content p {
    font-size: 14px;
    color: var(--text-dim);
}

.step-visual {
    width: 64px;
    height: 64px;
}

.step-visual svg {
    width: 100%;
    height: 100%;
}

.step-connector {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

.connector-line {
    width: 2px;
    height: 32px;
    background: linear-gradient(to bottom, var(--purple-600), transparent);
    border-radius: 1px;
}

/* STATS */
.stats-section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.3s;
}

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

.stat-value {
    font-size: 40px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--purple-400), #818CF8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 14px;
    color: var(--text-dim);
    margin-top: 8px;
}

/* CTA */
.cta {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.cta-card {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, rgba(108,92,231,0.1), rgba(72,52,212,0.05));
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(108,92,231,0.15), transparent 70%);
    pointer-events: none;
}

.cta-rabbit {
    width: 100px;
    height: 100px;
    margin: 0 auto 32px;
}

.cta-rabbit-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 20px rgba(108, 92, 231, 0.3));
}

.cta-ear-l {
    transform-origin: 45px 40px;
    animation: earWiggle 3s ease-in-out infinite;
}

.cta-ear-r {
    transform-origin: 75px 40px;
    animation: earWiggle 3s ease-in-out infinite 0.3s;
}

@keyframes earWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-6deg); }
    75% { transform: rotate(4deg); }
}

.cta-card h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
}

.cta-card p {
    font-size: 17px;
    color: var(--text-dim);
    max-width: 480px;
    margin: 0 auto 32px;
    position: relative;
}

/* FOOTER */
.footer {
    position: relative;
    z-index: 1;
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
}

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

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
    font-size: 13px;
    color: var(--text-dim);
    opacity: 0.6;
}

/* ANIMATIONS */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title { font-size: 40px; }
    .hero-desc { margin: 0 auto 40px; }
    .hero-actions { justify-content: center; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .section-title { font-size: 32px; }
    .nav-links { display: none; }
    .btn-nav { display: none; }
    .burger { display: flex; }
}

@media (max-width: 600px) {
    .hero { padding: 120px 0 60px; }
    .hero-title { font-size: 32px; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .phone-frame { width: 240px; height: 480px; }
    .stat-value { font-size: 32px; }
    .cta-card { padding: 60px 24px; }
    .cta-card h2 { font-size: 28px; }
    .step { grid-template-columns: auto 1fr; }
    .step-visual { display: none; }
}
