/* ============================================================
   WHITE PREDICT — MAIN STYLES
   Sections: base · nav · hero · why · agentic · bento ·
             aquarium · team · footer · reveal motion
   ============================================================ */

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

/* Keep the standalone landing artwork dimensions when rendered beside the app's global reset. */
.nav-logo img {
  width: auto;
  height: 30px;
}

.btn {
  line-height: normal;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

::selection {
  background: var(--accent);
  color: #fff;
}

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

section {
  padding-block: var(--space-section);
  position: relative;
}

/* Keep anchored sections clear of the fixed nav */
section[id] {
  scroll-margin-top: 5rem;
}

/* Baseline keyboard focus indicator */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Type helpers ---------- */
h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 500;
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-heading);
}

.section-heading {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-4);
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  text-transform: uppercase;
  letter-spacing: var(--ls-mono);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.section-kicker::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.section-lead {
  font-size: var(--fs-lead);
  color: var(--text-dim);
  max-width: 42rem;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--hairline);
}

.btn-ghost:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- Glass card primitive ---------- */
.glass {
  background-color: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--dur-med) var(--ease-out),
    border-color var(--dur-med) var(--ease-out),
    background var(--dur-med) var(--ease-out);
}

.glass:hover {
  background-color: var(--bg-card-hover);
  box-shadow: var(--shadow-card-hover);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background var(--dur-med) var(--ease-out),
    border-color var(--dur-med) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: var(--bg);
  border-bottom-color: var(--hairline);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}

.nav-links a {
  font-size: var(--fs-small);
  color: var(--text-dim);
  transition: color var(--dur-fast);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.55rem 1.25rem;
  font-size: 0.8125rem;
}

@media (max-width: 767px) {
  /* Condensed two-row nav: links drop to a centered second row
     (the wide logo + CTA leave no room beside them). */
  .nav {
    padding: 0.75rem 0;
  }

  .nav-inner {
    flex-wrap: wrap;
    row-gap: 0.6rem;
  }

  .nav-inner nav {
    order: 3;
    width: 100%;
  }

  .nav-links {
    justify-content: center;
    gap: var(--space-4);
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  section[id] {
    scroll-margin-top: 6.5rem;
  }
}

@media (max-width: 430px) {
  .nav-links {
    gap: var(--space-3);
  }

  /* Drop the least important link so the row fits 375px */
  .nav-links li:last-child {
    display: none;
  }
}

/* ============================================================
   1. HERO
   ============================================================ */
.hero {
  position: relative;
  height: clamp(30rem, 75svh, 56rem);
  overflow: hidden;
  isolation: isolate;
}

#hero-canvas {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: block;
  pointer-events: auto;
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
  z-index: 2;
  width: min(52rem, calc(100% - 2 * var(--gutter)));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
  pointer-events: none;
}

.hero-content a,
.hero-content button {
  pointer-events: auto;
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 500;
  max-width: 22ch;
  line-height: var(--lh-heading);
  text-shadow: 0 0 1.5rem var(--bg), 0 0 3rem var(--bg);
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: var(--fs-body);
  color: var(--text-dim);
  max-width: 32rem;
  text-shadow: 0 0 1.25rem var(--bg), 0 0 2.5rem var(--bg);
}

.hero-ctas {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 767px) {
  #hero-canvas {
    pointer-events: none;
    top: 34%;
  }
}

@media (max-height: 640px) {
  .hero {
    height: clamp(26rem, 100svh - 4rem, 36rem);
  }

  .hero-content {
    gap: var(--space-3);
  }

  .hero-sub {
    font-size: var(--fs-small);
    line-height: 1.45;
  }
}

/* ============================================================
   APP PREVIEW — product screenshot
   ============================================================ */
.app-preview {
  padding-top: var(--space-4);
  padding-bottom: var(--space-7);
}

.app-preview-img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
}

/* ============================================================
   2. WHY WHITE PREDICT — 3D tilt cards
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-8);
  perspective: 1200px;
}

.tilt-card {
  position: relative;
  transform-style: preserve-3d;
  /* will-change is set from JS on pointerenter and removed on settle */
  overflow: hidden;
  backface-visibility: hidden;
}

.why-grid .tilt-card {
  padding: var(--space-6);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.tilt-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  background: var(--bg-raised);
  color: var(--accent);
  transform: translateZ(40px);
}

.tilt-card h3 {
  font-size: var(--fs-h3);
  transform: translateZ(30px);
}

.tilt-card p {
  color: var(--text-dim);
  font-size: var(--fs-small);
  transform: translateZ(20px);
}

.tilt-tag {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--text-faint);
  transform: translateZ(20px);
}

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
  .why-grid .tilt-card {
    min-height: auto;
  }
}

/* ============================================================
   3. AGENTIC LAYER — scrollytelling
   ============================================================ */
.agentic-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-top: var(--space-8);
  align-items: start;
}

.agentic-visual {
  position: sticky;
  top: 15vh;
}

.agent-modal {
  background: #191919;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
}

.agent-modal-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  border-bottom: 1px solid var(--hairline-soft);
  box-shadow: 0 4px 2px #191919;
}

.agent-modal-title {
  flex: 1;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-modal-chevron {
  flex-shrink: 0;
  color: var(--text-faint);
}

.agent-modal-body {
  position: relative;
  min-height: 560px;
  overflow: hidden;
}

.agent-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
  /* visibility flips only after the fade-out finishes */
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out),
    visibility 0s linear var(--dur-med);
  pointer-events: none;
}

.agent-panel.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}

.agent-panel-scroll {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-3);
  max-height: 560px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--hairline) transparent;
}

.agent-logo {
  width: 24px;
  height: 24px;
}

.agent-msg-title {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin: 0;
}

.agent-msg-title-sm {
  font-size: 1.125rem;
}

.agent-msg-text {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--text);
  line-height: 1.45;
  margin: 0;
}

.agent-msg-text-dim {
  color: var(--text-dim);
}

.agent-chips {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.agent-chips-wrap {
  flex-direction: row;
  flex-wrap: wrap;
}

.agent-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  background: #242424;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 600;
  color: #f3f3f3;
  line-height: 1.3;
}

.agent-chip-outline {
  background: transparent;
  border: 1px solid #444;
  color: #e3e3e3;
}

.agent-bubble {
  align-self: flex-end;
  max-width: 90%;
  padding: 8px;
  background: #242424;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: #f3f3f3;
  line-height: 1.4;
}

.agent-bubble-user {
  margin-left: auto;
}

.agent-bubble-confirm {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.agent-market-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  background: #242424;
  border-radius: 4px;
}

.agent-market-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.agent-market-thumb {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 2px;
  background: var(--thumb, #334155);
}

.agent-market-q {
  flex: 1;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

.agent-yesno {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.agent-yes,
.agent-no {
  padding: 8px 12px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  text-align: center;
}

.agent-yes {
  background: #2c3c27;
  color: #baffa3;
}

.agent-no {
  background: #3b2227;
  color: #ff8ea7;
}

.agent-chance-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  color: var(--text);
}

.agent-chance-bar {
  height: 2px;
  background: #383838;
  border-radius: 1px;
  overflow: hidden;
  margin-bottom: 4px;
}

.agent-chance-bar span {
  display: block;
  height: 100%;
  background: #a9ff8d;
  border-radius: 1px;
}

.agent-chance-bar-warn span {
  background: #ffda54;
}

.agent-trade-card,
.agent-strategy-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-3);
  background: #242424;
  border-radius: 4px;
}

.agent-trade-label {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text);
}

.agent-edge-bar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.agent-edge-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  color: var(--text-dim);
}

.agent-edge-track {
  position: relative;
  height: 2px;
  background: #383838;
  border-radius: 1px;
}

.agent-edge-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: #a9ff8d;
  border-radius: 1px;
}

.agent-edge-fill-warn {
  background: #ffda54;
}

.agent-edge-gap {
  position: absolute;
  top: 0;
  height: 100%;
  background: #67e8f9;
  border-radius: 1px;
}

.agent-edge-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.agent-edge-tag {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  color: #ffda54;
}

.agent-edge-tag-muted {
  color: var(--text-dim);
}

.agent-edge-val {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  color: var(--text-dim);
}

.agent-trade-detail {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  color: var(--text-dim);
  margin: 0;
  line-height: 1.5;
}

.agent-trade-detail strong {
  color: var(--text);
  font-weight: 600;
}

.agent-divider {
  border: none;
  border-top: 1px solid #383838;
  margin: 0;
}

.agent-btn-primary {
  width: 100%;
  padding: 8px 12px;
  background: #f3f3f3;
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  color: #242424;
  cursor: default;
}

.agent-strategy-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.agent-strategy-label {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text);
}

.agent-option-row {
  display: flex;
  gap: 10px;
}

.agent-option {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid #444;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  color: #e3e3e3;
  text-align: center;
  line-height: 1.2;
}

.agent-option.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.agent-textarea {
  padding: 8px 12px;
  background: #111;
  border: 1px solid #383838;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--text);
  line-height: 1.45;
  min-height: 72px;
}

.agent-strategy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.agent-risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  background: #3b2227;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 600;
  color: #ff8ea7;
  white-space: nowrap;
}

.agent-roi {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  color: #a9ff8d;
  margin: 0;
  line-height: 1;
}

.agent-roi-sub {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  color: var(--text);
  margin: 0;
}

.agent-chart {
  height: 100px;
  margin: var(--space-2) 0;
}

.agent-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.agent-strategy-desc {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--text);
  line-height: 1.45;
  margin: 0;
}

.agent-deposit,
.agent-stoploss {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.agent-deposit-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text);
}

.agent-deposit-sub {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  color: rgba(255, 255, 255, 0.7);
}

.agent-deposit-val {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--text);
}

.agent-stoploss-input {
  padding: 8px 12px;
  background: #111;
  border: 1px solid #383838;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--text);
  min-width: 72px;
  text-align: center;
}

.agent-warning {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  background: #3b2227;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.agent-warning strong {
  color: #ff7492;
  font-weight: 600;
}

.agent-sources {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-2);
  background: #383838;
  border-radius: var(--radius-sm);
}

.agent-sources-banner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: #172538;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text);
}

.agent-source-item {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-2);
}

.agent-source-dot {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f97316;
  margin-top: 2px;
}

.agent-source-site {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  color: rgba(255, 255, 255, 0.7);
}

.agent-source-headline {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.agent-modal-foot {
  padding: var(--space-3);
  border-top: 1px solid var(--hairline-soft);
  box-shadow: 0 -4px 2px #191919;
}

.agent-input {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  background: #111;
  border: 1px solid #383838;
  border-radius: 4px;
}

.agent-input-tag {
  display: inline-block;
  padding: 4px 8px;
  background: #242424;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  color: var(--text);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.agent-input-placeholder {
  flex: 1;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.55); /* 6.23:1 on #111 */
}

.agent-input-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-faint);
}

.agent-input-send {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: #383838;
  border-radius: 4px;
  color: var(--text-faint);
}

@media (prefers-reduced-motion: reduce) {
  .agent-panel {
    transition: none;
  }
}

@media (max-width: 900px) {
  .agent-modal {
    max-width: 100%;
  }
  .agent-modal-body {
    min-height: 480px;
  }
  .agent-panel-scroll {
    max-height: 480px;
  }
}

/* feature list */
.agentic-features {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: var(--space-5);
}

.agentic-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--hairline);
  border-radius: 2px;
  overflow: hidden;
}

.agentic-progress-fill {
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 200ms linear;
}

.agentic-feature {
  min-height: 42vh;
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--hairline-soft);
  opacity: 0.35;
  transition: opacity var(--dur-med) var(--ease-out);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.agentic-feature:last-child {
  border-bottom: none;
}

.agentic-feature.active {
  opacity: 1;
}

.agentic-feature .num {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-mono);
  color: var(--accent);
}

.agentic-feature h3 {
  font-size: 1.35rem;
  margin: 0.35rem 0 0.5rem;
}

.agentic-feature p {
  color: var(--text-dim);
  font-size: var(--fs-small);
  max-width: 34rem;
}

@media (max-width: 900px) {
  .agentic-wrap {
    grid-template-columns: 1fr;
  }
  .agentic-visual {
    position: relative;
    top: 0;
  }
}

/* ============================================================
   4. SOCIALS & ROADMAP — bento grid
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
  perspective: 1200px;
  align-items: start;
}

.bento-card {
  padding: var(--space-5);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.bento-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  margin-bottom: var(--space-4);
}

/* Socials tile */
.bento-socials {
  grid-column: 1;
  grid-row: 1;
}

.social-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-top: auto;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-md);
  font-size: var(--fs-small);
  color: var(--text-dim);
  transition: border-color var(--dur-fast), color var(--dur-fast),
    background var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Roadmap tile */
.bento-roadmap {
  grid-column: 2;
  grid-row: 1;
}

.roadmap {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-2);
  position: relative;
}

.roadmap::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  height: auto;
  background: var(--hairline);
}

.roadmap-item {
  display: flex;
  gap: var(--space-4);
  position: relative;
}

.roadmap-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: var(--bg-raised);
  flex-shrink: 0;
  margin-top: 4px;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.roadmap-item:first-child .roadmap-dot {
  background: var(--accent);
}

.roadmap-q {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--accent);
}

.roadmap-item h4 {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 1.05rem;
  margin: 0.15rem 0 0.35rem;
}

.roadmap-item ul {
  list-style: none;
  color: var(--text-dim);
  font-size: var(--fs-small);
}

.roadmap-item li::before {
  content: '— ';
  color: var(--text-faint);
}

@media (max-width: 900px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .bento-socials,
  .bento-roadmap {
    grid-column: 1;
    grid-row: auto;
  }
}

/* ============================================================
   5. AQUARIUM — editorial gallery
   ============================================================ */
.aquarium-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.aquarium-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-title);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.editorial {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-7);
  perspective: 1200px;
}

.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-6);
  min-height: 260px;
  overflow: hidden;
  background-color: var(--bg-card);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  isolation: isolate;
}

.article-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.94) 0%,
    rgba(10, 10, 10, 0.72) 34%,
    rgba(10, 10, 10, 0.28) 62%,
    transparent 80%
  );
  pointer-events: none;
  z-index: 0;
  transition: background var(--dur-med) var(--ease-out);
}

.article-card::after {
  content: none;
}

.article-featured {
  grid-row: span 3;
  min-height: 520px;
  justify-content: flex-end;
}

.article-meta {
  display: flex;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 1;
}

.article-meta .cat {
  color: inherit;
}

.article-card h3 {
  font-size: 1.3rem;
  position: relative;
  z-index: 1;
  transition: color var(--dur-fast);
}

.article-featured h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  max-width: 18ch;
}

.article-card:hover h3 {
  color: #fff;
}

.article-card p {
  color: var(--text-dim);
  font-size: var(--fs-small);
  margin-top: var(--space-3);
  max-width: 40rem;
  position: relative;
  z-index: 1;
}

.article-read {
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
  position: relative;
  z-index: 1;
}

.article-card:hover .article-read {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .editorial {
    grid-template-columns: 1fr;
  }
  .article-featured {
    grid-row: auto;
    min-height: 380px;
  }
}

/* ============================================================
   6. TEAM
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
  perspective: 1200px;
}

.team-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: var(--bg-card);
}

.team-photo {
  aspect-ratio: 1;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.team-card:hover .team-photo img {
  transform: scale(1.05);
}

.team-info {
  padding: var(--space-4) var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.team-info h3 {
  font-size: 1.15rem;
}

.team-role {
  color: var(--text-dim);
  font-size: var(--fs-small);
}

.team-linkedin {
  margin-top: var(--space-3);
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.85rem;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}

.team-linkedin:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.team-linkedin svg {
  width: 12px;
  height: 12px;
}

@media (max-width: 1000px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ============================================================
   7. FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--hairline);
  padding: var(--space-7) 0 var(--space-5);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-title);
  font-size: 1rem;
}

.footer-nav {
  display: flex;
  gap: var(--space-5);
  list-style: none;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: var(--fs-small);
  color: var(--text-dim);
  transition: color var(--dur-fast);
}

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

.footer-socials {
  display: flex;
  gap: var(--space-3);
}

.footer-socials a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  color: var(--text-dim);
  transition: color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}

.footer-socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.footer-socials svg {
  width: 16px;
  height: 16px;
}

.footer-copy {
  margin-top: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
}

/* ============================================================
   REVEAL-ON-SCROLL MOTION
   ============================================================ */
.reveal {
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.in-view {
  opacity: 1;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
  }
  #hero-canvas {
    display: none;
  }
}

/* ============================================================
   WAITLIST MODAL
   A compact transmission console that extends the landing page's
   dark, technical visual language without competing with the hero.
   ============================================================ */
body.waitlist-open {
  overflow: hidden;
}

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

.waitlist-trigger {
  appearance: none;
}

.waitlist-shell {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: var(--space-4);
}

.waitlist-shell[hidden] {
  display: none;
}

.waitlist-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 2, 3, 0.82);
  backdrop-filter: blur(10px);
  opacity: 0;
  animation: waitlist-fade-in var(--dur-fast) ease forwards;
}

.waitlist-modal {
  position: relative;
  width: min(100%, 640px);
  max-height: min(90vh, 760px);
  overflow: auto;
  padding: clamp(2rem, 6vw, 4rem);
  background:
    linear-gradient(145deg, rgba(168, 85, 247, 0.08), transparent 38%),
    #0d0d0f;
  border: 1px solid #303033;
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.72), 0 0 60px rgba(168, 85, 247, 0.08);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  animation: waitlist-rise-in var(--dur-med) var(--ease-out) forwards;
}

.waitlist-modal::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.025);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}

.waitlist-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  background: #141416;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  cursor: pointer;
  transition: color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}

.waitlist-close:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: rotate(5deg);
}

.waitlist-close svg {
  width: 18px;
  height: 18px;
}

.waitlist-orbit {
  position: absolute;
  top: -84px;
  right: 70px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.waitlist-orbit::before,
.waitlist-orbit::after {
  content: '';
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(103, 232, 249, 0.08);
  border-radius: 50%;
}

.waitlist-orbit::after {
  inset: 54px;
  background: rgba(168, 85, 247, 0.08);
}

.waitlist-orbit span {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
}

.waitlist-orbit span:nth-child(1) { left: 12px; top: 82px; }
.waitlist-orbit span:nth-child(2) { right: 28px; top: 35px; }
.waitlist-orbit span:nth-child(3) { right: 17px; bottom: 51px; }

.waitlist-step {
  position: relative;
  z-index: 1;
}

.waitlist-kicker {
  margin-bottom: var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  color: var(--accent);
}

.waitlist-step h2 {
  max-width: 520px;
  margin-bottom: var(--space-4);
  font-family: var(--font-title);
  font-size: clamp(2rem, 7vw, 3.35rem);
  font-weight: 500;
  letter-spacing: var(--ls-tight);
  line-height: 1;
}

.waitlist-description {
  max-width: 510px;
  color: var(--text-dim);
  font-size: 1rem;
}

.waitlist-form {
  margin-top: var(--space-7);
}

.waitlist-form label {
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--text-dim);
}

.waitlist-field {
  display: flex;
  padding: 5px;
  background: #080809;
  border: 1px solid #343437;
  border-radius: var(--radius-pill);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.waitlist-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}

.waitlist-field.has-error {
  border-color: #f87171;
}

.waitlist-field input {
  min-width: 0;
  flex: 1;
  padding: 0 var(--space-4);
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: max(16px, 1rem);
}

.waitlist-field input::placeholder {
  color: #68686c;
}

.waitlist-submit {
  flex: none;
  padding: 0.85rem 1.35rem;
  color: #09090a;
  background: var(--text);
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-fast), transform var(--dur-fast);
}

.waitlist-submit:hover {
  background: #fff;
  transform: translateX(2px);
}

.waitlist-submit:disabled,
.waitlist-wallet-actions button:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.waitlist-error {
  min-height: 1.25rem;
  margin: var(--space-2) var(--space-4) 0;
  color: #fca5a5;
  font-size: var(--fs-small);
}

.waitlist-fineprint {
  margin: var(--space-3) var(--space-4) 0;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  line-height: 1.5;
}

.waitlist-success-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: var(--space-5);
  color: #09090a;
  background: var(--yes);
  border-radius: 50%;
  box-shadow: 0 0 32px rgba(74, 222, 128, 0.18);
}

.waitlist-success-mark svg {
  width: 30px;
  height: 30px;
}

.waitlist-socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.waitlist-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 50px;
  color: var(--text);
  background: #161618;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  font-weight: 500;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}

.waitlist-socials a:hover {
  background: #1b1b1e;
  border-color: var(--accent);
}

.waitlist-socials svg {
  width: 17px;
  height: 17px;
}

.waitlist-wallet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-4) var(--space-6);
  align-items: center;
  margin-top: var(--space-5);
  padding: var(--space-5);
  background: rgba(255, 255, 255, 0.025);
  border: 1px dashed #353538;
  border-radius: var(--radius-md);
}

.waitlist-wallet-label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
}

.waitlist-wallet h3 {
  margin-bottom: var(--space-1);
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 500;
}

.waitlist-wallet p {
  color: var(--text-dim);
  font-size: var(--fs-small);
  line-height: 1.45;
}

.waitlist-wallet-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.waitlist-wallet-actions .btn {
  white-space: nowrap;
  padding: 0.7rem 1.1rem;
}

.waitlist-wallet-actions [hidden] {
  display: none;
}

.waitlist-skip {
  padding: var(--space-2);
  color: var(--text-dim);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: var(--fs-small);
  cursor: pointer;
}

.waitlist-skip:hover {
  color: var(--text);
}

.waitlist-wallet .waitlist-wallet-status {
  grid-column: 1 / -1;
  min-height: 0;
  color: var(--text);
}

.waitlist-wallet.is-verified {
  border-style: solid;
  border-color: rgba(74, 222, 128, 0.4);
}

.waitlist-wallet.is-verified .waitlist-wallet-status {
  color: var(--yes);
}

@keyframes waitlist-fade-in {
  to { opacity: 1; }
}

@keyframes waitlist-rise-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 620px) {
  .waitlist-shell {
    place-items: end center;
    padding: 0;
  }

  .waitlist-modal {
    width: 100%;
    max-height: 92dvh;
    padding: 3rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 22px 22px 0 0;
    transform: translateY(100%);
    animation: waitlist-sheet-in var(--dur-med) var(--ease-out) forwards;
  }

  .waitlist-modal::before {
    inset: 8px 8px 0;
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
  }

  .waitlist-modal::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 42px;
    height: 4px;
    background: #3b3b3f;
    border-radius: var(--radius-pill);
    transform: translateX(-50%);
  }

  .waitlist-close {
    top: var(--space-3);
    right: var(--space-3);
  }

  .waitlist-form {
    margin-top: var(--space-6);
  }

  .waitlist-field {
    display: grid;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .waitlist-field:focus-within {
    border-color: transparent;
    box-shadow: none;
  }

  .waitlist-field.has-error {
    border-color: transparent;
  }

  .waitlist-field input {
    width: 100%;
    min-height: 54px;
    padding: 0 var(--space-4);
    background: #090a0c;
    border: 1px solid #34343a;
    border-radius: var(--radius-md);
    transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
  }

  .waitlist-field input:focus {
    background: #0c0c0f;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.14);
  }

  .waitlist-field.has-error input {
    border-color: #f87171;
  }

  .waitlist-submit {
    width: 100%;
    min-height: 54px;
    justify-content: center;
    border-radius: var(--radius-md);
  }

  .waitlist-error {
    min-height: 0;
    margin: var(--space-2) 0 0;
  }

  .waitlist-error:empty {
    display: none;
  }

  .waitlist-fineprint {
    margin: var(--space-3) auto 0;
    max-width: 32ch;
    text-align: center;
  }

  .waitlist-socials {
    grid-template-columns: 1fr;
  }

  .waitlist-wallet {
    grid-template-columns: 1fr;
  }

  .waitlist-wallet-actions {
    flex-wrap: wrap;
  }

  @keyframes waitlist-sheet-in {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* Figma waitlist dialog — node 4405:148913 and success node 4412:50720. */
.waitlist-shell {
  padding: 2rem;
}

.waitlist-backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.waitlist-modal {
  width: min(100%, 400px);
  max-height: min(92dvh, 720px);
  padding: 16px;
  overflow: visible;
  background: #191919;
  border: 0;
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}

.waitlist-modal::before,
.waitlist-orbit {
  display: none;
}

.waitlist-close {
  top: -32px;
  right: 0;
  width: 24px;
  height: 24px;
  color: #f5f5f5;
  background: #2d2d2d;
  border: 0;
  border-radius: 4px;
}

.waitlist-close:hover {
  color: #fff;
  background: #3a3a3a;
  border-color: transparent;
  transform: none;
}

.waitlist-close svg {
  width: 18px;
  height: 18px;
}

.waitlist-step {
  max-height: min(calc(92dvh - 32px), 688px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #383838 transparent;
}

.waitlist-step h2 {
  max-width: none;
  margin: 28px 0 16px;
  padding-right: 20px;
  color: #f5f5f5;
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 32px;
}

.waitlist-description {
  max-width: none;
  color: #b8b8b8;
  font-size: 14px;
  line-height: 20px;
}

.waitlist-form {
  margin-top: 0;
}

.waitlist-group + .waitlist-group {
  margin-top: 12px;
}

.waitlist-form label {
  margin-bottom: 8px;
  color: #f5f5f5;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 20px;
  text-transform: none;
}

.waitlist-field {
  display: block;
  padding: 0;
  background: #111;
  border: 1px solid #383838;
  border-radius: 4px;
}

.waitlist-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(170, 62, 238, 0.18);
}

.waitlist-field input {
  width: 100%;
  min-height: 36px;
  padding: 8px 12px;
  color: #f5f5f5;
  font-size: 16px;
  line-height: 20px;
}

.waitlist-field input::placeholder {
  color: #777;
}

.waitlist-submit,
.waitlist-done {
  width: 100%;
  min-height: 36px;
  margin-top: 16px;
  padding: 8px 12px;
  border: 0;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  cursor: pointer;
}

.waitlist-submit {
  color: #fff;
  background: #aa3eee;
}

.waitlist-submit:hover {
  background: #b957f2;
  transform: none;
}

.waitlist-done {
  color: #242424;
  background: #f5f5f5;
}

.waitlist-done:hover {
  background: #fff;
}

.waitlist-error {
  min-height: 0;
  margin: 6px 0 0;
  color: #fca5a5;
  font-size: 12px;
  line-height: 16px;
}

.waitlist-error:empty {
  display: none;
}

.waitlist-fineprint {
  width: 100%;
  max-width: none;
  margin: 6px auto 0;
  color: #b8b8b8;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}

.waitlist-fineprint a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.waitlist-fineprint a:hover {
  color: #f5f5f5;
}

.waitlist-community {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #383838;
}

.waitlist-community h3 {
  margin-bottom: 8px;
  color: #f5f5f5;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 20px;
}

.waitlist-socials {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}

.waitlist-socials a {
  min-height: 36px;
  gap: 8px;
  padding: 8px;
  color: #f5f5f5;
  background: #242424;
  border: 0;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.waitlist-socials a:hover {
  background: #303030;
  border-color: transparent;
}

.waitlist-socials svg {
  width: 20px;
  height: 20px;
}

.waitlist-success h2 {
  margin-bottom: 8px;
}

.waitlist-wallet {
  display: block;
  margin-top: 16px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.waitlist-wallet h3 {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 20px;
}

.waitlist-wallet h3 span {
  color: #8d8d8d;
  font-family: var(--font-body);
  font-weight: 400;
}

.waitlist-wallet-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 0;
}

.waitlist-wallet-actions #waitlist-connect {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  color: #f5f5f5;
  background: #242424;
  border: 1px solid #383838;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.waitlist-wallet-actions #waitlist-connect:hover {
  background: #303030;
  border-color: #505050;
  transform: none;
}

.waitlist-wallet-actions #waitlist-connect svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.waitlist-wallet-actions #waitlist-connect[hidden],
.waitlist-wallet-actions #waitlist-skip[hidden] {
  display: none;
}

.waitlist-wallet.is-verified #waitlist-connect:disabled {
  color: #f5f5f5;
  background: #202421;
  border-color: rgba(74, 222, 128, 0.42);
  opacity: 1;
  cursor: default;
}

.waitlist-wallet.is-verified #waitlist-connect svg {
  color: var(--yes);
}

.waitlist-skip {
  min-width: 56px;
  min-height: 36px;
  padding: 8px 12px;
  color: #b8b8b8;
  background: #242424;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 12px;
  line-height: 18px;
}

.waitlist-skip:hover {
  color: #f5f5f5;
  background: #303030;
}

.waitlist-wallet .waitlist-wallet-status {
  font-size: 11px;
  line-height: 16px;
}

@media (max-width: 620px) {
  .waitlist-shell {
    place-items: end center;
    padding: 0;
  }

  .waitlist-modal {
    width: 100%;
    max-height: 92dvh;
    padding: 20px 16px calc(16px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    border: 0;
    border-radius: 16px 16px 0 0;
  }

  .waitlist-modal::after {
    top: 8px;
    width: 36px;
    height: 3px;
    background: #525252;
  }

  .waitlist-close {
    top: 12px;
    right: 12px;
  }

  .waitlist-step {
    max-height: none;
    overflow: visible;
  }

  .waitlist-step h2 {
    margin-top: 28px;
    font-size: 24px;
    line-height: 30px;
  }

  .waitlist-form {
    margin-top: 0;
  }

  .waitlist-field {
    display: block;
    padding: 0;
    background: #111;
    border: 1px solid #383838;
    border-radius: 4px;
  }

  .waitlist-field:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(170, 62, 238, 0.18);
  }

  .waitlist-field input {
    min-height: 44px;
    padding: 10px 12px;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .waitlist-field input:focus {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }

  .waitlist-submit,
  .waitlist-done {
    min-height: 44px;
  }

  .waitlist-socials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .waitlist-wallet {
    display: block;
  }

  .waitlist-wallet-actions {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .waitlist-wallet-actions #waitlist-connect {
    width: 100%;
    min-height: 44px;
  }

  .waitlist-skip {
    min-height: 44px;
  }
}
