/* CutMyGame coming-soon page. Tokens mirror docs/design/cmg-tokens.json. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/geist-latin-wght-5.3.0.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/heebo-hebrew-wght-5.3.0.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-deep: #090c12;
  --surface-1: #0d1118;
  --surface-2: #10151d;
  --surface-sunken: #0b0f15;
  --line: #242a34;
  --line-strong: #343b47;
  --line-control: #414957;
  --text: #f5f1e8;
  --text-2: #b8c0cb;
  --text-3: #9da5b2;
  --text-4: #747e8d;
  --text-bright: #ffffff;
  --accent: #ff5b1a;
  --accent-text: #ff6a2a;
  --accent-glow: #ff5b1a40;
  --accent-glow-soft: #ff5b1a22;
  --on-accent: #090a0e;
  --success: #69dc96;
  --danger-text: #ff9b83;
  --violet-ambient: #28124f;
  --font-sans: "Geist", "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --shell-max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Violet ambient light, as on the app landing and analytics screens. */
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset-block-start: -260px;
  inset-inline-end: -220px;
  width: 720px;
  height: 720px;
  background: radial-gradient(closest-side, var(--violet-ambient), transparent);
  opacity: 0.7;
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.shell {
  width: 100%;
  max-width: calc(var(--shell-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Brand */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-bright);
  text-decoration: none;
}

.brandmark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  transform: skew(-8deg);
}

.wordmark {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.wordmark em {
  color: var(--accent);
  font-style: normal;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

/* Language toggle */

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line-strong);
}

.lang-toggle a {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 40px;
  padding-inline: 12px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}

.lang-toggle a + a {
  border-inline-start: 1px solid var(--line-strong);
}

.lang-toggle a:hover {
  color: var(--text-bright);
}

.lang-toggle a[aria-current="page"] {
  background: var(--accent);
  color: var(--on-accent);
}

/* Hero */

.hero {
  padding-block: clamp(56px, 9vw, 112px) clamp(32px, 5vw, 56px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 28px;
  height: 2px;
  background: var(--accent);
}

h1 {
  max-width: 16ch;
  margin: 0;
  color: var(--text-bright);
  font-size: clamp(44px, 7.6vw, 100px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

h1 em {
  display: block;
  max-width: 22ch;
  margin-top: 0.22em;
  color: var(--accent);
  font-size: 0.5em;
  font-style: normal;
  line-height: 1;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 38ch;
  margin: clamp(24px, 3vw, 36px) 0 0;
  color: var(--text-2);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
}

/* Values */

.values {
  padding-block: 0 clamp(48px, 6vw, 72px);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.value {
  padding: 26px 24px 28px;
  border: 1px solid var(--line-strong);
  border-inline-start: 2px solid var(--accent);
  background: var(--surface-1);
}

.value .value-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.value-index {
  color: var(--text-4);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.value h3 {
  margin: 0 0 8px;
  color: var(--text-bright);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.value p {
  margin: 0;
  color: var(--text-3);
  font-size: 15px;
}

/* Waitlist */

.waitlist {
  padding-block: 0 clamp(56px, 8vw, 96px);
}

.waitlist-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, var(--surface-2), #0a0d13);
  box-shadow: 0 30px 80px #0008;
}

.waitlist-copy h2 {
  margin: 0 0 10px;
  color: var(--text-bright);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.waitlist-copy p {
  margin: 0;
  color: var(--text-3);
  font-size: 17px;
}

.waitlist-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.role-field {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.role-field legend {
  margin-bottom: 8px;
  padding: 0;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.role-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.role-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 14px;
  border: 1px solid var(--line-control);
  background: var(--bg);
  color: var(--text-2);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.role-option:hover {
  border-color: var(--text-4);
}

.role-option input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 2px solid var(--line-control);
  border-radius: 50%;
  background: transparent;
  appearance: none;
  cursor: pointer;
}

.role-option input:checked {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--bg);
}

.role-option:has(input:checked) {
  border-color: var(--accent);
  color: var(--text-bright);
  box-shadow: 0 0 20px var(--accent-glow-soft);
}

.optional {
  color: var(--text-4);
  font-weight: 500;
}

.field input:not([type="radio"]) {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line-control);
  border-radius: 0;
  background: var(--bg);
  color: var(--text-bright);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.15s;
}

.field input:not([type="radio"])::placeholder {
  color: var(--text-4);
}

[dir="rtl"] .field input[dir="ltr"] {
  text-align: right;
}

.field input:not([type="radio"]):hover {
  border-color: var(--text-4);
}

.field input:not([type="radio"]):focus-visible {
  border-color: var(--accent);
  outline-offset: 0;
}

.button {
  grid-column: 1 / -1;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 28px var(--accent-glow);
  transition: box-shadow 0.15s, transform 0.15s;
}

.button:hover {
  box-shadow: 0 0 40px var(--accent-glow);
  transform: translateY(-1px);
}

.button[aria-busy="true"] {
  opacity: 0.75;
  cursor: progress;
  transform: none;
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.form-status:empty {
  display: none;
}

.form-status[data-state="success"] {
  color: var(--success);
}

.form-status[data-state="error"] {
  color: var(--danger-text);
}

.form-status a {
  color: inherit;
}

.form-note {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  color: var(--text-4);
  font-size: 13px;
}

.form-note a {
  color: var(--text-3);
}

.form-note a:hover {
  color: var(--accent-text);
}

.waitlist-form.is-done .field,
.waitlist-form.is-done .button {
  display: none;
}

.hp {
  position: absolute;
  inset-inline-start: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Product preview */

.preview {
  padding-block: 0 clamp(64px, 9vw, 120px);
}

.preview figure {
  position: relative;
  margin: 0;
}

.preview figure::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12% 8% -6%;
  background: radial-gradient(closest-side, var(--accent-glow-soft), transparent);
  filter: blur(40px);
}

.frame {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface-1);
  box-shadow: 0 40px 120px #000c, 0 0 0 6px #ffffff06;
}

.frame-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 38px;
  padding-inline: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
}

.dots {
  display: flex;
  gap: 6px;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-control);
}

.dots i:first-child {
  background: var(--accent);
}

.frame-url {
  padding: 3px 16px;
  border: 1px solid var(--line);
  background: var(--surface-sunken);
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 11px;
}

.frame-label {
  justify-self: end;
  color: var(--text-4);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.preview figcaption {
  margin-top: 16px;
  color: var(--text-4);
  font-size: 13px;
  text-align: center;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding-block: 32px;
}

.footer-brand .brand {
  gap: 10px;
}

.footer-brand .brandmark {
  width: 30px;
  height: 30px;
  font-size: 9px;
}

.footer-brand .wordmark {
  font-size: 16px;
}

.footer-legal {
  margin: 10px 0 0;
  color: var(--text-4);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  display: grid;
  gap: 2px;
}

.footer-label {
  color: var(--text-4);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-text);
}

/* 404 */

.not-found {
  padding-block: 96px;
}

.not-found h2 {
  margin: 56px 0 0;
  color: var(--text-bright);
  font-size: 32px;
}

.not-found a {
  color: var(--accent-text);
}

.result-message {
  max-width: 24ch;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: none;
}

.result-message[data-state="error"] {
  color: var(--danger-text);
}

/* Hebrew: Heebo has no condensed caps, so drop uppercase tracking. */

[lang="he"] h1 {
  max-width: 14ch;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: none;
}

[lang="he"] .eyebrow,
[lang="he"] .button,
[lang="he"] .frame-label,
[lang="he"] .footer-label {
  letter-spacing: 0.02em;
}

[lang="he"] h1 em {
  letter-spacing: -0.01em;
}

[lang="he"] .value-label {
  letter-spacing: 0.02em;
}

[lang="he"] .waitlist-copy h2,
[lang="he"] .value h3 {
  letter-spacing: 0;
}

/* Layout breakpoints (design system: 520 / 850) */

@media (max-width: 850px) {
  .value-grid,
  .waitlist-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .frame-label {
    display: none;
  }

  .frame-bar {
    grid-template-columns: auto 1fr;
    gap: 16px;
  }

  .frame-url {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .header-inner {
    min-height: 64px;
  }

  .wordmark {
    font-size: 16px;
  }

  .brandmark {
    width: 32px;
    height: 32px;
  }

  .waitlist-form,
  .role-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .frame-bar {
    height: 30px;
  }

  .frame-url {
    font-size: 10px;
    padding-inline: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .button:hover {
    transform: none;
  }
}
