/* ===========================
   Catppuccin Mocha Palette
   =========================== */

:root {
    /* Official Catppuccin colors */
    --rosewater: #f5e0dc;
    --flamingo:  #f2cdcd;
    --pink:       #f5c2e7;
    --mauve:      #cba6f7;
    --red:        #f38ba8;
    --maroon:     #eba0ac;
    --peach:      #fab387;
    --yellow:     #f9e2af;
    --green:      #a6e3a1;
    --teal:       #94e2d5;
    --sky:        #89dceb;
    --sapphire:   #74c7ec;
    --blue:       #89b4fa;
    --lavender:   #b4befe;

    --text:       #cdd6f4;
    --subtext1:   #bac2de;
    --subtext0:   #a6adc8;

    --overlay2:   #9399b2;
    --overlay1:   #7f849c;
    --overlay0:   #6c7086;

    --surface2:   #585b70;
    --surface1:   #45475a;
    --surface0:   #313244;

    --base:       #1e1e2e;
    --mantle:     #181825;
    --crust:      #11111b;

    /* Semantic variables */

    --bg: var(--base);
    --bg-secondary: var(--mantle);

    --surface: var(--surface0);
    --surface-hover: var(--surface1);

    --border: var(--surface2);

    --text-primary: var(--text);
    --text-secondary: var(--subtext1);

    --primary: var(--blue);
    --secondary: var(--mauve);
    --success: var(--green);
    --warning: var(--yellow);
    --danger: var(--red);

    --link: var(--blue);
    --link-hover: var(--sky);
}

/* Reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ==========================================================
   Base
   ========================================================== */

body {
    background: var(--base);
    color: var(--text);
    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

h1 {
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    line-height: 1.1;
    white-space: pre;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: 0.2s ease;
}

a:hover {
    color: var(--sky);
}

/* ==========================================================
   Navigation
   ========================================================== */

header {
    position: sticky;
    top: 0;

    backdrop-filter: blur(10px);

    background: rgba(24, 24, 37, 0.8);

    border-bottom: 1px solid var(--surface0);

    z-index: 100;
}

.navbar {
    max-width: 1100px;

    margin: auto;

    padding: 1rem 2rem;

    display: flex;

    justify-content: space-between;

    align-items: center;
}

.logo {
    color: var(--mauve);
    font-size: 1.4rem;
}

.logo a {
    color: var(--mauve);
}

.logo a:hover {
    color: var(--pink);
}

.nav-links {
    list-style: none;

    display: flex;

    gap: 2rem;
}

.nav-links a {
    color: var(--subtext1);
}

.nav-links a:hover {
    color: var(--text);
}

/* ==========================================================
   Info Banner
   ========================================================== */

.info-banner {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0.9rem 1.25rem;

    background-color: var(--surface);
    border: 1px solid var(--warning);
    border-left: 4px solid var(--warning);
    border-radius: 8px;

    color: var(--text-primary);
    font-size: 0.95rem;
    text-align: center;
}

.info-banner strong {
    color: var(--warning);
}

/* ==========================================================
   Hero
   ========================================================== */

.hero {

    max-width: 1100px;

    margin: auto;

    min-height: 80vh;

    padding: 4rem 2rem;

    display: grid;

    grid-template-columns: 1.3fr 1fr;

    gap: 4rem;

    align-items: center;
}

.hero h2 {

    font-size: 3rem;

    margin-bottom: 1rem;

    color: var(--text);
}

.hero p {

    color: var(--subtext1);

    max-width: 650px;

    margin-bottom: 2rem;

    font-size: 1.1rem;
}

.hero-image img {

    border-radius: 16px;

    border: 2px solid var(--surface1);

    box-shadow: 0 10px 30px rgba(0,0,0,0.3);

    image-rendering: pixelated;
}

/* ==========================================================
   Sections
   ========================================================== */

section {

    max-width: 1100px;

    margin: auto;

    padding: 4rem 2rem;
}

section h2 {

    margin-bottom: 2rem;

    font-size: 2rem;

    color: var(--mauve);
}

/* ==========================================================
   Footer
   ========================================================== */

footer {

    margin-top: 4rem;

    border-top: 1px solid var(--surface0);

    padding: 2rem;

    display: flex;

    justify-content: space-between;

    align-items: center;

    flex-wrap: wrap;

    gap: 1rem;

    color: var(--overlay1);
}

.footer-links {

    display: flex;

    gap: 1.5rem;
}

/* ==========================================================
   Mobile
   ========================================================== */

@media (max-width: 768px) {

    .navbar {

        flex-direction: column;

        gap: 1rem;
    }

    .hero {

        grid-template-columns: 1fr;

        text-align: center;
    }

    .hero-buttons {

        justify-content: center;
    }

    .hero-image {

        order: -1;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    footer {

        flex-direction: column;

        text-align: center;
    }
}