/* ============================================================
   PiaywestBett — site styles
   ============================================================ */

:root {
    --bg:          #0a1420;
    --bg-2:        #0e1c2b;
    --panel:       #11263a;
    --panel-2:     #16324b;
    --line:        rgba(255, 255, 255, 0.08);
    --line-2:      rgba(255, 255, 255, 0.14);
    --text:        #e8f0f7;
    --muted:       #9fb2c4;
    --muted-2:     #7089a0;
    --accent:      #19e08a;   /* lime-green */
    --accent-2:    #12c777;
    --gold:        #ffd23f;
    --danger:      #ff5c6c;
    --radius:      14px;
    --radius-sm:   10px;
    --shadow:      0 18px 40px rgba(0, 0, 0, 0.35);
    --max:         1180px;
    --font:        "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }

p { margin: 0 0 1em; }

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

.accent { color: var(--accent); }
.gold   { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .8rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
    border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, background .2s ease, border-color .2s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #052012; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }

/* ---------- Top utility bar ---------- */
.topbar { background: #071019; border-bottom: 1px solid var(--line); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 34px; font-size: .78rem; color: var(--muted-2); }
.topbar strong { color: var(--muted); font-weight: 700; }
.topbar .rg { display: inline-flex; align-items: center; gap: .5rem; }
.topbar .b18 { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--danger); color: var(--danger); font-weight: 800; font-size: .62rem; }
@media (max-width: 620px) { .topbar .hide-sm { display: none; } .topbar .container { justify-content: center; } }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10, 20, 32, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1.5rem; height: 70px; }
.brand { display: flex; align-items: center; gap: .5rem; }
.brand img { display: block; }
.brand .wm { font-family: "Kanit", system-ui, sans-serif; font-style: italic; font-weight: 800; font-size: 1.5rem; line-height: 1; letter-spacing: -0.01em; text-transform: lowercase; color: var(--text); }
.brand .wm .g { background: linear-gradient(90deg, var(--accent), var(--gold)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.site-footer .brand .wm { font-size: 1.35rem; }
.nav-links { display: flex; align-items: center; gap: 1.35rem; margin-left: 1rem; }
.nav-links a { color: var(--muted); font-size: .93rem; font-weight: 600; transition: color .15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(900px 500px at 80% -10%, rgba(25, 224, 138, 0.16), transparent 60%),
        radial-gradient(700px 500px at 0% 110%, rgba(255, 210, 63, 0.08), transparent 55%),
        linear-gradient(180deg, var(--bg-2), var(--bg));
    padding: 84px 0 72px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: rgba(25, 224, 138, 0.1); border: 1px solid rgba(25, 224, 138, 0.25); padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1.2rem; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 34ch; margin-bottom: 1.8rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 1.5rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-trust div { font-size: .85rem; color: var(--muted-2); }
.hero-trust b { display: block; font-size: 1.4rem; color: var(--text); font-weight: 800; }

/* ---------- Bet slip card (hero visual) ---------- */
.slip { background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.slip-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); font-weight: 700; }
.slip-head span.live { color: var(--danger); font-size: .78rem; display: inline-flex; align-items: center; gap: .4rem; }
.slip-head span.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 0 rgba(255,92,108,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,92,108,.5); } 70% { box-shadow: 0 0 0 8px rgba(255,92,108,0); } 100% { box-shadow: 0 0 0 0 rgba(255,92,108,0); } }
.match { padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.match .comp { font-size: .78rem; color: var(--muted-2); margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .05em; }
.odds-row { display: grid; grid-template-columns: 1fr auto auto; gap: .6rem; align-items: center; }
.odds-row + .odds-row { margin-top: .55rem; }
.team { font-weight: 600; }
.odd { min-width: 58px; text-align: center; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 8px; padding: .45rem .2rem; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; cursor: pointer; transition: background .15s ease; }
.odd:hover { background: rgba(25,224,138,.14); }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-tight { padding: 54px 0; }
.section-head { max-width: 640px; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.kicker { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .7rem; }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.6rem; transition: transform .15s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.card .ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(25,224,138,.12); color: var(--accent); display: grid; place-items: center; margin-bottom: 1rem; }
.card .ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Sports chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .7rem; }
.chip { background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px; padding: .6rem 1.1rem; font-weight: 600; font-size: .92rem; color: var(--muted); transition: all .15s ease; }
.chip:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Banner / countdown ---------- */
.banner {
    background:
        radial-gradient(600px 300px at 90% 20%, rgba(255,210,63,.14), transparent 60%),
        linear-gradient(135deg, var(--panel-2), var(--panel));
    border: 1px solid var(--line-2); border-radius: 20px; padding: 42px; text-align: center;
}
.banner h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.banner p { color: var(--muted); max-width: 48ch; margin: 0 auto 1.6rem; }
.countdown { display: flex; justify-content: center; gap: 1rem; margin: 1.4rem 0; }
.countdown div { background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1.1rem; min-width: 74px; }
.countdown b { display: block; font-size: 1.9rem; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.countdown small { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); }

/* ---------- Split / responsible ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.rg-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; }
.rg-box h4 { color: var(--accent); margin-bottom: .3rem; font-size: 1rem; }
.rg-box p { margin: 0; color: var(--muted); font-size: .93rem; }
.rg-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; background: var(--panel); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; color: var(--text); font-size: 1.02rem; font-weight: 600; padding: 1.1rem 1.3rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-q .plus { color: var(--accent); font-size: 1.4rem; transition: transform .2s ease; flex: none; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-a p { color: var(--muted); padding: 0 1.3rem 1.2rem; margin: 0; font-size: .96rem; }

/* ---------- CTA strip ---------- */
.cta-strip { text-align: center; background: linear-gradient(135deg, rgba(25,224,138,.14), rgba(255,210,63,.08)); border: 1px solid var(--line-2); border-radius: 20px; padding: 54px 30px; }
.cta-strip h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-strip p { color: var(--muted); max-width: 46ch; margin: 0 auto 1.6rem; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-bottom: 1px solid var(--line); padding: 64px 0 52px; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 60ch; margin: 0; }
.breadcrumb { font-size: .85rem; color: var(--muted-2); margin-bottom: 1rem; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Prose (legal / content) ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose a { color: var(--accent); }
.prose strong { color: var(--text); }

/* ---------- Stats row ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; text-align: center; }
.stat b { display: block; font-size: 2.4rem; font-weight: 800; color: var(--accent); }
.stat span { color: var(--muted); font-size: .92rem; }

/* ---------- Contact form ---------- */
.form { display: grid; gap: 1rem; }
.form label { font-size: .88rem; font-weight: 600; color: var(--muted); display: block; margin-bottom: .35rem; }
.form input, .form textarea, .form select {
    width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
    padding: .8rem 1rem; color: var(--text); font-family: inherit; font-size: .95rem;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 56px 0 28px; margin-top: 20px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.foot-grid h5 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); margin-bottom: 1rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.foot-grid a { color: var(--muted); font-size: .92rem; }
.foot-grid a:hover { color: var(--accent); }
.foot-about p { color: var(--muted); font-size: .92rem; max-width: 36ch; }
.foot-bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; font-size: .82rem; color: var(--muted-2); }
.badge18 { display: inline-flex; align-items: center; gap: .5rem; }
.badge18 .b { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--danger); color: var(--danger); display: grid; place-items: center; font-weight: 800; font-size: .78rem; }
.foot-legal { max-width: 100%; color: var(--muted-2); font-size: .8rem; line-height: 1.7; margin-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
    .hero-grid, .split { grid-template-columns: 1fr; }
    .hero-visual { order: -1; max-width: 420px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: flex-start; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 1rem 22px; gap: 1rem; }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .nav-actions .btn-join-hide { display: none; }
}
@media (max-width: 620px) {
    .grid-4, .grid-3, .grid-2, .stats, .foot-grid, .form-row { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(3, 1fr); }
    .countdown div { min-width: 62px; padding: .6rem .7rem; }
    .section { padding: 56px 0; }
    .banner { padding: 30px 20px; }
}
