:root {
  --bg: #000000;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.64);
  --faint: rgba(255, 255, 255, 0.4);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --glass: rgba(18, 18, 18, 0.62);
  --glass-border: rgba(255, 255, 255, 0.16);
  --accent-blue: #6a9dff;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Sora", "Manrope", sans-serif;
  --header-h: 4rem;
  --content-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
input {
  font: inherit;
}

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

/* ——— Header ——— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent);
  pointer-events: none;
}

.site-header-inner {
  width: min(var(--content-width), calc(100% - 2rem));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.site-header-inner > * {
  pointer-events: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-mark {
  width: 1.65rem;
  height: 1.65rem;
  flex-shrink: 0;
}

.logo-text {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switch button {
  margin: 0;
  padding: 0.15rem 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.lang-switch button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.lang-switch .sep {
  color: var(--faint);
  font-size: 0.7rem;
}

/* ——— Page ——— */
.page {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100dvh;
  min-height: 100%;
  min-height: 100dvh;
  overflow: hidden;
}

.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.section-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 10%, transparent 72%);
  opacity: 0.45;
}

.hero-bg {
  background:
    radial-gradient(ellipse 55% 50% at 82% 42%, rgba(90, 150, 255, 0.28), transparent 58%),
    radial-gradient(ellipse 45% 40% at 12% 78%, rgba(106, 157, 255, 0.16), transparent 55%),
    linear-gradient(165deg, #10131a 0%, #050608 48%, #000 100%);
}

.page-inner {
  position: relative;
  z-index: 1;
  width: min(var(--content-width), calc(100% - 2rem));
  height: 100%;
  margin: 0 auto;
  padding: calc(var(--header-h) + 0.85rem) 0 1.5rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

/* ——— Left: Hero copy ——— */
.hero-copy {
  max-width: 34rem;
  min-width: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.15rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-blue);
}

.hero-title {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero-slogan {
  margin: 0 0 0.85rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  line-height: 1.45;
}

.hero-lead {
  margin: 0;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.7;
  color: var(--muted);
}

/* ——— Right: Waitlist form ——— */
.hero-form {
  width: 100%;
  max-width: 440px;
  justify-self: end;
  padding: clamp(1.35rem, 3vw, 1.85rem);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.coming-label {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-blue);
}

.hero-form h2 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.form-lead {
  margin: 0 0 1.35rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}

.wait-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.wait-form-row {
  display: flex;
  gap: 0.65rem;
}

.wait-form-row > * {
  flex: 1;
  min-width: 0;
}

.wait-form input {
  width: 100%;
  padding: 0.9rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--ink);
  font-size: 0.95rem;
  outline: none;
}

.wait-form input::placeholder {
  color: var(--faint);
}

.wait-form input:focus {
  border-color: rgba(106, 157, 255, 0.45);
}

.wait-form button {
  width: 100%;
  padding: 0.95rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 0 24px rgba(255, 255, 255, 0.28);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.wait-form button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.wait-form button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.wait-form button:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

.form-msg {
  margin: 0.85rem 0 0;
  min-height: 1.25rem;
  font-size: 0.85rem;
  color: var(--accent-blue);
}

.site-footer {
  margin: 1.25rem 0 0;
  font-size: 0.75rem;
  color: var(--faint);
}

.site-footer a:hover {
  color: var(--ink);
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .page {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .page-inner {
    grid-template-columns: 1fr;
    height: auto;
    padding-bottom: 2.5rem;
    gap: 2rem;
  }

  .hero-copy {
    max-width: none;
    text-align: center;
  }

  .hero-form {
    justify-self: center;
    max-width: 480px;
  }
}

@media (max-width: 600px) {
  .wait-form-row {
    flex-direction: column;
  }

  .hero-form {
    padding: 1.25rem 1.1rem;
    border-radius: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wait-form button {
    transition: none;
  }
}
