/* ==========================================
   FrameOps Landing Page — Premium Editorial
   ========================================== */

:root {
  --bg: #0b0e16;
  --bg-2: #111520;
  --bg-3: #171d2a;
  --fg: #ffffff;
  --fg-2: #b8c4d4;
  --fg-3: #8898aa;
  --accent: #d4a853;
  --accent-ocean: #4a8fb8;
  --accent-dim: rgba(212, 168, 83, 0.12);
  --border: rgba(240, 244, 248, 0.07);
  --border-2: rgba(240, 244, 248, 0.03);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Instrument Sans', system-ui, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Navigation */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  background: linear-gradient(to bottom, rgba(11,14,22,0.95) 0%, transparent 100%);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.nav-tagline {
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.03em;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--accent);
  color: #0b0e16;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  letter-spacing: 0.01em;
  transition: opacity 0.2s ease;
}

.nav-cta:hover { opacity: 0.85; }

/* Hero */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 14, 22, 0.15) 0%,
    rgba(11, 14, 22, 0.3) 40%,
    rgba(11, 14, 22, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px 48px;
}

.hero-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-ocean);
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-headline {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 24px;
  font-weight: 400;
  max-width: 760px;
}

.hero-sub {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.5;
  color: rgba(240, 244, 248, 0.85);
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: var(--accent);
  color: #0b0e16;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  letter-spacing: 0.01em;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: transparent;
  color: var(--fg);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(240, 244, 248, 0.25);
  letter-spacing: 0.01em;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-ghost:hover {
  border-color: rgba(240, 244, 248, 0.5);
  background: rgba(240, 244, 248, 0.06);
}

/* Social Proof Bar */
.social-proof {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  overflow: hidden;
}

.sp-trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 20px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--fg-2);
  padding: 0 24px;
  letter-spacing: 0.01em;
}

.trust-badge svg {
  color: var(--accent);
  flex-shrink: 0;
}

.trust-sep {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--border);
  flex-shrink: 0;
}

.sp-divider {
  height: 1px;
  background: var(--border);
  margin: 0 40px 20px;
}

.sp-marquee-wrap {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
  margin-bottom: 20px;
}

.sp-marquee-track {
  display: flex;
  width: max-content;
}

.sp-marquee-inner {
  display: flex;
  align-items: center;
  gap: 0;
  animation: marquee 40s linear infinite;
  will-change: transform;
}

.sp-marquee-track:hover .sp-marquee-inner {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.sp-logo-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-2);
  letter-spacing: 0.01em;
  padding: 0 28px;
  opacity: 0.6;
  white-space: nowrap;
}

.sp-logo-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--fg-3);
  opacity: 0.4;
  flex-shrink: 0;
}

.sp-tagline {
  text-align: center;
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.02em;
  opacity: 0.7;
}

/* Stats Row */
.stats-row {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  padding: 28px 40px;
  gap: 0;
}

.stat-item {
  flex: 1;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { padding-right: 0; }

.stat-number {
  font-family: 'Instrument Serif', serif;
  font-size: 48px;
  color: var(--fg);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.4;
  max-width: 200px;
}

.stat-divider {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
}

/* Problem Section */
.problem-section {
  padding: 72px 0;
}

.problem-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 500;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.problem-headline {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.2;
  color: var(--fg);
  font-weight: 400;
  letter-spacing: -0.02em;
  position: sticky;
  top: 120px;
}

.problem-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.problem-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-2);
}

.problem-item:first-child { border-top: 1px solid var(--border-2); }

.problem-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.problem-item p {
  font-size: 16px;
  color: var(--fg-2);
  line-height: 1.5;
}

/* Features Section */
.features-section {
  padding: 72px 0;
  background: var(--bg-2);
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}

.feature-card {
  background: var(--bg-2);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: background 0.2s ease;
}

.feature-card:hover { background: var(--bg-3); }

.feature-num {
  font-size: 11px;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.feature-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.feature-desc {
  font-size: 15px;
  color: var(--fg-3);
  line-height: 1.5;
}

/* Feature illustrations */
.feature-illus {
  display: block;
  width: 100%;
  max-width: 160px;
  height: 120px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 8px;
  opacity: 0.92;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .feature-illus {
    max-width: 140px;
    height: 100px;
  }
}

/* How Section */
.how-section {
  padding: 72px 0;
}

.how-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 32px;
}

.how-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-2);
}

.how-step:first-child { border-top: 1px solid var(--border-2); }

.step-num {
  font-family: 'Instrument Serif', serif;
  font-size: 48px;
  color: var(--fg-3);
  font-weight: 400;
  line-height: 1;
  padding-top: 4px;
}

.step-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.step-content p {
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.5;
  max-width: 560px;
}

/* Manifesto Section */
.manifesto-section {
  padding: 72px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.manifesto-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.manifesto-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 48px;
  font-weight: 500;
}

.manifesto-quote {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.35;
  color: var(--fg);
  font-style: italic;
  margin-bottom: 36px;
  max-width: 800px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.manifesto-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 680px;
}

.manifesto-body p {
  font-size: 16px;
  color: var(--fg-2);
  line-height: 1.5;
}

/* Closing Section */
.closing-section {
  padding: 72px 0;
}

.closing-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.closing-headline {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(40px, 6vw, 72px);
  color: var(--fg);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.closing-sub {
  font-size: 18px;
  color: var(--fg-2);
  line-height: 1.5;
  max-width: 520px;
  margin-bottom: 40px;
}

.closing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.closing-pill {
  font-size: 13px;
  color: var(--fg-3);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 40px;
  letter-spacing: 0.01em;
}

/* Pricing Section */
.pricing-section {
  padding: 72px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.pricing-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.pricing-header {
  text-align: center;
  margin-bottom: 40px;
}

.pricing-header .section-label {
  margin-bottom: 20px;
}

.pricing-headline {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--fg);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.pricing-sub {
  font-size: 16px;
  color: var(--fg-2);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.5;
}

.pricing-card-wrap {
  display: flex;
  justify-content: center;
}

.pricing-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px;
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pricing-card-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
}

.pricing-card-name {
  font-size: 24px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.pricing-price {
  font-family: 'Instrument Serif', serif;
  font-size: 56px;
  color: var(--fg);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing-price-label {
  font-size: 15px;
  color: var(--fg-3);
}

.pricing-desc {
  font-size: 15px;
  color: var(--fg-3);
  line-height: 1.5;
  margin-bottom: 20px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.pricing-feature {
  font-size: 15px;
  color: var(--fg-2);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pricing-feature-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-cta {
  display: flex;
  justify-content: center;
}

/* Testimonials Section */
.testimonials-section {
  padding: 72px 0;
}

.testimonials-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 28px;
}

.testimonials-header .section-label {
  margin-bottom: 20px;
}

.testimonials-headline {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--fg);
  font-weight: 400;
  letter-spacing: -0.02em;
}

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

.testimonial-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
}

.testimonial-quote {
  font-size: 16px;
  color: var(--fg-2);
  line-height: 1.5;
  font-style: italic;
  flex: 1;
}

.testimonial-quote::before { content: '\u201C'; }
.testimonial-quote::after  { content: '\u201D'; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--border-2);
  padding-top: 24px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.testimonial-role {
  font-size: 13px;
  color: var(--fg-3);
}

/* ── Footer ──────────────────────────────────────── */
.site-footer {
  background: #0d1e33;
  border-top: 1px solid rgba(240, 244, 248, 0.06);
}

.footer-top {
  padding: 64px 0 48px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-brand-col {
  gap: 0;
}

.footer-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  color: var(--fg);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.4;
  margin-bottom: 24px;
}

.footer-newsletter {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.footer-email-input {
  flex: 1;
  min-width: 0;
  padding: 9px 14px;
  background: rgba(240, 244, 248, 0.06);
  border: 1px solid rgba(240, 244, 248, 0.12);
  border-radius: 6px;
  color: var(--fg);
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.footer-email-input::placeholder {
  color: var(--fg-3);
  opacity: 0.6;
}

.footer-email-input:focus {
  outline: none;
  border-color: rgba(240, 244, 248, 0.3);
}

.footer-subscribe-btn {
  padding: 9px 16px;
  background: var(--accent);
  color: #0b0e16;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.footer-subscribe-btn:hover {
  opacity: 0.85;
}

.newsletter-hint {
  font-size: 12px;
  color: var(--fg-3);
  opacity: 0.7;
}

.footer-col-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 16px;
  font-family: 'Instrument Sans', system-ui, sans-serif;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a {
  font-size: 14px;
  color: #8899aa;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links li a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(240, 244, 248, 0.06);
  color: #8899aa;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.social-icon:hover {
  background: rgba(240, 244, 248, 0.12);
  color: var(--fg);
}

.footer-bottom {
  border-top: 1px solid rgba(240, 244, 248, 0.06);
  padding: 20px 0;
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copyright {
  font-size: 13px;
  color: var(--fg-3);
  opacity: 0.6;
}

.footer-made {
  font-size: 13px;
  color: var(--fg-3);
  opacity: 0.6;
}

/* ── 900px breakpoint ────────────────────────────── */
@media (max-width: 900px) {
  .sp-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .problem-grid { grid-template-columns: 1fr; gap: 40px; }
  .problem-headline { position: static; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-row { flex-direction: column; gap: 32px; padding: 40px 40px; }
  .stat-divider { display: none; }
  .stat-item { padding: 0; }
  .how-step { grid-template-columns: 48px 1fr; gap: 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand-col { grid-column: 1 / -1; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .pricing-card { padding: 40px 28px; }
}

/* ── 600px / 375px / 390px breakpoints ─────────── */
@media (max-width: 600px) {
  .hero-content, .problem-inner, .features-inner, .how-inner,
  .manifesto-inner, .closing-inner, .nav-inner, .footer-inner, .sp-inner,
  .pricing-inner, .testimonials-inner {
    padding: 0 24px;
  }
  .hero { min-height: 540px; }
  .hero-content { padding-bottom: 56px; }
  .hero-headline { font-size: 36px; }
  .hero-sub { font-size: 16px; }
  .site-nav { padding: 16px 0; }
  .nav-inner { padding: 0 24px; }
  .nav-tagline { display: none; }
  .feature-card { padding: 32px 24px; }
  .sp-logo-placeholder { font-size: 12px; padding: 0 14px; }
  .testimonials-grid { gap: 16px; }
  .testimonial-card { padding: 28px 24px; }
  .pricing-card-wrap { padding: 0 24px; box-sizing: border-box; }
  .pricing-headline, .testimonials-headline { font-size: 28px; }
  .pricing-price { font-size: 44px; }

  /* CTA full-width on mobile */
  .hero-cta-group,
  .closing-section .hero-cta-group {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }
  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-ghost,
  .closing-section .hero-cta-group .btn-primary,
  .closing-section .hero-cta-group .btn-ghost {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    min-height: 52px;
    box-sizing: border-box;
  }
  .pricing-cta .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 16px;
    min-height: 52px;
    box-sizing: border-box;
  }

  /* Pricing card full-width */
  .pricing-card-wrap { margin: 0; }
  .pricing-card { max-width: 100%; }

  /* Nav CTA — meet 44×44px touch target */
  .nav-cta {
    padding: 12px 20px;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Stats row — align with 40px horizontal padding like other sections */
  .stats-row { padding: 40px 40px; }

  /* How step on mobile — tighter grid */
  .how-step { grid-template-columns: 40px 1fr; gap: 20px; }
  .step-num { font-size: 36px; }

  /* Problem section — reduce top padding on mobile */
  .problem-section { padding: 56px 0; }

  /* Closing section CTA row — same treatment as hero */
  .closing-section { padding: 56px 0; }

  /* Footer — grid collapses to single column */
  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 0 24px; }
  .footer-brand-col { grid-column: auto; }
  .footer-bottom-inner { padding: 0 24px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer-newsletter { flex-direction: column; }
  .footer-subscribe-btn { width: 100%; justify-content: center; }

  /* Social proof */
  .sp-marquee-wrap { mask-image: none; -webkit-mask-image: none; }

  /* Manifesto — reduce padding */
  .manifesto-section { padding: 56px 0; }

  /* How section — reduce padding */
  .how-section { padding: 56px 0; }

  /* Features section — reduce padding */
  .features-section { padding: 56px 0; }
}

/* ── 390px (iPhone 14) ──────────────────────────── */
@media (max-width: 400px) {
  .hero-headline { font-size: 32px; }
  .hero-eyebrow { font-size: 11px; }
  .closing-headline { font-size: 36px; }
  .pricing-price { font-size: 40px; }
  .stat-number { font-size: 40px; }
}

/* ── prefers-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;
  }
}

/* ──────────────────────────────────────────────────────────────
   3D DEPTH LAYERS — Parallax background elements
   ────────────────────────────────────────────────────────────── */
.depth-far,
.depth-mid,
.depth-near {
  will-change: transform;
  backface-visibility: hidden;
}

/* Far: slowest — ambient grid lines, star field, gradient blobs */
.depth-far {
  /* inherits base positioning from parent */
}

/* Mid: mid-speed — floating shapes, decorative orbs */
.depth-mid {
  /* inherits base positioning from parent */
}

/* Near: fastest — closest foreground accents */
.depth-near {
  /* inherits base positioning from parent */
}

/* ──────────────────────────────────────────────────────────────
   SCROLL-REVEAL SYSTEM
   All sections animate in on scroll via IntersectionObserver.
   reveal-pending → reveal-active (CSS handles the transition).
   ────────────────────────────────────────────────────────────── */
[data-reveal] {
  transition: opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Fade-up default state */
.reveal-pending {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
}

/* Revealed */
.reveal-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Slide-from-left variant (add data-reveal="slide-left" to section) */
[data-reveal="slide-left"] {
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-reveal="slide-left"].reveal-pending {
  opacity: 0;
  transform: translate3d(-40px, 20px, 0);
}
[data-reveal="slide-left"].reveal-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Scale-in variant (for feature cards, pricing, etc.) */
[data-reveal="scale-in"] {
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
[data-reveal="scale-in"].reveal-pending {
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(0.96);
}
[data-reveal="scale-in"].reveal-active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Staggered child elements */
[data-reveal-child] {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-child-active {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
}

/* ──────────────────────────────────────────────────────────────
   SECTION BLEND OVERLAPS — soft gradient joins between sections
   ────────────────────────────────────────────────────────────── */
.section-blend-down {
  position: relative;
}
.section-blend-down::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--bg) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.section-blend-up {
  position: relative;
}
.section-blend-up::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(
    to top,
    transparent 0%,
    inherit 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* ──────────────────────────────────────────────────────────────
   FEATURE CARD 3D FLOAT — GPU-accelerated depth on scroll
   ────────────────────────────────────────────────────────────── */
.feature-card {
  will-change: transform;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: transform 0.15s linear, box-shadow 0.25s ease, background 0.2s ease;
}

/* Hover lift — separate from scroll depth */
.feature-card:hover {
  transform: translate3d(0, -4px, 12px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 168, 83, 0.15);
}

/* ──────────────────────────────────────────────────────────────
   AMBIENT FLOAT — keyframe animations for decorative elements
   ────────────────────────────────────────────────────────────── */
@keyframes ambient-float {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  33% {
    transform: translate3d(6px, -10px, 0) rotate(0.8deg);
  }
  66% {
    transform: translate3d(-4px, -5px, 0) rotate(-0.5deg);
  }
}

[data-float] {
  animation: ambient-float linear infinite;
  will-change: transform;
}

[data-float-fast] {
  animation: ambient-float 2s ease-in-out infinite;
}

/* ──────────────────────────────────────────────────────────────
   HERO PARALLAX — content tilt states
   ────────────────────────────────────────────────────────────── */
.hero-content {
  will-change: transform, opacity;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

/* ──────────────────────────────────────────────────────────────
   NAV SCROLL STATE — deeper shadow when scrolled
   ────────────────────────────────────────────────────────────── */
.site-nav {
  will-change: background;
  transition: background 0.3s ease, padding 0.3s ease, backdrop-filter 0.3s ease;
}

.site-nav.nav-scrolled {
  background: rgba(11, 14, 22, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

/* ──────────────────────────────────────────────────────────────
   SECTION ENTRY — subtle glow pulse when entering viewport
   ────────────────────────────────────────────────────────────── */
@keyframes section-glow-pulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 168, 83, 0); }
  50% { box-shadow: 0 0 40px -10px rgba(212, 168, 83, 0.08); }
  100% { box-shadow: 0 0 0 0 rgba(212, 168, 83, 0); }
}

[data-reveal].reveal-active.features-section {
  animation: section-glow-pulse 1.2s ease forwards;
}

/* ──────────────────────────────────────────────────────────────
   TESTIMONIAL CARD ENTRANCE — staggered slide-up
   ────────────────────────────────────────────────────────────── */
.testimonial-card {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

.testimonial-card.card-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Hover on revealed cards */
.testimonial-card.card-revealed:hover {
  border-color: rgba(212, 168, 83, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ──────────────────────────────────────────────────────────────
   PRICING CARD — scale-in entrance with slight rotate
   ────────────────────────────────────────────────────────────── */
.pricing-card {
  opacity: 0;
  transform: translate3d(0, 30px, 0) scale(0.97);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.pricing-card.card-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* ──────────────────────────────────────────────────────────────
   CTA BUTTON — depth hover effect
   ────────────────────────────────────────────────────────────── */
.btn-primary {
  box-shadow: 0 0 0 0 rgba(212, 168, 83, 0);
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translate3d(0, -2px, 0);
  box-shadow: 0 8px 24px rgba(212, 168, 83, 0.35);
}

.btn-primary:active {
  transform: translate3d(0, 0, 0);
  box-shadow: 0 4px 12px rgba(212, 168, 83, 0.2);
}

/* ──────────────────────────────────────────────────────────────
   STEP / HOW SECTION — entrance animation
   ────────────────────────────────────────────────────────────── */
.how-step {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.how-step.step-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ──────────────────────────────────────────────────────────────
   STAT NUMBERS — count-up effect base state
   ────────────────────────────────────────────────────────────── */
.stat-number {
  will-change: transform;
}

/* ──────────────────────────────────────────────────────────────
   DECORATIVE BACKGROUND GRID — far depth layer
   ────────────────────────────────────────────────────────────── */
.bg-grid-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(240, 244, 248, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 244, 248, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: translate3d(0, 0, -1px);
  will-change: transform;
}

/* ──────────────────────────────────────────────────────────────
   GLOW ORBS — mid-depth ambient shapes
   ────────────────────────────────────────────────────────────── */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.glow-orb--ocean {
  background: radial-gradient(ellipse at center, rgba(30, 96, 145, 0.2) 0%, transparent 70%);
}

.glow-orb--gold {
  background: radial-gradient(ellipse at center, rgba(212, 168, 83, 0.12) 0%, transparent 70%);
}

/* ──────────────────────────────────────────────────────────────
   SECTION DIVIDER GLOW — soft color blend between sections
   ────────────────────────────────────────────────────────────── */
.section-glow-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 168, 83, 0.15) 30%,
    rgba(212, 168, 83, 0.15) 70%,
    transparent 100%
  );
  margin: 0 auto;
  max-width: 400px;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.section-glow-divider.visible {
  opacity: 1;
}

/* ──────────────────────────────────────────────────────────────
   MOBILE — reduce parallax intensity
   ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-content {
    transform: none !important;
    opacity: 1 !important;
  }

  .depth-far  { transform: translate3d(0, 0, 0) !important; }
  .depth-mid  { transform: translate3d(0, 0, 0) !important; }
  .depth-near { transform: translate3d(0, 0, 0) !important; }

  .feature-card[data-depth] {
    transform: none !important;
  }

  /* Lighter reveal on mobile */
  .reveal-pending {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }
}

/* ──────────────────────────────────────────────────────────────
   PREFERS-REDUCED-MOTION — disable all animations
   ────────────────────────────────────────────────────────────── */
@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;
  }

  [data-reveal],
  [data-reveal="slide-left"],
  [data-reveal="scale-in"] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  [data-reveal-child] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .testimonial-card,
  .pricing-card,
  .how-step {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── focus states for accessibility ─────────────── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}