/* ─── SECTION WRAPPERS ─── */

.section {
  position: relative;
  overflow: hidden;
}

.section--pitch   { background: var(--bg-inverse); }
.section--surface { background: var(--bg-inverse-secondary); }
.section--carbon  { background: var(--carbon); }
.section--salt    { background: var(--bg); }
.section--bone    { background: var(--bg-secondary); }
.section--light   { background: var(--bg); }  /* alias for focus-visible polarity */

.section__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 52px;
}

.section__inner--pad-v {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

/* Credibility bar — top + bottom seam (moved from inline style) */
.section--credibility {
  border-top: var(--hairline) solid var(--border);
  border-bottom: var(--hairline) solid var(--border);
}

/* Proof section — top divider (moved from inline style) */
.section--ruled-light {
  border-top: 1px solid var(--border-l);
}

/* ─── HERO ─── */

.hero {
  background: var(--bg);
  padding-top: 136px;
  padding-bottom: var(--space-4xl);
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__gradient-1 {
  position: absolute;
  top: -180px;
  left: -240px;
  width: 900px;
  height: 900px;
  background: radial-gradient(ellipse, rgba(202,255,46,0.07) 0%, rgba(202,255,46,0.02) 40%, transparent 65%);
  animation: glowBreathe 7s ease-in-out infinite;
  will-change: transform, opacity;
}

.hero__gradient-2 {
  position: absolute;
  top: 60px;
  right: -160px;
  width: 680px;
  height: 680px;
  background: radial-gradient(ellipse, rgba(202,255,46,0.045) 0%, transparent 65%);
  animation: glowBreathe2 9s ease-in-out infinite;
  will-change: transform, opacity;
}

.hero__gradient-3 {
  position: absolute;
  bottom: -80px;
  left: 35%;
  width: 500px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(202,255,46,0.03) 0%, transparent 65%);
  animation: glowBreathe3 11s ease-in-out infinite;
  will-change: transform, opacity;
}

.hero__dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 35% 50%, black 0%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 80% at 35% 50%, black 0%, transparent 80%);
  animation: dotDrift 30s linear infinite;
}

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

.hero__scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(202,255,46,0.0) 10%,
    rgba(202,255,46,0.35) 30%,
    rgba(202,255,46,0.6) 50%,
    rgba(202,255,46,0.35) 70%,
    rgba(202,255,46,0.0) 90%,
    transparent 100%
  );
  animation: scanSweep 2.2s cubic-bezier(0.4, 0, 0.6, 1) 0.1s forwards;
  opacity: 0;
  pointer-events: none;
}

/* v1.3: Hero on Salt — suppress Acid radial gradients, dot-grid, and scan-line */
.hero__gradient-1,
.hero__gradient-2,
.hero__gradient-3,
.hero__dot-grid,
.hero__scan-line {
  display: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 52px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-3xl);
}

/* Tier A voice moment — hero headline, Instrument Serif Italic */
.hero__headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(48px, 6vw, 80px);
  letter-spacing: -0.028em;
  line-height: 1.05;
  color: var(--fg1);
  max-width: 820px;
  margin-bottom: var(--space-xl);
}

/* Hero on Salt — em uses acid-muted-dk (text-safe on light surfaces) */
.hero__headline em {
  color: var(--acid-muted-dk);
  font-style: italic;
}

.hero__sub {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--fs-lede);
  line-height: 1.75;
  color: var(--fg2);
  max-width: 540px;
}

/* ─── REFRAME ─── */

.reframe__content {
  max-width: 760px;
}

/* Tier A voice moment — section H2 */
.reframe__headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(26px, 3.8vw, 44px);
  color: var(--fg-on-dark-1);
  margin-bottom: var(--space-2xl);
  line-height: 1.2;
}

.reframe__body {
  font-size: var(--fs-body);
  font-weight: 300;
  color: var(--fg-on-dark-2);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.reframe__emphasis {
  color: var(--fg-on-dark-1);
}

.reframe__bg-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(202,255,46,0.04) 0%, transparent 65%);
  pointer-events: none;
}

/* ─── PROBLEM SECTION ─── */

/* Section H2 on light surface — Tier A voice moment */
.problem__headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(28px, 3.5vw, 48px);
  letter-spacing: -0.025em;
  color: var(--pitch-text);
  margin-bottom: var(--space-3xl);
  line-height: 1.15;
  max-width: 680px;
}

/* ─── OFFERINGS ─── */

.offerings__header {
  margin-bottom: var(--space-3xl);
}

/* Tier A voice moment — section H2 */
.offerings__headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.025em;
  color: var(--pitch-text);
  margin-bottom: var(--space-md);
}

.offerings__sub {
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--secondary);
}

/* ─── INTELLIGENCE LOOP ─── */

.loop-panel {
  background: var(--bg-inverse);
  border-radius: 0 0 10px 10px;
  padding: 32px 28px 28px;
}

.loop-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}

.loop-panel__title {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim-d);
}

.loop-panel__note {
  font-size: 11px;
  font-weight: 300;
  color: var(--dim-d);
  max-width: 340px;
  text-align: right;
}

.flow-track-wrap {
  position: relative;
  margin-bottom: var(--space-lg);
}

.flow-track {
  height: 2px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  position: relative;
}

.flow-nodes {
  display: flex;
  justify-content: space-between;
  padding-top: var(--space-lg);
  position: relative;
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  flex: 1;
}

.flow-node__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--card-dark);
  border: 1px solid var(--border-dm);
  position: relative;
  margin-top: -22px;
  z-index: 2;
}

.flow-node--active .flow-node__dot {
  background: var(--acid-dim);
  border-color: var(--acid);
  box-shadow: 0 0 10px var(--acid-glow);
}

.flow-node__label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--dim-d);
  text-align: center;
  line-height: 1.4;
}

.flow-node--active .flow-node__label {
  color: var(--muted-d);
}

/* ─── PROOF LAYOUT ─── */

.proof__grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-4xl);
  align-items: start;
}

/* Tier A voice moment — section H2 */
.proof__headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(28px, 3.5vw, 48px);
  letter-spacing: -0.025em;
  color: var(--pitch-text);
  margin-bottom: var(--space-2xl);
}

.proof__body {
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--body-text);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.proof__highlight {
  font-weight: 500;
  color: var(--pitch-text);
}

/* ─── OUTCOMES LAYOUT ─── */

.outcomes__header {
  margin-bottom: var(--space-3xl);
}

/* Tier A voice moment — section H2 */
.outcomes__headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.025em;
  color: var(--pitch-text);
  margin-bottom: var(--space-md);
}

.outcomes__sub {
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--secondary);
  max-width: 520px;
}

/* ─── CLOSING CTA ─── */

.cta-section {
  background: var(--bg-inverse);
  padding: var(--space-5xl) 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-section__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(202,255,46,0.09) 0%, rgba(202,255,46,0.03) 40%, transparent 65%);
  animation: ctaGlowPulse 6s ease-in-out infinite;
  will-change: transform, opacity;
}

.cta-section__dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, black 0%, transparent 80%);
  mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, black 0%, transparent 80%);
}

.cta-section__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

/* Tier A voice moment — closing CTA headline */
.cta-section__headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(36px, 5.5vw, 70px);
  letter-spacing: -0.028em;
  line-height: 1.05;
  color: var(--fg-on-dark-1);
  margin-bottom: var(--space-xl);
}

/* v1.1 Rule 01: Acid on CTA headline em — closing voice moment, valid */
.cta-section__headline .acid {
  color: var(--acid);
  font-style: normal;
}

.cta-section__sub {
  font-size: var(--fs-body);
  font-weight: 300;
  color: var(--fg-on-dark-2);
  margin-bottom: var(--space-3xl);
  line-height: 1.7;
}

.cta-section__note {
  margin-top: var(--space-xl);
  font-size: var(--fs-body-sm);
  font-weight: 300;
  color: var(--dim-d);
}

/* ─── RESPONSIVE ─── */

@media (max-width: 1024px) {
  .nav,
  .section__inner,
  .hero__content,
  .cta-section,
  .footer {
    padding-left: 32px;
    padding-right: 32px;
  }
  .proof__grid {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }
}

@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav__links { display: none; }

  .section__inner,
  .hero__content,
  .cta-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer {
    padding: 40px 20px;
  }
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
  }

  .hero { padding-top: 108px; }
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .problem-cards,
  .offering-cards,
  .outcomes-grid {
    grid-template-columns: 1fr;
  }

  .credibility-bar { grid-template-columns: 1fr; }
  .credibility-item:not(:last-child)::after {
    top: auto;
    bottom: 0;
    left: 10%;
    right: 10%;
    width: auto;
    height: var(--hairline);
  }

  .indicators-grid { grid-template-columns: 1fr; }

  .loop-panel__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
  .loop-panel__note { text-align: left; }
}

@media (max-width: 480px) {
  .section__inner,
  .hero__content {
    padding-left: 16px;
    padding-right: 16px;
  }
}
