@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===== CSS Variables / Design System ===== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.35);
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --bg-dark: #0f0f1a;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.08);
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-2: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    --gradient-hero: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 40%, #0f0f1a 100%);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }

/* ===== Animated Background ===== */
.bg-animated {
    position: fixed; inset: 0; z-index: -1;
    background: var(--gradient-hero);
    overflow: hidden;
}
.bg-animated::before,
.bg-animated::after {
    content: ''; position: absolute; border-radius: 50%;
    filter: blur(120px); opacity: 0.15; animation: float 20s ease-in-out infinite;
}
.bg-animated::before {
    width: 600px; height: 600px;
    background: var(--primary);
    top: -10%; left: -5%;
}
.bg-animated::after {
    width: 500px; height: 500px;
    background: #a855f7;
    bottom: -10%; right: -5%;
    animation-delay: -10s; animation-direction: reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -60px) scale(1.1); }
    50% { transform: translate(-30px, 40px) scale(0.95); }
    75% { transform: translate(50px, 20px) scale(1.05); }
}

/* ===== Navigation ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 16px 0;
    background: rgba(15, 15, 26, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}
.navbar.scrolled { background: rgba(15, 15, 26, 0.95); padding: 10px 0; }
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px;
}
.nav-logo .logo-icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--gradient-1); display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: #fff;
}
.nav-logo span { background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; }
.nav-links a { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text-primary); }
.nav-actions { display: flex; gap: 12px; align-items: center; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius-sm);
    font-size: 0.95rem; font-weight: 600; font-family: inherit;
    border: none; cursor: pointer; transition: var(--transition);
    white-space: nowrap;
}
.btn-primary {
    background: var(--gradient-1); color: #fff;
    box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--primary-glow); }
.btn-outline {
    background: transparent; color: var(--text-primary);
    border: 1.5px solid var(--border-color);
}
.btn-outline:hover { border-color: var(--primary-light); background: var(--bg-card); }
.btn-ghost { background: transparent; color: var(--text-secondary); padding: 10px 18px; }
.btn-ghost:hover { color: var(--text-primary); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; border-radius: var(--radius); }
.btn-accent {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff; box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}
.btn-accent:hover { transform: translateY(-2px); }

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 120px 24px 80px; position: relative; text-align: center;
}
.hero-content { max-width: 800px; margin: 0 auto; position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px; border-radius: 100px;
    background: var(--bg-card); border: 1px solid var(--border-color);
    font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 28px;
    animation: fadeInDown 0.8s ease;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 {
    font-size: 4rem; font-weight: 900; line-height: 1.1; letter-spacing: -1.5px;
    margin-bottom: 24px; animation: fadeInUp 0.8s ease 0.1s both;
}
.hero h1 .gradient-text {
    background: var(--gradient-1); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 1.2rem; color: var(--text-secondary); max-width: 600px;
    margin: 0 auto 40px; line-height: 1.7; animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; animation: fadeInUp 0.8s ease 0.3s both; flex-wrap: wrap; }
.hero-stats {
    display: flex; gap: 48px; justify-content: center; margin-top: 60px;
    animation: fadeInUp 0.8s ease 0.4s both;
}
.hero-stats .stat { text-align: center; }
.hero-stats .stat-value { font-size: 2rem; font-weight: 800; color: var(--text-primary); }
.hero-stats .stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ===== Floating Orbs ===== */
.floating-orb {
    position: absolute; border-radius: 50%; pointer-events: none;
    background: var(--gradient-1); filter: blur(80px); opacity: 0.08;
}
.orb-1 { width: 300px; height: 300px; top: 20%; left: 10%; animation: float 15s ease-in-out infinite; }
.orb-2 { width: 200px; height: 200px; bottom: 20%; right: 15%; animation: float 18s ease-in-out infinite reverse; }

/* ===== Section Styles ===== */
.section { padding: 100px 24px; position: relative; }
.section-container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 {
    font-size: 2.8rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 16px;
}
.section-header p { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* ===== Features Section ===== */
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 36px 28px;
    transition: var(--transition); position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--gradient-1); opacity: 0; transition: var(--transition);
}
.feature-card:hover { background: var(--bg-card-hover); transform: translateY(-4px); border-color: rgba(99, 102, 241, 0.2); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: var(--bg-card-hover); display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 20px; color: var(--primary-light);
}
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* ===== Pricing Section ===== */
.pricing-card {
    max-width: 480px; margin: 0 auto;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, var(--bg-card) 100%);
    border: 1.5px solid rgba(99, 102, 241, 0.2);
    border-radius: 24px; padding: 48px 40px; text-align: center;
    position: relative; overflow: hidden;
}
.pricing-card::before {
    content: ''; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
    width: 200px; height: 3px; background: var(--gradient-1); border-radius: 0 0 4px 4px;
}
.pricing-badge {
    display: inline-flex; padding: 6px 16px; border-radius: 100px;
    background: rgba(245, 158, 11, 0.15); color: var(--accent);
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 24px;
}
.pricing-amount {
    display: flex; align-items: baseline; justify-content: center; gap: 4px; margin-bottom: 8px;
}
.pricing-amount .currency { font-size: 1.8rem; font-weight: 700; color: var(--text-secondary); }
.pricing-amount .value { font-size: 4.5rem; font-weight: 900; letter-spacing: -2px; }
.pricing-period { color: var(--text-muted); font-size: 1rem; margin-bottom: 32px; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 36px; }
.pricing-features li {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 0; font-size: 0.95rem; color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li .check {
    width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
    background: rgba(34, 197, 94, 0.15); color: #22c55e;
    display: flex; align-items: center; justify-content: center; font-size: 0.75rem;
}

/* ===== Footer ===== */
.footer {
    padding: 48px 24px 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}
.footer p { color: var(--text-muted); font-size: 0.85rem; }

/* ===== Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.4rem; }
    .hero p { font-size: 1rem; }
    .features-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .nav-links { display: none; }
    .pricing-card { padding: 36px 24px; }
    .section-header h2 { font-size: 2rem; }
}

/* ===== Auth Page Styles ===== */
.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 40px 24px; position: relative;
}
.auth-card {
    width: 100%; max-width: 460px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 24px; padding: 48px 40px;
    backdrop-filter: blur(20px);
    position: relative;
}
.auth-card h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; text-align: center; }
.auth-card .subtitle { color: var(--text-secondary); text-align: center; margin-bottom: 32px; font-size: 0.95rem; }

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: 0.85rem; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 8px;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary); font-family: inherit; font-size: 0.95rem;
    transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-group input::placeholder { color: var(--text-muted); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.alert {
    padding: 12px 16px; border-radius: var(--radius-sm);
    margin-bottom: 20px; font-size: 0.9rem;
}
.alert-error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #fca5a5; }
.alert-success { background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.3); color: #86efac; }

.auth-footer { text-align: center; margin-top: 24px; font-size: 0.9rem; color: var(--text-muted); }
.auth-footer a:hover { text-decoration: underline; }

.auth-footer a:hover { text-decoration: underline; }
