/* Layout concept: a dark "arena" page. Each product gets its own band, with a working
   court, stat sheet, calendar or scoreboard beside the copy, so the software is shown, not described.
   The logo's spectrum is used sparingly: the wordmark, thin rules, and data marks. */
:root {
  color-scheme: dark;
  --ink: #0d1422;        /* logo background */
  --panel: #131c2e;
  --panel-2: #1a2540;
  --line: #27344f;
  --fg: #eef1f7;
  --muted: #9aa7bf;
  --blue: #2f86ff;
  --teal: #16c2a6;
  --yellow: #ffcf3f;
  --orange: #ff7a2f;
  --pink: #f0367a;
  --purple: #9447e0;
  --spectrum: linear-gradient(90deg, var(--blue), var(--teal) 25%, var(--yellow) 50%, var(--orange) 68%, var(--pink) 84%, var(--purple));
  --display: "Saira", "Arial Narrow", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--ink);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: 1180px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.grad { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rule { height: 2px; background: var(--spectrum); border: 0; opacity: .85; margin: 0; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(13, 20, 34, 0.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 30px; height: auto; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: 0.04em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--fg); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px var(--body); text-decoration: none; cursor: pointer;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--fg); color: var(--ink); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn-ghost:hover { background: var(--panel); }
.nav-links .btn { color: var(--ink); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 10px; padding: 8px 12px; font: 600 14px var(--body); cursor: pointer; }

/* Hero */
.hero { padding-block: 72px 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { font-size: clamp(42px, 6vw, 76px); font-weight: 700; margin-block: 14px 20px; }
.hero .lede { font-size: 19px; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.built-for { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 34px; font-size: 14px; color: var(--muted); }
.built-for strong { color: var(--fg); font-weight: 600; }

.court-card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.court-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.court-head span:last-child { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.court-svg { width: 100%; height: auto; display: block; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.stat { background: var(--panel-2); border-radius: 10px; padding: 10px 12px; }
.stat b { display: block; font-family: var(--mono); font-size: 22px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }

/* Product overview */
.section { padding-block: 84px; }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(32px, 4vw, 48px); margin-top: 10px; }
.section-head p { color: var(--muted); margin-top: 14px; }
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product {
  display: flex; flex-direction: column; gap: 12px; text-decoration: none;
  padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel);
  transition: border-color .2s, transform .2s;
}
.product:hover { transform: translateY(-3px); border-color: var(--c); }
.product .tag { align-self: flex-start; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--c); border: 1px solid var(--c); border-radius: 999px; padding: 3px 10px; }
.product h3 { font-size: 26px; }
.product p { color: var(--muted); font-size: 15.5px; }
.product .more { margin-top: auto; font-weight: 600; color: var(--c); font-size: 15px; }

/* Product detail bands */
.band { border-top: 1px solid var(--line); }
.band.alt { background: #0f1828; }
.detail { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.detail.flip { grid-template-columns: 1.1fr 1fr; }
.detail.flip .copy { order: 2; }
.detail > * { min-width: 0; }
.copy h2 { font-size: clamp(32px, 4vw, 50px); margin-block: 10px 16px; }
.copy h2 em { font-style: normal; color: var(--c); }
.copy > p { color: var(--muted); max-width: 32em; }
.features { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.features li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.features li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-top: 8px; transform: rotate(45deg); }
.features b { display: block; font-weight: 600; }
.features span { color: var(--muted); font-size: 15.5px; }

.mock { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.mock-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; font-weight: 600; }
.mock-title small { font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 400; }
.table-scroll { overflow-x: auto; }
table.stats { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 460px; }
table.stats th, table.stats td { padding: 9px 10px; text-align: right; border-bottom: 1px solid var(--line); }
table.stats th:first-child, table.stats td:first-child { text-align: left; }
table.stats th { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: var(--muted); font-weight: 500; }
table.stats td { font-variant-numeric: tabular-nums; font-family: var(--mono); }
table.stats td:first-child { font-family: var(--body); }
table.stats tr.total td { font-weight: 700; border-bottom: 0; }
.pass-bar { display: inline-block; width: 46px; height: 6px; background: var(--panel-2); border-radius: 3px; vertical-align: middle; margin-left: 8px; overflow: hidden; }
.pass-bar i { display: block; height: 100%; background: var(--c); }
.note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* Team calendar mock */
.week { display: grid; gap: 6px; }
.day { background: var(--panel-2); border-radius: 10px; padding: 8px 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; min-height: 44px; }
.day > b { font-family: var(--mono); font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .06em; width: 40px; }
.event { font-size: 13px; line-height: 1.35; border-radius: 6px; padding: 5px 10px; background: rgba(22, 194, 166, .16); border-left: 3px solid var(--teal); overflow-wrap: anywhere; }
.event.tourney { background: rgba(47, 134, 255, .16); border-left-color: var(--blue); }
.event.work { background: rgba(255, 207, 63, .14); border-left-color: var(--yellow); }
.team-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.mini { background: var(--panel-2); border-radius: 10px; padding: 10px 12px; }
.mini b { font-family: var(--mono); font-size: 20px; font-variant-numeric: tabular-nums; display: block; }
.mini span { font-size: 12px; color: var(--muted); }

/* Digital board */
.board { background: #070b14; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.board-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.board-top .set { color: var(--yellow); }
.scores { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.side { text-align: center; display: grid; gap: 10px; }
.side .team { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.side .num { font-family: var(--mono); font-size: clamp(64px, 10vw, 104px); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; color: var(--fg); }
.side.home .num { color: var(--yellow); }
.side .sets { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pm { display: flex; justify-content: center; gap: 8px; }
.pm button, .timer-controls button {
  font: 600 15px var(--body); color: var(--fg); background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 10px; min-width: 44px; height: 40px; padding: 0 12px; cursor: pointer;
}
.pm button:hover, .timer-controls button:hover { border-color: var(--yellow); }
.serve-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); display: inline-block; visibility: hidden; margin-left: 6px; vertical-align: 2px; }
.side.serving .serve-dot { visibility: visible; }
.vs { font-family: var(--mono); color: var(--muted); font-size: 14px; }
.timer { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.clock { font-family: var(--mono); font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums; }
.clock.done { color: var(--pink); }
.timer-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.timer-controls button[aria-pressed="true"] { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.board-msg { min-height: 1.4em; margin-top: 12px; font-size: 13.5px; color: var(--yellow); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; }
.contact-grid > * { min-width: 0; }
.contact-info { display: grid; gap: 18px; margin-top: 26px; }
.contact-info div { display: grid; gap: 2px; }
.contact-info .val { font-size: 18px; font-weight: 600; user-select: all; }
form.contact { display: grid; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  font: 16px var(--body); color: var(--fg); background: var(--ink); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 12px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); }
.field textarea { min-height: 120px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.checks label { white-space: nowrap; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.captcha { min-height: 0; }
.captcha:empty { min-height: 0; }
.captcha-note { font-size: 14px; color: var(--muted); background: var(--ink); border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; margin: 0; }
form.contact { position: relative; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.form-msg { font-size: 14.5px; color: var(--teal); min-height: 1.3em; }
.form-msg.err { color: var(--pink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.foot .tagline { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.foot nav a:hover { color: var(--fg); }
.copyright { font-size: 13px; color: var(--muted); width: 100%; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .detail, .detail.flip, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .detail.flip .copy { order: 0; }
  .products { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-toggle { display: inline-block; }
  .nav { flex-wrap: wrap; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 14px; padding-block: 8px 14px; margin-left: 0; }
  .nav-links.open { display: flex; }
  .hero { padding-block: 44px 36px; }
  .section { padding-block: 60px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .row-2 { grid-template-columns: 1fr; }
  .scores { grid-template-columns: 1fr 1fr; }
  .vs { display: none; }
}
