:root {
  --bg: #040603;
  --panel: rgba(8, 12, 7, 0.95);
  --panel-soft: rgba(10, 16, 9, 0.88);
  --grid: rgba(167, 255, 123, 0.14);
  --line: rgba(167, 255, 123, 0.34);
  --line-strong: rgba(198, 255, 143, 0.78);
  --glow: #d6ff88;
  --text: #edffc8;
  --text-dim: rgba(226, 255, 182, 0.76);
  --text-faint: rgba(210, 255, 167, 0.5);
  --danger: #ff7a72;
  --success: #bfff75;
  --mono: 'IBM Plex Mono', monospace;
  --display: 'Space Grotesk', sans-serif;
  --shadow: 0 0 0 1px rgba(198,255,143,0.08), 0 24px 80px rgba(0,0,0,0.52);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { min-height: 100%; }

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(170,255,130,0.12), transparent 24%),
    linear-gradient(180deg, rgba(7,12,7,0.96), rgba(4,6,3,1));
  color: var(--text);
  font-family: var(--mono);
  padding: 22px 14px 34px;
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.22;
}

body::after {
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.04) 0px,
    rgba(255,255,255,0.04) 1px,
    transparent 2px,
    transparent 4px
  );
  opacity: 0.06;
  mix-blend-mode: screen;
}

.page {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.bar,
.frame,
.footer {
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.bar,
.footer {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  color: var(--text-dim);
}

.bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sigil {
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-strong);
  position: relative;
  display: inline-block;
}

.sigil::before,
.sigil::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(214,255,136,0.5);
}

.sigil::after {
  inset: 6px;
}

.frame {
  overflow: hidden;
}

.hero-image {
  position: relative;
  min-height: 340px;
  border-bottom: 1px solid var(--line-strong);
  background: #090b08;
  overflow: hidden;
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(214,255,136,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214,255,136,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.12;
  z-index: 2;
  pointer-events: none;
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0) 38%, rgba(0,0,0,0.1)),
    linear-gradient(90deg, rgba(0,0,0,0.04), rgba(0,0,0,0) 36%, rgba(0,0,0,0.08));
  opacity: 1;
  z-index: 2;
  pointer-events: none;
}

.hero-image-photo {
  background: #070a06;
}

.hero-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(0.08) contrast(1.02) brightness(0.92) sepia(0.08) hue-rotate(8deg) saturate(1.08);
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 18px 16px;
  gap: 12px;
  z-index: 1;
}

.hero-tag,
.hero-hint {
  border: 1px solid var(--line);
  background: rgba(5, 8, 5, 0.82);
  padding: 8px 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.manifesto,
.actions {
  padding: 18px 16px 20px;
}

.manifesto {
  border-right: 1px solid var(--line);
}

.manifesto-copy {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.manifesto-line {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  font-family: var(--display);
}

.highlight {
  background: var(--glow);
  color: #0a1107;
  display: inline-block;
  width: fit-content;
  padding: 0.08em 0.2em;
  box-shadow: 0 0 26px rgba(214,255,136,0.38);
}

.manifesto-body {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: grid;
  gap: 14px;
}

.bullet {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
  text-transform: uppercase;
}

.bullet::before {
  content: '> ';
  color: var(--glow);
}

.actions {
  display: grid;
  gap: 12px;
  background: rgba(8, 12, 7, 0.98);
}

.panel,
.waitlist {
  border: 1px solid var(--line);
  background: rgba(9, 14, 8, 0.88);
  padding: 14px;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}

.waitlist-label {
  margin-bottom: 8px;
}

.panel h2,
.waitlist h2 {
  font-family: var(--display);
  font-size: 26px;
  line-height: 0.96;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.panel p,
.waitlist-copy,
.small-print,
.security-note {
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-dim);
  text-transform: uppercase;
}

.panel-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.panel-link:hover,
.waitlist:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 0 18px rgba(214,255,136,0.12);
}

.waitlist {
  display: grid;
  gap: 12px;
}

.waitlist-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.badge {
  white-space: nowrap;
  border: 1px solid var(--line);
  padding: 6px 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--glow);
  background: rgba(214,255,136,0.05);
}

.waitlist-form {
  display: grid;
  gap: 10px;
}

.waitlist-input,
.waitlist-submit {
  width: 100%;
  min-height: 50px;
  border-radius: 0;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
}

.waitlist-input {
  background: rgba(4, 7, 4, 0.96);
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

.waitlist-input::placeholder {
  color: var(--text-faint);
  text-transform: uppercase;
}

.waitlist-input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(214,255,136,0.08);
}

.waitlist-submit {
  cursor: pointer;
  background: var(--glow);
  color: #091007;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  transition: opacity 160ms ease, transform 160ms ease;
}

.waitlist-submit:hover {
  transform: translateY(-1px);
}

.waitlist-submit:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.waitlist-message {
  min-height: 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.waitlist-message.success { color: var(--success); }
.waitlist-message.error { color: var(--danger); }

.small-print,
.security-note {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

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

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

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .content {
    grid-template-columns: 1fr;
  }

  .manifesto {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  body {
    padding: 10px 8px 22px;
  }

  .bar,
  .footer,
  .manifesto,
  .actions {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-image {
    min-height: 260px;
  }

  .hero-portrait {
    object-position: center 12%;
    transform: scale(1.06);
  }

  .manifesto-line {
    font-size: clamp(30px, 11vw, 48px);
  }
}
