
/* =====================================================
   TERVIA — OFFICIAL WEBSITE
   Matches the in-game authentication and menu UI
   ===================================================== */

:root {
    --background: #0f172a;
    --background-deep: #080e1b;
    --panel: #111827;
    --panel-secondary: #1e293b;
    --panel-hover: #263a52;

    --accent: #38bdf8;
    --accent-hover: #7dd3fc;

    --text: #f8fafc;
    --text-secondary: #d1d5db;
    --text-muted: #94a3b8;

    --border: #334155;
    --border-soft: rgba(255, 255, 255, 0.08);

    --content-width: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

::selection {
    background: var(--accent);
    color: #0f172a;
}

/* =====================================================
   HEADER
   ===================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    min-height: 76px;
    padding: 14px max(
        24px,
        calc((100% - var(--content-width)) / 2)
    );

    background: rgba(17, 24, 39, 0.96);
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: blur(14px);
}

.site-brand {
    color: var(--accent);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-nav a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.15s ease;
}

.site-nav a:hover {
    color: var(--accent);
}

.header-play {
    padding: 11px 22px;
    background: var(--accent);
    border-radius: 9px;
    color: #082f49;
    font-size: 14px;
    font-weight: 700;
    transition:
        background 0.15s ease,
        transform 0.15s ease;
}

.header-play:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* =====================================================
   HERO
   ===================================================== */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 660px;
    padding: 110px 24px 120px;
    overflow: hidden;

    background:
        radial-gradient(
            ellipse at 50% 35%,
            rgba(56, 189, 248, 0.12),
            transparent 60%
        ),
        linear-gradient(
            180deg,
            #111827 0%,
            #0f172a 100%
        );
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(148, 163, 184, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(148, 163, 184, 0.035) 1px,
            transparent 1px
        );

    background-size: 32px 32px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 850px;
    text-align: center;
}

.eyebrow {
    margin: 0 0 20px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(44px, 6vw, 76px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.hero-description {
    max-width: 650px;
    margin: 28px auto 36px;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.8;
}

.hero-actions,
.community-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* =====================================================
   BUTTONS
   ===================================================== */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;
    padding: 13px 28px;

    border: 1px solid transparent;
    border-radius: 9px;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-align: center;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:active {
    transform: scale(0.98);
}

.button-primary {
    background: var(--accent);
    color: #082f49;
}

.button-primary:hover {
    background: var(--accent-hover);
}

.button-secondary {
    background: var(--panel-secondary);
    border-color: var(--border);
    color: var(--text);
}

.button-secondary:hover {
    background: var(--panel-hover);
    border-color: var(--accent);
}

/* =====================================================
   SECTIONS
   ===================================================== */

.section {
    padding: 105px 24px;
    text-align: center;
    scroll-margin-top: 76px;
}

.section h2 {
    margin: 0 0 24px;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.2;
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
}

.section-content > p:last-child,
.community > p:not(.eyebrow) {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.8;
}

.about {
    background: var(--panel);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

/* =====================================================
   FEATURE CARDS — IN-GAME PANEL STYLE
   ===================================================== */

.features {
    max-width: 1300px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-top: 48px;
}

.feature-card {
    padding: 30px 25px;
    text-align: left;

    background: rgba(17, 24, 39, 0.96);
    border: 1px solid var(--border-soft);
    border-radius: 14px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    background: var(--panel-secondary);
    border-color: rgba(56, 189, 248, 0.4);
}

.feature-card h3 {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 17px;
    font-weight: 700;
}

.feature-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* =====================================================
   COMMUNITY
   ===================================================== */

.community {
    background:
        radial-gradient(
            ellipse at center,
            rgba(56, 189, 248, 0.09),
            transparent 70%
        ),
        var(--panel);

    border-top: 1px solid var(--border-soft);
}

.community > p:not(.eyebrow) {
    max-width: 600px;
    margin: 0 auto 34px;
}

/* =====================================================
   FOOTER
   ===================================================== */

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 30px max(
        24px,
        calc((100% - var(--content-width)) / 2)
    );

    background: var(--background-deep);
    border-top: 1px solid var(--border-soft);

    color: var(--text-muted);
    font-size: 13px;
}


/* Footer legal links */

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--accent);
}

@media (max-width: 600px) {
    .footer-links {
        gap: 12px 18px;
    }
}


/* =====================================================
   SCROLL HEADER
   ===================================================== */

.site-header.is-scrolled {
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.25);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1000px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-nav {
        gap: 18px;
    }
}

@media (max-width: 650px) {
    .site-header {
        min-height: 68px;
        padding: 12px 18px;
        gap: 12px;
    }

    .site-brand {
        font-size: 22px;
    }

    .site-nav {
        display: none;
    }

    .header-play {
        padding: 10px 14px;
        font-size: 12px;
    }

    .hero {
        min-height: 570px;
        padding: 90px 20px;
    }

    .hero h1 {
        font-size: clamp(36px, 10vw, 52px);
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-actions,
    .community-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 310px;
        margin: 0 auto;
    }

    .section {
        padding: 75px 20px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 26px 22px;
    }

    .site-footer {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

/* =====================================================
   GAMEPLAY SCREENSHOTS
   ===================================================== */

.hero {
    flex-direction: column;
    gap: 60px;
    padding-bottom: 90px;
}

.hero-preview,
.showcase-image {
    width: 100%;
    max-width: 1000px;
    overflow: hidden;

    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.45);
}

.hero-preview {
    position: relative;
    z-index: 1;
}

.game-preview-header {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 13px 18px;
    background: #1e293b;
    border-bottom: 1px solid #334155;

    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.preview-indicator {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

.hero-preview img,
.showcase-image img {
    display: block;
    width: 100%;
    height: auto;
    image-rendering: pixelated;
}

.showcase {
    background: #0f172a;
}

.showcase-description {
    max-width: 600px;
    margin: 0 auto 38px;
    color: #d1d5db;
    font-size: 17px;
}

.showcase-image {
    margin: 0 auto;
}

@media (max-width: 650px) {
    .hero {
        gap: 40px;
        padding-bottom: 65px;
    }

    .hero-preview,
    .showcase-image {
        border-radius: 10px;
    }

    .game-preview-header {
        padding: 10px 12px;
        font-size: 10px;
    }
}
/* Official Tervia logo */

.site-brand {
    display: flex;
    align-items: center;
}

.site-brand img {
    display: block;
    width: auto;
    height: 55px;
    max-width: 180px;
    object-fit: contain;
}

.hero-logo {
    display: block;
    width: min(100%, 680px);
    height: auto;
    margin: 0 auto 35px;
    object-fit: contain;
}

@media (max-width: 650px) {
    .site-brand img {
        height: 42px;
        max-width: 140px;
    }

    .hero-logo {
        margin-bottom: 25px;
    }
}


/* =====================================================
   OUR PROMISE TO PLAYERS
   ===================================================== */

.promise-section {
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(56, 189, 248, 0.08),
            transparent 65%
        ),
        #0b1220;

    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.promise-heading {
    max-width: 800px;
    margin: 0 auto 55px;
}

.promise-heading h2 {
    color: #f8fafc;
}

.promise-intro {
    max-width: 700px;
    margin: 0 auto;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

.promise-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;

    max-width: 1200px;
    margin: 0 auto;
}

.promise-card {
    padding: 32px 25px;
    text-align: left;

    background: rgba(17, 24, 39, 0.96);
    border: 1px solid #334155;
    border-radius: 14px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.2);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.promise-card:hover {
    transform: translateY(-5px);
    background: #1e293b;
    border-color: #38bdf8;
}

.promise-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;
    margin-bottom: 24px;

    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;

    font-size: 26px;
}

.promise-card h3 {
    margin: 0 0 15px;
    color: #38bdf8;
    font-size: 17px;
    font-weight: 800;
}

.promise-card p {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.8;
}

/* Bottom message */

.promise-footer {
    max-width: 800px;
    margin: 70px auto 0;
    text-align: center;
}

.promise-footer h3 {
    margin: 0 0 15px;
    color: #f8fafc;
    font-size: clamp(21px, 3vw, 30px);
    font-weight: 800;
}

.promise-footer p {
    margin: 0 auto 30px;
    color: #94a3b8;
    font-size: 16px;
}

/* Responsive */

@media (max-width: 1000px) {
    .promise-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .promise-heading {
        margin-bottom: 35px;
    }

    .promise-intro {
        font-size: 16px;
    }

    .promise-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .promise-card {
        padding: 26px 22px;
    }

    .promise-footer {
        margin-top: 50px;
    }
}
