/* ===============================
   ROOT VARIABLES (GLOBAL SYSTEM)
================================== */

:root {
    --deep: #0b1020;
    --panel: #121a33;
    --border: #1f2a55;

    --muted: #a7b0d6;
    --muted2: #6B7594;

    --gold: #F0C145;
    --gold-dim: rgba(240,193,69,0.12);

    --teal: #00D4D7;
    --blue: #2E86DE;
    --green: #10B981;
    --purple: #8B5CF6;
    --red: #EF4444;

    --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
}

/* ===============================
   BASE
================================== */

body {
    margin: 0;
    font-family: var(--sans);
    background: var(--deep);
    color: #e8ecff;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===============================
   HEADER
================================== */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    background: var(--deep);
    border-bottom: 1px solid var(--border);
}

.brand {
    font-weight: 700;
    font-size: 18px;
    white-space: nowrap;
}

.gold {
    background: linear-gradient(90deg, var(--gold), #ffd873);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

nav a:hover {
    color: white;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #e8ecff;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}

/* ===============================
   FOOTER
================================== */

.footer {
    text-align: center;
    padding: 90px 20px;
    color: var(--muted2);
    font-size: 14px;
}

/* ===============================
   REUSABLE COMPONENTS
================================== */

.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 40px;
    border-bottom: 1px solid var(--border);
}

.section h2 {
    font-size: 30px;
    margin-bottom: 30px;
}

.section p {
    color: var(--muted);
    line-height: 1.7;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.card {
    background: var(--panel);
    padding: 32px;
    border-radius: 14px;
    border: 1px solid var(--border);
}

.card h3 {
    margin-bottom: 12px;
    font-size: 18px;
}

.card p {
    color: var(--muted);
    font-size: 15px;
}

/* ===============================
   RESPONSIVE — TABLET (≤ 768px)
================================== */

@media (max-width: 768px) {
    header {
        padding: 18px 20px;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--panel);
        flex-direction: column;
        padding: 20px;
        gap: 18px;
        border-bottom: 1px solid var(--border);
        z-index: 100;
    }

    nav.open {
        display: flex;
    }

    nav a {
        font-size: 16px;
        padding: 8px 0;
    }

    .section {
        padding: 50px 20px;
    }

    .section h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card {
        padding: 24px;
    }

    .footer {
        padding: 50px 20px;
    }
}

@media (max-width: 480px) {
    .section h2 {
        font-size: 22px;
    }

    .card h3 {
        font-size: 16px;
    }
}