/* ============================================
   COMMONS — Landing Page Styles
   Stripe-inspired effects, green cooperative palette
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Primary Palette */
  --cream: #FAF6D4;
  --lime: #FAF6D4;
  --teal: #92830C;
  --forest: #92830C;

  /* Secondary Palette */
  --beige: #FAF6D4;
  --sage: #C5B84D;
  --muted-green: #92830C;
  --olive: #6B6108;

  /* Accent */
  --accent: #FFCC00;

  /* Neutral tones */
  --dark: #413B0D;
  --dark-gradient: linear-gradient(180deg, #413B0D 0%, #332E0A 100%);
  --dark-soft: #5A520F;
  --text: #413B0D;
  --text-mid: #6B6108;
  --text-light: #92830C;
  --border: #D4C86D;
  --border-light: #E8DFA0;
  --bg: #FAF6D4;
  --white: #ffffff;

  /* Typography */
  --font-display: "acme-gothic", "system-ui", sans-serif;
  --font-body: "ivyepic-variable", "Georgia", serif;
  --font-mono: "SF Mono", "Consolas", "Menlo", monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;
  --space-2xl: 128px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-style: normal;
  font-variation-settings: "ital" 0;
}

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

body {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* ===== ADA Accessibility ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--accent);
  color: var(--dark);
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
}

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

/* Focus visible outlines for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.15;
  color: var(--dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.05rem, 1.6vw, 1.2rem); letter-spacing: -0.01em; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav-wrapper {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  width: 100%;
}

.nav-wrapper > .nav-logo {
  flex-shrink: 0;
  color: var(--white);
  transition: color 0.4s ease;
}

.nav-wrapper.scrolled > .nav-logo {
  color: var(--forest);
}

.nav {
  padding: 6px 6px 6px 32px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
}

.nav .nav-logo {
  color: var(--white);
  transition: color 0.4s ease;
}
.nav.scrolled .nav-logo {
  color: var(--dark);
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--white); }
.nav.scrolled .nav-links a { color: var(--dark); }
.nav.scrolled .nav-links a:hover { color: var(--forest); }

.nav-launch-tag {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FFCC00;
}
.nav.scrolled .nav-launch-tag { color: var(--forest); }
.nav.scrolled .tag-dot {
  background: var(--forest);
  box-shadow: 0 0 4px var(--forest), 0 0 0 0 rgba(146, 131, 12, 0.5);
  animation: pulse-dot-dark 2s ease infinite;
}
@keyframes pulse-dot-dark {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 4px var(--forest), 0 0 0 0 rgba(146, 131, 12, 0.5); }
  50% { opacity: 0.8; transform: scale(1.2); box-shadow: 0 0 8px var(--forest), 0 0 0 5px rgba(146, 131, 12, 0); }
}

.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-ghost {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s ease;
}
.btn-ghost:hover { color: var(--white); }
.nav.scrolled .btn-ghost { color: var(--dark); }
.nav.scrolled .btn-ghost:hover { color: var(--forest); }

.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 100px;
  background: var(--accent);
  color: var(--dark);
  font-size: 0.78rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: none;
  cursor: pointer;
}
.btn-primary-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
}
.nav.scrolled .btn-primary-sm {
  background: var(--accent);
  color: var(--dark);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: background 0.3s;
}
.nav.scrolled .nav-mobile-toggle span { background: var(--dark); }

/* --- Full-screen mobile menu overlay --- */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--dark);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-mobile.open {
  display: flex;
  opacity: 1;
}
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cream);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-mobile a:hover {
  color: var(--accent);
}
.nav-mobile .btn-primary-sm {
  margin-top: 16px;
  padding: 14px 36px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 100px;
  background: var(--accent);
  color: var(--dark);
}

/* Close button inside overlay */
.nav-mobile-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}
.nav-mobile-close svg {
  width: 22px;
  height: 22px;
  stroke: var(--cream);
  stroke-width: 2;
}

/* Logo inside overlay */
.nav-mobile-logo {
  position: absolute;
  top: 22px;
  left: 20px;
}
.nav-mobile-logo svg {
  width: 110px;
  height: auto;
  fill: var(--cream);
}

/* Bottom tagline */
.nav-mobile-tagline {
  position: absolute;
  bottom: 40px;
  left: 0; right: 0;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250,246,212,0.2);
  font-family: var(--font-display);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark-gradient);
  background-attachment: fixed;
}

#starburst-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  padding: 120px 24px 80px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.99rem;
  font-weight: 600;
  color: var(--lime);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFCC00;
  animation: pulse-dot 2s ease infinite;
  box-shadow: 0 0 4px #FFCC00, 0 0 0 0 rgba(255, 204, 0, 0.5);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 4px #FFCC00, 0 0 0 0 rgba(255, 204, 0, 0.5); }
  50% { opacity: 0.8; transform: scale(1.2); box-shadow: 0 0 8px #FFCC00, 0 0 0 5px rgba(255, 204, 0, 0); }
}

.hero-headline {
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.08;
  font-weight: 700;
}

.hero-emphasis {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: var(--white);
  background-clip: unset;
}

.hero-sub {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  color: var(--accent);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 100px;
  background: var(--accent);
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  background: #E6B800;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 204, 0, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 100px;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  border: 0.5px solid var(--accent);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.btn-secondary:hover {
  background: rgba(255, 204, 0, 0.1);
  color: var(--accent);
  border-color: var(--accent);
}

.btn-arrow {
  transition: transform 0.2s ease;
  display: inline-block;
}
.btn-primary:hover .btn-arrow,
.btn-secondary:hover .btn-arrow,
.btn-primary-sm:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-primary-sm .btn-arrow {
  margin-left: 0;
}

.hero-proof {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--white);
}

.proof-avatars {
  display: flex;
}

.proof-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--white);
  margin-left: -8px;
  border: 1px solid var(--dark);
}
.proof-avatar:first-child { margin-left: 0; }

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scroll-pulse 2s ease infinite;
}

@keyframes scroll-pulse {
  0% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
  100% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: var(--dark-gradient);
  background-attachment: fixed;
  padding: 60px 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: #FFCC00;
  display: inline;
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: #FFCC00;
  display: inline;
}

.stat-item:nth-child(2) .stat-number,
.stat-item:nth-child(2) .stat-suffix,
.stat-item:nth-child(4) .stat-number,
.stat-item:nth-child(4) .stat-suffix {
  color: #FAF6D4;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--white);
  margin-top: 8px;
  line-height: 1.5;
}

/* ============================================
   FEATURES BENTO GRID
   ============================================ */
.features {
  padding: 120px 0;
  background: var(--dark-gradient);
  background-attachment: fixed;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 72px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
  font-family: var(--font-body);
}

.section-header h2 {
  margin-bottom: 16px;
  color: var(--white);
}

.section-header p {
  font-size: 0.95rem;
  color: var(--white);
  line-height: 1.6;
}

/* Organic blob modules */
.module-circles {
  position: relative;
  width: 100%;
  height: 320px;
}

#modules-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: default;
}

.bento-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cream), var(--lime));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  margin-bottom: 20px;
}

.bento-card h3 {
  margin-bottom: 12px;
}

.bento-card p {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 16px;
}

.bento-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feature-chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--cream);
  color: var(--dark);
  font-size: 0.78rem;
  font-weight: 600;
}

/* Mock UI cards inside bento */
.bento-visual {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 0.5px solid var(--border-light);
}

.mock-card {
  background: var(--cream);
  border-radius: 12px;
  padding: 20px;
  border: 0.5px solid rgba(146,131,12,0.15);
}

.mock-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
}

.mock-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.mock-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.mock-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--forest));
  border-radius: 3px;
  transition: width 1s var(--ease-out);
}

.mock-meta {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ============================================
   DIAGONAL DIVIDER
   ============================================ */
.diagonal-divider {
  height: 120px;
  background: var(--bg);
  position: relative;
}
.diagonal-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--dark-gradient);
  background-attachment: fixed;
  clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
  background: var(--dark-gradient);
  background-attachment: fixed;
  padding: 120px 0;
  color: var(--white);
}

.how-it-works .section-header h2 {
  color: var(--white);
}

.how-it-works .section-header p {
  color: var(--white);
}

.layers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.layer-card {
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 36px 28px;
  position: relative;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.layer-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(146,131,12,0.25);
}

.layer-number {
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.85;
  line-height: 1;
  margin-bottom: 16px;
}

.layer-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.layer-card h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.layer-card p {
  font-size: 0.85rem;
  color: var(--white);
  line-height: 1.65;
  margin-bottom: 20px;
}

.layer-source {
  font-size: 0.78rem;
  color: var(--white);
  font-style: italic;
}

.layer-line {
  display: none;
}

/* ============================================
   PRODUCT SHOWCASE (TILTED CODE CARD)
   ============================================ */
.showcase {
  padding: 120px 0;
  background: var(--cream);
}

.showcase-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.showcase-text .section-tag { text-align: left; }
.showcase-text h2 { margin-bottom: 16px; }
.showcase-text > p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 32px;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.5;
}

.check-list svg {
  flex-shrink: 0;
  color: var(--teal);
  margin-top: 2px;
}

/* Tilted code card */
.showcase-card-wrapper {
  perspective: 1200px;
}

.showcase-card {
  transform: rotate3d(0.5, 0.866, 0, 12deg) rotate(-1deg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    -20px 50px 100px -20px rgba(26, 46, 31, 0.35),
    -12px 30px 60px -30px rgba(0, 0, 0, 0.4);
  position: relative;
  transition: transform 0.4s var(--ease-out);
}

.showcase-card:hover {
  transform: rotate3d(0.5, 0.866, 0, 8deg) rotate(-0.5deg);
}

.showcase-card-header {
  background: var(--dark-soft);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.card-dot.red { background: #ff5f57; }
.card-dot.yellow { background: #ffbd2e; }
.card-dot.green { background: #FFCC00; }

.card-filename {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}

.showcase-card-body {
  background: var(--dark-gradient);
  background-attachment: fixed;
  padding: 24px;
}

.showcase-card-body pre {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}

.code-key { color: var(--teal); font-weight: 600; }
.code-val { color: var(--lime); }
.code-num { color: #f0c674; }
.code-bool { color: #81a2be; }

.showcase-card-shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top right, rgba(255,255,255,0), rgba(255,255,255,0.5), var(--white));
  opacity: 0.04;
  pointer-events: none;
}

/* ============================================
   WHO IT'S FOR
   ============================================ */
.for-who {
  padding: 120px 0;
  background: var(--cream);
  border-top: 0.5px solid var(--border-light);
}

.for-who .section-header h2 {
  color: var(--dark);
}

.for-who .section-header p {
  color: var(--text-mid);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.audience-card {
  background: none;
  border-radius: 0;
  padding: 24px 0;
  border: none;
  text-align: center;
}

.audience-emoji {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.audience-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.audience-card p {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ============================================
   VISION / PHILOSOPHY
   ============================================ */
.vision {
  padding: 120px 0;
  background: var(--cream);
  border-top: 0.5px solid var(--border-light);
}

.vision-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}

.vision-text .section-tag { text-align: left; }
.vision-text h2 { margin-bottom: 20px; }

.vision-lead {
  font-size: 1rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 16px;
}

.vision-text p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 16px;
}

.vision-pillars {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pillar {
  background: var(--white);
  border-radius: 14px;
  padding: 24px;
  border: 0.5px solid var(--border-light);
  transition: border-color 0.2s ease;
}

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

.pillar-icon {
  font-size: 1.5rem;
  color: var(--teal);
  margin-bottom: 8px;
}

.pillar h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.pillar p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ============================================
   CTA / WAITLIST
   ============================================ */
.cta-section {
  position: relative;
  padding: 120px 0;
  background: var(--dark-gradient);
  background-attachment: fixed;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin-bottom: 16px;
}

.cta-content > p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  line-height: 1.6;
}

.waitlist-form {
  max-width: 480px;
  margin: 0 auto;
}

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

.waitlist-input {
  flex: 1;
  padding: 12px 18px;
  border-radius: 100px;
  border: 0.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.waitlist-input::placeholder { color: rgba(255,255,255,0.5); }
.waitlist-input:focus {
  border-color: var(--teal);
  background: rgba(255,255,255,0.1);
}

.form-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.2);
  margin-top: 14px;
}

.waitlist-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--lime);
}
.waitlist-success.show { display: flex; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark-gradient);
  background-attachment: fixed;
  border-top: 0.5px solid rgba(255,255,255,0.06);
  padding: 24px 0;
}

.footer-simple {
  text-align: center;
}

.footer-simple p {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s 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; }

/* ============================================
   iOS BACKGROUND-ATTACHMENT FIX
   iOS Safari does not support background-attachment: fixed.
   We use @supports to disable it on devices that don't support it.
   ============================================ */
@supports (-webkit-touch-callout: none) {
  .hero,
  .stats-bar,
  .features,
  .how-it-works,
  .cta-section,
  .footer,
  .showcase-card-body {
    background-attachment: scroll !important;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-large {
    grid-column: span 2;
  }
  .layers-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .layer-line { display: none; }
  .showcase-split {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .showcase-card {
    transform: rotate3d(0.3, 0.5, 0, 8deg) rotate(-0.5deg);
    max-width: 500px;
    margin: 0 auto;
  }
  .audience-grid {
    grid-template-columns: 1fr 1fr;
  }
  .vision-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  /* --- Navigation --- */
  .nav-wrapper {
    padding: 0 12px;
    top: 12px;
  }
  .nav-links, .nav-cta, .nav-launch-tag { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav {
    padding: 10px 16px;
    border-radius: 16px;
  }
  .nav-inner {
    gap: 0;
    justify-content: flex-end;
  }

  /* --- Hero --- */
  .hero-headline { font-size: 2rem; }
  .hero-content {
    padding: 100px 20px 60px;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
  .hero-proof {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  /* --- Stats --- */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  /* --- Features / Bento --- */
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-large {
    grid-column: span 1;
  }

  /* --- Module circles canvas --- */
  .module-circles {
    height: 240px;
    overflow: hidden;
  }

  /* --- Showcase code card --- */
  .showcase-card {
    transform: none;
    max-width: 100%;
  }
  .showcase-card:hover {
    transform: none;
  }
  .showcase-card-body pre {
    font-size: 0.72rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* --- Audience / Who It's For --- */
  .audience-grid {
    grid-template-columns: 1fr;
  }

  /* --- Sections padding --- */
  .features,
  .how-it-works,
  .showcase,
  .for-who,
  .vision,
  .cta-section {
    padding: 80px 0;
  }
  .section-header {
    margin-bottom: 48px;
  }

  /* --- Layer cards --- */
  .layer-card {
    padding: 28px 20px;
  }
  .layer-number {
    font-size: 2.8rem;
  }

  /* --- Waitlist form --- */
  .form-row {
    flex-direction: column;
  }
  .form-row .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-content { padding: 90px 16px 50px; }
  .hero-headline { font-size: 1.7rem; }
  .hero-sub { font-size: 0.85rem; }
  .hero-tag { font-size: 0.82rem; }

  .stats-bar {
    padding: 40px 0;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .stat-number { font-size: 1.8rem; }

  /* Module circles smaller on phones */
  .module-circles {
    height: 200px;
  }

  /* Layer cards tighter */
  .layer-card {
    padding: 24px 16px;
  }
  .layer-number {
    font-size: 2.4rem;
    margin-bottom: 12px;
  }

  /* Showcase */
  .showcase-card-body {
    padding: 16px;
  }
  .showcase-card-body pre {
    font-size: 0.68rem;
    line-height: 1.6;
  }

  /* Vision pillars */
  .pillar {
    padding: 18px;
  }

  /* CTA section */
  .cta-content h2 {
    font-size: 1.3rem;
  }

  /* Container padding */
  .container {
    padding: 0 16px;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .tag-dot { animation: none; }
  .scroll-line { animation: none; }
  #starburst-canvas { display: none; }
  .hero { background: linear-gradient(135deg, var(--dark), var(--forest)); }
  .cta-section { background: linear-gradient(135deg, var(--dark), var(--forest)); }
}
