/* ================================================================
   FFT Nano — Taste Enhancement Layer
   Loaded after main.css. Styles only — no copy changes.
   Targeting every issue from the TODOS.md visual audit.
   ================================================================ */

/* ── 1. Hero — Editorial dark scrim + parallax from body ──────────
   Body bg = hero-farm-4x4.png, background-attachment: fixed.
   Hero ::before removed — body handles the image.
   Dark directional scrim creates a reading zone on the left while
   the right half of the panorama stays fully vivid.
   Text flips to cream/light so it floats cleanly — no card needed. */

/* Kill the hero's own image layer — body's fixed parallax takes over */
.hero::before {
  background: none;
}

/* Editorial scrim: dark fog from left + bottom vignette.
   Right ~30% of the viewport stays pure landscape. */
.hero::after {
  background:
    linear-gradient(108deg,
      rgba(10, 8, 6, 0.72) 0%,
      rgba(10, 8, 6, 0.50) 38%,
      rgba(10, 8, 6, 0.18) 58%,
      transparent 72%),
    linear-gradient(to top,
      rgba(10, 8, 6, 0.55) 0%,
      transparent 30%);
}

.hero-content {
  background:
    linear-gradient(145deg,
      rgba(28, 23, 19, 0.48) 0%,
      rgba(28, 23, 19, 0.30) 55%,
      rgba(20, 17, 14, 0.20) 100%);
  backdrop-filter: blur(10px) saturate(1.04);
  -webkit-backdrop-filter: blur(10px) saturate(1.04);
  border-radius: 24px;
  padding: clamp(1.45rem, 2.6vw, 2.3rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 18px 44px rgba(10, 8, 6, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  max-width: min(660px, calc(100vw - 3rem));
}

.hero-content::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0.02) 22%,
      rgba(255, 255, 255, 0) 100%);
  opacity: 0.9;
}

/* Flip headline to warm cream — legible over dark scrim */
.hero h1 {
  color: #f5f0e8;
  text-shadow: 0 2px 24px rgba(10, 8, 6, 0.40);
}

/* Keep teal accent, brighten slightly for contrast on dark */
.hero h1 span {
  color: #6dd4cf;
  text-shadow: 0 0 32px rgba(56, 160, 155, 0.50);
}

/* Eyebrow label */
.hero .eyebrow,
.hero [class*="eyebrow"],
.hero [class*="label"] {
  color: rgba(109, 212, 207, 0.90);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(109, 212, 207, 0.22);
  text-shadow: none;
}

/* Subtitle body copy */
.hero-subtitle {
  color: rgba(245, 240, 232, 0.86);
  text-shadow: 0 1px 12px rgba(10, 8, 6, 0.35);
}

.hero .btn-secondary {
  color: rgba(245, 240, 232, 0.92);
  border-color: rgba(245, 240, 232, 0.42);
  background: rgba(255, 255, 255, 0.04);
}

.hero .btn-secondary:hover {
  background: rgba(245, 240, 232, 0.12);
  border-color: rgba(245, 240, 232, 0.6);
  color: #fff;
  box-shadow: 0 10px 24px rgba(10, 8, 6, 0.16);
}

@media (max-width: 768px) {
  .hero::after {
    background:
      linear-gradient(180deg,
        rgba(10, 8, 6, 0.65) 0%,
        rgba(10, 8, 6, 0.45) 50%,
        rgba(10, 8, 6, 0.20) 100%);
  }

  .hero-content {
    padding: 1.2rem 1.15rem 1.35rem;
    border-radius: 20px;
    max-width: 100%;
    background:
      linear-gradient(160deg,
        rgba(24, 20, 17, 0.58) 0%,
        rgba(24, 20, 17, 0.34) 100%);
  }
}

/* ── 1b. Section base — let parallax breathe through ──────────────
   Sections that had solid cream backgrounds get a semi-transparent
   version so the fixed landscape shows through at page scroll depth. */
.demo-video-section {
  background: rgba(240, 236, 227, 0.88);
}

.system-diagram-card {
  width: min(100%, 1120px);
  margin: clamp(1.5rem, 3vw, 2.5rem) auto 0;
  padding: clamp(1.15rem, 2.5vw, 1.8rem);
  border-radius: 28px;
  background:
    linear-gradient(180deg,
      rgba(252, 249, 244, 0.74) 0%,
      rgba(244, 239, 230, 0.60) 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 24px 46px rgba(18, 14, 10, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px) saturate(1.03);
  -webkit-backdrop-filter: blur(12px) saturate(1.03);
}

.system-diagram-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.system-diagram-intro p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #5f544a;
}

.system-diagram-expand {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(29, 25, 21, 0.20);
}

.system-diagram-expand:hover {
  background: rgba(29, 25, 21, 0.88);
  border-color: rgba(29, 25, 21, 0.88);
}

.system-diagram-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
}

.system-diagram-frame::before,
.system-diagram-frame::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2.5rem;
  z-index: 2;
  pointer-events: none;
}

.system-diagram-frame::before {
  left: 0;
  background: linear-gradient(to right, rgba(246, 242, 234, 0.82), transparent);
}

.system-diagram-frame::after {
  right: 0;
  background: linear-gradient(to left, rgba(246, 242, 234, 0.82), transparent);
}

.system-diagram-viewport {
  overflow: auto;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(56, 160, 155, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.system-diagram-viewport:focus-visible {
  outline: 2px solid rgba(56, 160, 155, 0.60);
  outline-offset: 4px;
}

.system-diagram-figure {
  width: max(100%, 840px);
  max-width: 1080px;
  margin: 0 auto;
}

.system-diagram-figure img,
.system-diagram-dialog-body img {
  width: 100%;
  height: auto;
  display: block;
}

.system-diagram-dialog-body img {
  max-width: 1080px;
  margin: 0 auto;
}

.system-diagram-dialog {
  width: min(1120px, calc(100vw - 1.5rem));
  max-height: calc(100vh - 1.5rem);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--dark);
}

.system-diagram-dialog::backdrop {
  background: rgba(10, 8, 6, 0.60);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.system-diagram-dialog-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.4rem);
  border-radius: 26px;
  background:
    linear-gradient(180deg,
      rgba(252, 249, 244, 0.86) 0%,
      rgba(244, 239, 230, 0.78) 100%);
  border: 1px solid rgba(255, 255, 255, 0.30);
  box-shadow:
    0 30px 70px rgba(10, 8, 6, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px) saturate(1.04);
  -webkit-backdrop-filter: blur(18px) saturate(1.04);
}

.system-diagram-dialog-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.system-diagram-dialog-bar h3 {
  margin: 0 0 0.28rem;
  color: var(--dark);
}

.system-diagram-dialog-bar p {
  margin: 0;
  color: #5f544a;
  font-size: 0.92rem;
}

.system-diagram-close {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(29, 25, 21, 0.14);
  background: rgba(255, 255, 255, 0.32);
  color: var(--dark);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.system-diagram-close:hover {
  background: rgba(29, 25, 21, 0.10);
  transform: translateY(-1px);
}

.system-diagram-dialog-body {
  overflow: auto;
  max-height: min(78vh, 760px);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(56, 160, 155, 0.10);
}

body.dialog-open {
  overflow: hidden;
}

/* Trust bar stays nearly opaque — it's a thin strip between hero and content */
.trust-bar {
  background: rgba(245, 242, 235, 0.90);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ── 2. Pricing Headers — Kill the 2019 Gradient ────────────── */
/* Replace teal linear-gradient with flat dark surface + accent rule. */
.pricing-header {
  background: var(--dark);
  border-bottom: 2px solid rgba(56, 160, 155, 0.28);
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

/* Radial highlight — keep the shimmer but rein it in */
.pricing-header::after {
  opacity: 0.4;
}

/* Featured card gets deeper dark + green accent stripe */
.pricing-card.featured .pricing-header {
  background: #0c1e1d;
  border-bottom: 2px solid var(--brand-secondary);
}

/* Badge legibility on dark bg */
.pricing-badge {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
}

.pricing-card.featured .pricing-badge {
  background: var(--brand-secondary);
  border-color: transparent;
  color: #fff;
}

/* ── 3. Trust Bar — Floating Pill Strip ──────────────────────── */
/* Break the full-bleed border-top/bottom bar into a floating capsule. */
.trust-bar {
  margin: 0 clamp(1.5rem, 5vw, 6rem);
  border-radius: var(--radius-pill);
  background: rgba(250, 248, 245, 0.96);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
  padding: 1.1rem clamp(1.5rem, 4vw, 3rem);
  gap: clamp(1.5rem, 4vw, 4.5rem);
  border-top: none;
  border-bottom: none;
}

/* Mono labels — more intentional than plain text */
.trust-item {
  font-family: var(--font-mono);
  font-size: 0.77rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Green accent on icons to differentiate from primary teal */
.trust-item i {
  color: var(--brand-secondary);
  font-size: 0.88rem;
}

/* ── 4. Skills Ticker Pills — Mono + Glow Hover ─────────────── */
.skill-pill {
  font-family: var(--font-mono);
  font-size: 0.77rem;
  letter-spacing: 0.04em;
  background: rgba(56, 160, 155, 0.09);
  color: var(--brand-primary-light);
  border: 1px solid rgba(56, 160, 155, 0.20);
  padding: 0.45rem 0.95rem;
}

.skill-pill:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    0 0 20px rgba(56, 160, 155, 0.42),
    0 4px 14px rgba(56, 160, 155, 0.28);
}

/* ── 5. Contact Cards — Differentiate Visually ───────────────── */
/* Card 1 already has border-left teal (main.css).
   Card 2 gets green left accent + green top gradient. */
.contact-card:nth-child(2) {
  border-left: 3px solid var(--brand-secondary);
}

.contact-card:nth-child(2)::before {
  opacity: 1;
  background: linear-gradient(to right, var(--brand-secondary), var(--brand-primary));
}

/* ── 6. Soft Glass Cards — Non-Hero Surfaces ─────────────────── */
.outcome-card,
.value-card,
.pricing-card,
.contact-card {
  background:
    linear-gradient(180deg,
      rgba(252, 249, 244, 0.74) 0%,
      rgba(244, 239, 230, 0.60) 100%);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow:
    0 24px 46px rgba(18, 14, 10, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px) saturate(1.03);
  -webkit-backdrop-filter: blur(12px) saturate(1.03);
}

.outcome-card:hover,
.value-card:hover,
.pricing-card:hover,
.contact-card:hover {
  box-shadow:
    0 28px 54px rgba(18, 14, 10, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.outcome-icon,
.value-icon {
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(56, 160, 155, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.outcome-card p,
.value-card p,
.contact-card p,
.pricing-body li {
  color: #5f544a;
}

.pricing-card {
  border-color: rgba(255, 255, 255, 0.28);
}

.pricing-body {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 38%);
}

.pricing-body li {
  border-bottom-color: rgba(56, 160, 155, 0.10);
}

.pricing-card.featured {
  border-color: rgba(56, 160, 155, 0.46);
  box-shadow:
    0 14px 44px rgba(56, 160, 155, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* ── 7. Outcome Cards — Top-Border Reveal Instead of Box ─────── */
/* Remove generic equal border box feel — first card gets accent top */
.outcome-card:first-child {
  border-top-width: 2px;
  border-top-color: var(--brand-primary);
}

.outcome-card:hover {
  border-top-color: var(--brand-secondary);
}

/* ── 8. Value Cards — Richer Hover State ────────────────────── */
.value-card:hover {
  transform: translateY(-5px) translateX(2px);
  box-shadow: 0 12px 40px rgba(26, 22, 18, 0.12);
}

/* ── 9. Section Background Variation — Break the Cream Soup ──── */
/* Keep the farm image visible; softness belongs in the cards. */
.demo-video-section    { background: rgba(240, 236, 226, 0.86); }
#what-it-does          { background: transparent; }
#why-fft-nano          { background: transparent; }
#skills-ecosystem      { background: rgba(240, 236, 226, 0.80); }
.pricing-section       { background: transparent; }
.contact-section       { background: transparent; }

/* ── 10. Macro Whitespace — Section Breathing Room ───────────── */
#what-it-does     { padding-top: clamp(5.5rem, 10vw, 10rem); }
#why-fft-nano     { padding-bottom: clamp(5.5rem, 9vw, 9rem); }
#skills-ecosystem { padding-bottom: clamp(5.5rem, 9vw, 9rem); }
#pricing          { padding-top: clamp(5rem, 9vw, 9rem); }

/* ── 11. Demo Video — Deeper Shadow, Tighter Radius ──────────── */
.video-player-wrapper {
  position: relative;
  isolation: isolate;
  padding: clamp(0.9rem, 2vw, 1.1rem);
  border-radius: 24px;
  overflow: hidden;
}

.video-player-wrapper::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid var(--surface-outline);
  background: var(--surface-highlight);
  z-index: 0;
}

.video-player-wrapper video {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  overflow: hidden;
}

/* ── 12. Nav — Tighten scrolled state ───────────────────────── */
.nav {
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

/* ── 13. Footer Link Micro-Motion ───────────────────────────── */
.footer-section a {
  transition: color var(--transition-fast), padding-left var(--transition-base);
}
.footer-section a:hover {
  color: var(--brand-primary-light);
  padding-left: 0.35rem;
}

/* ── 15. Editorial Surface System — Quiet Luxury Glass ───────── */
:root {
  --surface-shell: rgba(247, 243, 236, 0.80);
  --surface-shell-strong: rgba(247, 243, 236, 0.86);
  --surface-hairline: rgba(255, 255, 255, 0.24);
  --surface-outline: rgba(56, 160, 155, 0.14);
  --surface-shadow: 0 22px 44px rgba(24, 19, 14, 0.11);
  --surface-shadow-hover: 0 28px 54px rgba(18, 14, 10, 0.16);
  --surface-blur: blur(12px) saturate(1.02);
  --surface-chip: rgba(255, 255, 255, 0.46);
  --surface-icon: rgba(56, 160, 155, 0.12);
  --surface-icon-border: rgba(56, 160, 155, 0.14);
  --surface-copy: #695d54;
  --surface-title: #1d1915;
  --surface-accent: linear-gradient(90deg, rgba(56, 160, 155, 0.85), rgba(77, 193, 122, 0.70));
  --surface-highlight: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}

#demo-video .section-header,
#what-it-does .section-header,
#why-fft-nano .section-header,
#skills-ecosystem .section-header,
#pricing .section-header,
#contact .section-header {
  width: min(100%, 720px);
  padding: 1.1rem 1.35rem;
  border-radius: 24px;
  position: relative;
  isolation: isolate;
}

.video-player-wrapper,
#demo-video .section-header,
#what-it-does .section-header,
#why-fft-nano .section-header,
#skills-ecosystem .section-header,
#pricing .section-header,
#contact .section-header,
.system-diagram-card,
.outcome-card,
.value-card,
.pricing-card,
.contact-card,
.skills-ticker-wrap {
  position: relative;
  isolation: isolate;
}

.video-player-wrapper,
#demo-video .section-header,
#what-it-does .section-header,
#why-fft-nano .section-header,
#skills-ecosystem .section-header,
#pricing .section-header,
#contact .section-header,
.system-diagram-card,
.outcome-card,
.value-card,
.pricing-card,
.contact-card {
  background: var(--surface-shell);
  border: 1px solid var(--surface-hairline);
  box-shadow: var(--surface-shadow);
  backdrop-filter: var(--surface-blur);
  -webkit-backdrop-filter: var(--surface-blur);
}

.video-player-wrapper::before,
#demo-video .section-header::before,
#what-it-does .section-header::before,
#why-fft-nano .section-header::before,
#skills-ecosystem .section-header::before,
#pricing .section-header::before,
#contact .section-header::before,
.system-diagram-card::before,
.outcome-card::before,
.value-card::before,
.pricing-card::before,
.contact-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid var(--surface-outline);
  background: var(--surface-highlight);
  z-index: 0;
}

.video-player-wrapper > *,
#demo-video .section-header > *,
#what-it-does .section-header > *,
#why-fft-nano .section-header > *,
#skills-ecosystem .section-header > *,
#pricing .section-header > *,
#contact .section-header > *,
.outcome-card > *,
.value-card > *,
.pricing-card > *,
.contact-card > *,
.system-diagram-card > *,
.skills-ticker-wrap > * {
  position: relative;
  z-index: 1;
}

.video-player-wrapper,
#demo-video .section-header,
#what-it-does .section-header,
#why-fft-nano .section-header,
#skills-ecosystem .section-header,
#pricing .section-header,
#contact .section-header,
.outcome-card,
.value-card,
.contact-card,
.pricing-card,
.system-diagram-card {
  border-radius: 24px;
}

.outcome-card:hover,
.value-card:hover,
.pricing-card:hover,
.contact-card:hover {
  box-shadow: var(--surface-shadow-hover);
  transform: translateY(-4px);
}

.outcome-card:first-child,
.pricing-card.featured {
  background: var(--surface-shell-strong);
}

.outcome-card:first-child {
  border-top-width: 1px;
  border-top-color: var(--surface-hairline);
}

.outcome-card::after,
.value-card::after,
.pricing-card::after,
.system-diagram-card::after {
  content: '';
  position: absolute;
  inset: auto 1.25rem 0.95rem;
  height: 2px;
  border-radius: 999px;
  background: var(--surface-accent);
  opacity: 0.92;
  pointer-events: none;
  z-index: 0;
}

.contact-card::before {
  left: 1.25rem;
  right: 1.25rem;
  top: auto;
  bottom: 0.95rem;
  height: 2px;
  opacity: 0.92;
  background: var(--surface-accent);
}

.contact-card:nth-child(2) {
  border-left: 1px solid var(--surface-hairline);
}

.contact-card:nth-child(2)::before {
  opacity: 0.8;
}

.outcome-icon,
.value-icon {
  background: var(--surface-icon);
  border: 1px solid var(--surface-icon-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px) saturate(1.02);
  -webkit-backdrop-filter: blur(8px) saturate(1.02);
}

.outcome-card:hover .outcome-icon,
.value-card:hover .value-icon {
  background: rgba(255, 255, 255, 0.42);
  color: var(--brand-primary);
  transform: translateY(-1px) scale(1.02);
}

.outcome-card h3,
.value-card h3,
.contact-card h3 {
  letter-spacing: -0.025em;
  color: var(--surface-title);
}

.outcome-card p,
.value-card p,
.contact-card p,
.pricing-body li,
.system-diagram-intro p,
.system-diagram-dialog-bar p {
  color: var(--surface-copy);
}

.pricing-card {
  overflow: hidden;
}

.pricing-card::before {
  inset: 1px;
  border-radius: inherit;
}

.pricing-header {
  background: transparent;
  border-bottom: 1px solid rgba(56, 160, 155, 0.08);
  padding-top: 2rem;
  padding-bottom: 1.6rem;
}

.pricing-header::after {
  opacity: 0;
}

.pricing-card.featured {
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(0);
  box-shadow: 0 24px 48px rgba(24, 19, 14, 0.13);
}

.pricing-card.featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 58px rgba(18, 14, 10, 0.18);
}

.pricing-card.featured .pricing-header {
  background: transparent;
  border-bottom-color: rgba(56, 160, 155, 0.12);
}

.pricing-badge {
  top: 1rem;
  right: 1rem;
  background: var(--surface-chip);
  border: 1px solid rgba(56, 160, 155, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(24, 82, 78, 0.92);
}

.pricing-card.featured .pricing-badge {
  background: rgba(255, 255, 255, 0.46);
  color: rgba(24, 82, 78, 0.92);
}

.pricing-price {
  color: var(--brand-primary-dark);
  font-weight: 700;
  text-shadow: 0 1px 14px rgba(255, 255, 255, 0.18);
}

.pricing-name {
  color: var(--brand-primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-body {
  background: transparent;
}

.pricing-body li {
  color: #215f5c;
  font-weight: 600;
  border-bottom-color: rgba(56, 160, 155, 0.08);
}

.pricing-body li::before {
  color: var(--brand-primary-dark);
}

.trust-bar {
  background:
    linear-gradient(180deg,
      rgba(252, 249, 244, 0.82) 0%,
      rgba(246, 241, 233, 0.70) 100%);
  padding-block: 1rem;
  box-shadow:
    0 12px 28px rgba(24, 18, 12, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

.trust-bar::before {
  border-radius: inherit;
}

.trust-item {
  color: #4f443c;
}

.skills-ticker-wrap {
  background:
    linear-gradient(180deg,
      rgba(21, 25, 24, 0.86) 0%,
      rgba(15, 18, 17, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    0 24px 48px rgba(13, 12, 10, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.skill-pill {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.10);
  color: rgba(216, 240, 238, 0.92);
}

.skill-pill:hover {
  background: rgba(56, 160, 155, 0.92);
  border-color: rgba(56, 160, 155, 0.92);
  box-shadow:
    0 12px 24px rgba(18, 14, 10, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.system-diagram-card {
  background: var(--surface-shell);
}

.system-diagram-toolbar {
  margin-bottom: 1.2rem;
}

.system-diagram-frame {
  border-radius: 24px;
}

.system-diagram-viewport {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(56, 160, 155, 0.08);
}

.system-diagram-dialog-shell {
  background:
    linear-gradient(180deg,
      rgba(255, 253, 249, 0.88) 0%,
      rgba(247, 242, 234, 0.78) 100%);
}

@media (max-width: 768px) {
  .trust-bar,
  .video-player-wrapper,
  #demo-video .section-header,
  #what-it-does .section-header,
  #why-fft-nano .section-header,
  #skills-ecosystem .section-header,
  #pricing .section-header,
  #contact .section-header,
  .system-diagram-card,
  .outcome-card,
  .value-card,
  .pricing-card,
  .contact-card {
    backdrop-filter: blur(10px) saturate(1.01);
    -webkit-backdrop-filter: blur(10px) saturate(1.01);
  }

  .pricing-card.featured,
  .pricing-card.featured:hover {
    transform: none;
  }

  #demo-video .section-header,
  #what-it-does .section-header,
  #why-fft-nano .section-header,
  #skills-ecosystem .section-header,
  #pricing .section-header,
  #contact .section-header {
    padding: 0.95rem 1rem;
    border-radius: 20px;
  }

  .video-player-wrapper {
    padding: 0.8rem;
    border-radius: 20px;
  }

  .video-player-wrapper video {
    border-radius: 14px;
  }
}

@media (max-width: 768px) {
  .trust-bar {
    margin: 0 1rem;
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .pricing-card.featured {
    order: -1;
  }

  .outcome-card,
  .value-card,
  .pricing-card,
  .contact-card {
    min-width: 0;
    padding: clamp(1.15rem, 4.8vw, 1.5rem);
  }

  .system-diagram-card {
    padding: 1rem;
    border-radius: 22px;
  }

  .system-diagram-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .system-diagram-expand {
    width: 100%;
    justify-content: center;
  }

  .system-diagram-frame::before,
  .system-diagram-frame::after {
    width: 1.6rem;
  }

  .system-diagram-figure {
    width: 840px;
  }

  .system-diagram-dialog {
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
  }

  .system-diagram-dialog-shell {
    padding: 0.85rem;
    border-radius: 20px;
  }

  .system-diagram-dialog-bar {
    align-items: center;
  }

  .system-diagram-dialog-body {
    max-height: 72vh;
  }
}

@media (max-width: 480px) {
  .hero-content {
    max-width: calc(100vw - 1.25rem);
  }

  .trust-bar {
    margin-inline: 0.75rem;
    padding: 1rem;
  }

  .system-diagram-card,
  .pricing-card,
  .outcome-card,
  .value-card,
  .contact-card {
    border-radius: 20px;
  }

  #demo-video .section-header {
    border-radius: 20px;
  }

  .outcome-card,
  .value-card,
  .pricing-card,
  .contact-card {
    padding: 1.05rem;
  }

  .value-card::after,
  .contact-card::before {
    left: 0.95rem;
    right: 0.95rem;
  }

  .system-diagram-figure {
    width: 700px;
  }
}

/* ── Mobile background fix (canonical CSS-Tricks approach) ──────
   background-attachment:fixed on iOS scales the image to full
   document height (not viewport) — causes extreme zoom on tall
   pages. Fix: kill the body background-image, replace with a
   position:fixed pseudo-element sized to the viewport instead. */
@media (max-width: 900px) {
  body {
    background-image: none;
    background-attachment: scroll;
  }

  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('../images/hero-farm-4x4.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -1;
  }
}

/* ── Reduced Motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .trust-bar,
  .skill-pill,
  .outcome-card,
  .value-card,
  .contact-card {
    transition: none !important;
  }
}
