/* ─── Tokens (mirror landing's design system) ─────────────────────────── */
:root {
  --orpto-dark: #0F0E0C;
  --orpto-dark-mid: #1E1D1A;
  --orpto-accent: #C4893A;
  --orpto-light: #F7F5F0;
  --rule: rgba(255, 255, 255, 0.06);
  --hairline: rgba(255, 255, 255, 0.15);

  --font-display: 'Lexend', sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Source Code Pro', ui-monospace, monospace;
}

/* ─── Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--orpto-dark);
  color: rgba(255, 255, 255, 0.92);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}
button { font: inherit; cursor: pointer; }
input { font: inherit; }
a { color: inherit; text-decoration: none; }

/* ─── Layout shell — exact 100dvh, no scroll ─────────────────────────── */
.page {
  width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ─── Hero ────────────────────────────────────────────────────────────── */
.hero {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .hero-inner { padding: 0 56px; } }

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--orpto-accent);
  margin: 0 0 24px 0;
}

.headline {
  font-family: var(--font-display);
  color: #fff;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.02em;
  word-spacing: -0.2em;
  font-weight: 800;
  font-size: clamp(40px, 6vw, 80px);
  margin: 0 0 28px 0;
}
.headline .accent { color: var(--orpto-accent); }

.sub {
  font-size: 14px;
  line-height: 1.7;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  max-width: 540px;
  margin: 0 0 32px 0;
}

/* ─── Form ────────────────────────────────────────────────────────────── */
.form { max-width: 520px; }
.form-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 640px) { .form-row { flex-direction: row; } }

.form input[type="email"] {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid var(--hairline);
  color: #fff;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.01em;
  outline: none;
  transition: border-color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
.form input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.3); }
.form input[type="email"]:focus { border-color: rgba(255, 255, 255, 0.4); }
.form input[type="email"]:disabled { opacity: 0.5; }

.form button {
  background: var(--orpto-accent);
  color: #fff;
  border: 0;
  padding: 14px 28px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
  transition: opacity 0.15s ease;
  border-radius: 0;
}
.form button:hover { opacity: 0.9; }
.form button:disabled { opacity: 0.6; cursor: default; }

.microcopy {
  margin: 14px 0 0 0;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.38);
}

.error {
  margin: 12px 0 0 0;
  font-size: 12px;
  color: #E8A88A;
}

/* ─── Success state ──────────────────────────────────────────────────── */
.success {
  max-width: 520px;
  padding: 20px 22px;
  border: 0.5px solid var(--hairline);
  background: rgba(255, 255, 255, 0.04);
}
.success .eyebrow { margin-bottom: 10px; }
.success p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 300;
  color: #fff;
}
.success a {
  color: var(--orpto-accent);
  border-bottom: 0.5px solid currentColor;
}

/* ─── Footer ─────────────────────────────────────────────────────────── */
.foot {
  position: relative;
  z-index: 10;
  width: 100%;
  border-top: 0.5px solid var(--rule);
}
.foot-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.32);
}
@media (min-width: 768px) { .foot-inner { padding: 18px 56px; } }
.foot .copy { font-size: 10px; font-weight: 300; }
.foot .contact {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.15s ease;
}
.foot .contact:hover { color: rgba(255, 255, 255, 0.7); }

/* ─── Hero stagger fade-in ───────────────────────────────────────────── */
.fade-1, .fade-2, .fade-3, .fade-4 {
  opacity: 0;
  transform: translateY(8px);
  animation: rise 0.7s ease forwards;
}
.fade-1 { animation-delay: 0.05s; }
.fade-2 { animation-delay: 0.15s; }
.fade-3 { animation-delay: 0.25s; }
.fade-4 { animation-delay: 0.35s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .fade-1, .fade-2, .fade-3, .fade-4 {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
