@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Deep green canvas + white cards — same system Sportiya's own tools run. */
  --ink: #06180e;
  --ink-3: #0a2116;
  --ink-4: #0d2415;
  --ink-line: rgba(235, 245, 238, 0.12);

  --surface: #ffffff;
  --surface-2: #e9efea;
  --surface-3: #dce7df;
  --surface-4: #f4f7f5;
  --ink-text: #1a1f1c;
  --ink-muted: #6b7a70;

  --on-dark: #f2f7f3;
  --on-dark-muted: #a5b5ab;

  --brand: #21a367;
  --brand-deep: #17784c;
  --brand-soft: #3fdd8a;
  --brand-wash: rgba(33, 163, 103, 0.12);

  --draw: #e8b119;
  --lost: #d93a34;

  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--on-dark);
  font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---------- Faint brand glow, used behind the hero ---------- */
.brand-glow {
  position: absolute;
  border-radius: 9999px;
  opacity: 0.28;
  filter: blur(64px);
  pointer-events: none;
  background: radial-gradient(circle, var(--brand) 0%, transparent 70%);
}

.card-lift { box-shadow: 0 0 26px rgba(0, 0, 0, 0.22); }

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.logo svg { flex-shrink: 0; }
.logo .slip { color: var(--on-dark); }
.logo .mixer { color: var(--brand-soft); }
.topbar nav a {
  color: var(--on-dark-muted);
  text-decoration: none;
  font-size: 14px;
  margin-left: 22px;
}
.topbar nav a:hover { color: var(--on-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 30px 24px 56px;
}
.hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.15;
}
.hero h1 span { color: var(--brand-soft); }
.hero p.sub {
  color: var(--on-dark-muted);
  font-size: 16px;
  margin: 0 0 28px;
  line-height: 1.5;
}

/* ---------- Bookie tabs ---------- */
.bookie-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.bookie-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--ink-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--on-dark-muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.bookie-tab:hover { border-color: rgba(235, 245, 238, 0.25); color: var(--on-dark); }
.bookie-tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}
.bookie-tab .soon {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(235, 245, 238, 0.14);
  color: var(--on-dark-muted);
  padding: 2px 6px;
  border-radius: 999px;
}
.bookie-tab.active .soon { background: rgba(255, 255, 255, 0.25); color: #fff; }

/* ---------- Tool card (white, on the dark canvas) ---------- */
.tool-card {
  background: var(--surface);
  color: var(--ink-text);
  border-radius: var(--radius);
  padding: 26px;
  text-align: left;
}
.tool-card + .tool-card { margin-top: 16px; }
.tool-card h2 {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
label {
  display: block;
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 6px;
  font-weight: 500;
}
textarea, input, select {
  width: 100%;
  background: var(--surface-4);
  border: 1px solid var(--surface-3);
  border-radius: 8px;
  color: var(--ink-text);
  padding: 11px 13px;
  font-size: 14.5px;
  font-family: inherit;
}
textarea:focus, input:focus, select:focus {
  outline: none;
  border-color: var(--brand);
}
textarea { min-height: 74px; resize: vertical; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > div { flex: 1; min-width: 150px; }

button.primary {
  background: var(--brand);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px 22px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 16px;
  font-family: inherit;
  transition: background 0.15s;
}
button.primary:hover { background: var(--brand-deep); }
button.primary:disabled { background: var(--surface-3); color: var(--ink-muted); cursor: not-allowed; }

button.secondary {
  background: var(--surface-3);
  border: none;
  color: var(--ink-text);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}
button.secondary:hover { background: var(--surface-2); }

.code-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--surface-3);
  font-size: 14px;
}
.code-row:last-child { border-bottom: none; }
.status-ok { color: var(--brand-deep); font-weight: 600; }
.status-bad { color: var(--lost); font-weight: 600; }
.pool-summary { margin-top: 10px; font-size: 13px; color: var(--ink-muted); }

table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--surface-3); }
th { color: var(--ink-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }

.ticket {
  background: var(--surface-4);
  border: 1px solid var(--surface-3);
  border-radius: 10px;
  padding: 16px 18px;
  margin-top: 12px;
}
.ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.code-pill {
  font-family: 'Courier New', monospace;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--brand-deep);
}
.odds-badge {
  background: var(--brand-wash);
  color: var(--brand-deep);
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.game-line { font-size: 13px; color: var(--ink-muted); padding: 3px 0; }
.error-text { color: var(--lost); font-size: 13px; font-weight: 600; }
.hidden { display: none !important; }
.hint { font-size: 12px; color: var(--ink-muted); margin-top: 8px; }

/* ---------- Coming soon panel ---------- */
.coming-soon {
  background: var(--surface);
  color: var(--ink-text);
  border-radius: var(--radius);
  padding: 48px 26px;
  text-align: center;
}
.coming-soon .badge {
  display: inline-block;
  background: var(--brand-wash);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.coming-soon h3 { margin: 0 0 8px; font-size: 21px; }
.coming-soon p { color: var(--ink-muted); font-size: 14.5px; margin: 0 0 20px; }

/* ---------- How it works ---------- */
.section { max-width: 900px; margin: 0 auto; padding: 8px 24px 64px; }
.section h2.section-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 36px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 22px;
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--brand-wash);
  color: var(--brand-soft);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}
.step h4 { margin: 0 0 6px; font-size: 15.5px; }
.step p { margin: 0; color: var(--on-dark-muted); font-size: 13.5px; line-height: 1.5; }

@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--ink-line);
  padding: 24px;
  text-align: center;
  color: var(--on-dark-muted);
  font-size: 12.5px;
}
footer p { margin: 4px 0; }

/* ---------- Toast ---------- */
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink-3);
  border: 1px solid var(--ink-line);
  color: var(--on-dark);
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  z-index: 50;
}
#toast.show { opacity: 1; }
