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

:root {
    --indigo-400: #818CF8;
    --indigo-500: #6366F1;
    --indigo-600: #4F46E5;
    --indigo-700: #4338CA;
    --indigo-900: #312E81;
    --bg: #07070A;
    --surface: #0F0F14;
    --surface-2: #16161D;
    --border: #23232E;
    --text: #F8F8FC;
    --text-dim: #9898AC;
    --radius: 16px;
    --green: #34D399;
    --red: #F87171;
}

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.025;
    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(120px);
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(99, 102, 241, 0.12);
    top: -200px;
    left: -100px;
    animation: orbDrift 30s ease-in-out infinite;
}

.orb-2 {
    width: 450px;
    height: 450px;
    background: rgba(79, 70, 229, 0.08);
    bottom: 5%;
    right: -150px;
    animation: orbDrift 35s ease-in-out infinite reverse;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: rgba(129, 140, 248, 0.06);
    top: 45%;
    left: 25%;
    animation: orbDrift 22s ease-in-out infinite 3s;
}

@keyframes orbDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(60px, -30px) scale(1.08); }
    50% { transform: translate(-20px, 40px) scale(0.96); }
    75% { transform: translate(30px, -50px) scale(1.04); }
}

/* 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(7, 7, 10, 0.85);
    backdrop-filter: blur(24px);
    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(--indigo-600);
    border-color: var(--indigo-600);
}

.btn-primary {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--indigo-500), var(--indigo-700));
    color: white;
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(99, 102, 241, 0.5);
}

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

.btn-ghost:hover {
    border-color: var(--indigo-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(99, 102, 241, 0.3); }
    50% { box-shadow: 0 4px 44px rgba(99, 102, 241, 0.6); }
}

/* 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(--indigo-400);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 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.08;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--indigo-400), #A5B4FC, var(--indigo-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: 570px;
    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.04),
        0 24px 64px rgba(0,0,0,0.55),
        0 0 120px rgba(99, 102, 241, 0.08);
    animation: phoneHover 7s ease-in-out infinite;
}

@keyframes phoneHover {
    0%, 100% { transform: translateY(0) rotate(-0.5deg); }
    50% { transform: translateY(-14px) rotate(0.5deg); }
}

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

.phone-screen {
    padding: 14px;
}

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

.screen-savings {
    text-align: center;
    margin-bottom: 16px;
}

.savings-amount {
    font-size: 44px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--green), #6EE7B7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.savings-label {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 500;
    margin-top: 4px;
}

.screen-chart-wrap {
    position: relative;
    margin-bottom: 16px;
    background: var(--surface-2);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 12px 8px 8px;
}

.price-chart {
    width: 100%;
    height: 60px;
    display: block;
}

.chart-line {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: drawLine 2s ease-out 0.8s forwards;
}

.chart-area {
    opacity: 0;
    animation: fadeArea 1s ease-out 2s forwards;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

@keyframes fadeArea {
    to { opacity: 1; }
}

.chart-dot {
    opacity: 0;
    animation: dotAppear 0.4s ease-out 2.6s forwards;
}

.chart-dot-ring {
    opacity: 0;
    animation: dotRingPulse 2s ease-in-out 2.6s infinite;
}

@keyframes dotAppear {
    to { opacity: 1; }
}

@keyframes dotRingPulse {
    0% { opacity: 0; r: 4; }
    20% { opacity: 0.5; }
    100% { opacity: 0; r: 14; }
}

.chart-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(52, 211, 153, 0.15);
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    opacity: 0;
    animation: badgePop 0.4s ease-out 2.8s forwards;
}

@keyframes badgePop {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

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

.screen-product {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px;
    background: var(--surface-2);
    border-radius: 10px;
    border: 1px solid var(--border);
    opacity: 0;
    transform: translateY(10px);
    animation: productSlide 0.5s ease-out forwards;
    animation-delay: calc(var(--delay, 0) * 0.15s + 3s);
}

@keyframes productSlide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.product-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-store {
    font-size: 9px;
    color: var(--text-dim);
}

.product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.price-now {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
}

.price-badge {
    font-size: 9px;
    font-weight: 700;
    color: var(--green);
    background: rgba(52, 211, 153, 0.12);
    padding: 1px 5px;
    border-radius: 4px;
}

.price-badge.neutral {
    color: var(--text-dim);
    background: rgba(152, 152, 172, 0.1);
}

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

/* SECTIONS */
.section-label {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--indigo-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(-6px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 12px 48px rgba(99, 102, 241, 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--indigo-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(251,146,60,0.12); color: #FB923C; }
.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, box-shadow 0.3s;
}

.step:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.06);
}

.step-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--indigo-500);
    opacity: 0.25;
    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(--indigo-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, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.06);
}

.stat-value {
    font-size: 40px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--indigo-400), #A5B4FC);
    -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(99,102,241,0.08), rgba(79,70,229,0.04));
    border: 1px solid rgba(99, 102, 241, 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(99,102,241,0.12), transparent 70%);
    pointer-events: none;
}

.cta-icon {
    width: 110px;
    height: 110px;
    margin: 0 auto 32px;
}

.cta-icon-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 24px rgba(99, 102, 241, 0.3));
}

.cta-ring-outer {
    animation: ctaRingPulse 4s ease-in-out infinite;
}

.cta-ring-inner {
    animation: ctaRingPulse 4s ease-in-out infinite 1s;
}

@keyframes ctaRingPulse {
    0%, 100% { opacity: 0.08; transform: scale(1); }
    50% { opacity: 0.2; transform: scale(1.05); }
}

.cta-pulse {
    stroke-dasharray: 300;
    animation: ctaPulseDraw 3s ease-in-out infinite;
}

@keyframes ctaPulseDraw {
    0% { stroke-dashoffset: 300; opacity: 0.3; }
    50% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: -300; opacity: 0.3; }
}

.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: 490px; }
    .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; }
    .savings-amount { font-size: 36px; }
}
