/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  min-height: 100dvh;
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  color: #e0e0e0;
  background: #0a0a0a;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
ul[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.15; }
p, li, figcaption { text-wrap: pretty; }

::selection {
  background: rgba(59, 130, 246, 0.3);
  color: #fff;
}

:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 3px;
  border-radius: 4px;
}

a, button, [role="button"], input, textarea, select {
  transition: color 180ms cubic-bezier(0.16, 1, 0.3, 1),
              background 180ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 180ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

button { cursor: pointer; background: none; border: none; }

/* ===== TOKENS ===== */
:root {
  --blue: #3b82f6;
  --blue-glow: rgba(59, 130, 246, 0.4);
  --blue-dim: rgba(59, 130, 246, 0.12);
  --amber: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.35);
  --bg: #0a0a0a;
  --surface: rgba(255, 255, 255, 0.03);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-border-hover: rgba(255, 255, 255, 0.14);
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-muted: #666;
  --green: #22c55e;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== NOISE GRAIN OVERLAY ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ===== ATMOSPHERE ===== */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.glow--blue {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
  top: -15%;
  left: -10%;
  animation: drift-1 24s ease-in-out infinite alternate;
}

.glow--amber {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
  top: 10%;
  right: -8%;
  animation: drift-2 28s ease-in-out infinite alternate-reverse;
}

.glow--blue-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  bottom: 5%;
  left: 25%;
  animation: drift-3 22s ease-in-out infinite alternate;
}

/* Extra ambient glow */
.glow--ambient {
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(59, 130, 246, 0.06) 0%, transparent 100%),
    radial-gradient(ellipse 50% 30% at 80% 50%, rgba(245, 158, 11, 0.04) 0%, transparent 100%);
  top: 0;
  left: 0;
  filter: none;
}

@keyframes drift-1 {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.8; }
  50%  { opacity: 1; }
  100% { transform: translate(60px, 40px) scale(1.15); opacity: 0.8; }
}
@keyframes drift-2 {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.7; }
  50%  { opacity: 1; }
  100% { transform: translate(-50px, 50px) scale(1.1); opacity: 0.7; }
}
@keyframes drift-3 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -30px) scale(1.08); }
}

/* Dot grid pattern */
.dot-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 100%);
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.section {
  position: relative;
  z-index: 1;
  padding: clamp(5rem, 10vw, 9rem) 0;
}

/* ===== ENTRANCE ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  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; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: box-shadow 0.3s var(--ease-out);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header__nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.header__nav a:hover {
  color: var(--text-primary);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  background: var(--glass-bg);
  border-radius: var(--radius-xs);
}

.btn--sm:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--glass-border-hover);
}

.btn--primary {
  background: var(--blue);
  color: #fff;
}

.btn--primary:hover {
  background: #5b9cf7;
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--glow {
  box-shadow: 0 0 20px var(--blue-glow), 0 0 60px rgba(59, 130, 246, 0.15), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn--glow:hover {
  box-shadow: 0 0 30px var(--blue-glow), 0 0 80px rgba(59, 130, 246, 0.2), inset 0 1px 0 rgba(255,255,255,0.15);
}

/* Shimmer effect on primary buttons */
.btn--primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { left: -100%; }
  50% { left: 150%; }
}

.btn--full {
  width: 100%;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 1;
  padding: clamp(6rem, 14vw, 10rem) 0 clamp(4rem, 8vw, 8rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hero__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.06);
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 1rem + 6vw, 5.5rem);
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-shadow: 0 0 80px rgba(255, 255, 255, 0.06), 0 0 160px rgba(59, 130, 246, 0.08);
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #ffffff 40%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  color: var(--text-secondary);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.hero__sub strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.hero__note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== TERMINAL ===== */
.terminal {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 
    0 8px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255,255,255,0.03),
    0 0 100px rgba(59, 130, 246, 0.05);
  position: relative;
}

/* Subtle scan line effect */
.terminal::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255,255,255,0.008) 2px,
    rgba(255,255,255,0.008) 4px
  );
  border-radius: var(--radius);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal__dot--red { background: #ff5f57; }
.terminal__dot--yellow { background: #febc2e; }
.terminal__dot--green { background: #28c840; }

.terminal__title {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

/* Live indicator */
.terminal__live {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  color: var(--green);
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.terminal__live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50%      { opacity: 0.6; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0); }
}

.terminal__body {
  padding: 1.25rem 1.25rem 1.5rem;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.82rem;
  line-height: 1.9;
  min-height: 240px;
  position: relative;
  z-index: 1;
}

.terminal__line {
  display: flex;
  gap: 0.6rem;
  opacity: 0;
  align-items: flex-start;
}

.terminal__line.visible {
  opacity: 1;
}

.terminal__prompt {
  color: var(--blue);
  flex-shrink: 0;
  user-select: none;
}

.terminal__prompt--green {
  color: var(--green);
}

.terminal__text {
  color: #ccc;
}

.terminal__text--amber {
  color: var(--amber);
}

.terminal__text--green {
  color: var(--green);
}

.terminal__cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--blue);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
  margin-left: 2px;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ===== GLASSMORPHISM ===== */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
}

.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(
    160deg,
    rgba(255,255,255,0.08) 0%,
    transparent 40%,
    transparent 60%,
    rgba(255,255,255,0.03) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.glass:hover {
  border-color: var(--glass-border-hover);
}

/* ===== SECTION TITLE ===== */
.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.2rem + 2.5vw, 3.2rem);
  font-weight: 400;
  color: #fff;
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.015em;
  background: linear-gradient(180deg, #ffffff 30%, rgba(255,255,255,0.65) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
  position: relative;
  z-index: 1;
  height: 1px;
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.15), rgba(245, 158, 11, 0.1), transparent);
}

/* ===== HOW IT WORKS CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: border-color 300ms var(--ease-out),
              transform 300ms var(--ease-out),
              box-shadow 300ms var(--ease-out);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 40px rgba(59, 130, 246, 0.04);
  border-color: rgba(59, 130, 246, 0.15);
}

.card__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.06);
}

.card__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 0.75vw, 1.6rem);
  font-weight: 400;
  color: #fff;
  margin-bottom: 0.75rem;
}

.card__desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ===== SOCIAL PROOF ===== */
.section--proof {
  text-align: center;
}

.proof__inner {
  max-width: 700px;
  margin: 0 auto;
}

.proof__stat {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1rem + 3vw, 3rem);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, #ffffff 30%, rgba(255,255,255,0.65) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.proof__highlight {
  background: linear-gradient(135deg, var(--amber), #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px var(--amber-glow));
}

.proof__tagline {
  color: var(--text-secondary);
  font-size: clamp(1rem, 0.9rem + 0.35vw, 1.15rem);
  line-height: 1.6;
}

/* ===== PRICING ===== */
.pricing__center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pricing {
  max-width: 440px;
  width: 100%;
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  transition: border-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}

.pricing:hover {
  border-color: rgba(59, 130, 246, 0.15);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.3), 0 0 60px rgba(59, 130, 246, 0.04);
}

.pricing__header {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.pricing__amount {
  font-family: var(--font-display);
  font-size: clamp(3rem, 2rem + 3vw, 4.5rem);
  color: #fff;
  font-weight: 400;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 30%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing__period {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing__tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.pricing__list {
  text-align: left;
  margin-bottom: 2rem;
}

.pricing__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pricing__list li:last-child {
  border-bottom: none;
}

.pricing__list li svg {
  flex-shrink: 0;
}

/* ===== FAQ ===== */
.faq__center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq {
  max-width: 680px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq__item {
  padding: 0;
  overflow: hidden;
  transition: border-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}

.faq__item[open] {
  border-color: var(--glass-border-hover);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 0.9rem + 0.5vw, 1.35rem);
  font-weight: 400;
  color: #fff;
  user-select: none;
}

.faq__question::-webkit-details-marker { display: none; }
.faq__question::marker { content: ''; }

.faq__question:hover {
  color: var(--blue);
}

.faq__chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 300ms var(--ease-out);
}

.faq__item[open] .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  padding: 0 1.5rem 1.5rem;
}

.faq__answer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 100%;
}

.faq__answer p + p {
  margin-top: 0.85rem;
}

.faq__answer strong {
  color: var(--text-primary);
  font-weight: 600;
}

.faq__answer em {
  color: var(--text-muted);
  font-style: italic;
}

/* ===== WAITLIST ===== */
.section--waitlist {
  text-align: center;
}

.waitlist__center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.waitlist__sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  margin-top: -1.5rem;
}

.waitlist__form {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem;
  width: 100%;
  max-width: 520px;
}

.waitlist__input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
}

.waitlist__input::placeholder {
  color: var(--text-muted);
}

.waitlist__input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-dim), 0 0 20px rgba(59, 130, 246, 0.08);
}

.waitlist__success {
  color: var(--green);
  font-size: 0.95rem;
  margin-top: 1rem;
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 1;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

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

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__social {
  color: var(--text-muted);
  text-decoration: none;
}

.footer__social:hover {
  color: var(--text-primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero__terminal {
    order: 2;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .header__nav a:not(.btn) {
    display: none;
  }

  .waitlist__form {
    flex-direction: column;
  }

  .waitlist__form .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero__headline {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
  }

  .terminal__body {
    font-size: 0.72rem;
    padding: 1rem;
  }
}

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

/* ============================================================
   NEW SECTIONS — See it work / The math / Who it's for
   ============================================================ */

.section__sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: -1rem;
  margin-bottom: 3rem;
  letter-spacing: 0.01em;
}

/* --- Demo Terminal ----------------------------------------- */
.demo-terminal-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.demo-terminal {
  background: rgba(10, 10, 10, 0.75);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 14px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.08), 0 24px 64px rgba(0,0,0,0.5);
}

.demo-terminal__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.demo-terminal__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.demo-terminal__dot--red   { background: #ff5f57; }
.demo-terminal__dot--amber { background: #febc2e; }
.demo-terminal__dot--green { background: #28c840; }

.demo-terminal__label {
  margin-left: auto;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.08em;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

.demo-terminal__body {
  padding: 24px 28px 28px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
  min-height: 340px;
}

.demo-terminal__body .t-cmd   { color: #3b82f6; }
.demo-terminal__body .t-arrow { color: #f59e0b; }
.demo-terminal__body .t-check { color: #22c55e; }
.demo-terminal__body .t-dim   { color: rgba(255,255,255,0.38); }

#demo-output {
  white-space: pre-wrap;
  word-break: break-word;
}

.demo-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #3b82f6;
  border-radius: 1px;
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

/* --- The Math --------------------------------------------- */
.math-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.math-card {
  border-radius: 16px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.math-card--sdr {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.math-card--closerr {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.08);
}

.math-card__label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.math-card__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.math-card--closerr .math-card__title { color: #3b82f6; }

.math-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.math-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.math-list .math-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.math-list .math-icon svg { display: block; }

.math-card--sdr  .math-list .math-icon { opacity: 0.45; }
.math-card--closerr .math-list .math-icon { color: #3b82f6; }

.math-savings {
  text-align: center;
  margin: 2rem auto 0;
  max-width: 860px;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(245,158,11,0.06));
  border: 1px solid rgba(245,158,11,0.35);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.math-savings__label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f59e0b;
  margin-bottom: 0.4rem;
}

.math-savings__number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #f59e0b;
  letter-spacing: -0.02em;
}

.math-savings__sub {
  font-size: 0.85rem;
  color: rgba(245,158,11,0.65);
  margin-top: 0.25rem;
}

/* --- Who it's for ----------------------------------------- */
.for-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.for-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.for-card:hover {
  border-color: rgba(59,130,246,0.35);
  box-shadow: 0 0 28px rgba(59,130,246,0.08);
}

.for-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.18);
  border-radius: 12px;
}

.for-card__icon svg { display: block; }

.for-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.for-card__body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Responsive ------------------------------------------- */
@media (max-width: 700px) {
  .math-wrap { grid-template-columns: 1fr; }
  .for-grid  { grid-template-columns: 1fr; }
  .math-savings__number { font-size: 2rem; }
}
