:root {
    --surface: #f8f4ee;
    --surface-alt: #ffffff;
    --ink: #0f172a;
    --ink-strong: #0b141c;
    --muted: #4b5c6b;
    --accent: #1f7b84;
    --accent-strong: #0f5e67;
    --accent-warm: #f28c54;
    --accent-gold: #f4c95d;
    --line: rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 20px 50px rgba(15, 23, 42, 0.15);
    --shadow-card: 0 16px 32px rgba(15, 23, 42, 0.12);
    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-sm: 12px;
    --font-display: "Cinzel", "Fraunces", "Times New Roman", serif;
    --font-body: "Space Grotesk", "DM Sans", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--surface);
    line-height: 1.6;
}

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

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--accent-strong);
}

.page {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(60% 50% at 10% 0%, rgba(31, 123, 132, 0.16), transparent 60%),
        radial-gradient(45% 40% at 90% 12%, rgba(242, 140, 84, 0.18), transparent 60%),
        linear-gradient(180deg, #f9f6f1 0%, #f2ede5 100%);
}

.page::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: 0.5;
    pointer-events: none;
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
    position: relative;
}

.section {
    padding: clamp(64px, 8vw, 110px) 0;
    position: relative;
    scroll-margin-top: calc(var(--nav-height, 64px) + 24px);
}

.section-head {
    max-width: 720px;
    margin-bottom: 32px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-strong);
    margin: 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.6vw, 3.2rem);
    margin: 10px 0 12px;
    line-height: 1.1;
}

.section-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.hero {
    position: relative;
    padding: calc(var(--nav-height, 64px) + 32px) 0 110px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: #f8fafc;
    background-image:
        linear-gradient(130deg, rgba(8, 12, 18, 0.78) 0%, rgba(8, 12, 18, 0.5) 45%, rgba(8, 12, 18, 0.82) 100%),
        var(--hero-image);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 60% at 50% 25%, rgba(255, 255, 255, 0.08), transparent 60%),
        radial-gradient(40% 40% at 85% 85%, rgba(8, 12, 18, 0.5), transparent 70%);
    opacity: 0.85;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    place-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-copy {
    max-width: 620px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.6rem, 8vw, 6.6rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 0.98;
    margin: 12px 0 12px;
    text-shadow: 0 28px 60px rgba(8, 12, 18, 0.75), 0 0 16px rgba(244, 201, 93, 0.35);
}

.lead {
    font-size: 1.1rem;
    margin: 0 auto;
    color: rgba(248, 250, 252, 0.82);
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(31, 123, 132, 0.25);
}

.btn-primary:hover {
    background: var(--accent-strong);
    transform: translateY(-2px);
}

.btn-ghost {
    border-color: var(--line);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.65);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent-strong);
    transform: translateY(-2px);
}

.hero .eyebrow {
    color: rgba(244, 201, 93, 0.9);
}

.hero .btn-primary {
    box-shadow: 0 16px 32px rgba(15, 123, 132, 0.35);
}

.hero .btn-ghost {
    border-color: rgba(255, 255, 255, 0.38);
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.32);
}

.hero .btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
    background: rgba(15, 23, 42, 0.52);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.16);
}

.card--border {
    background: #ffffff;
}

.card--warm {
    border-color: rgba(242, 140, 84, 0.3);
}

.card--gold {
    border-color: rgba(244, 201, 93, 0.35);
}

.icon-badge {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #ffffff;
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.card--warm .icon-badge {
    background: var(--accent-warm);
}

.card--gold .icon-badge {
    background: var(--accent-gold);
    color: #3a2d08;
}

.card h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.about {
    background: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.services {
    background: linear-gradient(145deg, rgba(31, 123, 132, 0.08), rgba(255, 255, 255, 0.9));
}

.play {
    background: #ffffff;
}

.play-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.play-card {
    background: linear-gradient(150deg, #ffffff, #f7f2ea);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 24px;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.play-card:hover {
    transform: translateY(-6px);
    border-color: rgba(31, 123, 132, 0.4);
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.18);
}

.play-tag {
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(31, 123, 132, 0.12);
    color: var(--accent-strong);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.play-link {
    font-weight: 600;
    color: var(--accent);
}

.trust {
    background: linear-gradient(140deg, rgba(244, 201, 93, 0.18), rgba(255, 255, 255, 0.85));
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: center;
}

.trust-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow-card);
}

.trust-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
    color: var(--muted);
}

.trust-list li {
    padding-left: 24px;
    position: relative;
}

.trust-list li::before {
    content: "+";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-strong);
    font-weight: 700;
}

.trust-list a {
    color: var(--accent);
    font-weight: 600;
}

.values {
    background: rgba(255, 255, 255, 0.65);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.gallery {
    background: #10151d;
    color: #f8fafc;
    padding-bottom: clamp(64px, 8vw, 110px);
}

.gallery .section-title {
    color: #f8fafc;
}

.gallery .section-subtitle {
    color: rgba(248, 250, 252, 0.72);
}

.gallery .eyebrow {
    color: rgba(244, 201, 93, 0.9);
}

.gallery-marquee {
    overflow: hidden;
    padding: 10px 0 0;
    position: relative;
}

.gallery-track {
    display: flex;
    gap: 20px;
    animation: gallery-scroll 18s linear infinite;
    will-change: transform;
}

.gallery-marquee:hover .gallery-track {
    animation-play-state: paused;
}

.gallery-item {
    min-width: 240px;
    max-width: 240px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(8, 12, 18, 0.45);
    transform: translateZ(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.gallery-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 36px rgba(8, 12, 18, 0.6);
}

.site-footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: 32px 0;
    text-align: center;
    position: relative;
}

.site-footer a {
    color: #f8fafc;
    font-weight: 600;
}

.site-footer .container {
    position: relative;
}

.footer-version {
    position: absolute;
    right: 20px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    outline: none;
}

.footer-version__icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #f8fafc;
    border: 1px solid rgba(248, 250, 252, 0.35);
    background: rgba(248, 250, 252, 0.08);
    box-shadow: 0 6px 16px rgba(8, 12, 18, 0.35);
    transition: transform 0.2s ease, background 0.2s ease;
}

.footer-version__tooltip {
    position: absolute;
    right: 0;
    bottom: 140%;
    padding: 8px 12px;
    border-radius: 10px;
    background: #111827;
    color: #f8fafc;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    box-shadow: 0 14px 30px rgba(8, 12, 18, 0.45);
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-version:hover .footer-version__icon,
.footer-version:focus .footer-version__icon {
    transform: translateY(-2px);
    background: rgba(248, 250, 252, 0.16);
}

.footer-version:hover .footer-version__tooltip,
.footer-version:focus .footer-version__tooltip {
    opacity: 1;
    transform: translateY(0);
}

.reveal {
    animation: fade-up 0.8s ease both;
    animation-delay: var(--delay, 0s);
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gallery-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

body.landing .transparent-navbar {
    --nav-bg: rgba(8, 12, 18, 0.42);
    --nav-bg-scrolled: rgba(8, 12, 18, 0.75);
    --nav-text: #f8fafc;
    --nav-border: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

body.landing .transparent-navbar .logo img {
    filter: brightness(0) invert(1);
}

body.landing .transparent-navbar .right a {
    color: #f8fafc;
}

body.landing .sidenav + br,
body.landing .sidenav + br + br,
body.landing .sidenav + br + br + br,
body.landing .sidenav + br + br + br + br {
    display: none;
}

body.landing .transparent-navbar .right a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

body.landing .transparent-navbar .right .icon {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

body.landing .navbar.scrolled,
body.landing .navbar.scrolled a,
body.landing .navbar.scrolled .right .icon {
    color: #f8fafc;
}

body.landing .navbar.scrolled .logo img {
    filter: brightness(0) invert(1);
}

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

@media (max-width: 720px) {
    .hero {
        padding: calc(var(--nav-height, 64px) + 40px) 0 70px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

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

    .gallery-track {
        animation-duration: 22s;
    }
}

@media (max-width: 560px) {
    .hero-title {
        font-size: 2.9rem;
    }

    .gallery-item {
        min-width: 200px;
        max-width: 200px;
    }

    .gallery-item img {
        height: 130px;
    }
}

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

    .reveal,
    .gallery-track {
        animation: none;
    }
}
