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

:root {
    --bg: #0a0d12;
    --surface: #111520;
    --border: #1e2535;
    --accent: #4f8ef7;
    --accent-soft: rgba(79,142,247,0.12);
    --accent2: #a78bfa;
    --text: #e8edf5;
    --muted: #6b7a99;
    --card-bg: #13182200;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Terminal canvas background ── */
#terminal-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: #0a0d12;
}

#terminal-bg canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.38;
}

/* Soft radial vignette so text stays readable */
#terminal-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
    radial-gradient(ellipse 70% 55% at 50% 50%, transparent 30%, rgba(10,13,18,0.82) 100%),
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(79,142,247,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(167,139,250,0.07) 0%, transparent 60%);
}

/* ── Layout ── */
.wrapper {
    position: relative;
    z-index: 1;
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Header ── */
header {
    padding: 48px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Jersey 15', monospace;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--text);
}

.logo span { color: var(--accent); }

.badge {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(79,142,247,0.25);
    padding: 4px 12px;
    border-radius: 999px;
}

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

h1 {
    font-family: 'Jersey 15', monospace;
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.0;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}

h1 .title-solid {
    color: #3391FF;
}

.hero-desc {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto 56px;
    font-weight: 300;
}

/* ── Divider ── */
.divider {
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    margin: 0 auto 56px;
    border-radius: 2px;
}

/* ── Cards ── */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-bottom: 100px;
}

@media (max-width: 900px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
}

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

.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 28px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(79,142,247,0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: inherit;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(79,142,247,0.4);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(79,142,247,0.1);
}

.card:hover::before { opacity: 1; }

.card.disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: default;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.card-icon.blue { background: rgba(79,142,247,0.15); }
.card-icon.purple { background: rgba(167,139,250,0.15); }
.card-icon.teal { background: rgba(45,212,191,0.15); }

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

.card-title {
    font-family: 'Jersey 15', monospace;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: var(--text);
}

.card-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--muted);
    font-weight: 300;
    flex: 1;
}

.card-arrow {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    transition: gap 0.2s ease;
}

.card:hover .card-arrow { gap: 8px; }

.soon-tag {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 999px;
    width: fit-content;
    margin-top: 4px;
}

/* ── Footer ── */
footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted);
    position: relative;
    z-index: 1;
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

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

/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

h1            { animation: fadeUp 0.5s 0.1s ease both; }
.hero-desc    { animation: fadeUp 0.5s 0.2s ease both; }
.divider      { animation: fadeUp 0.5s 0.3s ease both; }
.card:nth-child(1) { animation: fadeUp 0.5s 0.35s ease both; }
.card:nth-child(2) { animation: fadeUp 0.5s 0.45s ease both; }
.card:nth-child(3) { animation: fadeUp 0.5s 0.55s ease both; }
.card:nth-child(4) { animation: fadeUp 0.5s 0.65s ease both; }