/* ============================================
   SCALIING.COM — STYLES
   ============================================ */

/* ---------- TOKENS ---------- */
:root {
  --ink: #0a0a0a;
  --ink-2: #141414;
  --ink-3: #1c1c1c;
  --bone: #f4f1ea;
  --bone-2: #e9e4d8;
  --paper: #faf7f0;
  /* Refined slate-blue accent (replaces gold) */
  --blue: #6ea8c8;
  --blue-2: #8ec3df;
  --blue-deep: #2d5a7a;
  --blue-shadow: rgba(110, 168, 200, 0.5);
  --blue-glow: rgba(110, 168, 200, 0.12);
  --rule: rgba(244, 241, 234, 0.12);
  --rule-strong: rgba(244, 241, 234, 0.22);
  --shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
  --error: #e07a5f;
  --success: #88b87b;
  /* Rounded sans-serif pairing */
  --display: "Quicksand", -apple-system, BlinkMacSystemFont, sans-serif;
  --body: "Nunito", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "Nunito", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle film grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

::selection { background: var(--blue); color: var(--ink); }

/* ---------- LAYOUT HELPERS ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 720px) { .wrap { padding: 0 22px; } }

.eyebrow {
  font-family: var(--body);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
}

/* ---------- NAV ---------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 10, 0);
  backdrop-filter: blur(0px);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(18px);
  padding: 14px 40px;
  border-bottom-color: var(--rule);
}
@media (max-width: 720px) { nav, nav.scrolled { padding-left: 22px; padding-right: 22px; } }

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--bone);
  cursor: pointer;
}
.logo-mark {
  width: 38px;
  height: 38px;
  position: relative;
  flex-shrink: 0;
}
.logo-mark svg { width: 100%; height: 100%; overflow: visible; }
.logo-mark .ring {
  transform-origin: center;
  transition: transform 0.8s cubic-bezier(.2,.8,.2,1);
}
.logo:hover .logo-mark .ring { transform: rotate(180deg); }
.logo-mark .dot {
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.logo:hover .logo-mark .dot {
  transform: translate(2px, -2px);
}
.logo-text {
  font-family: var(--display);
  font-weight: 600;
  font-size: 23px;
  letter-spacing: -0.01em;
}
.logo-text em {
  font-style: normal;
  font-weight: 700;
  color: var(--blue);
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  color: var(--bone);
  text-decoration: none;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.nav-links a:not(.btn):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-links .btn {
  border: 1px solid var(--bone);
  padding: 11px 22px;
  border-radius: 999px;
  transition: all 0.3s ease;
  cursor: pointer;
  background: transparent;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
}
.nav-links .btn:hover {
  background: var(--bone);
  color: var(--ink);
}
@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}

/* Parallax background layers */
.parallax-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.parallax-layer {
  position: absolute;
  will-change: transform;
}
.blob {
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}
.blob-1 {
  width: 540px; height: 540px;
  top: -120px; right: -120px;
  background: radial-gradient(circle, rgba(110,168,200,0.45) 0%, rgba(110,168,200,0) 70%);
}
.blob-2 {
  width: 700px; height: 700px;
  bottom: -200px; left: -200px;
  background: radial-gradient(circle, rgba(20,40,70,0.85) 0%, rgba(20,40,70,0) 70%);
}
.blob-3 {
  width: 380px; height: 380px;
  top: 40%; left: 50%;
  background: radial-gradient(circle, rgba(50,90,130,0.5) 0%, rgba(50,90,130,0) 70%);
}

/* Floating geometric ornaments */
.ornament {
  position: absolute;
  color: var(--blue);
  opacity: 0.18;
}
.ornament-1 { top: 18%; left: 8%; }
.ornament-2 { top: 70%; right: 12%; }
.ornament-3 { top: 30%; right: 20%; }
.ornament-4 { bottom: 12%; left: 22%; }

/* Grid lines */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--rule) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  opacity: 0.6;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 1s 0.2s forwards;
}
.hero-meta .line { flex: 1; max-width: 60px; height: 1px; background: var(--blue); }

.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(48px, 9vw, 132px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--bone);
  margin-bottom: 40px;
}
.hero h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.05em;
}
.hero h1 .word {
  display: inline-block;
  transform: translateY(120%);
  animation: rise 1.1s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero h1 .word.accent {
  font-weight: 700;
  color: var(--blue);
}
.hero h1 .line:nth-child(1) .word { animation-delay: 0.1s; }
.hero h1 .line:nth-child(2) .word { animation-delay: 0.25s; }
.hero h1 .line:nth-child(3) .word { animation-delay: 0.4s; }

@keyframes rise {
  to { transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  max-width: 660px;
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.6;
  color: rgba(244,241,234,0.78);
  margin-bottom: 56px;
  font-weight: 400;
  opacity: 0;
  animation: fadeUp 1s 0.7s forwards;
}

.hero-cta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  opacity: 0;
  animation: fadeUp 1s 0.9s forwards;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.4s cubic-bezier(.2,.8,.2,1);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--bone);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--blue);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px var(--blue-shadow);
}
.btn-primary .arrow {
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-secondary {
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--rule-strong);
}
.btn-secondary:hover {
  border-color: var(--bone);
  background: rgba(244,241,234,0.05);
}

/* Scroll indicator */
.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244,241,234,0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 1s 1.4s forwards;
}
.scroll-cue .bar {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scrollBar 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollBar {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* ---------- SECTION GENERAL ---------- */
section {
  position: relative;
  padding: 140px 0;
}
@media (max-width: 720px) { section { padding: 100px 0; } }

.section-head {
  margin-bottom: 80px;
  max-width: 820px;
}
.section-head .eyebrow { display: block; margin-bottom: 24px; }
.section-head h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(38px, 5.5vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--bone);
  margin-bottom: 28px;
}
.section-head h2 em {
  font-style: normal;
  color: var(--blue);
  font-weight: 700;
}
.section-head p {
  font-size: 20px;
  line-height: 1.65;
  color: rgba(244,241,234,0.75);
  max-width: 660px;
}

/* ---------- MANIFESTO STRIP ---------- */
.manifesto {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 100px 0;
  background:
    radial-gradient(ellipse at top, rgba(110,168,200,0.05), transparent 60%),
    var(--ink);
  position: relative;
  overflow: hidden;
}
.manifesto-quote {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 50px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  color: var(--bone);
}
.manifesto-quote .accent { color: var(--blue); font-weight: 700; }
.manifesto-quote em { font-style: normal; font-weight: 600; color: var(--bone); }
.manifesto-attribution {
  text-align: center;
  margin-top: 40px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ---------- ETHOS / WHY ---------- */
.ethos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
@media (max-width: 900px) { .ethos-grid { grid-template-columns: 1fr; } }

.ethos-item {
  padding: 50px 36px 50px 0;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  position: relative;
  transition: background 0.4s ease;
}
.ethos-item:nth-child(3n) { border-right: none; }
@media (max-width: 900px) {
  .ethos-item { border-right: none; padding-right: 0; }
}
.ethos-item:hover { background: rgba(244,241,234,0.02); }
.ethos-item:hover .ethos-num { color: var(--blue); transform: translateX(8px); }

.ethos-num {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244,241,234,0.45);
  margin-bottom: 24px;
  transition: color 0.4s ease, transform 0.4s ease;
  padding-left: 36px;
}
.ethos-item h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.015em;
  padding-left: 36px;
}
.ethos-item h3 em { font-style: normal; font-weight: 700; color: var(--blue); }
.ethos-item p {
  color: rgba(244,241,234,0.7);
  font-size: 18px;
  line-height: 1.65;
  padding-left: 36px;
}

/* ---------- PHOTO BACKGROUND PARALLAX ---------- */
/* Place a .photo-bg element as the first child of any section.
   It absolute-fills the section, clips overflow, and contains a
   .photo-bg-img that's 130% tall so it can translate vertically without
   exposing edges. Very low opacity so it never disturbs reading. */
.photo-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.photo-bg-img {
  position: absolute;
  top: -15%;
  left: 0;
  width: 100%;
  height: 130%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.10; /* default — sections can override */
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
/* Strong gradient veil over the photo to keep text legible.
   Mixes the section's base ink color in from top and bottom. */
.photo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--ink) 0%, transparent 18%, transparent 82%, var(--ink) 100%),
    linear-gradient(180deg, rgba(10,10,10,0.55), rgba(10,10,10,0.55));
  pointer-events: none;
}

/* All section content must sit above the photo bg */
section > .wrap,
section > .ethos-grid,
section > .tiers-grid,
section > .founders-grid,
section > .section-head,
section .ornament-bg,
section .tiers-bg-ornament,
section .founders-bg {
  position: relative;
  z-index: 1;
}

/* ---------- TIERS ---------- */
#tiers {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(110,168,200,0.06), transparent 50%),
    var(--ink-2);
  position: relative;
  overflow: hidden;
}
.tiers-bg-ornament {
  position: absolute;
  right: -200px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  pointer-events: none;
}
.tiers-bg-ornament::after {
  content: "";
  position: absolute;
  inset: 80px;
  border: 1px solid var(--rule);
  border-radius: 50%;
}

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
@media (max-width: 1000px) { .tiers-grid { grid-template-columns: 1fr; gap: 20px; } }

.tier {
  background: rgba(20,20,20,0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 44px 36px 40px;
  position: relative;
  transition: all 0.5s cubic-bezier(.2,.8,.2,1);
  overflow: hidden;
}
.tier::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(110,168,200,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.tier:hover {
  transform: translateY(-6px);
  border-color: var(--rule-strong);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.tier:hover::before { opacity: 1; }

.tier.featured {
  border-color: rgba(110,168,200,0.4);
  background: linear-gradient(180deg, rgba(20,30,42,0.8), rgba(20,20,20,0.6));
}
.tier.featured::after {
  content: "Most Popular";
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid var(--blue);
  padding: 5px 12px;
  border-radius: 999px;
}

.tier-tag {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244,241,234,0.55);
  margin-bottom: 24px;
}
.tier-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}
.tier.featured .tier-name { color: var(--blue); }

.tier-price {
  font-family: var(--display);
  font-weight: 500;
  font-size: 46px;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.tier-price .currency { font-size: 24px; vertical-align: top; color: rgba(244,241,234,0.55); margin-right: 4px; font-weight: 500; }
.tier-price .period {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(244,241,234,0.55);
  text-transform: lowercase;
  margin-left: 6px;
}
.tier-tagline {
  font-size: 17px;
  color: rgba(244,241,234,0.7);
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
  line-height: 1.5;
}

.tier-features {
  list-style: none;
  margin-bottom: 36px;
}
.tier-features li {
  padding: 12px 0 12px 28px;
  position: relative;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(244,241,234,0.9);
}
.tier-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 16px;
  height: 1px;
  background: var(--blue);
}

.tier-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 17px;
  text-decoration: none;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  background: transparent;
}
.tier:not(.featured) .tier-cta {
  color: var(--bone);
  border: 1px solid var(--rule-strong);
}
.tier:not(.featured) .tier-cta:hover {
  border-color: var(--bone);
  background: var(--bone);
  color: var(--ink);
}
.tier.featured .tier-cta {
  background: var(--blue);
  color: var(--ink);
  border: 1px solid var(--blue);
}
.tier.featured .tier-cta:hover {
  background: var(--blue-2);
  border-color: var(--blue-2);
}

/* ---------- FOUNDERS ---------- */
#founders {
  position: relative;
  overflow: hidden;
}
.founders-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.founders-bg .ornament-large {
  position: absolute;
  color: var(--blue);
  opacity: 0.07;
}
.founders-bg .ornament-large.one { top: 10%; right: -50px; transform: rotate(-15deg); }
.founders-bg .ornament-large.two { bottom: 10%; left: -80px; transform: rotate(20deg); }

.founders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  position: relative;
}
@media (max-width: 1000px) { .founders-grid { grid-template-columns: 1fr; gap: 60px; } }

.founder {
  position: relative;
  cursor: default;
  text-align: center;
}

/* ROUND PORTRAIT */
.founder-portrait {
  width: 280px;
  height: 280px;
  max-width: 80%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ink-3);
  position: relative;
  margin: 0 auto 32px;
  border: 2px solid var(--blue);
  box-shadow:
    0 0 0 6px rgba(110, 168, 200, 0.08),
    0 20px 50px -15px rgba(0, 0, 0, 0.6);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), box-shadow 0.5s ease;
}
.founder:hover .founder-portrait {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 10px rgba(110, 168, 200, 0.12),
    0 25px 60px -15px rgba(0, 0, 0, 0.7);
}
.founder-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: grayscale(100%) contrast(1.05);
  transition: filter 0.7s ease, transform 0.9s cubic-bezier(.2,.8,.2,1);
}
.founder:hover .founder-portrait img {
  filter: grayscale(0%) contrast(1.05);
  transform: scale(1.06);
}
.founder-num {
  position: absolute;
  top: 50%;
  left: -8px;
  transform: translateY(-50%);
  z-index: 2;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--blue);
  background: var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--rule);
}

.founder h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.founder h3 em { font-style: normal; font-weight: 700; color: var(--blue); }
.founder .role {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244,241,234,0.65);
  margin-bottom: 18px;
  display: block;
}
.founder p {
  color: rgba(244,241,234,0.8);
  font-size: 17px;
  line-height: 1.65;
  max-width: 360px;
  margin: 0 auto;
}

/* ---------- WAITLIST FORM ---------- */
.waitlist-section {
  padding: 160px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(110,168,200,0.1), transparent 60%),
    var(--ink);
}
.waitlist-section .ornament-bg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  pointer-events: none;
}
.waitlist-section .ornament-bg::before {
  content: "";
  position: absolute;
  inset: 100px;
  border: 1px solid var(--rule);
  border-radius: 50%;
}
.waitlist-section .ornament-bg::after {
  content: "";
  position: absolute;
  inset: 200px;
  border: 1px solid var(--rule);
  border-radius: 50%;
}
.waitlist-section h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(42px, 6.5vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 900px;
  margin: 0 auto 32px;
  position: relative;
}
.waitlist-section h2 em { font-style: normal; font-weight: 700; color: var(--blue); }
.waitlist-section .lede {
  font-size: 21px;
  color: rgba(244,241,234,0.75);
  max-width: 600px;
  margin: 0 auto 56px;
  position: relative;
  font-weight: 400;
}

/* Waitlist form */
.waitlist-form {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.waitlist-form-inner {
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(14px);
  border: 1px solid var(--rule-strong);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.waitlist-form-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(110,168,200,0.06), transparent 60%);
  pointer-events: none;
}

@media (max-width: 600px) {
  .waitlist-form-inner { padding: 28px 22px; }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.field {
  position: relative;
}

.field label {
  display: block;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244,241,234,0.6);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}
.field.focused label { color: var(--blue); }
.field.invalid label { color: var(--error); }

.field input,
.field select {
  width: 100%;
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 15px 18px;
  font-family: var(--body);
  font-size: 17px;
  font-weight: 500;
  color: var(--bone);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder {
  color: rgba(244,241,234,0.32);
  font-weight: 400;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(10, 10, 10, 0.8);
  box-shadow: 0 0 0 3px var(--blue-glow);
}
.field.invalid input,
.field.invalid select {
  border-color: var(--error);
}

/* Custom select arrow */
.field.select-field { position: relative; }
.field.select-field::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 23px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
  pointer-events: none;
  border-radius: 0 0 2px 0;
}
.field select {
  cursor: pointer;
  background-image: none;
}
.field select option {
  background: var(--ink-2);
  color: var(--bone);
}

.error-msg {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--error);
  margin-top: 8px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  min-height: 14px;
}
.field.invalid .error-msg {
  opacity: 1;
  transform: translateY(0);
}

.form-submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.form-submit .privacy {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244,241,234,0.5);
}
.form-submit .privacy a {
  color: rgba(244,241,234,0.75);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  transition: color 0.3s, border-color 0.3s;
}
.form-submit .privacy a:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.form-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 30px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  background: var(--bone);
  color: var(--ink);
  transition: all 0.4s cubic-bezier(.2,.8,.2,1);
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
}
.form-submit-btn:hover:not(:disabled) {
  background: var(--blue);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px var(--blue-shadow);
}
.form-submit-btn:hover:not(:disabled) .arrow {
  transform: translateX(4px);
}
.form-submit-btn .arrow {
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.form-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.form-submit-btn.loading {
  color: transparent;
}
.form-submit-btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--ink);
  border-top-color: transparent;
  border-radius: 50%;
  top: 50%; left: 50%;
  margin: -8px 0 0 -8px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
  .form-submit { flex-direction: column-reverse; align-items: stretch; }
  .form-submit-btn { justify-content: center; }
  .form-submit .privacy { text-align: center; }
}

/* Success state */
.waitlist-success {
  display: none;
  text-align: center;
  padding: 60px 40px;
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(110,168,200,0.4);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.waitlist-success.active {
  display: block;
  animation: successFadeIn 0.7s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes successFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.waitlist-success::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(110,168,200,0.15), transparent 60%);
  pointer-events: none;
}

.success-mark {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  position: relative;
  background: rgba(110, 168, 200, 0.08);
}
.success-mark svg {
  width: 28px;
  height: 28px;
  color: var(--blue);
}
.success-mark .check-path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: draw 0.8s 0.2s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.waitlist-success h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.waitlist-success h3 em { font-style: normal; font-weight: 700; color: var(--blue); }
.waitlist-success p {
  color: rgba(244,241,234,0.75);
  font-size: 18px;
  max-width: 440px;
  margin: 0 auto 28px;
  line-height: 1.6;
  position: relative;
}
.waitlist-success .reset-link {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244,241,234,0.55);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.3s;
}
.waitlist-success .reset-link:hover { color: var(--blue); }

/* Form is hiding */
.waitlist-form.submitting .waitlist-form-inner {
  pointer-events: none;
}
.waitlist-form.submitted .waitlist-form-inner {
  display: none;
}

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--rule);
  padding: 60px 0 40px;
  background: var(--ink);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 30px;
}
.footer-mark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.01em;
}
.footer-mark em { font-style: normal; font-weight: 700; color: var(--blue); }
.footer-meta {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244,241,234,0.55);
}
.footer-meta a { color: rgba(244,241,234,0.75); text-decoration: none; transition: color 0.3s; }
.footer-meta a:hover { color: var(--blue); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244,241,234,0.4);
}

/* ---------- REVEAL UTIL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(.2,.8,.2,1), transform 1s cubic-bezier(.2,.8,.2,1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}
