/* CourtzApp marketing site — the Court identity, shared with the app and
   tournaments.courtz.app: ink court-at-night chrome, mat-teal actions,
   slate working surfaces, condensed display type, service-line motif. */

:root {
  --ink: #0b1622;
  --ink-2: #12283c;
  --teal: #0e8577;
  --teal-dark: #0a655b;
  --accent: #20c0b0;
  --bg: #eef1f4;
  --surface: #ffffff;
  --text: #101d2b;
  --text-2: #5f6368;
  --muted: #80868b;
  --border: #dfe3e8;
  --display: 'Bahnschrift', 'Roboto Condensed', 'Arial Narrow', 'Segoe UI', sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--teal); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 22px; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  border-radius: 11px; padding: 11px 22px; border: none; cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-lg { padding: 14px 28px; font-size: 1.02rem; border-radius: 13px; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 2px 10px rgba(14, 133, 119, 0.3); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-accent { background: var(--accent); color: var(--ink); box-shadow: 0 2px 14px rgba(32, 192, 176, 0.35); }
.btn-accent:hover { background: #2bd4c3; }
.btn-ghost { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 26px;
  background: var(--ink); color: #fff;
  padding: 12px clamp(18px, 4vw, 40px);
  border-bottom: 2px solid rgba(32, 192, 176, 0.55);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; background: rgba(255, 255, 255, 0.12);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 1.2rem;
}
.brand-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 2px; display: inline-block; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.02em; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: #c7d3de; text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.nav-links a:hover { color: #fff; }
.nav-cta { font-size: 0.88rem; padding: 9px 18px; }

/* ---- hero: the one loud moment — ink court at night, real product shot ---- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1000px 560px at 85% -10%, rgba(32, 192, 176, 0.16), transparent 60%),
    linear-gradient(160deg, #12283c 0%, #0b1622 55%, #070f18 100%);
}
.hero::before {
  content: ''; position: absolute; right: -170px; bottom: -190px;
  width: 760px; height: 500px; border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px; transform: rotate(-12deg); pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)) 0 55% / 100% 2px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)) 30% 0 / 2px 100% no-repeat;
}
.hero-inner {
  position: relative; max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(48px, 7vw, 96px) 22px clamp(56px, 7vw, 104px);
}
.hero h1 {
  font-family: var(--display); font-weight: 700; letter-spacing: 0.01em;
  font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.08;
}
.hero-sub { color: #b9c7d4; margin-top: 18px; font-size: clamp(1rem, 1.4vw, 1.12rem); max-width: 34em; }
.hero-sub strong { color: #fff; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-facts { display: grid; gap: 12px; margin-top: 34px; }
.hero-facts div { display: flex; flex-direction: column; border-left: 3px solid var(--accent); padding-left: 12px; }
.hero-facts strong { font-family: var(--display); font-size: 1rem; letter-spacing: 0.01em; }
.hero-facts span { color: #9fb2c4; font-size: 0.88rem; }

.shot-frame {
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  background: #0e1b2a;
}
.shot-frame img { width: 100%; }

/* ---- sections ---- */
.sect-wrap { padding: clamp(48px, 6vw, 88px) 0; background: var(--surface); }
.sect-wrap.sect-alt { background: var(--bg); }
.sect-h {
  font-family: var(--display); font-weight: 700; letter-spacing: 0.01em;
  font-size: clamp(1.5rem, 3vw, 2.2rem); display: flex; align-items: center; gap: 12px;
}
.sect-h::before {
  content: ''; flex: none; width: 5px; height: 1.15em; border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--teal));
}
.sect-sub { color: var(--text-2); margin: 10px 0 34px; max-width: 46em; }

/* ---- module grid ---- */
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.mod {
  background: var(--bg); border-radius: 14px; padding: 20px 22px;
  border: 1px solid #e7ebef;
}
.mod h3 { font-family: var(--display); font-size: 1.08rem; margin-bottom: 6px; }
.mod p { font-size: 0.92rem; color: var(--text-2); }

/* ---- topology ---- */
.topo { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; }
.topo-node {
  background: var(--surface); border-radius: 14px; padding: 18px 22px;
  box-shadow: 0 1px 2px rgba(11, 22, 34, 0.06), 0 6px 20px rgba(11, 22, 34, 0.07);
  display: flex; flex-direction: column; gap: 2px; min-width: 220px;
}
.topo-node strong { font-family: var(--display); font-size: 1.05rem; }
.topo-node span { color: var(--text-2); font-size: 0.88rem; }
.topo-hub { border: 2px solid var(--teal); align-self: center; }
.topo-link { width: clamp(24px, 5vw, 64px); align-self: center; border-top: 2px dashed var(--teal); }
.topo-group { display: grid; gap: 14px; flex: 1; min-width: 260px; }

/* ---- tournaments band ---- */
.tn-band {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 520px at 12% -20%, rgba(32, 192, 176, 0.14), transparent 60%),
    linear-gradient(200deg, #12283c 0%, #0b1622 55%, #070f18 100%);
  padding: clamp(52px, 7vw, 96px) 0;
}
.tn-band::before {
  content: ''; position: absolute; left: -170px; top: -190px;
  width: 700px; height: 460px; border: 2px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px; transform: rotate(12deg); pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.07)) 0 55% / 100% 2px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.07)) 70% 0 / 2px 100% no-repeat;
}
.tn-inner { position: relative; display: grid; grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.tn-kicker { font-family: var(--display); color: var(--accent); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.tn-band h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.12; }
.tn-band p { color: #b9c7d4; margin-top: 14px; max-width: 36em; }
.tn-points { margin: 18px 0 0 0; list-style: none; display: grid; gap: 8px; }
.tn-points li { padding-left: 22px; position: relative; color: #d6e0e9; font-size: 0.95rem; }
.tn-points li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 12px; height: 3px; border-radius: 2px; background: var(--accent); }
.tn-offer { color: #d6e0e9 !important; margin-top: 18px !important; }
.tn-offer strong { color: #fff; }
.tn-band .hero-ctas { margin-top: 24px; }
.shot-frame-dark { border-color: rgba(255, 255, 255, 0.1); }

/* ---- pricing ---- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 20px; }
.price-card {
  background: var(--bg); border: 1px solid #e7ebef; border-radius: 16px; padding: 26px 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.price-card h3 { font-family: var(--display); font-size: 1.35rem; }
.price-card h3 span { color: var(--muted); font-size: 0.95rem; font-weight: 400; font-family: var(--body); }
.price-lede { color: var(--text-2); }
.price-card ul { list-style: none; display: grid; gap: 8px; margin: 4px 0; }
.price-card li { padding-left: 24px; position: relative; font-size: 0.95rem; }
.price-card li::before {
  content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 800;
}
.price-note { font-size: 0.88rem; color: var(--muted); }
.price-card .btn { align-self: flex-start; margin-top: 4px; }

/* ---- contact ---- */
.contact { text-align: center; }
.contact .sect-h { justify-content: center; }
.contact .sect-sub { margin-left: auto; margin-right: auto; }
.contact-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.contact .btn-ghost { background: var(--surface); color: var(--teal-dark); border-color: var(--border); }
.contact-fine { color: var(--muted); font-size: 0.9rem; margin-top: 22px; }

/* ---- footer ---- */
.footer { background: var(--ink); color: #9fb2c4; font-size: 0.88rem; padding: 26px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; }
.footer a { color: #c7d3de; text-decoration: none; }
.footer a:hover { color: #fff; }

/* ---- legal pages ---- */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 22px 72px; }
.legal h1 { font-family: var(--display); font-size: 1.9rem; margin-bottom: 8px; }
.legal h2 { font-family: var(--display); font-size: 1.15rem; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--text-2); font-size: 0.95rem; }
.legal ul { padding-left: 20px; }
.legal .back { display: inline-block; margin-bottom: 20px; }

/* ---- responsive ---- */
@media (max-width: 920px) {
  .hero-inner, .tn-inner { grid-template-columns: 1fr; }
  .hero-shot { order: 2; }
  .nav-links { display: none; }
  .topo { flex-direction: column; }
  .topo-link { width: 2px; height: 28px; border-top: none; border-left: 2px dashed var(--teal); margin: 0 auto; }
  .topo-hub { align-self: stretch; }
}

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