/* ============ RESET & BASE ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a1a;
    color: #e0e0f0;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============ AMBIENT BACKGROUND ============ */
.ambient-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.orb {
    position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.25;
    animation: orbFloat 20s ease-in-out infinite;
}
.orb-1 { width: 500px; height: 500px; background: #6C5CE7; top: -150px; left: -150px; }
.orb-2 { width: 400px; height: 400px; background: #00B4D8; bottom: -100px; right: -100px; animation-delay: -7s; }
.orb-3 { width: 300px; height: 300px; background: #fd79a8; top: 40%; left: 60%; animation-delay: -14s; }
.orb-4 { width: 250px; height: 250px; background: #44ddaa; top: 70%; left: 10%; animation-delay: -10s; }
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -50px) scale(1.08); }
    66% { transform: translate(-30px, 40px) scale(0.92); }
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 28px;
    background: rgba(10, 10, 26, 0.7); backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
    background: rgba(10, 10, 26, 0.92);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo { width: 36px; height: 36px; object-fit: contain; animation: logoPulse 3s ease-in-out infinite; }
@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 6px rgba(108,92,231,0.4)); }
    50% { filter: drop-shadow(0 0 18px rgba(108,92,231,0.65)); }
}
.nav-brand-name {
    font-size: 20px; font-weight: 800;
    background: linear-gradient(135deg, #6C5CE7, #00B4D8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-login {
    padding: 9px 22px; border-radius: 12px; font-size: 13px; font-weight: 600;
    color: #c0b0ff; background: rgba(108,92,231,0.12);
    border: 1px solid rgba(108,92,231,0.25);
    transition: all 0.3s;
}
.btn-login:hover {
    background: rgba(108,92,231,0.22); border-color: rgba(108,92,231,0.5);
    transform: translateY(-1px); box-shadow: 0 4px 16px rgba(108,92,231,0.2);
}
.btn-register {
    padding: 9px 22px; border-radius: 12px; font-size: 13px; font-weight: 600;
    color: #fff; background: linear-gradient(135deg, #6C5CE7, #00B4D8);
    box-shadow: 0 4px 16px rgba(108,92,231,0.3);
    transition: all 0.3s; position: relative; overflow: hidden;
}
.btn-register::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.btn-register:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(108,92,231,0.45); }
.btn-register:hover::after { opacity: 1; }
.btn-register:active { transform: translateY(0) scale(0.97); }

/* ============ HERO SECTION ============ */
.hero {
    position: relative; z-index: 1;
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 120px 28px 80px; text-align: center;
}
.hero-content { max-width: 720px; animation: fadeSlideUp 0.8s ease-out; }
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px; border-radius: 50px; font-size: 12px; font-weight: 600;
    background: rgba(108,92,231,0.12); border: 1px solid rgba(108,92,231,0.25);
    color: #c0b0ff; margin-bottom: 28px; letter-spacing: 0.5px;
    animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(108,92,231,0.15); }
    50% { box-shadow: 0 0 0 8px rgba(108,92,231,0); }
}
.hero-badge i { font-size: 11px; }
.hero-title {
    font-size: clamp(36px, 6vw, 64px); font-weight: 900; line-height: 1.1;
    margin-bottom: 20px; letter-spacing: -1px;
}
.hero-title .gradient-text {
    background: linear-gradient(135deg, #6C5CE7, #00B4D8, #44ddaa);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 4s ease-in-out infinite;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}
.hero-subtitle {
    font-size: clamp(15px, 2vw, 18px); color: #8888aa; max-width: 520px;
    margin: 0 auto 36px; font-weight: 400; line-height: 1.7;
}
.hero-buttons { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.btn-hero-primary {
    padding: 14px 36px; border-radius: 14px; font-size: 15px; font-weight: 700;
    color: #fff; background: linear-gradient(135deg, #6C5CE7, #00B4D8);
    box-shadow: 0 6px 28px rgba(108,92,231,0.4);
    display: inline-flex; align-items: center; gap: 10px;
    transition: all 0.3s; position: relative; overflow: hidden;
}
.btn-hero-primary::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(108,92,231,0.5); }
.btn-hero-primary:hover::after { opacity: 1; }
.btn-hero-primary:active { transform: scale(0.97); }
.btn-hero-secondary {
    padding: 14px 36px; border-radius: 14px; font-size: 15px; font-weight: 600;
    color: #c0b0ff; background: rgba(108,92,231,0.1);
    border: 1px solid rgba(108,92,231,0.3);
    display: inline-flex; align-items: center; gap: 10px;
    transition: all 0.3s;
}
.btn-hero-secondary:hover {
    background: rgba(108,92,231,0.2); border-color: rgba(108,92,231,0.5);
    transform: translateY(-3px); box-shadow: 0 8px 28px rgba(108,92,231,0.15);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    color: #555570; font-size: 11px; font-weight: 500; letter-spacing: 1px;
    animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-indicator .scroll-line {
    width: 1px; height: 28px;
    background: linear-gradient(to bottom, #6C5CE7, transparent);
}
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 0.5; }
}

/* ============ FEATURES SECTION ============ */
.features {
    position: relative; z-index: 1;
    padding: 80px 28px; max-width: 1100px; margin: 0 auto;
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; color: #6C5CE7;
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 14px;
}
.section-title {
    font-size: clamp(26px, 4vw, 40px); font-weight: 800; margin-bottom: 14px;
}
.section-desc { font-size: 15px; color: #8888aa; max-width: 500px; margin: 0 auto; }

.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card {
    position: relative; padding: 36px 28px; border-radius: 20px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
    backdrop-filter: blur(10px); overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    animation: cardReveal 0.6s ease-out both;
}
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
@keyframes cardReveal {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(108,92,231,0.3);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    border-radius: 20px 20px 0 0; opacity: 0;
    transition: opacity 0.4s;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:nth-child(1)::before { background: linear-gradient(90deg, #6C5CE7, #00B4D8); }
.feature-card:nth-child(2)::before { background: linear-gradient(90deg, #44ddaa, #00B4D8); }
.feature-card:nth-child(3)::before { background: linear-gradient(90deg, #ff9f43, #fd79a8); }

.feature-card .card-glow {
    position: absolute; top: -60%; left: -60%; width: 220%; height: 220%;
    border-radius: 50%; opacity: 0; transition: opacity 0.5s; pointer-events: none;
}
.feature-card:hover .card-glow { opacity: 1; }
.feature-card:nth-child(1) .card-glow { background: radial-gradient(circle, rgba(108,92,231,0.06), transparent 55%); }
.feature-card:nth-child(2) .card-glow { background: radial-gradient(circle, rgba(68,221,170,0.06), transparent 55%); }
.feature-card:nth-child(3) .card-glow { background: radial-gradient(circle, rgba(255,159,67,0.06), transparent 55%); }

.feature-icon {
    width: 56px; height: 56px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 22px; position: relative; z-index: 1;
    transition: transform 0.4s;
}
.feature-card:hover .feature-icon { transform: scale(1.12) rotate(-5deg); }
.feature-icon.purple { background: rgba(108,92,231,0.15); color: #6C5CE7; }
.feature-icon.teal { background: rgba(68,221,170,0.15); color: #44ddaa; }
.feature-icon.gold { background: rgba(255,159,67,0.15); color: #ff9f43; }

.feature-title {
    font-size: 20px; font-weight: 700; margin-bottom: 10px; position: relative; z-index: 1;
}
.feature-desc {
    font-size: 14px; color: #8888aa; line-height: 1.7; position: relative; z-index: 1;
}
.feature-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; color: #6C5CE7; margin-top: 18px;
    position: relative; z-index: 1; transition: gap 0.3s, color 0.3s;
}
.feature-link:hover { gap: 10px; color: #00B4D8; }

/* ============ STATS SECTION ============ */
.stats {
    position: relative; z-index: 1;
    padding: 60px 28px; max-width: 900px; margin: 0 auto;
}
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stat-card {
    text-align: center; padding: 28px 16px; border-radius: 18px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.3s, border-color 0.3s;
}
.stat-card:hover { transform: translateY(-4px); border-color: rgba(108,92,231,0.25); }
.stat-value {
    font-size: 28px; font-weight: 800;
    background: linear-gradient(135deg, #6C5CE7, #00B4D8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 6px;
}
.stat-label { font-size: 12px; color: #8888aa; font-weight: 500; }

/* ============ TRUST SECTION ============ */
.trust {
    position: relative; z-index: 1;
    padding: 60px 28px 40px; max-width: 800px; margin: 0 auto; text-align: center;
}
.trust-badges {
    display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap;
    margin-top: 28px;
}
.trust-badge {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 20px; border-radius: 14px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
    font-size: 13px; font-weight: 500; color: #aab;
    transition: all 0.3s;
}
.trust-badge:hover { border-color: rgba(108,92,231,0.3); transform: translateY(-2px); }
.trust-badge i { font-size: 18px; color: #44ddaa; }

/* ============ CTA SECTION ============ */
.cta {
    position: relative; z-index: 1;
    padding: 80px 28px; max-width: 800px; margin: 0 auto; text-align: center;
}
.cta-box {
    padding: 56px 40px; border-radius: 24px;
    background: linear-gradient(135deg, rgba(108,92,231,0.12), rgba(0,180,216,0.08));
    border: 1px solid rgba(108,92,231,0.2);
    position: relative; overflow: hidden;
}
.cta-box::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.03) 50%, transparent 60%);
    background-size: 250% 100%; animation: shineSwipe 5s ease-in-out infinite;
}
@keyframes shineSwipe {
    0% { background-position: 200% 0; }
    50% { background-position: -50% 0; }
    100% { background-position: 200% 0; }
}
.cta-title { font-size: clamp(24px, 4vw, 34px); font-weight: 800; margin-bottom: 14px; position: relative; }
.cta-desc { font-size: 15px; color: #8888aa; margin-bottom: 30px; position: relative; }
.cta-buttons { display: flex; align-items: center; justify-content: center; gap: 14px; position: relative; flex-wrap: wrap; }

/* ============ FOOTER ============ */
.footer {
    position: relative; z-index: 1;
    padding: 32px 28px; text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 10px; }
.footer-logo { width: 24px; height: 24px; object-fit: contain; }
.footer-name {
    font-size: 16px; font-weight: 700;
    background: linear-gradient(135deg, #6C5CE7, #00B4D8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-text { font-size: 12px; color: #555570; }

/* ============ PARTICLE CANVAS ============ */
#particleCanvas {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.4;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .navbar { padding: 14px 18px; }
    .nav-brand-name { font-size: 17px; }
    .btn-login, .btn-register { padding: 8px 16px; font-size: 12px; }
    .hero { padding: 110px 20px 60px; min-height: 90vh; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
    .features { padding: 50px 18px; }
    .features-grid { grid-template-columns: 1fr; gap: 16px; }
    .feature-card { padding: 28px 22px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-card { padding: 22px 14px; }
    .stat-value { font-size: 24px; }
    .trust-badges { gap: 12px; }
    .trust-badge { padding: 10px 14px; font-size: 12px; }
    .cta-box { padding: 40px 22px; }
    .cta-buttons { flex-direction: column; width: 100%; }
    .cta-buttons .btn-hero-primary,
    .cta-buttons .btn-hero-secondary { width: 100%; justify-content: center; }
    .scroll-indicator { display: none; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1025px) {
    .navbar { padding: 16px 48px; }
    .hero { padding: 140px 48px 100px; }
    .features { padding: 100px 48px; }
}
