:root {
  --bg: #0b0e14;
  --surface: #111827;
  --surface-2: #0f1724;
  --accent: #00e676;
  --gold: #c9a84c;
  --text: #f0f4f8;
  --muted: #8a99b0;
  --border: #1e2a3a;
  --shadow: rgba(0, 230, 118, 0.25);
  --maxw: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 14%, rgba(0, 230, 118, 0.15), transparent 28rem),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 44px 44px, 44px 44px, auto;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-nav {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 36px), var(--maxw));
  min-height: 74px;
  margin: 16px auto 0;
  padding: 0 14px 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-nav.scrolled {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(11, 14, 20, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: 0;
}

.brand-t {
  position: relative;
  display: inline-block;
}

.brand-t::after {
  position: absolute;
  right: 0;
  bottom: -0.18em;
  left: 0;
  height: 3px;
  border-radius: 99px;
  background: var(--accent);
  content: "";
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-panel a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 800;
  letter-spacing: 0;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #02120a;
  background: var(--accent);
  box-shadow: 0 0 0 rgba(0, 230, 118, 0);
}

.btn-primary:hover {
  box-shadow: 0 0 28px var(--shadow);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-large {
  min-height: 54px;
  padding: 0 24px;
  font-size: 1rem;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: 58px;
  width: min(calc(100% - 36px), var(--maxw));
  min-height: 100vh;
  margin: 0 auto;
  padding: 132px 0 72px;
}

.eyebrow,
.step-num,
code,
pre,
.metric-card strong,
.jurisdictions span,
.gold-badge,
.layer-badge,
.mock-top strong {
  font-family: "JetBrains Mono", Consolas, monospace;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 5.6vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
  letter-spacing: 0;
}

.hero-sub {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
}

.text-link,
.inline-cta {
  border: 0;
  color: var(--accent);
  background: transparent;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.hero-visual::before {
  position: absolute;
  inset: 5% -8% 0 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.22), transparent 62%);
  filter: blur(8px);
  content: "";
}

.layer-badge {
  position: absolute;
  z-index: 4;
  top: 18px;
  left: 48px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 230, 118, 0.4);
  border-radius: 999px;
  background: rgba(8, 20, 16, 0.82);
  color: var(--accent);
  font-size: 0.78rem;
}

.table-shell {
  position: absolute;
  inset: 74px 0 20px;
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.82);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.mock-panel {
  position: relative;
  padding: 22px;
}

.base-game {
  border-right: 1px solid var(--border);
}

.mock-top,
.hud-head,
.bet-option,
.streak,
.jackpot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mock-top,
.hud-head {
  color: var(--muted);
  font-size: 0.88rem;
}

.felt-table {
  display: grid;
  place-items: center;
  min-height: 315px;
  margin-top: 22px;
  border: 1px solid rgba(0, 230, 118, 0.18);
  border-radius: 50% / 24%;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 230, 118, 0.13), transparent 38%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.018) 0 8px, transparent 8px 16px),
    #10221b;
}

.dealer-zone,
.player-zone {
  color: var(--muted);
  font-size: 0.83rem;
}

.cards {
  display: flex;
  gap: 10px;
}

.cards span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: #e9eef2;
  color: #10141d;
  font-weight: 800;
}

.side-layer {
  animation: slideLayer 900ms ease both;
}

.hud-head b {
  color: var(--accent);
}

.bet-option,
.streak,
.jackpot {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.bet-option span,
.streak span,
.jackpot span {
  color: var(--muted);
  font-size: 0.86rem;
}

.bet-option strong {
  color: var(--text);
}

.streak div {
  display: flex;
  gap: 5px;
}

.streak i {
  width: 18px;
  height: 8px;
  border-radius: 99px;
  background: var(--accent);
}

.streak i.dim {
  background: var(--border);
}

.jackpot {
  display: block;
}

.jackpot strong {
  display: block;
  margin-top: 8px;
  color: var(--accent);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 1.72rem;
  text-shadow: 0 0 22px rgba(0, 230, 118, 0.6);
  animation: jackpotPulse 2.6s ease-in-out infinite;
}

.pain-strip,
.content-section,
.metrics,
.site-footer {
  width: min(calc(100% - 36px), var(--maxw));
  margin: 0 auto;
}

.pain-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--border);
}

.pain-strip small {
  grid-column: 1 / -1;
  padding: 14px 20px;
  background: #0d131e;
  color: var(--muted);
}

.stat {
  min-height: 178px;
  padding: 24px;
  background: #0d131e;
}

.stat span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border: 1px solid rgba(0, 230, 118, 0.28);
  border-radius: 7px;
  color: var(--accent);
}

.stat strong {
  display: block;
  color: var(--text);
  font-size: 2.35rem;
  line-height: 1;
}

.stat p {
  margin: 10px 0 0;
  color: var(--muted);
}

.content-section {
  padding: 108px 0 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.flow-grid,
.showcase-grid,
.operator-block,
.pricing-grid,
.metrics {
  display: grid;
  gap: 20px;
}

.flow-grid {
  grid-template-columns: repeat(3, 1fr);
}

.flow-grid article,
.pricing-grid article,
.tab-card,
.metric-card,
.spec-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.72);
}

.flow-grid article,
.pricing-grid article {
  padding: 24px;
}

.step-num {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-weight: 800;
}

.flow-grid p,
.pricing-grid p,
.operator-block p,
.site-footer p {
  color: var(--muted);
}

code {
  display: block;
  width: 100%;
  margin-top: 20px;
  overflow-wrap: anywhere;
  color: var(--gold);
  font-size: 0.82rem;
}

.inline-cta {
  margin-top: 28px;
  padding: 0;
  font-size: 1rem;
}

.showcase-grid,
.operator-block {
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.feature-list li {
  position: relative;
  padding-left: 24px;
}

.feature-list li::before {
  position: absolute;
  top: 0.66em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.tab-card {
  min-height: 420px;
  padding: 14px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.tabs button {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.86rem;
  font-weight: 800;
}

.tabs button.active {
  border-color: rgba(0, 230, 118, 0.42);
  color: #02120a;
  background: var(--accent);
}

.tab-stage {
  min-height: 340px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #0c121c;
  opacity: 1;
  transition: opacity 150ms ease;
}

.tab-stage.fading {
  opacity: 0;
}

.mock-screen {
  display: grid;
  gap: 14px;
  height: 100%;
  min-height: 340px;
  padding: 22px;
}

.mock-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.mock-row strong {
  color: var(--text);
}

.mock-chart {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 8px;
  min-height: 120px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.mock-chart i {
  display: block;
  min-height: 24px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(var(--accent), rgba(0, 230, 118, 0.18));
}

.metrics {
  grid-template-columns: repeat(3, 1fr);
  padding: 108px 0 0;
}

.metric-card {
  padding: 28px;
}

.metric-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.metric-card span {
  color: var(--muted);
}

.metrics p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-style: italic;
}

.jurisdictions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.jurisdictions span,
.gold-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(201, 168, 76, 0.32);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.06);
  font-size: 0.78rem;
}

.spec-card {
  width: 100%;
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  color: var(--text);
  line-height: 1.9;
}

.spec-card code {
  margin: 0;
  color: var(--text);
}

.pricing-grid {
  grid-template-columns: repeat(2, 1fr);
}

.pricing-grid article {
  display: grid;
  align-content: start;
  min-height: 280px;
}

.pricing-grid article > span {
  color: var(--gold);
  font-weight: 800;
}

.pricing-grid .btn {
  align-self: end;
  width: fit-content;
  margin-top: 26px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 1fr;
  gap: 42px;
  margin-top: 110px;
  padding: 42px 0 78px;
  border-top: 1px solid var(--border);
}

.site-footer a:not(.brand) {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
}

.site-footer small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.mobile-demo-bar {
  display: none;
}

.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
}

.modal.open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 12, 0.74);
  backdrop-filter: blur(16px);
}

.modal-card {
  position: relative;
  width: min(100%, 520px);
  max-height: min(92vh, 820px);
  overflow: auto;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.95);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
  animation: modalIn 180ms ease both;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  font-size: 1.4rem;
}

.modal h2 {
  max-width: 390px;
  margin-bottom: 8px;
  font-size: 1.75rem;
}

.modal p,
.modal small {
  color: var(--muted);
}

form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

label,
legend {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 44px;
  margin-top: 7px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  background: #0b111b;
}

select {
  appearance: none;
}

fieldset {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
}

fieldset legend {
  padding: 0 6px;
}

fieldset label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
}

fieldset input {
  width: auto;
  min-height: auto;
  margin: 0;
  accent-color: var(--accent);
}

.submit-btn {
  width: 100%;
  margin-top: 8px;
}

.success-view {
  text-align: left;
}

.success-view .btn {
  width: 100%;
  margin-top: 16px;
}

.calendar-panel {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0b111b;
}

.calendar-top {
  margin-bottom: 12px;
  color: var(--gold);
  font-weight: 800;
}

.section-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slideLayer {
  from {
    opacity: 0;
    transform: translateX(42px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes jackpotPulse {
  0%,
  100% {
    text-shadow: 0 0 18px rgba(0, 230, 118, 0.45);
  }
  50% {
    text-shadow: 0 0 34px rgba(0, 230, 118, 0.95);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  .site-nav {
    width: calc(100% - 24px);
    margin-top: 12px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-panel {
    position: fixed;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 34px;
    background: rgba(11, 14, 20, 0.97);
    text-align: center;
    font-size: 1.15rem;
  }

  .nav-panel.open {
    display: flex;
  }

  .nav-panel .btn {
    width: 100%;
  }

  .hero,
  .showcase-grid,
  .operator-block,
  .pricing-grid,
  .metrics,
  .flow-grid,
  .pain-strip,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 28px;
    width: calc(100% - 28px);
    min-height: auto;
    padding-top: 124px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .pain-strip small,
  .metrics p,
  .jurisdictions,
  .site-footer small {
    grid-column: auto;
  }

  .tabs {
    grid-template-columns: 1fr;
  }

  .mobile-demo-bar {
    position: fixed;
    z-index: 45;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    padding: 12px;
    border-top: 1px solid var(--border);
    background: rgba(11, 14, 20, 0.9);
    backdrop-filter: blur(14px);
  }

  .mobile-demo-bar .btn {
    width: 100%;
  }

  .site-footer {
    padding-bottom: 112px;
  }
}

@media (max-width: 620px) {
  body {
    background-size: auto, 32px 32px, 32px 32px, auto;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn,
  .hero-actions .text-link {
    width: 100%;
    text-align: center;
  }

  .hero-visual {
    min-height: 680px;
  }

  .table-shell {
    grid-template-columns: 1fr;
    inset: 64px 0 12px;
  }

  .base-game {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .felt-table {
    min-height: 230px;
  }

  .layer-badge {
    left: 14px;
  }

  .modal {
    padding: 0;
  }

  .modal-card {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }

  fieldset {
    grid-template-columns: 1fr;
  }
}
