/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #0a0a0b;
    --color-surface: #141416;
    --color-surface-2: #1c1c20;
    --color-border: #2a2a30;
    --color-text: #f0f0f2;
    --color-text-muted: #8a8a96;
    --color-accent: #6c5ce7;
    --color-accent-light: #a29bfe;
    --color-accent-glow: rgba(108, 92, 231, 0.3);
    --color-green: #00b894;
    --color-orange: #fdcb6e;
    --color-pink: #e17055;
    --radius: 12px;
    --radius-lg: 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: background 0.3s, backdrop-filter 0.3s;
}

.navbar.scrolled {
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-text);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
    box-shadow: 0 0 20px var(--color-accent-glow);
}

.btn-primary:hover {
    background: #5a4bd4;
    box-shadow: 0 0 30px var(--color-accent-glow);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
}

.btn-ghost:hover {
    color: var(--color-text);
    border-color: var(--color-text-muted);
}

.btn-small {
    padding: 8px 18px;
    font-size: 0.85rem;
    border-radius: 8px;
    background: var(--color-surface-2);
    color: var(--color-text);
}

.btn-small:hover {
    background: var(--color-accent);
    color: white;
}

/* === Hero === */
.hero {
    padding: 160px 0 80px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-accent-light);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.highlight {
    color: var(--color-accent-light);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 540px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 72px;
}

/* === Card Stack === */
.hero-visual {
    max-width: 480px;
    margin: 0 auto;
    perspective: 1000px;
}

.card-stack {
    position: relative;
    height: 220px;
}

.news-card {
    position: absolute;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: left;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.card-1 {
    transform: translateY(0) scale(1);
    z-index: 3;
}

.card-2 {
    transform: translateY(16px) scale(0.96);
    z-index: 2;
    opacity: 0.7;
}

.card-3 {
    transform: translateY(32px) scale(0.92);
    z-index: 1;
    opacity: 0.4;
}

.card-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.card-1 .card-tag {
    background: rgba(108, 92, 231, 0.15);
    color: var(--color-accent-light);
}

.card-2 .card-tag {
    background: rgba(0, 184, 148, 0.15);
    color: var(--color-green);
}

.card-3 .card-tag {
    background: rgba(253, 203, 110, 0.15);
    color: var(--color-orange);
}

.card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-author {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* === Sections === */
.section {
    padding: 100px 0;
}

.section h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 520px;
    margin-bottom: 56px;
}

/* === How it Works === */
.how-it-works {
    text-align: center;
}

.how-it-works .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step {
    padding: 36px 28px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-align: left;
    transition: border-color 0.3s;
}

.step:hover {
    border-color: var(--color-accent);
}

.step-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: white;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* === Features === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.feature {
    padding: 32px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: border-color 0.3s;
}

.feature:hover {
    border-color: var(--color-accent);
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface-2);
    border-radius: 10px;
    margin-bottom: 18px;
    color: var(--color-accent-light);
}

.feature h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* === CTA === */
.cta-section {
    padding: 60px 0 100px;
}

.cta-card {
    text-align: center;
    padding: 64px 40px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.cta-card h2 {
    position: relative;
    margin-bottom: 12px;
}

.cta-card p {
    position: relative;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.cta-form {
    position: relative;
    display: flex;
    gap: 12px;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
}

.cta-form input {
    flex: 1;
    padding: 12px 18px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.cta-form input:focus {
    border-color: var(--color-accent);
}

.cta-form input::placeholder {
    color: var(--color-text-muted);
}

.cta-note {
    font-size: 0.8rem !important;
    margin-top: 16px !important;
    margin-bottom: 0 !important;
}

.success-msg {
    color: var(--color-green) !important;
    font-weight: 600;
    font-size: 1.05rem;
}

/* === Footer === */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-text {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* === Responsive === */
@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        margin-bottom: 48px;
    }

    .card-stack {
        height: 200px;
    }

    .cta-form {
        flex-direction: column;
    }

    .cta-card {
        padding: 48px 24px;
    }

    .nav-links a:not(.btn) {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
