/* =========================================================
   TeamSurge -- design tokens
   Display type: Lilita One (chunky, comic/mobile-game feel,
   matches the Brawl Stars world the team plays in).
   UI type: Rajdhani (condensed, technical, esports-scoreboard feel).
   Palette keeps the team's existing violet, adds trophy-gold as a
   second accent so the page isn't a single-color glow.
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Lilita+One&family=Rajdhani:wght@500;600;700&display=swap');

:root {
    --bg-ink: #0a0710;
    --bg-card: rgba(255, 255, 255, 0.04);
    --purple-600: #7c3aed;
    --purple-500: #9155f0;
    --purple-300: #c4b5fd;
    --gold-400: #f5c518;
    --gold-300: #ffe07a;
    --text-white: #f8fafc;
    --text-muted: #9aa1b8;
    --line: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-ink);
    color: var(--text-white);
    font-family: 'Rajdhani', system-ui, sans-serif;
    font-weight: 500;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a {
    color: inherit;
}

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

/* Ambient background glow, kept from the original site */
body::before {
    content: '';
    position: fixed;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.14) 0%, rgba(0, 0, 0, 0) 70%);
    top: -120px;
    right: -120px;
    z-index: -2;
    pointer-events: none;
}

/* Faint dot grid -- a nod to the halftone print texture of the game's
   comic-style art, kept subtle so it reads as texture, not noise. */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 26px 26px;
    z-index: -1;
    pointer-events: none;
}

/* =========================================================
   Header / nav
   ========================================================= */
header {
    background: rgba(10, 7, 16, 0.82);
    backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--line);
}

/* Diagonal two-tone stripe, like a jersey collar trim */
header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 4px;
    background: repeating-linear-gradient(
        -45deg,
        var(--purple-600) 0 18px,
        var(--gold-400) 18px 22px,
        transparent 22px 36px
    );
    opacity: 0.7;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 24px;
}

.logo {
    font-family: 'Lilita One', 'Rajdhani', sans-serif;
    font-size: 22px;
    color: var(--text-white);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.logo span {
    color: var(--purple-300);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 17px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-white);
}

/* Language switch: two angled segments with a sliding highlight */
.lang-switch {
    position: relative;
    display: flex;
    width: 92px;
    height: 34px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

.lang-switch__highlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
    transition: transform 0.25s ease;
}

.lang-switch--en .lang-switch__highlight {
    transform: translateX(100%);
}

.lang-switch a {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.lang-switch a.is-active {
    color: var(--text-white);
}

@media (prefers-reduced-motion: reduce) {
    .lang-switch__highlight {
        transition: none;
    }
}

/* =========================================================
   Hero
   ========================================================= */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 150px 20px 90px;
    text-align: center;
}

.center-box {
    position: relative;
    max-width: 700px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* The one bold, orchestrated moment on the page: a slow-turning
   starburst behind the headline, echoing the game's trophy/victory
   burst motif without competing with the text. */
.center-box::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 620px;
    height: 620px;
    transform: translate(-50%, -50%);
    background: conic-gradient(
        from 0deg,
        rgba(245, 197, 24, 0.16) 0deg 10deg,
        transparent 10deg 30deg
    );
    background-repeat: repeat;
    background-size: 60px 100%;
    clip-path: circle(50% at 50% 50%);
    animation: spin-slow 50s linear infinite;
    z-index: -1;
}

@keyframes spin-slow {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .center-box::before {
        animation: none;
    }
}

.tagline {
    display: inline-flex;
    align-items: center;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid var(--purple-600);
    color: var(--purple-300);
    padding: 8px 26px;
    clip-path: polygon(6% 0, 94% 0, 100% 50%, 94% 100%, 6% 100%, 0 50%);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 28px;
}

h1 {
    font-family: 'Lilita One', 'Rajdhani', sans-serif;
    font-weight: 400;
    font-size: 56px;
    line-height: 1.15;
    margin-bottom: 22px;
}

h1 .brand {
    background: linear-gradient(45deg, var(--gold-300), var(--purple-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text {
    max-width: 62ch;
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 42px;
}

/* CTA: parallelogram cut, like a jersey sponsor patch */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.3px;
    background-color: var(--purple-600);
    color: var(--text-white);
    clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.35);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    background-color: var(--purple-500);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(124, 58, 237, 0.5);
}

@media (prefers-reduced-motion: reduce) {
    .btn {
        transition: none;
    }
}

/* =========================================================
   Footer
   ========================================================= */
footer {
    padding: 36px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(10, 7, 16, 0.5);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.25);
}

.legal-link {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.legal-link:hover {
    color: var(--purple-300);
}

/* =========================================================
   Legal page
   ========================================================= */
.legal-page {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 140px 20px 60px;
}

.legal-box {
    max-width: 600px;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid rgba(124, 58, 237, 0.2);
    backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 4px;
}

.legal-box h1 {
    font-size: 30px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
    background: linear-gradient(45deg, var(--text-white), var(--purple-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-box h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--gold-400);
    margin-top: 22px;
    margin-bottom: 6px;
}

.legal-box p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.legal-box strong {
    color: var(--text-white);
    font-weight: 700;
}

.btn-back {
    display: inline-block;
    margin-top: 18px;
    color: var(--text-white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    border-bottom: 1px solid var(--purple-600);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.btn-back:hover {
    color: var(--gold-400);
    border-color: var(--gold-400);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }
    .about-text {
        font-size: 16px;
    }
    .nav-links li:not(.lang-item) {
        display: none;
    }
    .center-box::before {
        width: 420px;
        height: 420px;
    }
}
