/* =========================================================
   TITANS PRODUCTIONS · GTA VI
   Vice City sunset: night purple, hot pink, orange, gold, neon teal
   ========================================================= */

:root {
    --bg: #0b0613;
    --bg-2: #120822;
    --panel: rgba(255, 255, 255, 0.035);
    --line: rgba(255, 255, 255, 0.1);
    --text: #f8eefc;
    --muted: #b9abcb;
    --pink: #ff3d8b;
    --orange: #ff8a3d;
    --gold: #ffd36b;
    --purple: #7b3fe4;
    --teal: #3fe0d0;
    --sunset: linear-gradient(90deg, #ff3d8b 0%, #ff8a3d 55%, #ffd36b 100%);
    --display: 'Barlow Condensed', Impact, sans-serif;
    --body: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- header ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 68px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 max(4vw, 24px);
    background: rgba(11, 6, 19, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: 0.08em; }
.brand em {
    font-style: normal;
    background: var(--sunset);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav { display: flex; align-items: center; gap: 30px; grid-column: 2; }
.nav a {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--muted);
    transition: color 0.2s;
}
.nav a:hover { color: #fff; }

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    color: var(--text);
    font-size: 22px;
    cursor: pointer;
}

/* ---------- language menu (i18n.js) ---------- */
.i18n-pending body { visibility: hidden; }
.topbar > .lang-select { grid-column: 3; grid-row: 1; justify-self: end; margin-right: 5vw; position: relative; }
.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: border-color 0.2s;
}
.lang-btn:hover, .lang-select.open .lang-btn { border-color: rgba(255, 61, 139, 0.6); }
.lang-flag { display: inline-flex; width: 20px; height: 14px; border-radius: 2px; overflow: hidden; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); }
.lang-flag svg { width: 100%; height: 100%; display: block; }
.lang-arrow { font-size: 9px; color: var(--muted); transition: transform 0.2s; }
.lang-select.open .lang-arrow { transform: rotate(180deg); }
.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 100%;
    margin: 0;
    padding: 4px;
    list-style: none;
    background: #160c26;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 60;
}
.lang-select.open .lang-menu { display: block; }
.lang-menu li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--muted);
    cursor: pointer;
    white-space: nowrap;
    outline: none;
}
.lang-menu li + li { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.lang-menu li:hover, .lang-menu li:focus { background: rgba(255, 61, 139, 0.14); color: #fff; }
.lang-menu li[aria-selected="true"] { color: #fff; background: rgba(255, 138, 61, 0.12); }

/* ---------- hero: sunset over the city ---------- */
.hero {
    position: relative;
    min-height: calc(100vh - 68px);
    min-height: calc(100svh - 68px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
}

.sky {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, #120822 0%, #2a0d45 22%, #6a1a6e 42%, #c22d6e 58%, #ff6a4a 72%, #ffb35c 82%, #ffd36b 86%);
}

.sky::after { /* darken the very top so the header area stays calm */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 6, 19, 0.55) 0%, transparent 30%);
}

.sun {
    position: absolute;
    left: 50%;
    bottom: 14%;
    width: min(62vw, 620px);
    aspect-ratio: 1;
    transform: translateX(-50%);
    border-radius: 50%;
    background: linear-gradient(180deg, #ffe08a 0%, #ffb347 35%, #ff6b5e 65%, #ff3d8b 100%);
    box-shadow: 0 0 120px rgba(255, 106, 74, 0.55), 0 0 260px rgba(255, 61, 139, 0.35);
    -webkit-mask: linear-gradient(180deg, #000 52%, transparent 52%, transparent 55%, #000 55%, #000 61%, transparent 61%, transparent 65%, #000 65%, #000 70%, transparent 70%, transparent 75%, #000 75%, #000 79%, transparent 79%, transparent 85%, #000 85%);
    mask: linear-gradient(180deg, #000 52%, transparent 52%, transparent 55%, #000 55%, #000 61%, transparent 61%, transparent 65%, #000 65%, #000 70%, transparent 70%, transparent 75%, #000 75%, #000 79%, transparent 79%, transparent 85%, #000 85%);
}

.skyline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14%;
    height: 24%;
    background: linear-gradient(180deg, #2a0f3d 0%, #160822 100%);
    clip-path: polygon(0 100%, 0 62%, 4% 62%, 4% 40%, 8% 40%, 8% 55%, 11% 55%, 11% 30%, 13% 30%, 13% 22%, 15% 22%, 15% 30%, 17% 30%, 17% 58%, 21% 58%, 21% 45%, 25% 45%, 25% 70%, 30% 70%, 30% 50%, 33% 50%, 33% 36%, 36% 36%, 36% 64%, 40% 64%, 40% 74%, 44% 74%, 44% 56%, 47% 56%, 47% 66%, 53% 66%, 53% 52%, 56% 52%, 56% 70%, 60% 70%, 60% 40%, 63% 40%, 63% 18%, 64.5% 10%, 66% 18%, 66% 40%, 69% 40%, 69% 60%, 73% 60%, 73% 48%, 77% 48%, 77% 66%, 81% 66%, 81% 34%, 85% 34%, 85% 54%, 89% 54%, 89% 42%, 93% 42%, 93% 64%, 97% 64%, 97% 50%, 100% 50%, 100% 100%);
    opacity: 0.95;
}

.palm { position: absolute; bottom: 12%; fill: #12061e; height: min(62vh, 520px); width: auto; opacity: 0.96; }
.palm-left { left: -2%; }
.palm-right { right: -1%; height: min(52vh, 440px); }

.water {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 14%;
    background:
        repeating-linear-gradient(180deg, rgba(255, 179, 71, 0.22) 0 2px, transparent 2px 9px),
        linear-gradient(180deg, #3a0f45 0%, #170824 70%, var(--bg) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 760px;
    padding: 60px 24px 120px;
}

/* soft dark glow behind the text, so it reads on top of the bright sunset */
.hero-inner::before {
    content: "";
    position: absolute;
    inset: 18% -6% 14%;
    z-index: -1;
    background: radial-gradient(ellipse at center, rgba(14, 5, 24, 0.62) 0%, rgba(14, 5, 24, 0.35) 45%, transparent 72%);
    filter: blur(10px);
    pointer-events: none;
}

/* big main logo, same size as on the RedM store */
.hero-title { margin: 0 auto 26px; width: min(480px, 85%); line-height: 0; }

.hero-logo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(11, 6, 19, 0.9)) drop-shadow(0 18px 40px rgba(255, 61, 139, 0.35));
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.hero .eyebrow { text-shadow: 0 2px 10px rgba(11, 6, 19, 0.9); }

.eyebrow {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--gold);
}

h1, h2, h3 { font-family: var(--display); text-transform: uppercase; margin: 0; }

h1 {
    font-size: clamp(46px, 9vw, 96px);
    font-weight: 900;
    font-style: italic;
    line-height: 0.95;
    letter-spacing: 0.01em;
    text-shadow: 0 3px 0 rgba(20, 6, 32, 0.9), 0 6px 30px rgba(11, 6, 19, 0.7);
}

/* on the sunset, the highlighted words are bright gold-to-white with a dark edge */
.hero h1 em {
    background: linear-gradient(180deg, #ffffff 0%, #ffe9a8 45%, #ffc04d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: none; /* a shadow would show through the see-through gradient letters */
    filter: drop-shadow(0 3px 0 rgba(20, 6, 32, 0.95)) drop-shadow(0 0 24px rgba(255, 61, 139, 0.55));
}

h1 em, h2 em {
    text-shadow: none;
    font-style: italic;
    background: var(--sunset);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-right: 0.06em;
}

.lead {
    margin: 18px auto 30px;
    max-width: 560px;
    font-size: 16px;
    color: #f1e4f7;
    text-shadow: 0 2px 14px rgba(11, 6, 19, 0.8);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    transition: transform 0.2s, filter 0.2s, border-color 0.2s, background 0.2s;
}

.btn-primary {
    background: linear-gradient(90deg, #ff3d8b 0%, #ff6a4a 55%, #ff9a3d 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(255, 61, 139, 0.4);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); }

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(11, 6, 19, 0.45);
    color: #fff;
    backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--teal); transform: translateY(-2px); }

/* ---------- sections ---------- */
.section { position: relative; z-index: 2; padding: 100px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

h2 { font-size: clamp(36px, 6vw, 64px); font-weight: 900; font-style: italic; line-height: 1; }
.section-lead { color: var(--muted); font-size: 16px; max-width: 620px; margin: 16px 0 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 46px; }

.card {
    position: relative;
    padding: 30px 26px;
    border-radius: 12px;
    background: var(--panel);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform 0.25s, border-color 0.25s;
}
.card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: var(--sunset);
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 61, 139, 0.45); }
.card-num { font-family: var(--display); font-size: 40px; font-weight: 900; font-style: italic; color: rgba(255, 255, 255, 0.1); line-height: 1; }
.card h3 { font-size: 22px; font-weight: 800; letter-spacing: 0.04em; margin: 10px 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.split .btn { margin-top: 24px; }

.join-card {
    text-align: center;
    padding: 60px 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 61, 139, 0.35);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 61, 139, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(63, 224, 208, 0.12) 0%, transparent 60%),
        var(--bg-2);
    box-shadow: 0 0 60px rgba(255, 61, 139, 0.15);
}
.join-card .section-lead { margin: 16px auto 28px; }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 2; border-top: 1px solid var(--line); padding: 34px max(4vw, 24px); }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.footer-copy { margin: 0; font-size: 10px; letter-spacing: 0.12em; color: #8a7d9c; }
.footer-links { display: flex; gap: 22px; font-size: 10px; letter-spacing: 0.12em; color: var(--muted); }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-note { margin: 18px 0 0; font-size: 11px; color: #6f6383; max-width: 760px; }

/* ---------- legal pages ---------- */
.legal { position: relative; z-index: 2; width: min(820px, calc(100% - 48px)); margin: 0 auto; padding: 70px 0 90px; }
.legal h1 { font-size: clamp(40px, 7vw, 64px); margin-bottom: 8px; }
.legal h2 { font-size: 24px; font-style: normal; margin: 36px 0 10px; letter-spacing: 0.03em; }
.legal p, .legal li { color: #d4c7e3; }
.legal a { color: var(--gold); text-decoration: underline; }
.legal-note { font-size: 12px; color: var(--muted); font-style: italic; }

/* ---------- 404 ---------- */
.notfound { position: relative; z-index: 2; min-height: calc(100vh - 68px - 100px); display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 24px; }
.notfound-code {
    font-family: var(--display);
    font-size: clamp(110px, 24vw, 220px);
    font-weight: 900;
    font-style: italic;
    line-height: 0.85;
    background: var(--sunset);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 10px 0 16px;
}
.notfound .lead { text-shadow: none; color: var(--muted); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
    .cards { grid-template-columns: 1fr; }
    .split { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 880px) {
    .topbar { display: flex; justify-content: space-between; padding: 0 18px; }
    .brand span { display: none; }
    .menu-toggle { display: block; position: absolute; left: 50%; transform: translateX(-50%); }
    .topbar > .lang-select { margin-right: 0; }
    .nav {
        display: none;
        position: absolute;
        top: 67px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 22px 24px;
        background: #0e0718;
        border-bottom: 1px solid var(--line);
    }
    .nav.open { display: flex; }
    .palm { height: 34vh; }
    .palm-right { height: 28vh; }
    .sun { width: 88vw; bottom: 16%; }
    .section { padding: 70px 0; }
    .footer-row { flex-direction: column; align-items: flex-start; }
}

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