/* ClubDayLive front end. One stylesheet for the public site. */

:root {
    --bg: #0E1A22;
    --bg-alt: #112530;
    --panel: #152934;
    --panel-2: #1B3441;
    --line: #25404F;
    --text: #E8EEF1;
    --muted: #9AB0BA;
    --accent: #B8F23C;
    --accent-dark: #93C92B;
    --accent-ink: #0E1A22;
    --danger: #FF8A7A;
    --radius: 14px;
    --max: 1120px;
    --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: #d4ff7a; }

h1, h2, h3 {
    font-family: var(--font-head);
    line-height: 1.05;
    margin: 0 0 .5em;
    letter-spacing: .01em;
}

p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip-link {
    position: absolute; left: -9999px; top: 8px;
    background: var(--accent); color: var(--accent-ink);
    padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 600;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(14, 26, 34, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.wordmark {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 30px;
    letter-spacing: .02em;
    text-decoration: none;
    color: var(--text);
    display: inline-flex;
    align-items: baseline;
    line-height: 1;
}
.wordmark:hover { color: var(--text); }
.wordmark-club { color: var(--text); }
.wordmark-live { color: var(--accent); position: relative; padding-right: 14px; }
.wordmark-small { font-size: 24px; }
.wordmark-small .wordmark-live { padding-right: 0; }

.live-dot {
    display: inline-block; width: 9px; height: 9px; border-radius: 50%;
    background: #ff5a4a; vertical-align: middle;
    animation: pulse 1.8s ease-in-out infinite;
}
.wordmark-live .live-dot { position: absolute; right: 0; top: 2px; }

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 74, .6); }
    50% { box-shadow: 0 0 0 7px rgba(255, 90, 74, 0); }
}

.header-nav { display: flex; align-items: center; gap: 22px; }
.header-nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.header-nav a:not(.btn):hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    background: var(--accent); color: var(--accent-ink);
    font-family: var(--font-body); font-weight: 600; font-size: 16px;
    padding: 13px 24px; border-radius: 10px; border: 0;
    text-decoration: none; cursor: pointer;
    transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: #cbff58; color: var(--accent-ink); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-small { padding: 8px 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--panel); color: var(--text); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
    padding: 72px 0 56px;
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(184, 242, 60, .10), transparent 60%),
        var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }

.badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(184, 242, 60, .12); color: var(--accent);
    border: 1px solid rgba(184, 242, 60, .35);
    border-radius: 999px; padding: 6px 14px;
    font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    margin-bottom: 22px;
}

.hero h1 { font-size: clamp(48px, 7.5vw, 88px); font-weight: 800; text-transform: uppercase; }
.accent { color: var(--accent); }
.lead { font-size: 19px; color: var(--muted); max-width: 54ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Leaderboard illustration */
.board {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    transform: rotate(1.5deg);
}
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.board-title { font-family: var(--font-head); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: .03em; }
.board-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: #ff8a7a; }
.board-rows { list-style: none; margin: 0; padding: 0; }
.board-rows li {
    display: grid; grid-template-columns: 28px 1fr 56px 64px; gap: 8px; align-items: center;
    padding: 11px 12px; border-radius: 9px; font-size: 15px;
}
.board-rows li:nth-child(odd) { background: rgba(255, 255, 255, .03); }
.board-rows .pos { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--accent); }
.board-rows .cat { color: var(--muted); font-size: 13px; }
.board-rows .time { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.board-rows .pending { opacity: .55; }
.board-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- Event types ---------- */
.types { padding: 28px 0 8px; }
.types-label { text-align: center; color: var(--muted); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--panel); border: 1px solid var(--line);
    border-radius: 999px; padding: 9px 18px; font-size: 15px;
}
.chips i { color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; text-transform: uppercase; }
.section-head p { color: var(--muted); font-size: 18px; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 26px;
    transition: border-color .15s ease, transform .15s ease;
}
.feature:hover { border-color: rgba(184, 242, 60, .5); transform: translateY(-2px); }
.feature h3 { font-size: 25px; font-weight: 700; margin-bottom: .35em; }
.feature p { color: var(--muted); font-size: 15.5px; margin: 0; }
.feature-icon {
    width: 46px; height: 46px; border-radius: 12px;
    display: grid; place-items: center;
    background: rgba(184, 242, 60, .12); color: var(--accent);
    font-size: 20px; margin-bottom: 16px;
}
.feature-highlight { background: linear-gradient(160deg, #1d3a22, var(--panel) 70%); border-color: rgba(184, 242, 60, .4); }

.tag {
    display: inline-block; vertical-align: middle;
    font-family: var(--font-body); font-size: 11px; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted); border: 1px solid var(--line);
    border-radius: 999px; padding: 2px 9px; margin-left: 6px;
}

.fine-print { color: var(--muted); font-size: 13.5px; margin-top: 22px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: none; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.steps h3 { font-size: 26px; font-weight: 700; }
.steps p { color: var(--muted); margin: 0; font-size: 15.5px; }
.step-num {
    display: grid; place-items: center;
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--accent); color: var(--accent-ink);
    font-family: var(--font-head); font-weight: 800; font-size: 24px;
    margin-bottom: 14px;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-copy h2 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; text-transform: uppercase; }
.contact-copy p { color: var(--muted); font-size: 18px; }
.contact-points { list-style: none; margin: 24px 0 0; padding: 0; }
.contact-points li { display: flex; gap: 12px; align-items: baseline; margin-bottom: 10px; }
.contact-points i { color: var(--accent); }

.form {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 28px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.optional { color: var(--muted); font-weight: 400; }

.form input[type="text"],
.form input[type="email"],
.form select,
.form textarea {
    width: 100%;
    background: var(--bg); color: var(--text);
    border: 1px solid var(--line); border-radius: 10px;
    padding: 12px 14px; font: inherit; font-size: 16px;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(184, 242, 60, .25);
}

.field-check { display: flex; align-items: center; gap: 12px; }
.field-check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.field-check label { margin: 0; font-weight: 500; }

/* Honeypot: hidden from people, visible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cf-turnstile { margin: 4px 0 18px; min-height: 65px; }

.form-status { margin: 14px 0 0; font-weight: 500; min-height: 1.4em; }
.form-status.is-ok { color: var(--accent); }
.form-status.is-error { color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.footer-inner p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero { padding-top: 48px; }
    .board { transform: none; max-width: 520px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    body { font-size: 16px; }
    .header-nav a:not(.btn) { display: none; }
    .feature-grid { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
    .form { padding: 22px 18px; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .live-dot { animation: none; }
    .btn, .feature { transition: none; }
}
