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

:root {
    --bg:           #0d0d15;
    --bg-card:      #13141b;
    --bg-card-h:    #1a1b2e;
    --bg-section:   #0f0f1a;
    --accent:       #8b5cf6;
    --accent-2:     #9333ea;
    --accent-3:     #a855f7;
    --accent-light: #a78bfa;
    --accent-glow:  rgba(139,92,246,0.15);
    --accent-grad:  linear-gradient(135deg, #8b5cf6, #9333ea, #a855f7);
    --text:         #f0f0f5;
    --text-muted:   #9a9db5;
    --text-dim:     #4a4d60;
    --border:       rgba(255,255,255,0.07);
    --border-accent:rgba(139,92,246,0.35);
    --radius:       12px;
    --radius-sm:    8px;
    --transition:   0.2s ease;
    --nav-h:        72px;
    --max-w:        1160px;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
p  { color: var(--text-muted); font-size: 1.05rem; }

.label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

/* ─── Layout Utilities ───────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 6rem 0; }
.section-sm { padding: 3rem 0; }

.text-center { text-align: center; }
.accent { color: var(--accent); }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--accent-grad);
    color: #fff;
}
.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(139,92,246,0.35);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

/* ─── Section Headers ────────────────────────────────────────── */
.section-header { margin-bottom: 3.5rem; }
.section-header h2 { margin-top: 0.6rem; }
.section-header p  { margin-top: 1rem; max-width: 560px; font-size: 1.1rem; }
.section-header.centered { text-align: center; }
.section-header.centered p { margin-left: auto; margin-right: auto; }

/* ─── Cards ──────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
}
.card:hover {
    background: var(--bg-card-h);
    border-color: var(--border-accent);
    transform: translateY(-3px);
}

/* ─── Navigation ─────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: rgba(9,9,9,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease;
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
}
.logo-amp { color: var(--accent); }
.logo-full { font-weight: 400; opacity: 0.7; }

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-cta {
    background: var(--accent-grad) !important;
    color: #fff !important;
    padding: 0.55rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
}
.nav-cta:hover { opacity: 0.88; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
    padding-top: 4rem;
    margin-top: 4rem;
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.footer-logo { font-size: 1rem; font-weight: 700; }
.footer-tagline { margin-top: 0.6rem; font-size: 0.9rem; color: var(--text-dim); }

.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.footer-heading {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { font-size: 0.9rem; color: var(--text-muted); transition: color var(--transition); }
.footer-col a:hover { color: var(--text); }
.footer-col li:not(:has(a)) { font-size: 0.9rem; color: var(--text-dim); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-dim);
    max-width: var(--max-w);
    margin: 0 auto;
}

/* ─── Scroll Reveal ──────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}
.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; }

/* ─── Page top padding (below fixed nav) ─────────────────────── */
.page-top { padding-top: var(--nav-h); }

/* ─── Divider line ───────────────────────────────────────────── */
.divider {
    width: 48px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin: 1rem 0;
}
.divider.center { margin-left: auto; margin-right: auto; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 0; right: 0;
        background: rgba(9,9,9,0.97);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a {
        display: block;
        padding: 0.85rem 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--border);
    }
    .nav-links li:last-child a { border-bottom: none; }
    .nav-cta { margin-top: 0.5rem; text-align: center; }

    .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-links { grid-template-columns: 1fr 1fr; }

    .logo-full { display: none; }
}

@media (max-width: 480px) {
    .footer-links { grid-template-columns: 1fr; }
}
