:root {
    --ink: #17252d;
    --muted: #64747a;
    --paper: #f5f7f4;
    --surface: #ffffff;
    --line: #dce5e1;
    --teal: #167c80;
    --teal-dark: #105c60;
    --mint: #dcefeb;
    --yellow: #f2c94c;
    --shadow: 0 18px 45px rgba(23, 37, 45, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    line-height: 1.65;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(245, 247, 244, 0.94);
    border-bottom: 1px solid rgba(220, 229, 225, 0.9);
    backdrop-filter: blur(14px);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1120px, calc(100% - 40px));
    min-height: 58px;
    margin: 0 auto;
}

.brand {
    color: var(--ink);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    display: block;
    padding: 6px 12px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    background: var(--mint);
    color: var(--teal-dark);
    outline: none;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 18px 20px 20px;
    background: var(--teal);
    color: #fff;
}

.hero::after {
    position: absolute;
    right: 9%;
    bottom: -115px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    content: "";
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--yellow);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(2.2rem, 4.2vw, 3.2rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 0.98;
}

.hero p {
    max-width: none;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.94rem;
}

.page-main {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 38px 0 70px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 25px;
}

.section-heading h2 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
}

.section-heading p {
    max-width: 400px;
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.app-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 19px 22px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: 0 2px 0 rgba(23, 37, 45, 0.02);
    cursor: pointer;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.app-card:hover,
.app-card:focus-visible {
    border-color: rgba(22, 124, 128, 0.55);
    box-shadow: var(--shadow);
    outline: none;
    transform: translateY(-4px);
}

.card-number {
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.app-card h3 {
    margin: 0 0 8px;
    font-size: 1.18rem;
    line-height: 1.25;
}

.app-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.game-card {
    position: relative;
    overflow: hidden;
    border-color: #e6bd3b;
    background: linear-gradient(135deg, #fff8c9 0%, #f7d85d 48%, #f2b83f 100%);
    box-shadow: 0 8px 22px rgba(210, 158, 36, 0.2);
}

.game-card::before {
    position: absolute;
    top: -55%;
    right: -15%;
    width: 75%;
    height: 180%;
    background: rgba(255, 255, 255, 0.38);
    content: "";
    transform: rotate(24deg);
    transition: transform 220ms ease;
}

.game-card > div {
    position: relative;
    z-index: 1;
}

.game-card h3,
.game-card p {
    color: #493b12;
}

.game-card:hover,
.game-card:focus-visible {
    border-color: #d69b16;
    box-shadow: 0 14px 30px rgba(210, 158, 36, 0.3);
}

.game-card:hover::before,
.game-card:focus-visible::before {
    transform: translateX(-18%) rotate(24deg);
}

.card-number + h3 {
    margin-top: 22px;
}

.content-panel {
    max-width: 780px;
    padding: 35px 0 10px;
}

.content-panel p {
    margin: 0 0 22px;
    color: #405158;
    font-size: 1.08rem;
}

.content-panel a {
    color: var(--teal-dark);
    font-weight: 700;
    text-underline-offset: 4px;
}

.email {
    white-space: nowrap;
}

@media (max-width: 760px) {
    .nav-inner {
        align-items: center;
        flex-direction: row;
        gap: 8px;
        padding: 10px 0;
    }

    .nav-links {
        flex: 1;
        justify-content: flex-end;
        gap: 1px;
    }

    .nav-links a {
        padding: 4px 5px;
        font-size: 0.72rem;
    }

    .hero {
        padding: 18px 20px 20px;
    }

    .hero h1 {
        font-size: clamp(2.1rem, 9vw, 2.8rem);
    }

    .hero p {
        font-size: 0.92rem;
    }

    .page-main {
        padding-top: 30px;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 8px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}
