/* =====================================================================
   FrontRow — premium football ticketing design system
   (Placeholder brand. Swap --brand-* tokens + the .brand mark to rebrand.)
   ===================================================================== */

:root {
    /* Surfaces */
    --bg: #070b16;
    --bg-2: #0b1120;
    --surface: #111a2e;
    --surface-2: #16213b;
    --surface-3: #1c2a49;
    --line: rgba(255,255,255,.08);
    --line-strong: rgba(255,255,255,.16);

    /* Text */
    --text: #f4f7fb;
    --muted: #9aa6bd;
    --muted-2: #6b7894;

    /* Brand / accents */
    --brand: #3b82f6;
    --brand-2: #22d3ee;
    --brand-grad: linear-gradient(135deg,#3b82f6,#22d3ee);
    --cta: #ff6a3d;
    --cta-press: #f2541f;
    --good: #22c55e;
    --gold: #f59e0b;

    /* Shape & depth */
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 22px;
    --pill: 999px;
    --shadow: 0 10px 30px -14px rgba(0,0,0,.7);
    --shadow-lg: 0 28px 70px -22px rgba(0,0,0,.8);
    --ring: 0 0 0 3px rgba(59,130,246,.4);

    --maxw: 1200px;
    --header-h: 66px;
    --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(1200px 620px at 82% -8%, rgba(34,211,238,.10), transparent 60%),
        radial-gradient(1000px 520px at -5% 0%, rgba(59,130,246,.14), transparent 55%),
        var(--bg);
    background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.1; letter-spacing: -.02em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Buttons & chips ---------- */
.btn {
    --b: var(--surface-2);
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .8em 1.3em; border-radius: var(--pill);
    font-weight: 700; font-size: .95rem; border: 1px solid var(--line-strong);
    background: var(--b); color: var(--text); cursor: pointer;
    transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-sm { padding: .55em 1em; font-size: .85rem; }
.btn-lg { padding: 1em 1.6em; font-size: 1.05rem; }

.btn-cta {
    background: linear-gradient(135deg, var(--cta), #ff8a5c);
    border-color: transparent; color: #1a0d06;
    box-shadow: 0 12px 28px -12px rgba(255,106,61,.7);
}
.btn-cta:hover { background: linear-gradient(135deg, var(--cta-press), var(--cta)); }

.btn-brand {
    background: var(--brand-grad); border-color: transparent; color: #05122b;
    box-shadow: 0 12px 28px -12px rgba(34,211,238,.6);
}
.btn-ghost { background: rgba(255,255,255,.04); }
.btn-ghost:hover { background: rgba(255,255,255,.09); }

.chip {
    display: inline-flex; align-items: center; gap: .4em;
    padding: .32em .7em; border-radius: var(--pill);
    font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    background: rgba(255,255,255,.1); color: #e9eefb; backdrop-filter: blur(6px);
}
.chip-good { background: rgba(34,197,94,.16); color: #7ff0a8; }
.chip-gold { background: rgba(245,158,11,.16); color: #ffd27a; }

/* ---------- Promo bar ---------- */
.promo {
    background: linear-gradient(90deg, rgba(59,130,246,.18), rgba(34,211,238,.14));
    border-bottom: 1px solid var(--line);
    font-size: .82rem; color: #cdd7ea;
}
.promo .container { display: flex; gap: 1.4rem; align-items: center; justify-content: center; padding: 8px 20px; flex-wrap: wrap; }
.promo b { color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px);
    background: rgba(7,11,22,.72); border-bottom: 1px solid transparent; transition: border-color .25s ease, background .25s ease; }
.site-header.scrolled { background: rgba(7,11,22,.92); border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 18px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.18rem; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
    background: var(--brand-grad); box-shadow: 0 8px 20px -8px rgba(34,211,238,.8); }
.brand-mark svg { width: 20px; height: 20px; }
.brand-name span { color: var(--brand-2); }

.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { padding: .55em .8em; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .95rem; transition: color .15s, background .15s; }
.nav a:hover, .nav a.active { color: #fff; background: rgba(255,255,255,.06); }

.header-search { margin-left: auto; flex: 1; max-width: 360px; display: flex; align-items: center; gap: .5rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill); padding: .55em .95em; color: var(--muted); }
.header-search input { border: 0; background: transparent; color: var(--text); width: 100%; font-size: .95rem; outline: none; }
.header-search svg { width: 17px; height: 17px; flex: none; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
    background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--text); }
.icon-btn:hover { background: rgba(255,255,255,.1); }
.icon-btn svg { width: 19px; height: 19px; }
.loc { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .88rem; font-weight: 600; padding: 0 .3rem; }
.loc svg { width: 16px; height: 16px; }

.nav-toggle { display: none; }

/* Mobile drawer */
.mobile-nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: rgba(7,11,22,.98);
    backdrop-filter: blur(8px); padding: 22px; transform: translateX(100%); transition: transform .28s ease; overflow-y: auto; }
.mobile-nav a { display: block; padding: 1rem .4rem; font-size: 1.15rem; font-weight: 700; border-bottom: 1px solid var(--line); }
body.nav-open .mobile-nav { transform: translateX(0); }
body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 56px; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(900px 380px at 50% 120%, rgba(59,130,246,.25), transparent 70%); }
.hero-stadium { position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); width: 1500px; max-width: none; opacity: .5; z-index: 0; }
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .55rem; color: var(--brand-2); font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; margin-bottom: 1rem; }
.hero-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand-grad); }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 800; max-width: 14ch; }
.hero h1 .accent { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 52ch; margin-bottom: 1.8rem; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 2.6rem; flex-wrap: wrap; }
.hero-stat b { display: block; font-size: 1.7rem; font-weight: 800; }
.hero-stat span { color: var(--muted); font-size: .85rem; }

/* ---------- Section scaffolding ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 800; }
.section-head p { color: var(--muted); margin: .3rem 0 0; }
.section-link { color: var(--brand-2); font-weight: 700; font-size: .95rem; }

/* ---------- Filter bar ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.filter {
    padding: .55em 1.1em; border-radius: var(--pill); border: 1px solid var(--line-strong);
    background: rgba(255,255,255,.03); color: var(--muted); font-weight: 700; font-size: .9rem; cursor: pointer;
    transition: all .15s ease;
}
.filter:hover { color: #fff; }
.filter.is-active { background: var(--brand-grad); color: #05122b; border-color: transparent; }

/* ---------- Match cards ---------- */
.match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 20px; }
.match-card {
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow); transition: transform .16s ease, box-shadow .25s ease, border-color .2s ease;
}
.match-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.match-card__link { display: flex; flex-direction: column; height: 100%; }
.match-card__top { position: relative; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between;
    gap: 10px; color: #eaf1ff; min-height: 76px; }
.match-card__top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(7,11,22,.55)); }
.match-card__top > * { position: relative; z-index: 1; }
.match-card__date { font-size: .82rem; font-weight: 700; text-align: right; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.match-card__body { padding: 18px; flex: 1; }
.teams { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.team { display: flex; align-items: center; gap: 10px; font-size: 1.18rem; font-weight: 800; }
.team__code { font-size: .68rem; font-weight: 800; letter-spacing: .05em; color: var(--muted);
    background: rgba(255,255,255,.07); border: 1px solid var(--line); border-radius: 7px; padding: .25em .45em; min-width: 38px; text-align: center; }
.vs { color: var(--muted-2); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding-left: 2px; }
.venue { color: var(--muted); font-size: .9rem; }
.match-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 18px; border-top: 1px solid var(--line); background: rgba(255,255,255,.015); }
.from { font-size: .85rem; color: var(--muted); }
.from strong { display: block; font-size: 1.25rem; color: #fff; font-weight: 800; }

/* Knockout (teams TBD) card body */
.ko { margin-bottom: 12px; }
.ko__num { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.ko__note { color: var(--muted); font-size: .9rem; margin-top: 3px; }
.match-card--final { border-color: rgba(245,158,11,.5); box-shadow: 0 18px 44px -20px rgba(245,158,11,.5); }
.match-card--final .ko__num { color: #ffd27a; }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.015); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 36px 0; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item svg { width: 26px; height: 26px; color: var(--brand-2); flex: none; margin-top: 2px; }
.trust-item b { display: block; margin-bottom: 2px; }
.trust-item span { color: var(--muted); font-size: .88rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; padding: 50px 0 30px; }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); }
.footer-col a { display: block; color: var(--muted); padding: .35rem 0; font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-about p { color: var(--muted); font-size: .92rem; max-width: 34ch; }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0; display: flex; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; color: var(--muted-2); font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .nav, .header-search, .loc { display: none; }
    .nav-toggle { display: grid; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .hero { padding: 44px 0 40px; }
    .trust-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .match-grid { grid-template-columns: 1fr; }
}
