:root {
  --bg: #ffffff;
  --bg-alt: #f3f6fb;
  --ink: #0f172a;
  --ink-soft: #475569;
  --line: #e2e8f0;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --yellow: #facc15;
  --dark: #0b1120;
  --dark-2: #111827;
  --dark-3: #1f2937;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff; text-decoration: none; font-weight: 700;
  padding: 14px 24px; border-radius: 12px; border: 2px solid var(--blue);
  transition: background .15s, transform .1s; cursor: pointer; font: inherit; font-weight: 700;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn:active { transform: scale(.97); }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: rgba(37,99,235,.08); color: var(--blue); }
.section-dark .btn-ghost { color: #93c5fd; border-color: #334155; }
.section-dark .btn-ghost:hover { background: #1e293b; }
.btn-small { padding: 8px 16px; font-size: .9rem; border-radius: 10px; }
.btn-large { padding: 18px 34px; font-size: 1.1rem; margin-top: 28px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; font-size: 1.05rem; }
.brand-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(250,204,21,.25); }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(37,99,235,.18), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(250,204,21,.18), transparent 60%),
    var(--bg);
  padding: 80px 0 96px;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--blue); margin-bottom: 14px; }
.section-dark .eyebrow { color: var(--yellow); }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 900; }
.lead { font-size: 1.15rem; color: var(--ink-soft); margin-top: 20px; max-width: 34em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 8px; color: var(--ink-soft); font-size: .95rem; }
.hero-points li::before { content: '✓'; color: var(--blue); font-weight: 900; margin-right: 10px; }

.hero-visual { position: relative; }
.hero-badge {
  position: absolute; top: -16px; right: 16px;
  background: #fff; color: var(--ink); font-weight: 800; font-size: .8rem; letter-spacing: .06em;
  padding: 8px 14px; border-radius: 999px; box-shadow: 0 10px 30px rgba(15,23,42,.15);
  display: inline-flex; align-items: center; gap: 8px;
}
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ef4444; display: inline-block; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .3 } }

.mock-display.mini {
  background: var(--dark); border-radius: 22px; padding: 28px 24px;
  box-shadow: 0 30px 80px rgba(15,23,42,.35), 0 0 0 10px #1e293b;
  color: #fff;
}
.md-row {
  display: grid; grid-template-columns: 14px minmax(0, 1fr) 54px 54px 54px; align-items: center; gap: 10px;
  border: 1px solid #1f2937; border-radius: 14px; padding: 16px 16px;
}
.md-serve { width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); }
.md-serve.off { visibility: hidden; }
.md-name { font-weight: 700; font-size: clamp(1rem, 2vw, 1.4rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-s { text-align: center; font-weight: 900; color: #374151; font-variant-numeric: tabular-nums; font-size: 1.2rem; }
.md-s.done { color: #9ca3af; font-size: 1.5rem; }
.md-s.active { color: #fff; font-size: 2.2rem; }
.md-divider { display: flex; align-items: center; gap: 14px; margin: 12px 0; color: #4b5563; font-weight: 800; }
.md-divider::before, .md-divider::after { content: ''; height: 1px; flex: 1; background: #1f2937; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #e5e7eb; }
.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-head h2, .cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
.section-dark h2 { color: #fff; }
.sub { color: var(--ink-soft); font-size: 1.08rem; margin-top: 16px; }
.section-dark .sub { color: #94a3b8; }

/* ---------- Demo ---------- */
.demo-controls { display: flex; justify-content: center; align-items: center; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.seg { display: inline-flex; background: #1e293b; padding: 4px; border-radius: 12px; }
.seg-btn {
  background: transparent; border: 0; color: #94a3b8; font: inherit; font-weight: 700; font-size: .9rem;
  padding: 8px 16px; border-radius: 9px; cursor: pointer;
}
.seg-btn.active { background: var(--blue); color: #fff; }

.demo-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: start; }
.device { margin: 0; min-width: 0; }
.hero-inner > *, .demo-grid > * { min-width: 0; }
.device figcaption { text-align: center; color: #64748b; font-size: .85rem; margin-top: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.device-screen {
  position: relative; overflow: hidden; color: #fff; background: #030712;
  user-select: none; -webkit-user-select: none;
}
.tablet .device-screen { border-radius: 26px; box-shadow: 0 0 0 12px #1f2937, 0 0 0 13px #374151, 0 30px 60px rgba(0,0,0,.5); aspect-ratio: 4 / 3; display: flex; flex-direction: column; }
.tv .device-screen { border-radius: 10px; box-shadow: 0 0 0 10px #0f172a, 0 0 0 11px #334155, 0 30px 60px rgba(0,0,0,.5); aspect-ratio: 16 / 10; display: flex; flex-direction: column; }

/* tablet */
.tab-top { display: flex; justify-content: space-between; font-size: .68rem; color: #9ca3af; padding: 8px 14px; background: #111827; border-bottom: 1px solid #1f2937; }
.tab-main { flex: 1; display: flex; min-height: 0; }
.tab-btns { display: flex; flex-direction: column; width: 18%; max-width: 82px; }
.tab-btns button {
  flex: 1; border: 0; color: #fff; font: inherit; font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.6rem); cursor: pointer;
  touch-action: manipulation; transition: transform .08s, background .1s;
}
.tab-btns button:active { transform: scale(.95); }
.tab-btns button:disabled { opacity: .2; cursor: default; }
.tb-plus { background: var(--blue); }
.tb-plus:hover:not(:disabled) { background: #3b82f6; }
.tb-minus { background: #374151; }
.tb-minus:hover:not(:disabled) { background: #4b5563; }
.tab-btns.left .tb-plus { border-bottom-right-radius: 18px; }
.tab-btns.left .tb-minus { border-top-right-radius: 18px; }
.tab-btns.right .tb-plus { border-bottom-left-radius: 18px; }
.tab-btns.right .tb-minus { border-top-left-radius: 18px; }
.tab-player { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 12px 4px 18px; min-width: 0; }
.tp-name { font-weight: 700; font-size: clamp(.8rem, 1.7vw, 1.25rem); display: flex; align-items: center; gap: 6px; text-align: center; }
.tp-name.winner { color: var(--yellow); }
.tp-score { font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; font-size: clamp(3.4rem, 9vw, 6.6rem); }
.tab-mid { width: 30px; display: flex; align-items: center; justify-content: center; background: #111827; border-left: 1px solid #1f2937; border-right: 1px solid #1f2937; }
.tab-mid span { writing-mode: vertical-rl; color: #9ca3af; font-weight: 700; font-variant-numeric: tabular-nums; font-size: .95rem; }
.tab-bottom { display: flex; justify-content: space-between; align-items: center; background: #111827; border-top: 1px solid #1f2937; padding: 6px 10px; gap: 8px; }
.tab-sets { display: flex; gap: 5px; }
.tset { background: #1f2937; color: #6b7280; border-radius: 6px; padding: 3px 7px; text-align: center; }
.tset small { display: block; font-size: .55rem; color: #d1d5db; line-height: 1; }
.tset b { font-size: .8rem; font-variant-numeric: tabular-nums; }
.tset.active { background: var(--blue); color: #fff; box-shadow: 0 0 0 2px #60a5fa; }
.tab-actions { display: flex; gap: 5px; align-items: center; }
.tab-icon { background: #374151; border-radius: 7px; padding: 3px 9px; font-size: .75rem; font-weight: 700; cursor: pointer; }
.tab-icon:hover { background: #4b5563; }
.tab-end { background: #b91c1c; border-radius: 7px; padding: 4px 9px; font-size: .68rem; font-weight: 700; }

.serve-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); flex-shrink: 0; visibility: hidden; }
.serve-dot.on { visibility: visible; }

/* overlays */
.overlay {
  position: absolute; inset: 0; z-index: 5; background: rgba(0,0,0,.94);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding: 16px;
}
.overlay[hidden] { display: none; }
.ov-title { font-size: clamp(1.6rem, 4vw, 2.8rem); font-weight: 900; color: var(--yellow); }
.ov-score { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.ov-muted { color: #6b7280; font-size: .85rem; }
.ov-count { font-size: clamp(3rem, 8vw, 5.4rem); font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; margin: 6px 0 10px; }
.ov-count.low { color: #f87171; }
.ov-btn { border: 0; font: inherit; font-weight: 700; color: #fff; background: #22c55e; border-radius: 12px; padding: 10px 22px; cursor: pointer; }
.ov-btn.alt { background: transparent; border: 2px solid #f97316; color: #fb923c; }
.ov-actions { display: flex; gap: 10px; margin-top: 10px; }
.ov-sets { display: grid; gap: 4px; margin: 6px 0; min-width: 160px; }
.ov-sets div { display: flex; justify-content: space-between; background: #1f2937; border-radius: 8px; padding: 3px 12px; font-size: .85rem; font-variant-numeric: tabular-nums; }
.ov-sets span { color: #9ca3af; }

/* display */
.disp-top { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid #1f2937; font-size: .78rem; }
.disp-court { font-weight: 800; color: #fff; }
.disp-meta { color: #6b7280; }
.disp-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: #f87171; letter-spacing: .08em; }
.disp-table { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 18px; gap: 8px; }
.disp-head, .disp-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 18%); align-items: center; }
.disp-head span { text-align: center; font-size: .62rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; color: #4b5563; }
.disp-head span.active { color: #60a5fa; }
.disp-row { border: 1px solid #1f2937; border-radius: 12px; padding: 12px 14px; }
.disp-name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: clamp(.9rem, 2vw, 1.5rem); min-width: 0; }
.disp-name > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.disp-row.winner .disp-name { color: var(--yellow); }
.disp-row > span[data-cell] { text-align: center; font-weight: 900; font-variant-numeric: tabular-nums; color: #374151; font-size: clamp(1rem, 2.2vw, 1.6rem); transition: color .2s; }
.disp-row > span.done { color: #9ca3af; font-size: clamp(1.3rem, 2.8vw, 2.1rem); }
.disp-row > span.active { color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); }
.disp-row > span.flash { animation: flash .5s; }
@keyframes flash { 0% { color: var(--yellow) } 100% { color: #fff } }
.disp-divider { display: flex; align-items: center; gap: 12px; color: #4b5563; font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.disp-divider::before, .disp-divider::after { content: ''; flex: 1; height: 1px; background: #1f2937; }

.demo-note { text-align: center; color: #94a3b8; margin-top: 40px; font-size: .95rem; min-height: 1.6em; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 800; margin-bottom: 18px; }
.steps h3 { font-size: 1.12rem; margin-bottom: 8px; }
.steps p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Features ---------- */
.feature-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.fgroup { background: #fff; border-radius: var(--radius); padding: 30px 30px 26px; border: 1px solid var(--line); }
.fgroup-icon { font-size: 1.7rem; width: 52px; height: 52px; border-radius: 14px; background: var(--bg-alt); display: grid; place-items: center; margin-bottom: 16px; }
.fgroup h3 { font-size: 1.25rem; margin-bottom: 14px; }
.fgroup ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.fgroup li { color: var(--ink-soft); font-size: .96rem; padding-left: 22px; position: relative; }
.fgroup li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.fgroup strong { color: var(--ink); font-weight: 600; }

/* ---------- Rules ---------- */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 24px; justify-content: center; }
.rule-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; position: relative; background: #fff; }
.rule-card.highlight { border: 2px solid var(--blue); box-shadow: 0 20px 40px rgba(37,99,235,.12); }
.rule-card h3 { font-size: 1.6rem; font-weight: 900; margin-bottom: 18px; }
.tag { position: absolute; top: -12px; left: 30px; background: var(--yellow); color: var(--ink); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; }
.rule-card dl { margin: 0; display: grid; gap: 0; }
.rule-card dl div { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.rule-card dt { color: var(--ink-soft); }
.rule-card dd { margin: 0; font-weight: 700; }

/* ---------- Needs ---------- */
.needs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.need { background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.need > span { font-size: 1.8rem; }
.need h3 { font-size: 1.05rem; margin: 12px 0 6px; }
.need p { color: var(--ink-soft); font-size: .93rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 12px; font-size: 1.4rem; color: var(--blue); font-weight: 600; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--ink-soft); padding-bottom: 18px; }

/* ---------- CTA / Footer ---------- */
.cta { background: linear-gradient(135deg, #1d4ed8, #2563eb 50%, #1e40af); color: #fff; }
.cta .sub { color: #dbeafe; }
.cta .btn { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.cta .btn:hover { background: #fde047; border-color: #fde047; }
.footer { background: var(--dark); color: #94a3b8; padding: 30px 0; font-size: .9rem; }
.footer .brand { color: #fff; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-legal { margin-top: 18px; padding-top: 18px; border-top: 1px solid #1f2937; font-size: .82rem; color: #64748b; }
.footer-legal a { color: #94a3b8; }
/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner, .demo-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 72px; }
  .hero-visual { max-width: 560px; }
  .steps, .needs { grid-template-columns: repeat(2, 1fr); }
  .feature-groups { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
  .section { padding: 68px 0; }
  .steps, .needs, .rules { grid-template-columns: 1fr; }
  .md-row { grid-template-columns: 12px minmax(0, 1fr) 36px 36px 36px; padding: 12px; gap: 6px; }
  .md-s.active { font-size: 1.7rem; }
  .fgroup { padding: 24px 20px; }
  .tablet .device-screen { aspect-ratio: 4 / 3.3; }
  .tv .device-screen { aspect-ratio: 4 / 3; }
}
