:root {
  color-scheme: dark;
  --ink: #f8f7fb;
  --muted: rgba(248, 247, 251, 0.72);
  --line: rgba(248, 247, 251, 0.18);
  --accent: #38a7ff;
  --accent-strong: #0a84ff;
  --rose: #ffb3bd;
  --field: rgba(255, 255, 255, 0.12);
  --app-screenshot: url("../images/cota-screenshot-framed.png");
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  background: #050508;
  color: var(--ink);
}

button,
input {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  align-items: center;
  padding: clamp(28px, 5vw, 72px);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 8, 0.96) 0%, rgba(5, 5, 8, 0.8) 43%, rgba(5, 5, 8, 0.2) 100%),
    var(--app-screenshot) 86% center / min(56vw, 540px) auto no-repeat,
    #050508;
  filter: saturate(1.08);
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 8, 0.05), rgba(5, 5, 8, 0.86)),
    radial-gradient(circle at 24% 20%, rgba(255, 179, 189, 0.14), transparent 30%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.language-toggle {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 34px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(1.3);
}

.language-toggle button {
  min-width: 42px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  color: rgba(248, 247, 251, 0.68);
  font-weight: 850;
  background: transparent;
  cursor: pointer;
}

.language-toggle button[aria-pressed="true"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.language-toggle button:focus-visible {
  outline: 3px solid rgba(56, 167, 255, 0.35);
  outline-offset: 2px;
}

.brand-icon {
  display: block;
  width: 84px;
  height: 84px;
  margin-bottom: 22px;
}

.brand-icon img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--rose);
  font-size: clamp(0.78rem, 1.6vw, 0.95rem);
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(3.45rem, 9.2vw, 7.7rem);
  line-height: 0.92;
  font-weight: 850;
}

.lede {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.1vw, 1.42rem);
  line-height: 1.45;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.platforms span {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(248, 247, 251, 0.8);
  font-size: 0.86rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.waitlist-form {
  width: min(100%, 560px);
  margin-top: 42px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 22px 60px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(24px) saturate(1.4);
}

.platform-choice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.platform-choice legend {
  grid-column: 1 / -1;
  margin: 2px 8px 10px;
  color: rgba(248, 247, 251, 0.68);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.platform-choice label {
  min-width: 0;
  margin: 0;
  cursor: pointer;
}

.platform-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.platform-choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: rgba(248, 247, 251, 0.74);
  font-size: 0.82rem;
  font-weight: 850;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.platform-choice input:checked + span {
  border-color: rgba(56, 167, 255, 0.72);
  color: #fff;
  background: rgba(56, 167, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.platform-choice input:focus-visible + span {
  outline: 3px solid rgba(56, 167, 255, 0.35);
  outline-offset: 2px;
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-row input {
  min-width: 0;
  flex: 1;
  height: 54px;
  border: 0;
  border-radius: 18px;
  padding: 0 18px;
  background: var(--field);
  color: var(--ink);
  outline: none;
}

.form-row input::placeholder {
  color: rgba(248, 247, 251, 0.52);
}

.form-row input:focus {
  box-shadow: 0 0 0 3px rgba(56, 167, 255, 0.35);
}

.waitlist-form button {
  min-width: 128px;
  height: 54px;
  border: 0;
  border-radius: 18px;
  color: white;
  font-weight: 800;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  box-shadow: 0 12px 28px rgba(10, 132, 255, 0.32);
  cursor: pointer;
}

.waitlist-form button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
}

.waitlist-form button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.form-note {
  margin: 14px 0 0;
  color: rgba(248, 247, 251, 0.62);
  font-size: 0.95rem;
  font-weight: 700;
}

.form-note[data-status="success"] {
  color: rgba(143, 255, 207, 0.88);
}

.form-note[data-status="error"] {
  color: rgba(255, 179, 189, 0.95);
}

.waitlist-stats {
  width: min(100%, 560px);
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.stats-total {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.stats-total strong {
  color: #fff;
  font-size: 1.1rem;
  margin-right: 6px;
}

.stats-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stats-platforms li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  font-weight: 800;
}

.stats-key {
  color: rgba(248, 247, 251, 0.68);
}

.stats-value {
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .hero {
    align-items: start;
    padding: 44px 22px 0;
  }

  .hero-content {
    max-width: none;
  }

  .language-toggle {
    margin-bottom: 28px;
  }

  h1 {
    max-width: 10ch;
  }

  .waitlist-form {
    margin-top: 36px;
    border-radius: 26px;
  }

  .platform-choice {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-row {
    flex-direction: column;
  }

  .waitlist-form button {
    width: 100%;
  }

  .hero-backdrop {
    background:
      linear-gradient(180deg, rgba(5, 5, 8, 0.72) 0%, rgba(5, 5, 8, 0.96) 76%),
      var(--app-screenshot) center bottom / min(78vw, 360px) auto no-repeat,
      #050508;
  }
}
