/* ---------- Tokens ---------- */
/* Brand colours come from the folded-T logo. */
:root {
  color-scheme: dark;
  --bg: #050a18;
  --surface: #0c1630;
  --border: #1d2c4d;
  --text: #f2f6fc;
  --text-muted: #a9b7d1;
  --text-faint: #8392b0;
  --accent: #4cc4ff;
  --accent-strong: #9be0ff;
  --brand-cyan: #00c0fd;
  --brand-blue: #0d66f0;
  --brand-deep: #0044fd;
  --max-width: 1160px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 0.75rem 1rem;
  z-index: 100;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-deep));
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(1, 125, 253, 0.8);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  filter: brightness(1.12);
}

.btn-primary:disabled {
  cursor: progress;
  filter: saturate(0.6);
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 2;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.35rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}

/* ---------- Landing ---------- */
.landing {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(90% 60% at 72% 8%, rgba(0, 68, 253, 0.2), transparent 70%),
    var(--bg);
}

.hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: 1.5rem 11.5rem;
  overflow: hidden;
}

.hero-scene {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  height: min(72%, 620px);
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
}

/* Keeps the headline readable where it overlaps the mountains. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(5, 10, 24, 0.72), rgba(5, 10, 24, 0) 62%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  margin-bottom: 1.1rem;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.75rem, 6.6vw, 5.1rem);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -0.035em;
  max-width: 11ch;
  margin-bottom: 1.4rem;
  text-wrap: balance;
}

.hero-sub {
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 34ch;
}

.hero-sub + .hero-sub {
  margin-top: 0.7rem;
}

.join-panel {
  width: 100%;
  max-width: 440px;
  padding: 1.6rem;
  background: rgba(12, 22, 48, 0.72);
  border: 1px solid rgba(76, 196, 255, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 4rem;
  }
}

@media (max-width: 899px) {
  .hero {
    padding-block: 0.5rem 9rem;
  }

  .hero-scene {
    height: 340px;
  }

  .hero::before {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .join-panel {
    animation: rise 0.7s ease-out both;
  }

  .join-panel {
    animation-delay: 0.12s;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Signup form ---------- */
.early-access-form {
  display: grid;
  gap: 0.9rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
}

.form-field label span {
  font-weight: 400;
  color: var(--text-muted);
}

.form-field input {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

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

.form-field input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.09);
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 196, 255, 0.2);
}

.early-access-form .btn {
  width: 100%;
  margin-top: 0.35rem;
  padding-block: 0.9rem;
  font-size: 1.05rem;
}

.form-status:empty {
  display: none;
}

.form-status {
  font-size: 0.94rem;
  font-weight: 600;
  text-align: center;
}

.form-note {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}

.form-note a {
  color: var(--text);
  white-space: nowrap;
  text-underline-offset: 2px;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  padding-block: 1.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-faint);
  font-size: 0.88rem;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.site-footer a {
  text-decoration: none;
  color: var(--text-faint);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent-strong);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

/* ---------- Legal pages ---------- */
.legal-page .btn {
  font-size: 0.92rem;
}

.legal {
  padding-block: 1.5rem 4rem;
}

.legal-inner {
  max-width: 760px;
}

.legal-header {
  padding-bottom: 1.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal h1 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal section {
  margin-top: 2.75rem;
}

.legal h2 {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.legal h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.75rem 0 0.5rem;
}

.legal p,
.legal li {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.legal p + p,
.legal ul + p,
.legal ol + p {
  margin-top: 1rem;
}

.legal p + ul,
.legal p + ol,
.legal ul + ul {
  margin-top: 0.75rem;
}

.legal ul,
.legal ol {
  margin: 0;
  padding-left: 1.4rem;
}

.legal ul {
  list-style: disc;
}

.legal ol {
  list-style: decimal;
}

.legal li + li {
  margin-top: 0.5rem;
}

.legal li::marker {
  color: var(--accent);
}

.legal strong,
.legal-why {
  color: var(--text);
  font-weight: 600;
}

.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.legal a:hover,
.legal a:focus-visible {
  color: var(--accent-strong);
}

.legal-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.6rem;
}

.legal-summary h2 {
  margin-bottom: 0.75rem;
}

.legal-recipients li + li {
  margin-top: 0.85rem;
}
