:root {
  --ink: #0f172a;
  --muted: #64748b;
  --accent: #0f766e;
  --accent-hover: #115e59;
  --accent-soft: #ecfdf8;
  --panel: #f8fafc;
  --bg: #e8eef3;
  --border: #c5d0db;
  --tape: rgba(15, 23, 42, 0.055);
  --radius: 4px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}

.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;
}

/* Full-bleed atmosphere — tape + desk plane */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 1100px 520px at 12% -8%, rgba(15, 118, 110, 0.14), transparent 58%),
    radial-gradient(ellipse 900px 480px at 92% 8%, rgba(15, 23, 42, 0.07), transparent 55%),
    linear-gradient(165deg, #edf2f6 0%, var(--bg) 42%, #dde5ec 100%);
}

.tape-plane {
  position: absolute;
  inset: 18% -5% auto;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  opacity: 0.9;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.tape-row {
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.72rem, 1.4vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tape);
  white-space: nowrap;
  will-change: transform;
}

.tape-row-a {
  animation: tape-drift 48s linear infinite;
}
.tape-row-b {
  animation: tape-drift-rev 56s linear infinite;
  opacity: 0.85;
}
.tape-row-c {
  animation: tape-drift 64s linear infinite;
  opacity: 0.7;
}

@keyframes tape-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-35%); }
}
@keyframes tape-drift-rev {
  from { transform: translateX(-30%); }
  to { transform: translateX(0); }
}

.desk-silhouette {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(42vh, 420px);
  background:
    linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.03) 28%, rgba(15, 23, 42, 0.07) 100%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 72px,
      rgba(15, 118, 110, 0.04) 72px,
      rgba(15, 118, 110, 0.04) 73px
    );
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 3.5rem);
  max-width: 52rem;
}

.brand {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-size: clamp(2.1rem, 6.5vw, 3.6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--ink);
}

.brand-tld {
  color: var(--accent);
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 500;
  font-size: 0.68em;
  margin-left: 2px;
}

.promise {
  margin-top: 1.15rem;
  font-size: clamp(1.25rem, 2.8vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
  max-width: 22ch;
}

.lede {
  margin-top: 0.85rem;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: var(--muted);
  max-width: 34rem;
  font-weight: 400;
}

.waitlist {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem 0.65rem;
  max-width: 28rem;
  align-items: start;
}

.waitlist input[type="email"] {
  grid-column: 1;
  font: inherit;
  font-size: 1rem;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.waitlist input[type="email"]:hover {
  background: #fff;
}

.waitlist input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
  background: #fff;
}

.waitlist button {
  grid-column: 2;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.72rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.waitlist button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.waitlist button:active {
  transform: translateY(1px);
}

.waitlist button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.hint,
.form-status {
  grid-column: 1 / -1;
  font-size: 0.86rem;
  color: var(--muted);
}

.form-status.is-ok {
  color: var(--accent-hover);
  font-weight: 500;
}

.form-status.is-err {
  color: #b91c1c;
}

.section {
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.25rem, 5vw, 3.5rem);
  max-width: 40rem;
}

.section + .section {
  padding-top: 0;
}

.section h2 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.55rem;
}

.section-lede {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 36rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 2rem clamp(1.25rem, 5vw, 3.5rem) 2.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer .fine {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  opacity: 0.9;
}

/* Entrance motion */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .waitlist {
    grid-template-columns: 1fr;
  }
  .waitlist button {
    grid-column: 1;
    width: 100%;
  }
  .tape-plane {
    inset: 22% -20% auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tape-row-a,
  .tape-row-b,
  .tape-row-c {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
