:root {
    --navy-950: #051520;
    --navy-900: #071b2b;
    --navy-800: #0c293d;
    --green-700: #0c6b4d;
    --green-500: #17a673;
    --green-100: #dcf4e8;
    --cream: #f7f3e8;
    --paper: #fffdf8;
    --ink: #102334;
    --muted: #5c6973;
    --red: #c53a3a;
    --gold: #e8c270;
    --line: #dce2df;
    --shadow: 0 24px 70px rgba(4, 19, 29, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.shell {
    width: min(1160px, calc(100% - 40px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 16px;
    color: var(--navy-950);
    background: white;
    border-radius: 8px;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: relative;
    z-index: 10;
    color: white;
    background: var(--navy-950);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: inherit;
    font-size: 1.3rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    place-items: center;
    overflow: hidden;
    color: var(--navy-950);
    background: var(--cream);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    font-family: Georgia, serif;
    font-size: 0.92rem;
    transform: rotate(-3deg);
}

.brand-mark span:last-child {
    color: var(--red);
}

.site-header nav,
footer nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-header nav a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    font-weight: 650;
    text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
    color: white;
}

.hero {
    position: relative;
    overflow: hidden;
    color: white;
    background:
        radial-gradient(circle at 77% 46%, rgba(21, 147, 101, 0.27), transparent 32%),
        linear-gradient(138deg, var(--navy-950) 0%, var(--navy-900) 58%, #0b332f 100%);
}

.hero-grid {
    position: relative;
    z-index: 1;
    min-height: 660px;
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(430px, 1.04fr);
    align-items: center;
    gap: 56px;
    padding-block: 74px 86px;
}

.hero-suit {
    position: absolute;
    color: rgba(255, 255, 255, 0.025);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

.hero-suit-left {
    bottom: -90px;
    left: -65px;
    font-size: 25rem;
    transform: rotate(8deg);
}

.hero-suit-right {
    top: -100px;
    right: -30px;
    color: rgba(206, 54, 54, 0.06);
    font-size: 20rem;
    transform: rotate(-12deg);
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: var(--green-700);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.04;
}

h1 {
    max-width: 650px;
    margin-bottom: 24px;
    font-size: clamp(3.25rem, 6vw, 5.65rem);
}

h1 span {
    color: #a8e1c7;
}

.hero-summary {
    max-width: 590px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.15rem;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 760;
    text-decoration: none;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: var(--navy-950);
    background: var(--gold);
}

.button-primary:hover {
    background: #f1cf83;
}

.button-secondary {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.55);
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    margin: 30px 0 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.88rem;
    font-weight: 650;
    list-style: none;
}

.hero-benefits span {
    margin-right: 6px;
    color: #86d9b4;
}

.gameplay-showcase {
    position: relative;
    min-height: 540px;
}

.showcase-stage,
.showcase-game-grid {
    position: absolute;
    inset: 0;
}

.showcase-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 420px;
    height: 420px;
    background: rgba(23, 166, 115, 0.2);
    border: 1px solid rgba(168, 225, 199, 0.13);
    border-radius: 50%;
    filter: blur(2px);
    transform: translate(-50%, -50%);
}

.showcase-phone {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: 278px;
    overflow: hidden;
    background: #06131c;
    border: 8px solid #172d39;
    border-radius: 34px;
    box-shadow: 0 28px 58px rgba(0, 0, 0, 0.42);
    transform: translate(-50%, -50%);
}

.showcase-phone::before {
    content: none !important;
    display: none !important;
}

.showcase-phone > img {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    object-fit: cover;
}

.showcase-label {
    position: absolute;
    z-index: 4;
    top: 6px;
    left: 50%;
    padding: 6px 12px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(5, 21, 32, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.showcase-game-card {
    position: absolute;
    z-index: 3;
    width: 190px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px 11px 11px;
    color: var(--navy-950);
    background: rgba(255, 253, 248, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.showcase-game-card:hover,
.showcase-game-card:focus-visible {
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
}

.showcase-game-card img {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    border-radius: 12px;
    box-shadow: 0 5px 13px rgba(7, 27, 43, 0.18);
}

.showcase-game-card > span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.showcase-game-card strong {
    font-size: 0.88rem;
}

.showcase-game-card small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.68rem;
}

.showcase-hearts {
    top: 68px;
    left: -12px;
    transform: rotate(-4deg);
}

.showcase-hearts:hover {
    transform: rotate(-4deg) translateY(-3px);
}

.showcase-bridge {
    top: 68px;
    right: -12px;
    transform: rotate(4deg);
}

.showcase-bridge:hover {
    transform: rotate(4deg) translateY(-3px);
}

.showcase-euchre {
    bottom: 62px;
    left: -12px;
    transform: rotate(4deg);
}

.showcase-euchre:hover {
    transform: rotate(4deg) translateY(-3px);
}

.showcase-spades {
    right: -12px;
    bottom: 62px;
    transform: rotate(-4deg);
}

.showcase-spades:hover {
    transform: rotate(-4deg) translateY(-3px);
}

.value-section,
.games-section {
    padding-block: 104px;
}

.value-section {
    background: var(--cream);
}

.section-heading {
    max-width: 690px;
    margin-bottom: 46px;
}

.section-heading.centered {
    margin-inline: auto;
    text-align: center;
}

.section-heading h2,
.closing-card h2 {
    margin-bottom: 16px;
    font-size: clamp(2.35rem, 4vw, 4rem);
}

.section-heading > p:last-child {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.value-card {
    padding: 29px 25px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(12, 41, 61, 0.1);
    border-radius: 20px;
}

.value-icon {
    display: block;
    margin-bottom: 16px;
    color: var(--navy-800);
    font-family: Georgia, serif;
    font-size: 2rem;
    line-height: 1;
}

.value-icon.red {
    color: var(--red);
}

.value-card h3 {
    margin-bottom: 8px;
    font-size: 1.08rem;
    line-height: 1.3;
}

.value-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.feature-note {
    margin: 22px 0 0;
    color: #738078;
    font-size: 0.8rem;
    text-align: center;
}

.games-section {
    background: var(--paper);
}

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

.game-card {
    min-height: 124px;
    display: grid;
    grid-template-columns: 72px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 18px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(8, 31, 44, 0.04);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.game-card:hover,
.game-card:focus-visible {
    border-color: #9fcbb8;
    box-shadow: 0 16px 35px rgba(8, 31, 44, 0.1);
    transform: translateY(-3px);
}

.game-card img {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    box-shadow: 0 5px 14px rgba(8, 31, 44, 0.17);
}

.game-card-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.game-card-copy strong {
    color: var(--navy-900);
    font-size: 1.03rem;
    line-height: 1.25;
}

.game-card-copy span {
    color: var(--muted);
    font-size: 0.83rem;
    line-height: 1.45;
}

.game-arrow {
    color: var(--green-700);
    font-size: 1.35rem;
    transition: transform 160ms ease;
}

.game-card:hover .game-arrow {
    transform: translateX(3px);
}

.closing-section {
    padding: 0 0 104px;
    background: var(--paper);
}

.closing-card {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 46px 54px;
    color: white;
    background:
        radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.1), transparent 32%),
        var(--green-700);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.closing-card .eyebrow {
    color: #cbe8d9;
}

.closing-card h2 {
    margin-bottom: 0;
}

.button-light {
    flex: 0 0 auto;
    color: var(--green-700);
    background: white;
}

footer {
    color: rgba(255, 255, 255, 0.7);
    background: var(--navy-950);
}

.footer-inner {
    min-height: 152px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px 32px;
    padding-block: 35px;
}

.footer-brand {
    color: white;
}

.footer-inner p {
    margin-bottom: 0;
    font-size: 0.86rem;
}

.footer-inner nav a {
    font-size: 0.86rem;
    text-decoration: none;
}

.footer-inner nav a:hover,
.footer-inner nav a:focus-visible {
    color: white;
}

.copyright {
    grid-column: 2 / -1;
    color: rgba(255, 255, 255, 0.4);
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

@media (max-width: 1100px) {
    .hero-grid {
        max-width: 820px;
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .hero-copy {
        max-width: 740px;
    }

    .gameplay-showcase {
        width: min(100%, 600px);
        margin-inline: auto;
    }

    .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .shell {
        width: min(100% - 28px, 620px);
    }

    .header-inner {
        min-height: 66px;
    }

    .site-header nav {
        gap: 16px;
    }

    .site-header nav a:nth-child(2) {
        display: none;
    }

    .hero-grid {
        min-height: auto;
        gap: 46px;
        padding-block: 58px 70px;
    }

    h1 {
        font-size: clamp(3rem, 14vw, 4.6rem);
    }

    .hero-summary {
        font-size: 1.05rem;
    }

    .gameplay-showcase {
        min-height: 500px;
    }

    .value-section,
    .games-section {
        padding-block: 76px;
    }

    .value-grid,
    .games-grid {
        grid-template-columns: 1fr;
    }

    .game-card {
        min-height: 112px;
    }

    .closing-section {
        padding-bottom: 76px;
    }

    .closing-card {
        min-height: 280px;
        align-items: flex-start;
        flex-direction: column;
        padding: 38px 28px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        justify-items: start;
        padding-block: 45px;
    }

    .footer-inner nav {
        gap: 20px;
    }

    .copyright {
        grid-column: auto;
    }
}

@media (max-width: 560px) {
    .gameplay-showcase {
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 22px;
    }

    .showcase-stage {
        position: relative;
        inset: auto;
        height: 430px;
    }

    .showcase-glow {
        width: 320px;
        height: 320px;
    }

    .showcase-phone {
        width: 218px;
        border-width: 6px;
        border-radius: 28px;
    }

    .showcase-game-grid {
        position: relative;
        inset: auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .showcase-game-card {
        position: static;
        width: auto;
        min-width: 0;
        padding: 10px;
        transform: none;
    }

    .showcase-game-card:hover,
    .showcase-game-card:focus-visible {
        transform: translateY(-2px);
    }

    .showcase-game-card img {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .showcase-game-card strong {
        font-size: 0.82rem;
    }

    .showcase-game-card small {
        font-size: 0.64rem;
    }
}

@media (max-width: 430px) {
    .brand {
        font-size: 1.08rem;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
    }

    .site-header nav a {
        font-size: 0.84rem;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-benefits {
        display: grid;
        grid-template-columns: repeat(2, auto);
        justify-content: start;
    }

    .showcase-stage {
        height: 410px;
    }

    .showcase-game-card {
        gap: 8px;
        padding: 8px;
    }

    .showcase-game-card img {
        width: 40px;
        height: 40px;
    }

    .showcase-game-card small {
        font-size: 0.6rem;
    }

    .section-heading h2,
    .closing-card h2 {
        font-size: 2.45rem;
    }

    .game-card {
        grid-template-columns: 62px 1fr auto;
        gap: 14px;
        padding: 15px;
    }

    .game-card img {
        width: 62px;
        height: 62px;
        border-radius: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
