/* Khadat Trail 50K — landing page */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --bg: #0c0f0d;
    --bg-2: #131815;
    --ink: #f4efe6;
    --muted: #8b9189;
    --accent: #ff5a3c;
    --moss: #6b8e4e;
    --amber: #f4b942;
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* NAV */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 32px;
    background: rgba(12, 15, 13, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand { display: flex; align-items: center; gap: 12px; font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 2px; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.nav nav { display: flex; gap: 28px; }
.nav nav a { font-size: 14px; color: var(--muted); transition: color .2s; }
.nav nav a:hover { color: var(--ink); }
.cta-btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .5px;
    background: var(--accent);
    color: #fff;
    transition: transform .2s, box-shadow .2s;
    border: 1px solid transparent;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,90,60,0.35); }
.cta-btn.ghost { background: transparent; border-color: rgba(255,255,255,0.2); color: var(--ink); }
.cta-btn.primary { padding: 16px 32px; font-size: 15px; }

/* Language switcher */
.nav-right { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; letter-spacing: 1px; }
.lang a { color: var(--muted); transition: color .2s; padding: 4px 2px; }
.lang a.active { color: var(--accent); }
.lang a:hover { color: var(--ink); }
.lang span { color: rgba(255,255,255,0.15); }

/* HERO */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 120px 28px 60px;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 70% 30%, rgba(255,90,60,0.18), transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(107,142,78,0.25), transparent 50%),
        linear-gradient(180deg, #0c0f0d 0%, #1a221b 60%, #0c0f0d 100%);
}
.hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800' preserveAspectRatio='none'><polygon points='0,800 0,500 180,360 320,440 480,260 640,380 820,220 980,340 1200,200 1200,800' fill='%23000' opacity='0.55'/><polygon points='0,800 0,620 160,520 340,580 520,460 700,540 880,440 1040,520 1200,420 1200,800' fill='%23000' opacity='0.75'/></svg>") center bottom / cover no-repeat;
}
.hero-grain {
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.08'/></svg>");
    mix-blend-mode: overlay;
    pointer-events: none;
}
.hero-content { position: relative; max-width: 1200px; margin: 0 auto; width: 100%; }
.kicker {
    display: inline-block;
    font-size: 12px; letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    padding: 8px 16px;
    border: 1px solid rgba(255,90,60,0.4);
    border-radius: 999px;
    margin-bottom: 32px;
}
.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(64px, 13vw, 180px);
    line-height: 0.88;
    letter-spacing: -1px;
    margin-bottom: 24px;
}
.hero h1 span {
    background: linear-gradient(135deg, var(--accent) 0%, var(--amber) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.tagline {
    font-size: clamp(16px, 1.6vw, 19px);
    color: var(--muted);
    max-width: 540px;
    margin-bottom: 40px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 64px; }
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 32px;
    max-width: 700px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 42px;
    color: var(--ink);
    line-height: 1;
}
.hero-stats span { font-size: 12px; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 6px; }

/* SECTIONS */
section { padding: 120px 0; }
.eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}
h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 1;
    letter-spacing: -0.5px;
    margin-bottom: 40px;
}

/* ABOUT */
.about { background: var(--bg-2); }
.about p { font-size: clamp(18px, 2vw, 22px); color: var(--muted); max-width: 820px; }
.about p strong { color: var(--ink); }

/* CATEGORIES */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 60px; }
.card {
    --accent: #ff5a3c;
    position: relative;
    background: var(--bg-2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 36px 32px;
    transition: transform .3s, border-color .3s;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--accent);
    transform: scaleX(0); transform-origin: left;
    transition: transform .4s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); }
.card:hover::before { transform: scaleX(1); }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.card-head h3 { font-family: 'Bebas Neue', sans-serif; font-size: 64px; letter-spacing: -1px; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 20px var(--accent); }
.specs { list-style: none; margin-bottom: 28px; }
.specs li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,0.08); font-size: 14px; }
.specs li:last-child { border: none; }
.specs span { color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-size: 11px; }
.specs strong { font-weight: 500; }
.fees { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 28px; }
.fees div { padding: 14px; background: rgba(255,255,255,0.03); border-radius: 10px; }
.fees span { display: block; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.fees strong { font-family: 'Bebas Neue', sans-serif; font-size: 22px; }
.fees .reg strong { color: var(--muted); }
.card-btn {
    display: block;
    text-align: center;
    background: var(--accent);
    color: #fff;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
    transition: filter .2s;
}
.card-btn:hover { filter: brightness(1.15); }
.gpx { display: block; text-align: center; font-size: 13px; color: var(--muted); }
.gpx:hover { color: var(--ink); }

/* GEAR */
.gear { background: var(--bg-2); }
.lede { font-size: 18px; color: var(--muted); max-width: 720px; margin-bottom: 56px; }
.gear-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.gear-col {
    background: var(--bg);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 36px 32px;
}
.gear-col h3 { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 1px; margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 14px; font-family: 'Bebas Neue', sans-serif; letter-spacing: 1px; }
.badge.red { background: var(--accent); color: #fff; }
.badge.amber { background: var(--amber); color: #1a1a1a; }
.gear-col ul { list-style: none; }
.gear-col li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex; align-items: center; gap: 12px;
    font-size: 15px;
}
.gear-col li::before {
    content: '✓';
    color: var(--moss);
    font-weight: 700;
}
.note { margin-top: 32px; font-size: 14px; color: var(--muted); font-style: italic; }

/* RULES */
.rule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 48px; }
.rule {
    background: var(--bg-2);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 28px;
    display: flex; gap: 18px; align-items: flex-start;
    transition: border-color .2s, transform .2s;
}
.rule:hover { border-color: var(--accent); transform: translateY(-3px); }
.rule span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    color: var(--accent);
    line-height: 1;
    min-width: 36px;
}
.rule p { color: var(--muted); font-size: 14px; }

/* SPONSORS */
.sponsors { background: var(--bg-2); padding: 80px 0; }
.sponsors .eyebrow { display: block; text-align: center; margin-bottom: 36px; }
.sponsor-list {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 40px;
}
.sponsor {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--muted);
    padding: 12px 20px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    transition: color .2s, border-color .2s;
}
.sponsor:hover { color: var(--ink); border-color: var(--accent); }

/* FOOTER */
footer { background: #060807; padding: 80px 0 30px; border-top: 1px solid rgba(255,255,255,0.06); }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 48px; }
.foot-logo { width: 60px; margin-bottom: 16px; }
footer h4 { font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: 2px; margin-bottom: 16px; color: var(--accent); }
footer p { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
footer a:hover { color: var(--ink); }
.signup { display: flex; gap: 8px; margin-top: 12px; }
.signup input {
    flex: 1; padding: 12px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--ink);
    border-radius: 8px;
    font-family: inherit; font-size: 14px;
}
.signup input:focus { outline: none; border-color: var(--accent); }
.signup button {
    padding: 12px 18px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.copy { text-align: center; color: var(--muted); font-size: 12px; margin-top: 60px; letter-spacing: 1px; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav { padding: 14px 18px; }
    .nav nav { display: none; }
    .brand span { display: none; }
    .nav-right { gap: 12px; }
    .cta-btn { padding: 10px 16px; font-size: 13px; }
    section { padding: 80px 0; }
    .hero { padding: 100px 20px 60px; }
    .hero-stats { gap: 20px; }
    .hero-stats strong { font-size: 32px; }
}
