/* ========================================
   CUSTOM PROPERTIES & RESET
======================================== */
:root {
    --dark: #0D0D0D;
    --light: #F5F4F0;
    --accent-red: #FF3344;
    --accent-green: #00FF88;
    --accent: var(--accent-red); /* Default accent */
    --white: #FFFFFF;
    --font-display: 'Clash Display', 'Inter', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--dark);
}

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

body {
    font-family: var(--font-body);
    background: var(--dark);
    color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--accent);
    color: var(--dark);
}

::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: var(--dark);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
    opacity: 0.8;
}

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

/* ========================================
   GRAIN & CURSOR
======================================== */
.grain {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
}
.grain::after {
    content: '';
    position: absolute;
    top: -200%; left: -200%; width: 500%; height: 500%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    opacity: 0.04;
    animation: grainMove 8s steps(10) infinite;
}
@keyframes grainMove {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

.cursor {
    position: fixed;
    top: 0; left: 0; width: 20px; height: 20px;
    margin: -10px 0 0 -10px;
    border-radius: 50%;
    background: var(--white);
    mix-blend-mode: difference;
    pointer-events: none;
    z-index: 10001;
    opacity: 0;
    will-change: transform;
}
@media (pointer: coarse) { .cursor { display: none !important; } }
body.has-custom-cursor * { cursor: none !important; }

/* ========================================
   NAVIGATION
======================================== */
.nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: clamp(20px, 3vw, 40px) clamp(24px, 5vw, 80px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9000;
    mix-blend-mode: difference;
    color: var(--white);
}

.nav__logo {
    font-family: var(--font-display);
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav__logo-img {
    height: 32px;
    width: auto;
}

.nav__logo span {
    color: var(--accent-red);
}

.nav__links {
    display: flex;
    gap: clamp(20px, 3vw, 32px);
}

.nav__link {
    font-family: var(--font-body);
    font-size: clamp(13px, 1.2vw, 15px);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding: 4px 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 0%; height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav__link:hover::after, .nav__link.active::after {
    width: 100%;
}

/* ========================================
   LAYOUT UTILITIES
======================================== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 80px);
}

.section-label {
    display: block;
    font-family: var(--font-body);
    font-size: clamp(11px, 1vw, 14px);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.4;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 90px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.scramble-char {
    color: var(--accent);
}

/* ========================================
   HERO
======================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    text-align: center;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(48px, 10vw, 180px);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.hero__char {
    display: inline-block;
    opacity: 0;
}

.hero__sub {
    margin-top: 24px;
    font-family: var(--font-body);
    font-size: clamp(14px, 1.5vw, 20px);
    opacity: 0;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
}


/* ========================================
   CARDS / FEATURES
======================================== */
.features {
    padding: clamp(80px, 12vw, 160px) 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    padding: clamp(30px, 4vw, 60px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.4s var(--ease-out-expo);
    opacity: 0;
    transform: translateY(40px);
    background: rgba(255, 255, 255, 0.02);
}

.feature-card:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.feature-title {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 40px);
    margin-bottom: 12px;
}

.feature-desc {
    font-family: var(--font-body);
    font-size: clamp(14px, 1.2vw, 18px);
    color: rgba(255, 255, 255, 0.6);
}

.feature-icon-top {
    width: 32px;
    height: 32px;
    margin-bottom: 24px;
    display: block;
}

.icon-svg {
    color: var(--accent);
    fill: none; /* Paths use stroke in my SVG implementation */
}

/* ========================================
   CLUBS
======================================== */
.clubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.club-card {
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    border-radius: 8px;
    transition: all 0.4s var(--ease-out-expo);
    opacity: 0;
    transform: translateY(30px);
}

.club-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.club-tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}

.club-title {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

.club-stats {
    list-style: none;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.club-stats li {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.club-stats li span {
    color: var(--white);
    font-weight: 500;
}

/* ========================================
   COMMAND SHOWCASE
======================================== */
.command-container {
    margin-top: 60px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
}

.command-header {
    background: #111;
    padding: 12px 20px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.1); }

.command-body {
    padding: 30px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
    line-height: 1.8;
}

.cmd-line { margin-bottom: 15px; }
.cmd-prompt { color: var(--accent); margin-right: 10px; }
.cmd-output { color: rgba(255, 255, 255, 0.4); padding-left: 20px; display: block; }

/* ========================================
   LOADER
======================================== */
.loader {
    position: fixed;
    inset: 0;
    background: var(--dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loader__text {
    font-family: var(--font-display);
    font-size: clamp(18px, 2vw, 28px);
    font-weight: 500;
    color: var(--white);
    opacity: 0.6;
}
.loader__bar {
    position: absolute;
    bottom: 0; left: 0; height: 3px;
    background: var(--accent);
    width: 0%; transition: width 0.3s ease;
}

/* ========================================
   BUTTONS (mlnplus style)
======================================== */
.btn {
    margin-top: 40px;
    display: inline-block;
    padding: 16px 32px;
    border: 1px solid var(--white);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    color: var(--white);
    opacity: 0;
}

.btn:hover {
    background: var(--white);
    color: var(--dark);
}

.btn--accent {
    border-color: var(--accent);
    color: var(--accent);
}

.btn--accent:hover {
    background: var(--accent);
    color: var(--dark);
}

/* ========================================
   FOOTER
======================================== */
.footer {
    padding: 100px 0 40px;
    text-align: center;
    opacity: 0.4;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ========================================
   REDUCED MOTION
======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
