/* ===== Design Tokens ===== */
:root { 
    --primary: #3b82f6; 
    --primary-dark: #1d4ed8; 
    --accent: #6366f1;
    --accent-2: #8b5cf6;
    --success: #10b981;
    --bg: #06080f; 
    --bg-elevated: #0d1117;
    --card-bg: rgba(15, 23, 42, 0.6); 
    --glass: rgba(255, 255, 255, 0.02);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Inter', sans-serif; 
    background: var(--bg); 
    color: var(--text-primary); 
    overflow-x: hidden; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Smooth Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== Navbar ===== */
.home-nav { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    padding: 18px 6%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    z-index: 1000; 
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(6, 8, 15, 0.7);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.4s var(--transition-smooth);
}
.home-nav.scrolled {
    padding: 12px 6%;
    background: rgba(6, 8, 15, 0.92);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.logo { 
    font-size: 20px; 
    font-weight: 900; 
    color: #fff; 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    letter-spacing: -0.3px;
    transition: transform 0.3s var(--transition-smooth);
}
.logo:hover { transform: scale(1.03); }
.logo i { 
    color: var(--primary); 
    font-size: 22px; 
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.5)); 
}
.nav-links { display: flex; gap: 12px; align-items: center; }

/* ===== Buttons ===== */
.btn-primary { 
    background: linear-gradient(135deg, var(--primary), var(--accent)); 
    color: white; 
    padding: 14px 28px; 
    border-radius: var(--radius-md); 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 14px;
    transition: all 0.4s var(--transition-smooth); 
    box-shadow: 0 8px 24px -6px rgba(59, 130, 246, 0.4); 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    border: none; 
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}
.btn-primary:hover::after { transform: translateX(100%); }
.btn-primary:hover { 
    transform: translateY(-3px) scale(1.02); 
    box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.5); 
}
.btn-primary:active { transform: translateY(-1px) scale(0.98); }

.btn-outline { 
    background: var(--glass); 
    color: white; 
    padding: 14px 28px; 
    border-radius: var(--radius-md); 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 14px;
    border: 1px solid rgba(255,255,255,0.1); 
    transition: all 0.4s var(--transition-smooth); 
    display: inline-flex; 
    align-items: center; 
    gap: 8px;
    cursor: pointer;
    backdrop-filter: blur(8px);
}
.btn-outline:hover { 
    background: rgba(255,255,255,0.06); 
    border-color: var(--primary); 
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

/* ===== Hero Section ===== */
.hero { 
    padding: 160px 6% 100px; 
    display: grid; 
    grid-template-columns: 1.1fr 1fr; 
    align-items: center; 
    gap: 80px; 
    position: relative; 
    min-height: 100vh;
    overflow: hidden;
}

/* Ambient gradient orbs */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    filter: blur(80px);
    animation: orbFloat1 8s ease-in-out infinite;
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    filter: blur(80px);
    animation: orbFloat2 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 30px) scale(1.1); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -40px) scale(1.05); }
}

/* Grid pattern overlay */
.hero-grid-pattern {
    position: absolute;
    inset: 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;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
    pointer-events: none;
}

.hero-text { z-index: 10; }

.badge-intro { 
    background: rgba(59, 130, 246, 0.08); 
    color: var(--primary); 
    padding: 8px 18px; 
    border-radius: 100px; 
    font-size: 12px; 
    font-weight: 700; 
    margin-bottom: 28px; 
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(59, 130, 246, 0.15); 
    text-transform: uppercase; 
    letter-spacing: 1.2px;
    animation: badgePulse 3s ease-in-out infinite;
}
.badge-intro::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.1); }
    50% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
}
@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.6); }
}

.hero-text h1 { 
    font-size: clamp(38px, 5.5vw, 68px); 
    font-weight: 900; 
    line-height: 1.06; 
    margin-bottom: 24px; 
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 40%, rgba(148, 163, 184, 0.8) 100%); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p { 
    font-size: 17px; 
    color: var(--text-secondary); 
    margin-bottom: 40px; 
    line-height: 1.7; 
    max-width: 540px;
    letter-spacing: 0.1px;
}

.btn-group { 
    display: flex; 
    gap: 14px; 
    flex-wrap: wrap;
    margin-bottom: 56px;
}

/* ===== Stats Bar ===== */
.stats-bar { 
    display: flex; 
    gap: 48px;
}
.stat-item { position: relative; }
.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.1), transparent);
}
.stat-item .val { 
    font-size: 32px; 
    font-weight: 900; 
    color: #fff;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-item .lbl { 
    font-size: 11px; 
    color: var(--text-muted); 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    font-weight: 700;
    margin-top: 4px; 
}

/* ===== 3D Card Mockup ===== */
.hero-visual { 
    position: relative; 
    perspective: 1200px; 
    display: flex; 
    justify-content: center; 
    z-index: 10;
}

.mockup-card { 
    width: 380px; 
    height: 240px; 
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)); 
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 20px; 
    border: 1px solid rgba(255,255,255,0.12); 
    transform: rotateY(-20deg) rotateX(10deg); 
    box-shadow: 
        40px 40px 80px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.1);
    animation: cardFloat 7s ease-in-out infinite; 
    position: relative; 
    padding: 24px; 
    overflow: hidden;
}

.mockup-card::before { 
    content: ''; 
    position: absolute; 
    top: -50%; 
    left: -100%; 
    width: 60%; 
    height: 200%; 
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    transform: rotate(25deg); 
    animation: shimmer 5s infinite ease-in-out;
}

.mockup-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), transparent 50%, rgba(99, 102, 241, 0.03));
    pointer-events: none;
}

.mockup-line { 
    height: 8px; 
    background: rgba(255,255,255,0.06); 
    border-radius: 4px; 
    margin-bottom: 12px;
    position: relative;
}
.mockup-photo { 
    width: 56px; 
    height: 72px; 
    background: rgba(255,255,255,0.06); 
    border-radius: 8px; 
    margin-bottom: 15px;
}

/* Floating decoration orbs around the card */
.card-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.card-orb-1 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent);
    top: -30px;
    right: -20px;
    animation: orbBounce 4s ease-in-out infinite;
}
.card-orb-2 {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent);
    bottom: -15px;
    left: -15px;
    animation: orbBounce 5s ease-in-out infinite 1s;
}
.card-orb-3 {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent);
    top: 50%;
    right: -25px;
    animation: orbBounce 6s ease-in-out infinite 0.5s;
}

@keyframes cardFloat { 
    0%, 100% { transform: rotateY(-20deg) rotateX(10deg) translateY(0); } 
    50% { transform: rotateY(-15deg) rotateX(6deg) translateY(-18px); } 
}
@keyframes shimmer { 
    0%, 100% { left: -100%; opacity: 0; } 
    50% { left: 100%; opacity: 1; } 
}
@keyframes orbBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.15); }
}

/* ===== Features Section ===== */
.features { 
    padding: 120px 6%; 
    position: relative;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.04) 0%, transparent 60%);
}
.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

.section-label { 
    text-align: center; 
    margin-bottom: 70px; 
}
.section-label h2 { 
    font-size: 40px; 
    font-weight: 900; 
    margin-bottom: 16px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff, rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-label p { 
    color: var(--text-muted); 
    font-size: 17px;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card { 
    background: var(--card-bg); 
    border: 1px solid var(--border-subtle); 
    padding: 40px 36px; 
    border-radius: var(--radius-xl); 
    transition: all 0.5s var(--transition-smooth); 
    position: relative; 
    overflow: hidden;
    cursor: default;
}
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59, 130, 246, 0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover { 
    border-color: rgba(59, 130, 246, 0.3); 
    transform: translateY(-8px); 
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.4);
}

.icon-box { 
    width: 56px; 
    height: 56px; 
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(99, 102, 241, 0.12)); 
    color: var(--primary); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: var(--radius-md); 
    margin-bottom: 24px; 
    font-size: 22px; 
    border: 1px solid rgba(59, 130, 246, 0.15);
    transition: all 0.4s var(--transition-smooth);
}
.feature-card:hover .icon-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(99, 102, 241, 0.2));
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 8px 24px -6px rgba(59, 130, 246, 0.3);
}

.feature-card h3 { 
    font-size: 20px; 
    font-weight: 700; 
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}
.feature-card p { 
    color: var(--text-secondary); 
    font-size: 14px; 
    line-height: 1.7; 
}

/* ===== How It Works Section ===== */
.how-it-works {
    padding: 120px 6%;
    position: relative;
}
.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

/* Connector line */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 44px;
    left: calc(16.67% + 28px);
    right: calc(16.67% + 28px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-2));
    opacity: 0.3;
    z-index: 0;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 1;
}
.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-weight: 900;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px -6px rgba(59, 130, 246, 0.4);
    transition: all 0.4s var(--transition-smooth);
}
.step-card:hover .step-number {
    transform: scale(1.15);
    box-shadow: 0 12px 32px -6px rgba(59, 130, 246, 0.5);
}
.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}
.step-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    max-width: 260px;
    margin: 0 auto;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 120px 6%;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}
.cta-box {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(99, 102, 241, 0.06));
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-xl);
    padding: 80px 60px;
    position: relative;
    overflow: hidden;
}
.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.1), transparent 60%);
    pointer-events: none;
}
.cta-box h2 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -0.8px;
}
.cta-box p {
    color: var(--text-secondary);
    font-size: 17px;
    margin-bottom: 36px;
    line-height: 1.6;
}

/* ===== Footer ===== */
footer { 
    padding: 48px 6%; 
    border-top: 1px solid var(--border-subtle); 
    text-align: center; 
    color: var(--text-muted); 
    font-size: 13px;
    background: rgba(0,0,0,0.3);
}
footer .footer-brand {
    margin-bottom: 20px;
}
footer .footer-brand span {
    font-weight: 800;
    color: #fff;
    font-size: 17px;
}
footer .footer-links {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 24px;
}
footer .footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}
footer .footer-links a:hover {
    color: var(--primary);
}
footer .footer-links a.support-link {
    color: var(--primary);
    font-weight: 600;
}

/* ===== Particle canvas ===== */
#particle-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .hero { 
        grid-template-columns: 1fr; 
        text-align: center; 
        padding: 140px 6% 80px;
        gap: 60px;
    }
    .hero-text p { margin: 0 auto 40px; }
    .hero-visual { display: none; }
    .btn-group { flex-direction: column; width: 100%; align-items: center; }
    .btn-group .btn-primary,
    .btn-group .btn-outline { width: 100%; max-width: 320px; justify-content: center; }
    .stats-bar { justify-content: center; }
    .steps-grid { grid-template-columns: 1fr; gap: 40px; }
    .steps-grid::before { display: none; }
    .section-label h2 { font-size: 30px; }
    .cta-box { padding: 50px 30px; }
    .cta-box h2 { font-size: 28px; }
}

@media (max-width: 600px) {
    .hero { padding: 120px 5% 60px; }
    .hero-text h1 { font-size: 32px; letter-spacing: -0.8px; }
    .hero-text p { font-size: 15px; }
    .stats-bar { gap: 28px; }
    .stat-item .val { font-size: 24px; }
    .nav-links .btn-outline { display: none; }
    .features { padding: 80px 5%; }
    .features-grid { grid-template-columns: 1fr; }
    .how-it-works { padding: 80px 5%; }
}
