:root {
  color-scheme: dark;
  --bg: #101714;
  --bg-soft: #17211d;
  --panel: rgba(246, 247, 239, 0.08);
  --panel-strong: rgba(246, 247, 239, 0.14);
  --line: rgba(246, 247, 239, 0.16);
  --text: #f5f7ef;
  --muted: rgba(245, 247, 239, 0.66);
  --soft: rgba(245, 247, 239, 0.46);
  --green: #6ee7ae;
  --green-strong: #1fc77c;
  --yellow: #ffd45a;
  --blue: #8fb7ff;
  --shadow: rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(120deg, rgba(31, 199, 124, 0.18), transparent 34%),
    linear-gradient(240deg, rgba(255, 212, 90, 0.12), transparent 32%),
    linear-gradient(180deg, #111815 0%, #121915 52%, #0d1210 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-width: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 10px;
}

.brand,
.domain-pill,
.eyebrow,
.launch-card,
.countdown-item,
.browser-frame {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 24px 80px var(--shadow);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 8px 14px 8px 8px;
  font-size: 15px;
  font-weight: 760;
}

.domain-pill {
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.hero {
  display: grid;
  min-height: calc(92svh - 74px);
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: 54px;
  padding: 26px 0 42px;
  min-width: 0;
}

.hero-copy {
  max-width: 560px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 26px;
  border-radius: 999px;
  padding: 10px 14px;
  color: #d8ffe9;
  font-size: 14px;
  font-weight: 760;
}

h1 {
  margin: 0;
  font-size: 6.9rem;
  font-weight: 840;
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 520px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.45rem;
  line-height: 1.45;
}

.launch-card {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 28px;
  border-radius: 18px;
  padding: 14px 16px;
}

.launch-card strong {
  color: rgba(245, 247, 239, 0.9);
  font-size: 15px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(520px, 100%);
  margin-top: 18px;
}

.countdown-item {
  min-height: 92px;
  min-width: 0;
  border-radius: 16px;
  padding: 14px;
  overflow: hidden;
}

.countdown-item span {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 3rem;
  font-weight: 820;
  line-height: 1;
}

.countdown-item small {
  display: block;
  margin-top: 9px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 720;
  white-space: nowrap;
}

.product-preview {
  position: relative;
  min-width: 0;
}

.browser-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  transform: rotate(-1.5deg);
  min-width: 0;
}

.frame-top {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  border-bottom: 1px solid var(--line);
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.04);
}

.frame-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--soft);
}

.frame-top span:nth-child(1) {
  background: #ff7b7b;
}

.frame-top span:nth-child(2) {
  background: var(--yellow);
}

.frame-top span:nth-child(3) {
  background: var(--green);
}

.frame-top p {
  margin: 0 0 0 auto;
  color: var(--soft);
  font-size: 13px;
  font-weight: 740;
}

.app-preview {
  display: grid;
  min-height: 500px;
  grid-template-columns: 72px 1fr 0.92fr;
  gap: 18px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 34%),
    #111815;
}

.app-sidebar,
.booking-panel,
.calendar-panel,
.mini-calendar,
.match-card,
.court-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border-radius: 22px;
  padding: 14px 10px;
}

.sidebar-word {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--soft);
  font-size: 12px;
  font-weight: 820;
}

.sidebar-line {
  width: 34px;
  height: 6px;
  border-radius: 999px;
  background: rgba(245, 247, 239, 0.22);
}

.sidebar-line.active {
  background: var(--green);
}

.sidebar-line.short {
  width: 24px;
}

.booking-panel,
.calendar-panel {
  border-radius: 24px;
  padding: 18px;
}

.booking-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.panel-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel-heading span,
.muted,
.calendar-head span,
.match-card small {
  color: var(--soft);
  font-size: 13px;
  font-weight: 720;
}

.panel-heading strong {
  font-size: 28px;
  line-height: 1;
}

.search-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 24px 0 18px;
}

.search-row span {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 10px;
  color: rgba(245, 247, 239, 0.86);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.slot-grid span {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.slot-grid .booked {
  background: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.08) 8px,
    rgba(255, 255, 255, 0.02) 8px,
    rgba(255, 255, 255, 0.02) 16px
  );
}

.slot-grid .selected {
  border-color: rgba(110, 231, 174, 0.72);
  background: rgba(110, 231, 174, 0.18);
  box-shadow: inset 0 0 0 1px rgba(110, 231, 174, 0.25);
}

.court-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.court-card div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.court-card strong {
  font-size: 17px;
}

.status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 9px 12px;
  color: #112016;
  background: var(--green);
  font-size: 12px;
  font-weight: 860;
}

.calendar-panel {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-width: 0;
}

.mini-calendar {
  border-radius: 20px;
  padding: 16px;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.calendar-grid span {
  min-height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.calendar-grid .event {
  background: linear-gradient(135deg, var(--green), rgba(110, 231, 174, 0.28));
}

.calendar-grid .event.alt {
  background: linear-gradient(135deg, var(--yellow), rgba(255, 212, 90, 0.24));
}

.match-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 20px;
  padding: 16px;
}

.match-card div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.live-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 8px rgba(255, 212, 90, 0.12);
}

.below-fold {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 0 54px;
}

.below-fold article {
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.055);
}

.below-fold span {
  color: var(--green);
  font-weight: 860;
}

.below-fold h2 {
  margin: 24px 0 10px;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.below-fold p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
  }

  .hero-copy {
    max-width: 680px;
  }

  h1 {
    font-size: 5.6rem;
  }

  .product-preview {
    order: -1;
  }

  .app-preview {
    min-height: 420px;
    grid-template-columns: 58px 1fr;
  }

  .calendar-panel {
    grid-column: 2;
  }

  .below-fold {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 28px, 1180px);
  }

  .site-nav {
    padding-top: 16px;
  }

  .domain-pill {
    display: none;
  }

  .hero {
    padding: 18px 0 32px;
  }

  .eyebrow {
    margin-bottom: 18px;
  }

  h1 {
    font-size: 4.05rem;
    line-height: 0.9;
  }

  .hero-lede {
    margin-top: 18px;
    font-size: 1.08rem;
  }

  .product-preview {
    order: 0;
  }

  .browser-frame {
    border-radius: 22px;
    transform: none;
  }

  .frame-top {
    height: 42px;
    padding: 0 14px;
  }

  .app-preview {
    min-height: 390px;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }

  .app-sidebar {
    display: none;
  }

  .booking-panel,
  .calendar-panel {
    padding: 14px;
  }

  .calendar-panel {
    grid-column: auto;
  }

  .panel-heading strong {
    font-size: 22px;
  }

  .slot-grid span {
    min-height: 46px;
  }

  .calendar-grid span {
    min-height: 34px;
  }

  .countdown {
    gap: 8px;
  }

  .countdown-item {
    min-height: 78px;
    padding: 11px 7px;
  }

  .countdown-item span {
    font-size: 1.62rem;
  }

  .countdown-item small {
    font-size: 11px;
  }
}
