:root {
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --secondary: #8b5cf6;
    --accent: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --bg-darker: #020617;
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #cbd5e1;
    --border-light: rgba(255, 255, 255, 0.1);
    --border-lighter: rgba(255, 255, 255, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);
    
    --glow-primary: 0 0 20px rgba(59, 130, 246, 0.4);
    --glow-accent: 0 0 20px rgba(16, 185, 129, 0.4);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-light);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

.btn-glow {
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
}

/* Premium Card */
.premium-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    z-index: 1;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    z-index: 1002;
}

.logo-icon {
    color: var(--primary);
}

.text-gradient {
    background: linear-gradient(to right, #60a5fa, #3b82f6, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mobile-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    z-index: 1002;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mobile-auth-buttons {
    display: none;
}

.nav-login {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
}

.nav-login:hover { color: var(--primary); }

.nav-signup {
    text-decoration: none;
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--glow-primary);
}

.nav-signup:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .nav-container { padding: 0 1.5rem; }
    .mobile-toggle-btn { display: block; }
    .auth-buttons { display: none; }
    .nav-links {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100vh;
        background: #0f172a;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 2rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1001;
        opacity: 0;
        pointer-events: none;
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .nav-link { font-size: 1.5rem; width: 100%; text-align: center; }
    .nav-link::after { display: none; }
    .mobile-auth-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        margin-top: 2rem;
    }
    .mobile-auth-buttons a {
        width: 100%;
        text-align: center;
        padding: 1rem;
        font-size: 1.1rem;
    }
    .mobile-auth-buttons .nav-login {
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: var(--radius-sm);
    }
}

/* Landing Specific */
.landing-container {
    min-height: 100vh;
    padding-top: 80px;
}

/* Ticker Tape */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background-color: #020617;
    border-bottom: 1px solid var(--border-light);
    padding: 0.5rem 0;
    position: relative;
    z-index: 10;
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: tickerSlide 40s linear infinite;
}

.ticker:hover { animation-play-state: paused; }

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-pair { color: #94a3b8; }
.ticker-price { color: #f8fafc; }
.ticker-pos { color: #22c55e; }
.ticker-neg { color: #ef4444; }

@keyframes tickerSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 6rem;
    overflow: hidden;
}

.hero-glow-1 {
    position: absolute;
    top: -20%; left: -10%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-glow-2 {
    position: absolute;
    top: 20%; right: -20%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 1.5rem;
    margin-bottom: 4rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) { .hero-title { font-size: 3rem; } }

.hero-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.hero-cta { display: flex; justify-content: center; gap: 1.5rem; }

/* Mockup Visual */
.hero-visual {
    position: relative;
    width: 90%;
    max-width: 1200px;
    z-index: 2;
    margin-bottom: 4rem;
}

.mockup-container {
    background: #020617;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.mockup-header {
    background: #0f172a;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mac-buttons { display: flex; gap: 8px; }
.mac-buttons span { width: 12px; height: 12px; border-radius: 50%; }

.mockup-url {
    flex-grow: 1;
    text-align: center;
    font-family: monospace;
    color: #64748b;
    font-size: 0.85rem;
}

.mockup-img { width: 100%; height: auto; display: block; opacity: 0.9; }

@keyframes float1 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes float2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(20px); } }

.floating-widget-1 { position: absolute; top: 15%; right: -5%; width: 200px; z-index: 5; animation: float1 5s ease-in-out infinite; }
.floating-widget-2 { position: absolute; bottom: 25%; left: -8%; width: 220px; z-index: 5; animation: float2 7s ease-in-out infinite; }

.mini-card { padding: 1rem; background: rgba(30, 41, 59, 0.9); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); }

@media (max-width: 1024px) { .floating-widget-1, .floating-widget-2 { display: none; } }

/* Stats */
.stats-divider {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 4rem 10%;
    background: #020617;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) { .stats-divider { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }

.stat-box { text-align: center; }
.stat-box h3 { font-size: 2.5rem; margin: 0 0 0.5rem 0; color: #f8fafc; }
.stat-box p { color: #64748b; margin: 0; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* Sections */
.section-padding { padding: 8rem 10%; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 2.5rem; margin: 0 0 1rem 0; }
.section-header p { font-size: 1.15rem; color: #94a3b8; max-width: 600px; margin: 0 auto; }

/* How It Works Grid */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 900px) { .steps-grid { grid-template-columns: 1fr; } }

.step-card { padding: 2.5rem; transition: transform 0.3s; }
.step-card:hover { transform: translateY(-10px); }
.step-number { position: absolute; top: 1rem; right: 1.5rem; font-size: 4rem; font-weight: 800; color: rgba(255, 255, 255, 0.03); }
.step-card h3 { font-size: 1.25rem; margin: 0 0 1rem 0; }
.step-card p { color: #94a3b8; line-height: 1.6; margin: 0; }

/* Feature Grid Modern */
.feature-grid-modern { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-bottom: 8rem; }
.feature-grid-reverse { direction: rtl; }
.feature-grid-reverse > * { direction: ltr; }
@media (max-width: 900px) { .feature-grid-modern { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 4rem; } }

.feature-text h3 { font-size: 2.5rem; margin: 0 0 1.5rem 0; background: linear-gradient(to right, #fff, #94a3b8); -webkit-background-clip: text; color: transparent; }
.feature-text p { font-size: 1.15rem; color: #94a3b8; line-height: 1.6; margin-bottom: 2rem; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { margin-bottom: 1.5rem; display: flex; align-items: flex-start; gap: 1rem; color: #cbd5e1; line-height: 1.5; }

.feature-image-wrap { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.side-image { width: 100%; height: 500px; object-fit: cover; display: block; }
.image-overlay-glow { position: absolute; inset: 0; background: linear-gradient(45deg, rgba(59, 130, 246, 0.4) 0%, transparent 100%); z-index: 1; mix-blend-mode: overlay; }
.image-overlay-glow-2 { position: absolute; inset: 0; background: linear-gradient(45deg, rgba(245, 158, 11, 0.4) 0%, transparent 100%); z-index: 1; mix-blend-mode: overlay; }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial-card { padding: 2.5rem; display: flex; flex-direction: column; }
.stars { color: #f59e0b; font-size: 1.25rem; letter-spacing: 2px; margin-bottom: 1rem; }
.quote { font-size: 1.15rem; font-style: italic; color: #cbd5e1; line-height: 1.6; flex-grow: 1; margin-bottom: 2rem; }
.author { display: flex; align-items: center; gap: 1rem; }
.author-avatar { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; }
.author h4 { margin: 0; font-size: 1.05rem; }
.author span { color: #94a3b8; font-size: 0.85rem; }

/* FAQ */
.faq-section { background: #020617; }
.faq-grid { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem; }
.faq-item { background: rgba(15, 23, 42, 0.6); border: 1px solid rgba(255, 255, 255, 0.05); padding: 1.5rem 2rem; border-radius: 12px; }
.faq-item h4 { margin: 0 0 1rem 0; font-size: 1.15rem; color: #f8fafc; }
.faq-item p { margin: 0; color: #94a3b8; line-height: 1.6; }

/* Footer */
.master-footer { background: #020617; padding: 6rem 10% 2rem 10%; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand h3 { font-size: 1.5rem; margin: 0 0 1rem 0; color: #f8fafc; }
.footer-brand p { color: #94a3b8; line-height: 1.6; }
.footer-links h4 { margin: 0 0 1.5rem 0; color: #f8fafc; }
.footer-links a { display: block; color: #94a3b8; text-decoration: none; margin-bottom: 0.75rem; transition: color 0.2s; }
.footer-links a:hover { color: #3b82f6; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.05); color: #64748b; font-size: 0.9rem; }

/* Auth Container */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.auth-container::before {
    content: ''; position: absolute; top: -20%; left: -10%;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
    border-radius: 50%; pointer-events: none; z-index: 0;
}
.auth-container::after {
    content: ''; position: absolute; bottom: -20%; right: -10%;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
    border-radius: 50%; pointer-events: none; z-index: 0;
}

.auth-card {
    width: 100%; max-width: 480px; padding: 3rem;
    position: relative; z-index: 1;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes slideUpFade { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.brand-header { display: flex; flex-direction: column; align-items: center; margin-bottom: 2.5rem; text-align: center; }
.brand-header h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.brand-header p { color: var(--text-muted); font-size: 1rem; }

.form-layout { display: flex; flex-direction: column; gap: 0.5rem; }
.form-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; font-size: 0.875rem; }
.checkbox { display: flex; align-items: center; gap: 0.5rem; color: var(--text-muted); cursor: pointer; }
.checkbox input { accent-color: var(--primary); width: 16px; height: 16px; }
.forgot-link { color: var(--primary); text-decoration: none; font-weight: 500; transition: var(--transition); }
.forgot-link:hover { color: var(--primary-hover); }

.submit-btn { margin-top: 1rem; height: 48px; width: 100%; }

.divider { display: flex; align-items: center; text-align: center; margin: 2rem 0; color: var(--text-muted); font-size: 0.875rem; }
.divider::before, .divider::after { content: ''; flex: 1; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.divider span { padding: 0 1rem; }

.social-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.social-btn {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.75rem; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm); color: var(--text-main); font-weight: 500; cursor: pointer; transition: var(--transition);
}
.social-btn:hover { background: rgba(255, 255, 255, 0.1); }

.auth-footer { margin-top: 2rem; text-align: center; font-size: 0.875rem; color: var(--text-muted); }
.auth-footer a { color: var(--primary); text-decoration: none; font-weight: 600; margin-left: 0.5rem; transition: var(--transition); }
.auth-footer a:hover { color: var(--primary-hover); }

@media (max-width: 640px) { .auth-card { padding: 2rem; } }

/* Inputs */
.input-container { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; width: 100%; }
.input-wrapper { position: relative; display: flex; align-items: center; }
.form-input {
    width: 100%; background: rgba(15, 23, 42, 0.6); border: 1px solid var(--border-light);
    border-radius: var(--radius-sm); padding: 0.75rem 1rem; font-family: inherit; font-size: 1rem; color: var(--text-main);
    transition: var(--transition); outline: none;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); background: rgba(15, 23, 42, 0.8); }
.form-input::placeholder { color: rgba(148, 163, 184, 0.5); }
.left-icon, .right-icon { position: absolute; top: 50%; transform: translateY(-50%); color: var(--text-muted); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.left-icon { left: 1rem; }
.right-icon { right: 1rem; cursor: pointer; pointer-events: auto; }
.with-left-icon { padding-left: 2.75rem; }
.with-right-icon { padding-right: 2.75rem; }
