*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Tokens herdados de style_base.css (fonte canônica).
       Mantidos aqui APENAS para fallback de prefetched/skeleton. Não editar. */
    --bg: #080C14;
    --surface: #0D1420;
    --border: #1A2540;
    --blue: #3B82F6;
    --blue-dim: #1D4ED8;
    --blue-glow: rgba(59, 130, 246, 0.15);
    --cyan: #06B6D4;
    --text: #E2E8F0;
    --muted: #64748B;
    --mono: 'JetBrains Mono', monospace;
    --sans: 'IBM Plex Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Nav ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 60px;
    background: rgba(8, 12, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.nav-logo-text {
    font-family: var(--mono);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.05em;
}

.nav-badge {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--cyan);
    border: 1px solid var(--cyan);
    border-radius: 4px;
    padding: 1px 6px;
    opacity: 0.7;
}

/* ── Hero ── */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    text-align: center;
}

/* Glow central */
.hero::after {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-eyebrow {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--cyan);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--cyan);
    opacity: 0.5;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--cyan);
    font-weight: 600;
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

/* Terminal de código */
.terminal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    max-width: 560px;
    width: 100%;
    margin: 0 auto 2.5rem;
    text-align: left;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), 0 1px 4px rgba(59, 130, 246, 0.05);
}

.terminal-bar {
    background: #0A1020;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--border);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot:nth-child(1) {
    background: #FF5F57;
}

.terminal-dot:nth-child(2) {
    background: #FFBD2E;
}

.terminal-dot:nth-child(3) {
    background: #28C840;
}

.terminal-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--muted);
    margin-left: auto;
}

.terminal-body {
    padding: 1.25rem 1.5rem;
    font-family: var(--mono);
    font-size: 0.8rem;
    line-height: 1.8;
}

.t-comment {
    color: #3B5280;
}

.t-key {
    color: var(--cyan);
}

.t-str {
    color: #86EFAC;
}

.t-val {
    color: #FCA5A5;
}

.t-fn {
    color: #C4B5FD;
}

.t-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: var(--blue);
    vertical-align: middle;
    animation: blink 1.1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ── Stats ── */
.stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.stat {
    text-align: center;
}

.stat-value {
    font-family: var(--mono);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--blue);
    display: block;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ── Features ── */
.features {
    position: relative;
    z-index: 1;
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.feature {
    background: var(--surface);
    padding: 2rem;
    transition: background 0.2s;
    position: relative;
}

.feature:hover {
    background: #0F1A2E;
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ── Flow diagram ── */
.flow {
    position: relative;
    z-index: 1;
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.flow-node {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text);
    white-space: nowrap;
}

.flow-node.highlight {
    border-color: var(--blue);
    background: var(--blue-glow);
    color: var(--blue);
}

.flow-arrow {
    color: var(--border);
    font-size: 1.2rem;
    padding: 0 0.5rem;
}

/* ── Footer ── */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--muted);
}

footer a {
    color: var(--blue);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .stats {
        gap: 1.25rem;
    }

    .flow-diagram {
        gap: 0.5rem;
    }

    .flow-arrow {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .t-cursor {
        animation: none;
        opacity: 1;
    }
}