/* ============================================================
   SKIT - shared design system (red & black)
   ============================================================ */

:root {
    --bg: #060607;
    --bg-soft: #0b0b0d;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-strong: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.09);
    --border-red: rgba(255, 26, 26, 0.35);
    --text: #f5f5f6;
    --muted: #9b9ba3;
    --red: #ff1a1a;
    --red-hot: #ff5252;
    --red-deep: #b30000;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
    --glow: 0 0 44px rgba(255, 26, 26, 0.22);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    animation: page-in 0.6s cubic-bezier(0.2, 0.6, 0.2, 1) both;
}

@keyframes page-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

::selection {
    background: var(--red);
    color: #fff;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--red), var(--red-deep));
    border-radius: 8px;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--red-hot);
    outline-offset: 3px;
    border-radius: 8px;
}

/* ---------- Background layers ---------- */
.aurora {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.aurora::before,
.aurora::after {
    content: "";
    position: absolute;
    width: 60vmax;
    height: 60vmax;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.2;
    animation: drift 18s ease-in-out infinite alternate;
}

.aurora::before {
    top: -20vmax;
    left: -15vmax;
    background: radial-gradient(circle, var(--red) 0%, transparent 70%);
}

.aurora::after {
    bottom: -25vmax;
    right: -15vmax;
    background: radial-gradient(circle, #3a0606 0%, transparent 70%);
    animation-delay: -9s;
}

@keyframes drift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(8vmax, -6vmax) scale(1.25); }
}

.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 0, 0, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 0, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    pointer-events: none;
}

/* ---------- Navigation ---------- */
nav {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(92%, 1000px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px 12px 24px;
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.55);
    border: 1px solid rgba(255, 26, 26, 0.16);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: background 0.3s ease, border-color 0.3s ease;
}

nav.scrolled {
    background: rgba(6, 6, 8, 0.92);
    border-color: rgba(255, 26, 26, 0.3);
}

.logo {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 3px;
    background: linear-gradient(90deg, var(--red), var(--red-hot));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.logo .dot {
    color: var(--red-hot);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
}

nav ul li a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 9px 16px;
    border-radius: 999px;
    transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    position: relative;
}

nav ul li a:hover {
    color: var(--text);
    background: rgba(255, 26, 26, 0.12);
    transform: translateY(-1px);
}

nav ul li a.active {
    color: #fff;
    background: linear-gradient(120deg, var(--red), var(--red-deep));
    box-shadow: 0 4px 18px rgba(255, 26, 26, 0.4);
}

nav ul li a.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text);
    box-shadow: 0 0 6px var(--text);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Layout ---------- */
main {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: calc(100vh - 200px);
}

section {
    padding: 100px 0 40px;
    position: relative;
}

/* Page header for interior pages */
.page-head {
    padding: 170px 0 30px;
}

.page-head.center {
    text-align: center;
}

.page-head.center p {
    margin: 0 auto;
}

.page-head .eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 14px;
}

.page-head.center .eyebrow::after {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    margin: 16px auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--red), transparent);
}

.page-head h1 {
    font-size: clamp(2.4rem, 5.5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 14px;
}

.page-head p {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 520px;
}

/* ---------- Hero ---------- */
.hero {
    display: flex;
    gap: 48px;
    align-items: center;
    flex-wrap: wrap;
    min-height: 92vh;
    padding-top: 160px;
}

.hero-text {
    flex: 1.2;
    min-width: 300px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    margin-bottom: 22px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffd7d7;
    background: rgba(255, 26, 26, 0.1);
    border: 1px solid var(--border-red);
    backdrop-filter: blur(8px);
}

.hero-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 12px var(--red);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}

.hero-text h1 {
    font-size: clamp(2.8rem, 6.5vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--red), var(--red-hot), var(--red-deep));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
    0%   { background-position: 0% center; }
    50%  { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.subtitle {
    color: var(--muted);
    font-size: 1.12rem;
    margin-bottom: 34px;
    max-width: 480px;
}

.btn-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn .btn-arrow {
    transition: transform 0.2s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(3px);
}

.primary-btn {
    color: #fff;
    background: linear-gradient(120deg, var(--red), var(--red-deep));
    background-size: 160% auto;
    box-shadow: 0 6px 24px rgba(255, 26, 26, 0.35);
}

.primary-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow);
    background-position: right center;
}

.primary-btn:hover::after {
    transform: translateX(120%);
}

.ghost-btn {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border);
    backdrop-filter: blur(8px);
}

.ghost-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-red);
}

/* ---------- Cards ---------- */
.glass-card {
    position: relative;
    padding: 34px;
    border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-red);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.glass-card::before {
    content: "";
    position: absolute;
    top: -60%;
    right: -60%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--red), transparent 65%);
    opacity: 0.26;
    filter: blur(24px);
}

.glass-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    position: relative;
}

.glass-card p {
    color: var(--muted);
    line-height: 1.6;
    position: relative;
}

.glass-card .card-stats {
    position: relative;
    margin-top: 22px;
    font-weight: 700;
    color: var(--red-hot);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
    position: relative;
}

.skill-tags span {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 26, 26, 0.08);
    border: 1px solid var(--border-red);
    color: #ffd7d7;
    transition: background 0.25s ease, transform 0.25s ease;
}

.skill-tags span:hover {
    background: rgba(255, 26, 26, 0.18);
    transform: translateY(-2px);
}

/* ---------- Section headers ---------- */
.section-head {
    margin-bottom: 44px;
}

.section-head .eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 12px;
}

.section-head h2 {
    font-size: clamp(1.9rem, 4.5vw, 2.7rem);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-head p {
    color: var(--muted);
    max-width: 520px;
}

/* ---------- Grids / tiles ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.tile {
    position: relative;
    padding: 32px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    overflow: hidden;
}

.tile::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--red-hot));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.tile:hover {
    transform: translateY(-6px);
    border-color: var(--border-red);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), var(--glow);
    background: rgba(255, 26, 26, 0.05);
}

.tile:hover::after {
    transform: scaleX(1);
}

.tile .icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: 1.5rem;
    margin-bottom: 20px;
    background: rgba(255, 26, 26, 0.1);
    border: 1px solid var(--border-red);
    color: var(--red-hot);
    transition: transform 0.3s ease, background 0.3s ease;
}

.tile:hover .icon {
    transform: scale(1.1) rotate(-5deg);
    background: rgba(255, 26, 26, 0.2);
}

.tile h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.tile p {
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.6;
}

.tile .arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--red);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tile:hover .arrow {
    opacity: 1;
    transform: translateX(0);
}

a.tile {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ---------- Link card (Discord landing) ---------- */
.links-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
}

.big-link {
    display: flex;
    align-items: center;
    gap: 22px;
    width: min(100%, 560px);
    padding: 22px 26px;
    border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-red);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.big-link::before {
    content: "";
    position: absolute;
    top: -70%;
    right: -30%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--red), transparent 65%);
    opacity: 0.3;
    filter: blur(22px);
    transition: opacity 0.3s ease;
}

.big-link:hover {
    transform: translateY(-5px);
    border-color: var(--red);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), var(--glow);
}

.big-link:hover::before {
    opacity: 0.45;
}

.big-link .brand-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(255, 26, 26, 0.12);
    border: 1px solid var(--border-red);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.big-link:hover .brand-icon {
    transform: scale(1.08);
}

.big-link .brand-icon svg {
    width: 34px;
    height: 34px;
    fill: var(--red-hot);
}

.big-link h3 {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.big-link p {
    color: var(--muted);
    font-size: 0.88rem;
    position: relative;
    z-index: 1;
}

.big-link .go {
    margin-left: auto;
    color: var(--red-hot);
    font-size: 1.4rem;
    position: relative;
    z-index: 1;
    transition: transform 0.25s ease;
}

.big-link:hover .go {
    transform: translateX(5px);
}

.soon {
    width: min(100%, 560px);
    padding: 18px 26px;
    border-radius: var(--radius);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
}

/* ---------- Contact ---------- */
.contact-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding-top: 20px;
}

.coming-soon {
    margin: 0 auto;
    padding: 64px 28px;
    max-width: 640px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    text-align: center;
    transition: border-color 0.3s ease;
}

.coming-soon:hover {
    border-color: var(--border-red);
}

.coming-arrow {
    font-size: clamp(2.6rem, 7vw, 4.2rem);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1;
}

.coming-soon p {
    margin-top: 18px;
    color: var(--muted);
    font-size: 1.05rem;
}

.contact-note {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    width: 100%;
    max-width: 560px;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.note-card {
    padding: 18px 22px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    text-align: center;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.note-card:hover {
    border-color: var(--border-red);
    transform: translateY(-3px);
}

.note-card .n-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.note-card .n-value,
.note-card .n-value a {
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.note-card .n-value.clock {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}

.note-card .n-value a:hover {
    color: var(--red-hot);
}

/* ---------- Footer ---------- */
footer {
    margin-top: 60px;
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
    padding: 0;
}

.footer-inner {
    max-width: 1060px;
    margin: 0 auto;
    padding: 46px 24px 0;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    padding-bottom: 34px;
}

.footer-brand .logotext {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 3px;
    background: linear-gradient(90deg, var(--red), var(--red-hot));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.footer-brand p {
    color: var(--muted);
    font-size: 0.88rem;
    max-width: 260px;
}

.footer-cols {
    display: flex;
    gap: 70px;
    flex-wrap: wrap;
}

.footer-cols h4 {
    font-size: 0.75rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}

.footer-cols ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-cols a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease;
    position: relative;
}

.footer-cols a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.footer-cols a:hover::after {
    transform: scaleX(1);
}

.footer-cols a:hover {
    color: var(--red-hot);
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
    transform: translateY(-3px);
    border-color: var(--border-red);
    box-shadow: var(--glow);
}

.footer-social svg {
    width: 20px;
    height: 20px;
    fill: var(--red-hot);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.83rem;
}

.footer-bottom .heart {
    color: var(--red);
}

/* ---------- Back to top ---------- */
#to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--red), var(--red-deep));
    color: #fff;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    box-shadow: var(--glow);
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 900;
}

#to-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#to-top:hover {
    box-shadow: 0 8px 34px rgba(255, 26, 26, 0.55);
}

/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    body { animation: none; }
    .aurora::before,
    .aurora::after { animation: none; }
    .gradient-text { animation: none; }
    .hero-badge::before { animation: none; }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .primary-btn:hover::after,
    .primary-btn::after { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
    nav {
        width: calc(100% - 24px);
        top: 12px;
        padding: 10px 14px;
    }

    nav ul {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 4px;
        padding: 14px;
        background: rgba(8, 8, 10, 0.96);
        border: 1px solid var(--border-red);
        border-radius: 18px;
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        box-shadow: var(--shadow);
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    nav ul.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    nav ul li a {
        display: block;
        text-align: center;
        padding: 12px;
    }

    nav ul li a.active::after {
        bottom: 8px;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding-top: 130px;
        min-height: 88vh;
    }

    section {
        padding: 70px 0 30px;
    }

    .page-head {
        padding: 130px 0 20px;
    }

    #to-top {
        right: 14px;
        bottom: 14px;
    }
}

/* ============================================================
   v2 POLISH
   ============================================================ */

/* ---------- Scroll progress bar ---------- */
#progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--red-hot));
    box-shadow: 0 0 12px rgba(255, 26, 26, 0.6);
    z-index: 1002;
    pointer-events: none;
}

/* ---------- Film grain ---------- */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Cursor spotlight on cards ---------- */
.tile {
    background:
        radial-gradient(480px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 26, 26, 0.1), transparent 65%),
        var(--surface);
}

.tile:hover {
    background:
        radial-gradient(480px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 26, 26, 0.16), transparent 65%),
        var(--surface);
}

.big-link {
    background:
        radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 26, 26, 0.14), transparent 65%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.glass-card {
    background:
        radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 26, 26, 0.12), transparent 65%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

/* ---------- Hero typing line ---------- */
.type-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 1.7em;
    margin-bottom: 18px;
    font-size: clamp(1.15rem, 2.6vw, 1.45rem);
    font-weight: 700;
}

.type-line .typed {
    color: var(--red-hot);
}

.type-line .caret {
    width: 3px;
    height: 1.1em;
    border-radius: 2px;
    background: var(--red);
    box-shadow: 0 0 8px var(--red);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}

/* ---------- Footer heart beat ---------- */
.footer-bottom .heart {
    display: inline-block;
    animation: beat 1.8s ease-in-out infinite;
}

@keyframes beat {
    0%, 100% { transform: scale(1); }
    25%      { transform: scale(1.3); }
}

/* ---------- Reduced motion for v2 additions ---------- */
@media (prefers-reduced-motion: reduce) {
    #progress { display: none; }
    .type-line .caret { animation: none; }
    .footer-bottom .heart { animation: none; }
}

/* ============================================================
   GAMER EDITION - stats & game cards
   ============================================================ */

.tile .chip,
.game-chip {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(255, 26, 26, 0.1);
    border: 1px solid var(--border-red);
    color: #ffd7d7;
}

.tile .game-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
}

.tile .rank {
    color: var(--red-hot);
    font-weight: 700;
    font-size: 0.86rem;
}

.tile .rank b {
    color: var(--muted);
    font-weight: 500;
    margin-right: 4px;
}

/* ---------- Stat cards ---------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}

.stat-card {
    position: relative;
    padding: 30px 24px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    background:
        radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 26, 26, 0.12), transparent 65%),
        var(--surface);
}

.stat-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--red-hot));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-red);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), var(--glow);
}

.stat-card:hover::after {
    transform: scaleX(1);
}

.stat-card .stat-label {
    font-size: 0.75rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--muted);
}

.stat-card .stat-number {
    font-size: clamp(2.4rem, 4.5vw, 3.1rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 10px 0 6px;
    background: linear-gradient(120deg, var(--red), var(--red-hot));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card .stat-detail {
    color: var(--muted);
    font-size: 0.85rem;
}

/* ---------- Stat footnote strip ---------- */
.note-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 26px;
}

.note-strip .soon {
    width: auto;
    padding: 12px 20px;
}

/* ============================================================
   AI BADGE
   ============================================================ */

.ai-badge {
    position: fixed;
    right: 18px;
    bottom: 88px;
    z-index: 40;
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #4c4c52;
    opacity: 0.32;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

/* ============================================================
   PREMIUM v3 - typography, motion, micro-interactions
   ============================================================ */

:root {
    color-scheme: dark;
    --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    --grad: linear-gradient(135deg, var(--red-hot) 0%, var(--red) 45%, var(--red-deep) 100%);
    --glass-border: rgba(255, 255, 255, 0.12);
    --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.45);
    --ring-glow: 0 0 0 1px rgba(255, 26, 26, 0.28), 0 18px 40px rgba(0, 0, 0, 0.55);
}

/* ---------- Typography ---------- */
body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
}

.hero-text h1,
.page-head h1,
.section-head h2 {
    text-wrap: balance;
}

/* ---------- Navigation microseconds ---------- */
nav {
    border-color: rgba(255, 26, 26, 0.22);
    background:
        linear-gradient(rgba(10, 10, 10, 0.82), rgba(10, 10, 10, 0.82)),
        radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 26, 26, 0.08), transparent 60%);
}

nav ul li a {
    position: relative;
}

nav ul li a::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 6px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--red-hot), var(--red-deep));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav ul li a:not(.active):hover::after {
    transform: scaleX(1);
}

nav ul li a.active {
    box-shadow: 0 6px 22px rgba(255, 26, 26, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.logo {
    font-family: var(--font-display);
    position: relative;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.logo:hover {
    transform: translateY(-1px);
    filter: drop-shadow(0 0 14px rgba(255, 26, 26, 0.7));
}

/* ---------- Cursor glow trail ---------- */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 26, 26, 0.11), rgba(255, 26, 26, 0.03) 40%, transparent 65%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    top: 42%;
    left: 62%;
    width: 46vmin;
    height: 46vmin;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(255, 26, 26, 0.55) 12%, transparent 24%);
    filter: blur(34px);
    opacity: 0.35;
    animation: spin-slow 22s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes spin-slow {
    to { transform: rotate(360deg); }
}

.hero-badge {
    font-family: var(--font-display);
    letter-spacing: 1.5px;
    padding: 8px 16px;
    background: rgba(255, 26, 26, 0.12);
    border-color: rgba(255, 26, 26, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 24px rgba(255, 26, 26, 0.18);
}

.hero-text .type-line {
    font-family: var(--font-display);
}

.hero-text .type-line .typed {
    background: linear-gradient(120deg, var(--red-hot), #ffd7d7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    box-shadow: var(--shadow-soft);
    border-color: rgba(255, 26, 26, 0.4);
}

.glass-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 26, 26, 0.7), transparent);
}

/* ---------- Ember particles ---------- */
.ember {
    position: absolute;
    bottom: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--red-hot), rgba(255, 26, 26, 0) 72%);
    opacity: 0;
    animation: ember-rise linear infinite;
    pointer-events: none;
}

@keyframes ember-rise {
    0%   { transform: translate(0, 0) scale(1); opacity: 0; }
    8%   { opacity: 0.7; }
    55%  { opacity: 0.35; }
    100% { transform: translate(var(--sx, 0px), -108vh) scale(0.6); opacity: 0; }
}

/* ---------- Buttons ---------- */
.btn {
    font-family: var(--font-display);
    letter-spacing: 0.2px;
}

.primary-btn {
    background: linear-gradient(120deg, var(--red-hot), var(--red) 40%, var(--red-deep));
    background-size: 180% auto;
    animation: btn-glow 3s ease-in-out infinite;
}

@keyframes btn-glow {
    0%, 100% { box-shadow: 0 6px 24px rgba(255, 26, 26, 0.35); }
    50%      { box-shadow: 0 8px 34px rgba(255, 26, 26, 0.6); }
}

.ghost-btn {
    border: 1px solid transparent;
    background:
        linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)) padding-box,
        linear-gradient(135deg, rgba(255, 26, 26, 0.5), rgba(255, 255, 255, 0.12) 45%, rgba(255, 26, 26, 0.5)) border-box;
}

.ghost-btn:hover {
    background:
        linear-gradient(rgba(255, 26, 26, 0.12), rgba(255, 26, 26, 0.12)) padding-box,
        linear-gradient(135deg, rgba(255, 26, 26, 0.8), rgba(255, 255, 255, 0.2) 45%, rgba(255, 26, 26, 0.8)) border-box;
    border-color: transparent;
}

/* ---------- Tiles & cards ---------- */
.tile, .big-link {
    transform-style: preserve-3d;
}

.tile h3,
.big-link h3 {
    transform: translateZ(18px);
}

.tile:hover {
    border-color: rgba(255, 26, 26, 0.55);
    box-shadow: var(--ring-glow);
}

.tile .icon {
    animation: icon-breathe 4s ease-in-out infinite;
}

@keyframes icon-breathe {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); }
}

.tile .arrow {
    opacity: 0.55;
    transform: translateX(-4px);
}

.tile:hover .arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ---------- Section headers ---------- */
.section-head .eyebrow {
    font-family: var(--font-display);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.section-head .eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad);
}

.section-head h2 {
    position: relative;
    padding-bottom: 6px;
}

.section-head h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 76px;
    height: 3px;
    border-radius: 3px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.section-head.visible h2::after {
    transform: scaleX(1);
}

/* ---------- Reveal: add blur ---------- */
.reveal {
    filter: blur(6px);
    transition:
        opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1),
        transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1),
        filter 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reveal.visible {
    filter: blur(0);
}

/* ---------- Marquee ---------- */
.marquee {
    position: relative;
    margin: 8px 0 20px;
    overflow: hidden;
    border-top: 1px solid rgba(255, 26, 26, 0.14);
    border-bottom: 1px solid rgba(255, 26, 26, 0.14);
    background: rgba(255, 26, 26, 0.03);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    white-space: nowrap;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-list {
    display: flex;
    list-style: none;
    padding: 16px 0;
}

.marquee-list li {
    display: inline-flex;
    align-items: center;
    gap: 26px;
    padding: 0 26px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
}

.marquee-list li b {
    color: var(--red-hot);
    font-weight: 700;
}

.marquee-list li::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 26px;
    border-radius: 2px;
    background: var(--red);
    transform: rotate(45deg);
    opacity: 0.55;
}

@keyframes marquee-scroll {
    to { transform: translateX(-50%); }
}

/* ---------- Note / info cards ---------- */
.note-card {
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border-color: rgba(255, 255, 255, 0.1);
}

.note-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 26, 26, 0.14), transparent 65%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.note-card:hover::before {
    opacity: 1;
}

.note-card .n-label {
    font-family: var(--font-display);
}

/* ---------- Big link (Discord) ---------- */
.big-link {
    box-shadow: var(--shadow-soft);
}

.big-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.12) 50%, transparent 70%);
    transform: translateX(-130%);
    transition: transform 0.7s ease;
    pointer-events: none;
}

.big-link:hover::after {
    transform: translateX(130%);
}

/* ---------- Footer ---------- */
footer {
    border-top: 1px solid transparent;
    background:
        linear-gradient(var(--bg-soft), var(--bg-soft)) padding-box,
        linear-gradient(90deg, transparent, rgba(255, 26, 26, 0.55), transparent) border-box;
}

.footer-brand .logotext {
    font-family: var(--font-display);
    letter-spacing: 4px;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

footer a {
    position: relative;
}

.footer-cols a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 1px;
    width: 100%;
    background: var(--red-hot);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.footer-cols a:hover::after {
    transform: scaleX(1);
}

/* ---------- Back to top ---------- */
#to-top {
    background: linear-gradient(135deg, var(--red), var(--red-deep));
    box-shadow: 0 0 0 0 rgba(255, 26, 26, 0.45);
    animation: to-top-pulse 2.6s ease-in-out infinite;
}

@keyframes to-top-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 26, 26, 0.45), var(--glow); }
    50%      { box-shadow: 0 0 0 9px rgba(255, 26, 26, 0), var(--glow); }
}

/* ---------- Coarse pointers & mobile ---------- */
@media (hover: none), (pointer: coarse) {
    .marquee-track { animation-duration: 40s; }
    .tile .arrow { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
    .hero { padding-top: 140px; }
    .marquee-list li { font-size: 0.8rem; letter-spacing: 2px; }
    .cursor-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .marquee-track,
    .ember,
    .tile .icon,
    .primary-btn,
    #to-top {
        animation: none;
    }
    .ember { display: none; }
    .cursor-glow { display: none; }
    .reveal { filter: none; transition: none; }
}

/* ============================================================
   GAME LOGOS - name + mark tiles
   ============================================================ */

.game-tile {
    text-align: center;
    padding: 38px 24px 34px;
}

.game-logo {
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}

.game-logo svg {
    width: 58px;
    height: 58px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-tile:hover .game-logo svg {
    transform: scale(1.1) rotate(-4deg);
}

.game-tile h3 {
    font-size: 1.25rem;
}

/* ============================================================
   COMMUNITY CLICKER - mini game in the nav bar
   ============================================================ */

.com-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 8px;
    padding: 5px 12px 5px 5px;
    border-radius: 999px;
    background: rgba(255, 26, 26, 0.08);
    border: 1px solid rgba(255, 26, 26, 0.28);
    cursor: pointer;
    font-family: var(--font-display);
    color: var(--text);
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.com-pill:hover:not(.cool) {
    transform: translateY(-1px);
    background: rgba(255, 26, 26, 0.14);
    border-color: rgba(255, 26, 26, 0.6);
    box-shadow: 0 6px 20px rgba(255, 26, 26, 0.35);
}

.com-pill:active:not(.cool) {
    transform: scale(0.95);
}

.com-pill.cool {
    cursor: not-allowed;
    opacity: 0.72;
}

.com-ring {
    position: relative;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    overflow: hidden;
    flex-shrink: 0;
}

.com-ring::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from -90deg, var(--red) calc(var(--cd, 0) * 1%), transparent 0);
    opacity: 0.15;
    transition: opacity 0.2s ease;
}

.com-pill.cool .com-ring::before {
    opacity: 0.95;
}

.com-ring svg {
    position: relative;
    width: 15px;
    height: 15px;
    fill: var(--red-hot);
    z-index: 1;
    transition: fill 0.2s ease;
}

.com-pill.cool .com-ring svg {
    fill: var(--muted);
}

.com-meta {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.com-label {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
}

.com-score {
    min-width: 34px;
    text-align: right;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--red-hot);
    font-variant-numeric: tabular-nums;
}

.com-pill.bump .com-score {
    animation: com-bump 0.35s ease;
}

@keyframes com-bump {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.35); color: #fff; }
    100% { transform: scale(1); }
}

@media (max-width: 980px) {
    .com-label { display: none; }
}

@media (max-width: 560px) {
    .com-pill { gap: 7px; padding: 5px 9px 5px 5px; }
    .com-ring { width: 26px; height: 26px; }
}
