:root {
  --bg: #080814;
  --bg-elevated: #12121e;
  --fg: #f2f2f2;
  --muted: #9a9aaa;
  --cyan: #00e5e5;
  --cyan-dim: #007777;
  --border: #333344;
  --accent: #0066cc;
  --danger: #ff6666;
  --max: 1100px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.wrap-wide { --max: 1400px; }
.wrap-pricing {
  width: calc(100% - 4cm);
  max-width: none;
}

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 20, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--fg);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.brand img { width: 64px; height: 64px; object-fit: contain; }
.home-mark { padding: 1.75rem 0 3rem; }
.home-mark img {
  display: block;
  width: 5cm;
  height: 5cm;
  object-fit: contain;
}
.brand:hover { text-decoration: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--fg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 4px;
  border: 0;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-cyan {
  background: var(--cyan);
  color: #000;
}
.btn-ghost {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan-dim);
}

/* Hero */
.hero {
  display: grid;
  gap: 2rem;
  padding: 2.5rem 0 3rem;
  align-items: start;
}
@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1fr 1.15fr;
    padding: 3.5rem 0 4rem;
  }
}
.eyebrow {
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}
.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
  font-weight: 800;
}
.hero .lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42ch;
  margin: 0 0 1.25rem;
}
.features-summary {
  margin: 0 0 0.65rem;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--fg);
}
.feature-list {
  margin: 0 0 2.75rem;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.feature-list li { margin: 0.4rem 0; }
.power-heading {
  margin: 0 0 0.55rem;
  font-size: clamp(1.65rem, 3.4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
}
.power-copy {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
  max-width: 42ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-visual {
  position: relative;
}
.dl-count {
  display: inline-block;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.2;
  margin: 0 0 0.35rem;
  text-align: left;
  user-select: none;
  cursor: default;
}
.dl-count-menu {
  position: fixed;
  z-index: 80;
  min-width: 10rem;
  max-width: 18rem;
  max-height: 14rem;
  overflow: auto;
  margin: 0;
  padding: 0.45rem 0.6rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}
.dl-count-menu[hidden] { display: none; }
.dl-count-menu div { white-space: nowrap; }
.device-frame {
  border: 1px solid var(--border);
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}
.device-frame img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.caption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Sections */
.section {
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid var(--border);
}
.section h2 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
}
.section .sub {
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 50ch;
}

.cards {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .cards.two { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .cards.three { grid-template-columns: 1fr 1fr 1fr; }
}
@media (min-width: 1100px) {
  .cards.three {
    grid-template-columns: repeat(3, minmax(max-content, 1fr));
  }
  .cards.three .card h3,
  .cards.three .card .price,
  .cards.three .card li {
    white-space: nowrap;
  }
}
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}
.card h3 { margin: 0 0 0.35rem; font-size: 1.2rem; }
.price {
  font-size: 2rem;
  font-weight: 800;
  margin: 0.75rem 0 0.25rem;
}
.price .price-note { font-size: 0.95rem; color: var(--muted); font-weight: 600; }
.card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.card ul li { margin: 0.35rem 0; }
.platform-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.25rem;
}

.contact-layout {
  display: grid;
  gap: 2rem;
  grid-template-areas:
    "details"
    "form";
}
@media (min-width: 800px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.85fr);
    grid-template-areas: "form details";
    column-gap: 3rem;
    align-items: start;
  }
}
.contact-form-col { grid-area: form; }
.contact-intro { max-width: 58ch; }
.contact-details {
  grid-area: details;
  text-align: right;
  color: var(--fg);
  font-size: 1.02rem;
  line-height: 1.85;
}
.contact-details p { margin: 0; }
.contact-details a { font-weight: 600; }

/* Booking page: form sits 5cm left of the usual column so the calendar fits on the right. */
.booking-layout {
  grid-template-areas:
    "form"
    "details";
}
@media (min-width: 960px) {
  .booking-layout {
    --booking-shift: 5cm;
    margin-left: max(1rem, calc((100% - var(--max)) / 2 - var(--booking-shift)));
    margin-right: auto;
    width: min(calc(var(--max) + var(--booking-shift)), calc(100% - 2rem));
    grid-template-areas: "form details";
    grid-template-columns: minmax(0, 36rem) minmax(18rem, 1fr);
    column-gap: 2.5rem;
  }
}
.booking-layout .calendar {
  max-width: none;
  margin-top: 1.25rem;
  text-align: left;
}

.contact-form {
  display: grid;
  gap: 0.45rem;
  max-width: 36rem;
}
.contact-form label {
  margin-top: 0.85rem;
  font-weight: 600;
  color: var(--fg);
}
.contact-form label:first-of-type { margin-top: 0; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--fg);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  font: inherit;
}
.contact-form textarea {
  min-height: 10.5rem;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #6a6a7a;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
  border-color: var(--cyan-dim);
}
.contact-form .btn {
  justify-self: start;
  margin-top: 1rem;
}
.site-notice {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 200;
  margin: 0;
  max-width: min(28rem, calc(100% - 2rem));
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: #102418;
  color: #d7ffe4;
  border: 1px solid #1d6b3a;
  font-size: 0.92rem;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.site-notice[hidden] { display: none; }
.site-notice.err {
  background: #2a1216;
  color: #ffc1c1;
  border-color: #663333;
}
.field-error {
  color: var(--danger);
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}

/* Download modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 100;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: min(100%, 420px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}
.modal-head {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  margin: 0 0 0.75rem;
}
.modal-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.modal h2 {
  margin: 0;
  font-size: 1.25rem;
  text-align: center;
}
.modal p { color: var(--muted); margin: 0 0 0.55rem; font-size: 0.95rem; }
.modal .dl-version {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 0 1rem;
}
.modal .stack { display: grid; gap: 0.75rem; }
.modal .btn {
  width: 100%;
  position: relative;
  justify-content: center;
}
.modal .btn-icon {
  position: absolute;
  left: 1rem;
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}
.dl-windows-note {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #0c0c18;
}
.dl-windows-note p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 0 0 0.55rem;
}
.dl-windows-note p:last-child { margin-bottom: 0; }
.dl-windows-note strong { color: #ffffff; font-weight: 700; }
.modal-close {
  margin-top: 1rem;
  background: none;
  border: 0;
  color: var(--cyan);
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
}

.uc-surface {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.25rem;
  align-items: start;
}
.uc-surface-copy,
.uc-surface-visual { min-width: 0; }
.uc-surface-copy h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3.4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}
@media (min-width: 1200px) {
  .uc-surface {
    grid-template-columns: minmax(32rem, 1fr) minmax(0, 1fr);
    padding-left: 3cm;
  }
}
@media (min-width: 1440px) {
  .uc-surface { padding-left: 0; }
  .uc-surface-copy {
    justify-self: start;
    margin-left: calc(700px - 50vw + 1rem + 3cm);
    width: max(32rem, calc(18.5rem + 2cm + 50vw - 700px - 1rem));
  }
  .uc-surface-visual { margin-left: 0; }
}
@media (min-width: 1700px) {
  .uc-surface-visual {
    margin-left: -5cm;
    width: calc(508px * 2 + 1rem);
  }
}
.uc-surface-list {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.uc-surface-intro,
.uc-surface-intro li { color: var(--cyan); }
.uc-surface-copy .uc-surface-intro { margin-bottom: 0.45rem; }
.uc-surface-list li { margin: 0.4rem 0; }
.uc-surface-list + .uc-surface-label { margin-top: 0.15rem; }
.uc-surface-value { color: #d4d4e0; }
.uc-surface-label {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 0.55rem;
}
.uc-surface-label + .uc-surface-label { margin-top: -0.2rem; }
.uc-surface-note {
  color: #ff1a1a;
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}
.uc-surface-note strong { color: inherit; }
.uc-shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 1rem;
}
@media (min-width: 700px) {
  .uc-shots { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (min-width: 1700px) {
  .uc-shots {
    grid-template-columns: 508px 508px;
    justify-content: start;
  }
}
.uc-shot {
  margin: 0;
  min-width: 0;
}
.uc-shot img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
  background: #000;
}
.uc-shot-list {
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.uc-shot-list li { margin: 0.28rem 0; }

.platforms {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (min-width: 700px) {
  .platforms { grid-template-columns: 1fr 1fr; }
}
.platform-card img,
.platform-card .mock {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
}
.mock {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(180deg, #1a1a28 0%, #0c0c14 100%);
  position: relative;
  overflow: hidden;
}
.mock::before {
  content: "BackTrax Player — Windows";
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fg);
}
.mock-grid {
  position: absolute;
  inset: 3rem 1rem 1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}
.mock-grid span {
  background: #181828;
  border: 1px solid #2a2a3a;
  border-radius: 3px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Booking */
.booking-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}
.booking-tabs button {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.booking-tabs button[aria-current="page"],
.booking-tabs button:hover {
  color: var(--fg);
  border-color: var(--cyan-dim);
}
.booking-form {
  max-width: 46rem;
}
.booking-grid {
  display: grid;
  gap: 0 1rem;
}
@media (min-width: 700px) {
  .booking-grid { grid-template-columns: 1fr 1fr; }
  .booking-grid .span-2 { grid-column: 1 / -1; }
}
.booking-form select {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--fg);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  font: inherit;
}
.booking-form select:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
  border-color: var(--cyan-dim);
}
.booking-note,
.booking-error,
.booking-success {
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin: 1rem 0 0;
}
.booking-note {
  background: #102428;
  color: #d7ffff;
  border: 1px solid var(--cyan-dim);
}
.booking-error {
  background: #2a1216;
  color: #ffc1c1;
  border: 1px solid #663333;
}
.booking-success {
  background: #102418;
  color: #d7ffe4;
  border: 1px solid #1d6b3a;
  max-width: 40rem;
}
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.calendar {
  max-width: 40rem;
  margin-top: 2.5rem;
}
.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.calendar-head h3 { margin: 0; }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
}
.calendar-dow,
.calendar-day {
  text-align: center;
  border-radius: 6px;
  min-height: 3.9rem;
}
.calendar-dow {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding-top: 0.35rem;
}
.calendar-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  width: 100%;
  padding: 0.2rem;
}
button.calendar-day {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button.calendar-day.is-open.is-weekend {
  background: #241a38;
}
button.calendar-day.is-open:hover,
button.calendar-day.is-selected {
  border-color: var(--cyan);
}
.calendar-day small {
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
}
.calendar-day.is-past { color: #555566; }
.calendar-day.is-upcoming,
.calendar-day.is-expired {
  min-height: 5.1rem;
  padding: 0.25rem;
}
.calendar-day.is-upcoming {
  background: #c2410c;
  color: #fff;
  border-color: #9a3412;
}
.calendar-day.is-expired {
  background: #f6d2b0;
  color: #7a4a28;
  border-color: #e2b48a;
}
.calendar-day.is-today { outline: 2px solid #fff; outline-offset: 1px; }
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.legend-swatch {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 2px;
  margin-right: 0.35rem;
  vertical-align: -1px;
}
.legend-swatch.upcoming { background: #c2410c; }
.legend-swatch.expired { background: #f6d2b0; }
.legend-swatch.today { outline: 2px solid #fff; }
