@import url("./tokens.css");

:root {
  --bg: var(--offira-obsidian);
  --bg-warm: #14120c;
  --surface: var(--offira-surface);
  --surface-low: var(--offira-surface-low);
  --text: var(--offira-on-surface);
  --ivory: var(--offira-ivory);
  --sand: var(--offira-sand);
  --muted: var(--offira-muted);
  --gold: var(--offira-gold);
  --gold-dim: var(--offira-gold-dim);
  --on-gold: var(--offira-on-gold);
  --outline: var(--offira-outline);
  --outline-variant: var(--offira-outline-variant);
  --error: var(--offira-error);
  --shell-max: 1120px;
  --radius: var(--offira-radius-button);
  --radius-card: var(--offira-radius-card);
  --radius-field: var(--offira-radius-field);
  --shell-inline: max(24px, calc((100vw - var(--shell-max)) / 2 + 24px));
  --font: var(--offira-font);
}

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

html {
  scroll-behavior: smooth;
}

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

body.has-cookie-banner {
  padding-bottom: 140px;
}

[hidden] {
  display: none !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("assets/dot-grid-tile-256.png");
  background-size: 256px 256px;
  opacity: 0.18;
}

a {
  color: var(--gold);
}

a:hover {
  color: var(--ivory);
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.page {
  width: min(100%, var(--shell-max));
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px 96px;
  min-width: 0;
  overflow-x: clip;
}

/* —— Header —— */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory);
  font-size: 15px;
}

@media (min-width: 480px) {
  .brand-name {
    letter-spacing: var(--offira-tracking-compact);
  }
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-nav a {
  color: var(--sand);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--gold);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--gold);
  color: var(--on-gold);
}

.btn-primary:hover:not(:disabled) {
  background: var(--gold-dim);
  color: var(--on-gold);
}

.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border: 1px solid rgba(255, 246, 223, 0.22);
}

.btn-ghost:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-block {
  width: 100%;
}

/* —— Hero —— */
.hero {
  display: grid;
  gap: 20px;
  padding: 12px 0 32px;
  min-width: 0;
}

.hero-copy {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
    gap: 48px;
    padding-top: 40px;
    padding-bottom: 56px;
  }
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--outline);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 6.5vw, 48px);
  line-height: 1.15;
  font-weight: 800;
  color: var(--ivory);
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  max-width: 100%;
}

.hero h1 .accent {
  color: var(--gold);
}

.lead {
  margin: 0;
  max-width: 38rem;
  font-size: 15px;
  line-height: 1.5;
  color: var(--sand);
  overflow-wrap: break-word;
}

@media (min-width: 960px) {
  .lead {
    font-size: 17px;
    line-height: 1.55;
  }
}

.signup-card {
  padding: 18px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid rgba(153, 144, 119, 0.22);
  min-width: 0;
  max-width: 100%;
  scroll-margin-top: 16px;
}

@media (max-width: 959px) {
  .signup-card {
    padding: 16px;
  }

  .signup-card h2 {
    font-size: 16px;
  }

  .signup-card .step-label {
    margin-bottom: 10px;
  }

  .field {
    margin-bottom: 10px;
  }

  .field input,
  .role-btn,
  .btn {
    min-height: 44px;
  }

  .role-btn {
    font-size: 12px;
    padding: 8px 6px;
  }
}

.signup-card h2 {
  margin: 0 0 28px;
  font-size: 18px;
  color: var(--ivory);
}

.signup-card .step-label {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--outline);
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--outline);
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--radius-field);
  border: 1px solid var(--outline-variant);
  background: var(--surface-low);
  color: var(--ivory);
  font: inherit;
  font-size: 15px;
}

.field input:focus,
.field select:focus {
  outline: 2px solid rgba(255, 215, 0, 0.45);
  outline-offset: 1px;
  border-color: var(--gold);
}

.password-wrap {
  position: relative;
  display: block;
}

.password-wrap input {
  padding-right: 5.5rem;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 32px;
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--sand);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--gold);
}

.password-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.field:has(.field-error:not([hidden])) .password-hint {
  display: none;
}

.role-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 14px;
}

.role-btn {
  min-height: 48px;
  padding: 8px 10px;
  border-radius: var(--radius-field);
  border: 1px solid var(--outline-variant);
  background: var(--surface-low);
  color: var(--sand);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  line-height: 1.25;
  white-space: normal;
  hyphens: auto;
}

.role-btn[aria-pressed="true"] {
  border-color: var(--gold);
  color: var(--gold);
}

.consent-field {
  margin: 8px 0 18px;
}

.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--sand);
}

.consent-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  border-radius: 4px;
  border: 1px solid var(--outline-variant);
  background: var(--surface-low);
  cursor: pointer;
  position: relative;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}

.consent-row input[type="checkbox"]:hover {
  border-color: var(--gold-dim, #c4a800);
}

.consent-row input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(255, 215, 0, 0.45);
  outline-offset: 2px;
  border-color: var(--gold);
}

.consent-row input[type="checkbox"]:checked {
  border-color: var(--gold);
  background: var(--gold);
}

.consent-row input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #0e0e0e;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.consent-row a {
  color: var(--gold);
}

.form-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 180, 171, 0.1);
  border: 1px solid rgba(255, 180, 171, 0.35);
  color: var(--error);
  font-size: 13px;
}

.form-error[hidden],
.field-error[hidden] {
  display: none;
}

.field-error {
  margin: 6px 0 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--error);
}

.consent-field .field-error {
  margin-top: 6px;
  padding-left: 28px; /* checkbox 18px + gap 10px */
}

.trust-line {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.login-hint {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--sand);
}

.login-hint a {
  font-weight: 600;
}

/* —— Sections —— */
.section {
  padding: 56px 0;
  border-top: 1px solid rgba(153, 144, 119, 0.14);
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 800px) {
  .section {
    padding: 72px 0;
  }
}

.section-title {
  margin: 0 0 16px;
  font-size: clamp(24px, 3.5vw, 34px);
  line-height: 1.2;
  font-weight: 800;
  color: var(--ivory);
  overflow-wrap: break-word;
}

.section-eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--outline);
}

.section-lead {
  margin: 0 0 28px;
  max-width: 40rem;
  font-size: 16px;
  line-height: 1.55;
  color: var(--sand);
  overflow-wrap: break-word;
}

.problem-lines {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.problem-lines li {
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--bg-warm);
  border: 1px solid rgba(153, 144, 119, 0.16);
  color: var(--sand);
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

/* How it works */
.steps {
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

.step-card {
  padding: 18px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid rgba(153, 144, 119, 0.18);
}

.step-shot {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 720 / 1566;
  max-height: min(420px, 55vh);
  object-fit: cover;
  object-position: top;
  border-radius: 16px;
  background: #000;
  margin-bottom: 16px;
}

@media (min-width: 900px) {
  .step-shot {
    max-height: none;
  }
}

.step-num {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--ivory);
}

.step-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--sand);
}

/* Closed network */
.pillars {
  display: grid;
  gap: 14px;
}

@media (min-width: 800px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar {
  padding: 22px;
  border-radius: var(--radius-card);
  background: var(--bg-warm);
  border: 1px solid rgba(255, 215, 0, 0.14);
}

.pillar h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--gold);
}

.pillar p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--sand);
}

/* Founders */
.founders-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 800px) {
  .founders-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.founder {
  padding: 22px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid rgba(153, 144, 119, 0.16);
}

.founder-avatars {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.founder-avatars img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(153, 144, 119, 0.3);
}

.founder h3 {
  margin: 0 0 4px;
  font-size: 17px;
  color: var(--ivory);
}

.founder-role {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--gold);
}

.founder p:last-child {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--sand);
}

.company-line {
  margin: 24px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

/* Pricing teaser */
.price-box {
  padding: 24px;
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, #1a170f 0%, var(--surface) 100%);
  border: 1px solid rgba(255, 215, 0, 0.22);
}

.price-box p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--sand);
}

.price-box a {
  font-weight: 700;
}

/* Mobile apps */
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(153, 144, 119, 0.28);
  background: var(--surface);
  color: var(--ivory);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.store-badge img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.store-badge:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid rgba(153, 144, 119, 0.16);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  color: var(--ivory);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-trigger svg {
  flex-shrink: 0;
  color: var(--sand);
  transition: transform 0.2s ease;
}

.faq-item[data-open="true"] .faq-trigger svg {
  transform: rotate(180deg);
}

.faq-panel {
  display: none;
  padding: 0 18px 16px;
}

.faq-item[data-open="true"] .faq-panel {
  display: block;
}

.faq-panel p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--sand);
}

/* Closing form — styles in enhancement block below */

/* Footer */
.footer {
  border-top: 1px solid rgba(153, 144, 119, 0.14);
  padding: 40px 20px 48px;
  max-width: 100%;
  box-sizing: border-box;
}

.footer-grid {
  width: min(100%, var(--shell-max));
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-name {
  font-weight: 800;
  letter-spacing: var(--offira-tracking-compact);
  text-transform: uppercase;
  color: var(--ivory);
  font-size: 14px;
}

.footer-tagline,
.footer-legal {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.footer-col-title {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--outline);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: var(--sand);
  text-decoration: none;
  font-size: 14px;
}

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

.footer-bottom {
  width: min(100%, var(--shell-max));
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(153, 144, 119, 0.12);
}

.footer-bottom .copy {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* Post-signup */
.postsignup {
  display: none;
  padding: 28px 0 80px;
}

.postsignup[hidden] {
  display: none !important;
}

body.is-signed-up .page-main {
  display: none !important;
}

body.is-signed-up .postsignup {
  display: block !important;
}

.postsignup-panel {
  max-width: 560px;
  width: 100%;
  margin: 40px auto;
  padding: 28px 20px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid rgba(255, 215, 0, 0.22);
  text-align: center;
  box-sizing: border-box;
}

.postsignup-panel h1 {
  margin: 0 0 12px;
  font-size: clamp(22px, 5vw, 28px);
  color: var(--ivory);
}

.postsignup-panel p {
  margin: 0 0 14px;
  color: var(--sand);
  line-height: 1.55;
  overflow-wrap: break-word;
}

.postsignup-steps {
  text-align: left;
  margin: 0 0 8px;
}

.postsignup-steps p {
  margin: 0 0 12px;
}

.postsignup-steps ol {
  margin: 0 0 14px;
  padding-left: 1.25em;
  color: var(--sand);
}

.postsignup-steps li {
  margin: 0 0 12px;
  line-height: 1.55;
  font-size: 0.98em;
}

.postsignup-steps li:last-child {
  margin-bottom: 0;
}

/* Cookie banner — compact bottom bar ≤ ~1/3 viewport */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  max-height: 33vh;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner-inner {
  pointer-events: auto;
  width: min(100%, 640px);
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: 16px;
  background: #171616;
  border: 1px solid rgba(153, 144, 119, 0.28);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 10px;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .cookie-banner-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
  }
}

.cookie-banner-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--sand);
  overflow-wrap: break-word;
}

.cookie-banner-text a,
.cookie-settings-inline {
  color: var(--gold);
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-width: 0;
}

@media (min-width: 640px) {
  .cookie-banner-actions {
    width: 280px;
  }
}

.cookie-banner-actions .btn {
  min-height: 40px;
  font-size: 13px;
  padding: 0 10px;
  white-space: nowrap;
}

body:has(.cookie-banner:not([hidden])) {
  padding-bottom: 140px;
}

body:has(.cookie-banner:not([hidden])) .footer {
  padding-bottom: 40px;
}

/* Shared legal / subpages */
.subpage {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 24px 24px 96px;
}

.subpage h1 {
  color: var(--ivory);
}

.subpage p,
.subpage li {
  color: var(--sand);
  line-height: 1.55;
}

.price-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 800px) {
  .price-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.price-card {
  padding: 20px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid rgba(153, 144, 119, 0.18);
}

.price-card h3 {
  margin: 0 0 4px;
  color: var(--ivory);
  font-size: 18px;
}

.price-card .amount {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 22px;
  font-weight: 800;
}

.price-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--sand);
  font-size: 13px;
  line-height: 1.5;
}

.signup-form {
  position: relative;
}

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

.steps,
.pillars,
.founders-grid,
.price-grid,
.faq-list {
  min-width: 0;
}

.step-card,
.pillar,
.founder,
.price-card,
.faq-item {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.field input,
.field select,
.role-btn,
.btn,
.store-badge {
  max-width: 100%;
  box-sizing: border-box;
}

.password-wrap {
  position: relative;
  max-width: 100%;
}

body::before {
  display: none;
}

/* —— Atmosphere (tech, calm) —— */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

.atmosphere-grid {
  position: absolute;
  inset: -10%;
  background-image: url("assets/dot-grid-tile-256.png");
  background-size: 256px 256px;
  opacity: 0.22;
  animation: gridDrift 48s linear infinite;
}

.atmosphere-mesh {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      115deg,
      transparent 0%,
      rgba(255, 215, 0, 0.035) 38%,
      transparent 58%
    ),
    repeating-linear-gradient(
      -18deg,
      transparent 0 48px,
      rgba(255, 246, 223, 0.018) 48px 49px
    );
  mask-image: radial-gradient(ellipse 70% 55% at 50% 18%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(
    ellipse 70% 55% at 50% 18%,
    #000 20%,
    transparent 75%
  );
}

.atmosphere-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  will-change: transform;
}

.atmosphere-glow--a {
  width: min(70vw, 560px);
  height: min(70vw, 560px);
  top: -12%;
  left: -8%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.22) 0%, transparent 68%);
  animation: glowPulse 10s ease-in-out infinite;
}

.atmosphere-glow--b {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  right: -6%;
  top: 18%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.12) 0%, transparent 70%);
  animation: glowPulse 14s ease-in-out infinite reverse;
}

.atmosphere-noise {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.atmosphere-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    transparent 20%,
    rgba(14, 14, 14, 0.55) 100%
  );
}

@keyframes gridDrift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-64px, -64px, 0);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.28;
  }
  50% {
    opacity: 0.42;
  }
}

/* —— Scroll progress —— */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 90;
  pointer-events: none;
  background: transparent;
}

.scroll-progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  will-change: transform;
}

/* —— Sticky glass header —— */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 20px;
  transition: background 0.25s ease, border-color 0.25s ease,
    backdrop-filter 0.25s ease, box-shadow 0.25s ease;
  border-bottom: 1px solid transparent;
}

.top-inner {
  width: min(100%, var(--shell-max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.top.is-stuck {
  background: rgba(14, 14, 14, 0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: rgba(153, 144, 119, 0.18);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.top-nav-cta {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-gold) !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
}

.top-nav-cta:hover {
  background: var(--gold-dim);
  color: var(--on-gold) !important;
}

@media (min-width: 720px) {
  .top-nav-cta {
    display: inline-flex;
  }

  .top:not(.is-stuck) .top-nav-cta {
    background: transparent;
    color: var(--gold) !important;
    border: 1px solid rgba(255, 215, 0, 0.35);
  }

  .top:not(.is-stuck) .top-nav-cta:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold) !important;
  }

  .top.is-stuck .top-nav-cta {
    display: inline-flex;
  }
}

/* —— Hero polish —— */
.hero {
  position: relative;
}

@media (min-width: 960px) {
  .hero {
    padding-top: 48px;
    padding-bottom: 64px;
    min-height: min(72vh, 720px);
    align-items: center;
  }

  .hero h1 {
    font-size: clamp(40px, 4.6vw, 58px);
    letter-spacing: -0.03em;
    line-height: 1.08;
  }

  .eyebrow {
    position: relative;
    padding-left: 14px;
  }

  .eyebrow::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 1px;
    background: var(--gold);
    transform: translateY(-50%);
  }
}

.hero-aside {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 0, 0.28);
  background: rgba(255, 215, 0, 0.08);
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.55);
  animation: livePulse 2.2s ease-out infinite;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 215, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
  }
}

.status-meta {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.trust-strip li {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(153, 144, 119, 0.22);
  background: rgba(32, 31, 31, 0.55);
  color: var(--sand);
  font-size: 12px;
  font-weight: 500;
}

/* —— Signal rail —— */
.signal-rail {
  position: relative;
  margin: 0 -20px 8px;
  padding: 14px 0;
  border-top: 1px solid rgba(153, 144, 119, 0.14);
  border-bottom: 1px solid rgba(153, 144, 119, 0.14);
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.signal-rail-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: signalScroll 38s linear infinite;
}

.signal-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.55;
  flex-shrink: 0;
}

@keyframes signalScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.signup-card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 246, 223, 0.06);
  backdrop-filter: blur(8px);
}

.signup-card-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 55%;
  background: radial-gradient(
    ellipse at top,
    rgba(255, 215, 0, 0.14),
    transparent 70%
  );
  pointer-events: none;
}

.signup-card > *:not(.signup-card-glow) {
  position: relative;
  z-index: 1;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.18);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.28),
    transparent
  );
  transform: skewX(-18deg);
  transition: left 0.55s ease;
}

.btn-primary:hover::after {
  left: 120%;
}

.field input:focus,
.field select:focus {
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.12);
}

.role-btn {
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease,
    transform 0.2s ease;
}

.role-btn:hover {
  border-color: rgba(255, 215, 0, 0.45);
  color: var(--ivory);
}

.role-btn[aria-pressed="true"] {
  background: rgba(255, 215, 0, 0.08);
}

.step-card,
.pillar,
.founder,
.faq-item,
.price-box,
.store-badge {
  transition: transform 0.35s ease, border-color 0.35s ease,
    box-shadow 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
  .step-card:hover,
  .pillar:hover,
  .founder:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 215, 0, 0.28);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  }

  .store-badge:hover {
    transform: translateY(-2px);
  }
}

.step-shot-wrap {
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(153, 144, 119, 0.16);
  background: #0a0a0a;
  box-shadow: inset 0 0 0 1px rgba(255, 246, 223, 0.04);
}

.step-shot-wrap .step-shot {
  margin-bottom: 0;
  border-radius: 0;
  transition: transform 0.7s ease;
}

@media (hover: hover) and (pointer: fine) {
  .step-card:hover .step-shot {
    transform: scale(1.04);
  }
}

.pillar {
  position: relative;
}

.pillar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold), transparent);
  opacity: 0.7;
}

.pillar {
  padding-left: 26px;
}

.faq-item[data-open="true"] {
  border-color: rgba(255, 215, 0, 0.28);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.price-box {
  position: relative;
  overflow: hidden;
}

.price-box::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), transparent);
}

.closing {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  padding: 36px 28px;
  border-radius: var(--radius-card);
  background: linear-gradient(
    145deg,
    rgba(32, 28, 18, 0.95),
    rgba(20, 18, 12, 0.98)
  );
  border: 1px solid rgba(255, 215, 0, 0.22);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.closing-glow {
  position: absolute;
  inset: -30% 10% auto;
  height: 70%;
  background: radial-gradient(
    ellipse at top,
    rgba(255, 215, 0, 0.16),
    transparent 70%
  );
  pointer-events: none;
}

.closing > *:not(.closing-glow) {
  position: relative;
  z-index: 1;
}

.closing .section-lead {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
}

.closing .section-title {
  margin-bottom: 8px;
}

/* —— Scroll reveals —— */
/* Above-the-fold: never start invisible (mobile first paint). */
.motion-ready [data-reveal="hero"] [data-reveal-child],
.motion-ready [data-reveal="hero-aside"],
.motion-ready [data-reveal="hero-aside"] [data-reveal-child] {
  opacity: 1;
  transform: none;
  transition: none;
  will-change: auto;
}

.motion-ready [data-reveal-child],
.motion-ready [data-reveal="hero-aside"] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.motion-ready [data-reveal="hero"] [data-reveal-child],
.motion-ready [data-reveal="hero-aside"],
.motion-ready [data-reveal="hero-aside"] [data-reveal-child] {
  opacity: 1;
  transform: none;
  transition: none;
  will-change: auto;
}

.motion-ready [data-reveal-child].is-visible,
.motion-ready [data-reveal="hero-aside"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.motion-reduce [data-reveal-child],
.motion-reduce [data-reveal="hero-aside"] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere-grid,
  .atmosphere-glow,
  .status-dot,
  .btn-primary::after,
  .signal-rail-track {
    animation: none !important;
  }

  .signal-rail-track {
    transform: none;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 12px 20px;
    white-space: normal;
  }

  html {
    scroll-behavior: auto;
  }

  .step-card,
  .pillar,
  .founder,
  .faq-item,
  .price-box,
  .store-badge,
  .step-shot {
    transition: none !important;
  }
}

.faq-trigger span {
  min-width: 0;
  overflow-wrap: break-word;
}
