/* =========================================================
   GoSharky.dk — homepage
   Marquee-driven navigation, baby pink + dark
   ========================================================= */

:root {
    --bg: #0A0612;
    --bg-2: #140A1F;
    --pink: #FFB6D1;
    --pink-hot: #FF85B8;
    --pink-soft: #FFD4E5;
    --pink-glow: rgba(255, 133, 184, 0.45);
    --text: #FFFFFF;
    --text-muted: #B5A8C2;
    --text-dim: #6B5F7A;
    --border: rgba(255, 182, 209, 0.14);
    --grid: rgba(255, 182, 209, 0.05);

    --cs2:       #6FA8FF;
    --cs2-glow:  rgba(111, 168, 255, 0.45);
    --css-game:  #FFB347;
    --css-glow:  rgba(255, 179, 71, 0.45);
    --isle:      #88E0A7;
    --isle-glow: rgba(136, 224, 167, 0.45);

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; width: 100%; }

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
}

/* =========================================================
   Background
   ========================================================= */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 56px 56px;
    z-index: 0;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black 0%, black 35%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 0%, black 35%, transparent 80%);
    opacity: 0.7;
}

.orbs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    will-change: transform;
}
.orb--1 {
    width: 520px; height: 520px;
    top: -160px; left: -120px;
    background: radial-gradient(circle, var(--pink-hot), transparent 70%);
    opacity: 0.45;
    animation: drift1 22s ease-in-out infinite;
}
.orb--2 {
    width: 460px; height: 460px;
    bottom: -140px; right: -120px;
    background: radial-gradient(circle, #B458D8, transparent 70%);
    opacity: 0.35;
    animation: drift2 26s ease-in-out infinite;
}
.orb--3 {
    width: 380px; height: 380px;
    top: 38%; left: 55%;
    background: radial-gradient(circle, var(--pink), transparent 70%);
    opacity: 0.28;
    animation: drift3 18s ease-in-out infinite;
}
@keyframes drift1 { 0%,100% { transform: translate(0, 0);   } 50% { transform: translate(60px, 40px);   } }
@keyframes drift2 { 0%,100% { transform: translate(0, 0);   } 50% { transform: translate(-40px, -60px); } }
@keyframes drift3 { 0%,100% { transform: translate(0, 0) scale(0.95); } 50% { transform: translate(-50px, 30px) scale(1.05); } }

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.04;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
}

/* =========================================================
   Brand header
   ========================================================= */
.brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 28px 32px;
}
.brand__logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px var(--pink-glow));
    animation: floatLogo 6s ease-in-out infinite;
}
@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}
.brand__text {
    display: flex;
    flex-direction: column;
}
.brand__name {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--pink);
}
.brand__sub {
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 2px;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 36px 24px 32px;
    max-width: 720px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeUp 0.9s var(--ease-out) 0.1s forwards;
}
.hero__title {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: clamp(34px, 5.2vw, 60px);
    line-height: 1.04;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}
.hero__line { display: block; }
.hero__line--accent {
    background: linear-gradient(135deg, var(--pink-soft) 0%, var(--pink-hot) 50%, var(--pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 18px var(--pink-glow));
}
.hero__lead {
    color: var(--text-muted);
    font-size: clamp(14px, 1.5vw, 16px);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.55;
}

/* =========================================================
   Marquees — the main navigation
   ========================================================= */
.marquees {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1280px;
    margin: 36px auto 40px;
    padding: 0 24px;
    width: 100%;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 0.3s forwards;
}

.band {
    position: relative;
    display: flex;
    align-items: center;
    height: 140px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.5s var(--ease-out);
    will-change: transform;
}
/* Subtle alternating tilts — the band's signature */
.band:nth-child(1) { transform: rotate(-1.4deg); }
.band:nth-child(2) { transform: rotate(0.8deg); }
.band:nth-child(3) { transform: rotate(-0.5deg); }

.band__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 182, 209, 0.04),
        transparent);
    transition: background 0.5s var(--ease-out);
    pointer-events: none;
}
.band:hover .band__bg {
    background: linear-gradient(90deg,
        transparent,
        var(--accent-glow),
        transparent);
}

/* Big scrolling type */
.band__scroll {
    display: flex;
    align-items: center;
    gap: 0;
    animation: marqueeScroll 28s linear infinite;
    color: rgba(255, 255, 255, 0.07);
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(52px, 8.5vw, 104px);
    font-weight: 700;
    letter-spacing: -0.03em;
    white-space: nowrap;
    line-height: 1;
    transition: color 0.5s var(--ease-out), text-shadow 0.5s var(--ease-out);
    position: relative;
    z-index: 1;
}
.band__scroll span { display: inline-block; padding: 0; }

.band:hover .band__scroll {
    color: var(--accent);
    animation-play-state: paused;
    text-shadow: 0 0 26px var(--accent-glow);
}
.band:hover {
    border-color: var(--accent);
}

@keyframes marqueeScroll {
    from { transform: translateX(0);    }
    to   { transform: translateX(-50%); }
}

/* Info chip — slides in from right on hover */
.band__info {
    position: absolute;
    right: 36px;
    top: 50%;
    transform: translateY(-50%) translateX(28px);
    opacity: 0;
    text-align: right;
    background: rgba(10, 6, 18, 0.92);
    padding: 14px 22px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid var(--accent);
    box-shadow: 0 8px 32px -8px var(--accent-glow);
    transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
    z-index: 2;
    white-space: nowrap;
}
.band:hover .band__info {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}
.band__url {
    font-family: "JetBrains Mono", monospace;
    color: var(--accent);
    font-size: 13px;
    letter-spacing: 0.04em;
}
.band__tag {
    color: var(--text-muted);
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-top: 4px;
}

/* Screen-reader-only label (assistive text) */
.band__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Per-game accent tokens */
.band--cs2  { --accent: var(--cs2);       --accent-glow: var(--cs2-glow); }
.band--css  { --accent: var(--css-game);  --accent-glow: var(--css-glow); }
.band--isle { --accent: var(--isle);      --accent-glow: var(--isle-glow); }

/* =========================================================
   Community / Discord
   ========================================================= */
.community {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 24px 24px 40px;
    max-width: 680px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 0.55s forwards;
}
.discord-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--pink-hot) 0%, var(--pink) 100%);
    color: var(--bg);
    text-decoration: none;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.02em;
    border-radius: 999px;
    box-shadow:
        0 8px 24px -8px var(--pink-glow),
        0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.discord-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--pink-soft) 0%, var(--pink-hot) 100%);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
    z-index: -1;
}
.discord-cta:hover {
    transform: translateY(-3px);
    box-shadow:
        0 16px 40px -8px var(--pink-glow),
        0 4px 8px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.discord-cta:hover::before { opacity: 1; }
.discord-cta:active { transform: translateY(-1px); }

.discord-cta__icon {
    width: 20px; height: 20px;
    flex-shrink: 0;
}
.discord-cta__label {
    position: relative;
    z-index: 1;
}
.discord-cta__arrow {
    display: inline-block;
    transition: transform 0.4s var(--ease-out);
    font-weight: 500;
}
.discord-cta:hover .discord-cta__arrow {
    transform: translateX(4px);
}

.community__line {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.4;
}
.community__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 0 8px var(--pink-glow);
    flex-shrink: 0;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 20px 24px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    font-weight: 500;
}
.footer__brand {
    color: var(--pink);
    font-weight: 700;
}
.footer__sep {
    color: var(--text-dim);
    opacity: 0.5;
}
.footer__tags {
    display: inline-flex;
    gap: 8px;
}
.footer__tags span {
    padding: 3px 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: rgba(255, 182, 209, 0.04);
    color: var(--text-muted);
    letter-spacing: 0.08em;
    font-size: 10px;
}

/* =========================================================
   Entrance animation
   ========================================================= */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 768px) {
    .brand { padding: 20px 20px; }
    .brand__logo { width: 44px; height: 44px; }
    .brand__name { font-size: 12px; letter-spacing: 0.28em; }
    .brand__sub { font-size: 9px; }

    .hero { padding: 28px 20px 20px; }
    .hero__title { margin-bottom: 12px; }

    .marquees { gap: 14px; padding: 0 16px; margin: 28px auto 32px; }
    .band { height: 110px; }
    .band__info { right: 14px; padding: 10px 14px; }
    .band__url { font-size: 11px; }
    .band__tag { font-size: 9px; }

    .community { padding: 20px 20px 32px; }
    .discord-cta { padding: 13px 24px; font-size: 14px; }
    .community__line { margin-top: 16px; font-size: 12px; }

    .footer { font-size: 10px; padding-bottom: 22px; gap: 8px; }
    .footer__tags span { font-size: 9px; padding: 2px 6px; }
}

@media (max-width: 400px) {
    .footer__tags { display: none; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .band__scroll { animation: none !important; }
    .orb, .brand__logo { animation: none !important; }
}
