/* ============================================================
   FLIGHT MENTOR — premium scroll-driven website
   ============================================================ */

:root {
  --bg-dark:     #07090f;
  --bg-darker:   #04060b;
  --bg-light:    #f4f1ea;
  --text-on-dark:#efece4;
  --text-soft:   #b4b8c3;
  --text-mute:   #868ea1;
  --line:        rgba(239, 236, 228, 0.14);
  --line-soft:   rgba(239, 236, 228, 0.06);
  --accent:      #5a8bff;
  --accent-deep: #2b54e0;
  --accent-warm: #ff9a3c;
  --serif:       'Inter', system-ui, -apple-system, sans-serif;
  --display:     'Inter', system-ui, -apple-system, sans-serif;
  --body:        'Inter', system-ui, -apple-system, sans-serif;
}

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

html, body {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  font-family: var(--body);
  font-weight: 400;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body { min-height: 100vh; }

a { color: inherit; text-decoration: none; }
li { list-style: none; }

::selection { background: var(--accent); color: #fff; }

/* Keyboard focus visibility */
a:focus-visible,
button:focus-visible,
.cta-button:focus-visible,
.demo-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.italic { font-family: var(--serif); font-style: normal; font-weight: 700; letter-spacing: -0.025em; }

/* ============================================================
   LOADER
   ============================================================ */
#loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg-darker);
  display: grid; place-items: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#loader.is-done { opacity: 0; visibility: hidden; }

.loader-inner {
  width: min(560px, 80vw);
  display: flex; flex-direction: column; gap: 28px;
}

.loader-brand {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-on-dark);
}
.loader-logo { width: 28px; height: auto; fill: var(--accent); }
.loader-title { font-feature-settings: "ss01"; }

.loader-track {
  width: 100%; height: 1px;
  background: var(--line-soft);
  overflow: hidden;
}
#loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  transition: width 0.25s ease;
}

.loader-meta {
  display: flex; justify-content: space-between;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
}
#loader-percent { color: var(--accent); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 32px;
  z-index: 100;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  mix-blend-mode: difference;
  color: #ffffff;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.brand-mark { width: 22px; height: auto; fill: currentColor; }
.brand-name { font-size: 13px; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  font-weight: 500;
  opacity: 0.95;
  transition: opacity 0.3s ease;
  position: relative;
}
.site-nav a:hover { opacity: 1; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: currentColor; transform: scaleX(0);
  transform-origin: left; transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
}
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a.nav-cta {
  padding: 8px 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 1;
}
.site-nav a.nav-cta::after { display: none; }
.site-nav a.nav-cta { transition: opacity 0.3s ease, transform 0.3s ease; }
.site-nav a.nav-cta:hover { transform: translateY(-1px); }

.header-meta {
  display: flex; align-items: center; gap: 8px;
  opacity: 0.92;
  font-size: 11px;
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-warm);
  box-shadow: 0 0 0 0 var(--accent-warm);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,154,60,0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(255,154,60,0); }
}

/* ============================================================
   HERO (100vh standalone)
   ============================================================ */
.hero-standalone {
  position: relative;
  height: 100vh; width: 100%;
  background: var(--bg-dark);
  z-index: 5;
  overflow: hidden;
  display: flex; flex-direction: column;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse at 50% 45%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 30%, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* Large brand mark behind heading */
.hero-bg-logo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.hero-bg-logo svg {
  width: clamp(520px, 105vh, 1440px);
  height: auto;
  fill: var(--accent);
  opacity: 0.12;
  transform-origin: center;
  animation: heroLogoBreath 9s ease-in-out infinite;
  filter: drop-shadow(0 0 120px rgba(90, 139, 255, 0.32));
}
@keyframes heroLogoBreath {
  0%, 100% { transform: scale(1) translateY(0); opacity: 0.12; }
  50%      { transform: scale(1.02) translateY(-4px); opacity: 0.16; }
}

.hero-inner {
  position: relative; z-index: 3;
  flex: 1;
  padding: 110px 5vw 70px;
  display: flex; flex-direction: column;
  justify-content: space-between;
}

.hero-top {
  display: flex; justify-content: space-between;
  align-items: flex-start;
}

.hero-heading {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(3.4rem, 10.5vw, 11.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-transform: none;
  margin: 0 0 0 -0.04em;
}
.hero-heading .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.hero-heading .word {
  display: inline-block;
  will-change: transform, opacity;
}
.hero-heading .italic {
  text-transform: none;
  font-size: 1em;
  letter-spacing: -0.05em;
  font-weight: 700;
  font-style: normal;
  color: var(--accent);
  font-family: var(--serif);
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  max-width: 100%;
}
.hero-tagline {
  font-size: clamp(0.95rem, 1.05vw, 1.15rem);
  max-width: 46ch;
  line-height: 1.6;
  color: var(--text-soft);
}
.hero-tagline strong {
  color: var(--text-on-dark);
  font-weight: 500;
}
.hero-cta-row {
  display: flex; align-items: center;
}
.hero-stamp {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
}

/* SECTION LABELS */
.section-label {
  display: inline-block;
  font-family: var(--display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  padding-left: 14px;
  position: relative;
}
.section-label::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 8px; height: 1px; background: var(--accent);
  transform: translateY(-50%);
}
.section-label.muted { color: var(--text-mute); }
.section-label.muted::before { background: var(--text-mute); }
.section-label.centered {
  padding: 0;
  margin: 0 0 20px;
}
.section-label.centered::before { display: none; }

/* SCROLL INDICATOR */
.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-mute);
  z-index: 3;
}
.scroll-indicator svg {
  width: 14px; height: 14px;
  animation: bob 2s ease-in-out infinite;
  color: var(--accent);
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ============================================================
   CANVAS LAYER
   ============================================================ */
.canvas-wrap {
  position: fixed; inset: 0;
  z-index: 2;
  clip-path: circle(0% at 50% 50%);
  -webkit-clip-path: circle(0% at 50% 50%);
  will-change: clip-path;
}
#canvas { display: block; width: 100%; height: 100%; }

.canvas-vignette {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 60% at center, transparent 30%, rgba(7,9,15,0.75) 100%),
    linear-gradient(to bottom, rgba(7,9,15,0.55) 0%, transparent 20%, transparent 80%, rgba(7,9,15,0.55) 100%);
  pointer-events: none;
}

/* ============================================================
   DARK OVERLAY (for stats section)
   ============================================================ */
#dark-overlay {
  position: fixed; inset: 0;
  background: rgba(7, 9, 15, 0.92);
  z-index: 6;
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-wrap {
  position: fixed;
  left: -10vw; right: -10vw;
  width: 140vw;
  z-index: 7;
  pointer-events: none;
  opacity: 0;
  will-change: opacity, transform;
}
.marquee-top { top: 32%; }
.marquee-bottom { bottom: 18%; }

.marquee-text {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(8rem, 14vw, 17rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--text-on-dark);
  text-transform: none;
  mix-blend-mode: difference;
  will-change: transform;
}
.marquee-dot {
  color: var(--accent);
  font-size: 0.6em;
  vertical-align: middle;
  padding: 0 0.2em;
}
.marquee-dot.italic {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 700;
  color: var(--accent-warm);
  font-size: 0.85em;
}

/* ============================================================
   SCROLL CONTAINER + SECTIONS
   ============================================================ */
#scroll-container {
  position: relative;
  width: 100%;
  height: 1000vh;
  z-index: 8;
}

.scroll-section {
  position: absolute;
  left: 0; right: 0;
  height: auto;
  z-index: 8;
  will-change: transform, opacity;
  opacity: 0;
}

/* SIDE-ALIGNED text zones */
.align-left {
  padding-left: 5vw;
  padding-right: 55vw;
}
.align-right {
  padding-left: 55vw;
  padding-right: 5vw;
  text-align: left;
}
.align-left .section-inner,
.align-right .section-inner { max-width: 40vw; position: relative; }

/* Scrim behind side-aligned text so the canvas stays readable beneath */
.align-left::before,
.align-right::before {
  content: "";
  position: absolute;
  top: -120px; bottom: -120px;
  width: 55vw;
  background: linear-gradient(90deg,
    rgba(7,9,15,0.95) 0%,
    rgba(7,9,15,0.88) 35%,
    rgba(7,9,15,0.55) 70%,
    rgba(7,9,15,0) 100%);
  z-index: -1;
  pointer-events: none;
}
.align-left::before { left: 0; }
.align-right::before {
  right: 0;
  background: linear-gradient(270deg,
    rgba(7,9,15,0.95) 0%,
    rgba(7,9,15,0.88) 35%,
    rgba(7,9,15,0.55) 70%,
    rgba(7,9,15,0) 100%);
}

/* SECTION CONTENT — text-only sections */
.section-heading {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.4rem, 4.4vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  color: var(--text-on-dark);
  overflow-wrap: break-word;
}
.section-heading.small {
  font-size: clamp(2rem, 3.2vw, 3.6rem);
}
.section-heading .italic {
  font-size: 1.05em;
  color: var(--accent);
  display: inline;
  letter-spacing: -0.025em;
}

.section-body {
  font-size: clamp(1rem, 1.08vw, 1.18rem);
  line-height: 1.6;
  color: #d6d9e0;
  margin-bottom: 22px;
  max-width: 38ch;
}
.section-note {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #b0b5c1;
  border-left: 1px solid rgba(90,139,255,0.45);
  padding-left: 16px;
  max-width: 36ch;
}
.section-note em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1em;
  letter-spacing: -0.015em;
}

/* PILLARS */
.pillars-inner { max-width: 42vw !important; }
.pillars-list {
  display: flex; flex-direction: column;
  gap: 20px;
  margin-top: 18px;
}
.pillar {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  align-items: start;
}
.pillar-num {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.pillar-body h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.pillar-body p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 42ch;
}

/* STATS */
.section-stats {
  padding: 0 5vw;
}
.stats-inner {
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
}
.stats-headline {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2rem, 3.4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 80px;
}
.stats-headline .italic { color: var(--accent); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: left;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.stat {
  display: flex; flex-direction: column;
  gap: 8px;
  padding-right: 24px;
  position: relative;
}
.stat::before {
  content: ""; position: absolute; left: 0; top: -40px;
  height: 1px; width: 24px; background: var(--accent);
}
.stat-number {
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(3.6rem, 7vw, 7.2rem);
  line-height: 1;
  letter-spacing: -0.055em;
  color: var(--text-on-dark);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* SCENARIOS */
.scenarios-inner { max-width: 42vw !important; }
.scenario-list {
  display: flex; flex-direction: column;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}
.scenario {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s cubic-bezier(.2,.7,.2,1);
}
.scenario:hover { padding-left: 10px; }
.scen-num {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.scen-name {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.2rem, 1.6vw, 1.75rem);
  letter-spacing: -0.025em;
  color: var(--text-on-dark);
}
.scen-meta {
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* B2B TIERS */
.tier-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
.tier {
  display: flex; flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(239, 236, 228, 0.02);
}
.tier.accent {
  border-color: rgba(90, 139, 255, 0.45);
  background: rgba(90, 139, 255, 0.06);
}
.tier-label {
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.tier.accent .tier-label { color: var(--accent-warm); }
.tier-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: -0.015em;
  color: var(--text-on-dark);
}
.tier-note {
  font-size: 0.85rem;
  color: var(--text-mute);
}

/* B2C LIST */
.b2c-list {
  display: flex; flex-direction: column;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
.b2c-list li {
  display: flex; align-items: baseline; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1rem, 1.25vw, 1.4rem);
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
}
.b2c-list li span {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  min-width: 28px;
}

/* CTA */
.section-cta {
  padding: 0 5vw;
  text-align: center;
  position: relative;
}
.section-cta::before {
  content: "";
  position: absolute;
  inset: -200px -10vw -200px;
  background: radial-gradient(ellipse 60% 55% at 50% 50%,
    rgba(7,9,15,0.92) 0%,
    rgba(7,9,15,0.85) 35%,
    rgba(7,9,15,0.55) 65%,
    rgba(7,9,15,0) 100%);
  z-index: -1;
  pointer-events: none;
}
.cta-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  position: relative;
}
.cta-heading {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.6rem, 5vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}
.cta-heading .italic { color: var(--accent); }
.cta-sub {
  font-size: clamp(0.95rem, 1.05vw, 1.15rem);
  color: var(--text-soft);
  margin-bottom: 14px;
  max-width: 44ch;
}
.cta-row {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  margin-top: 12px;
}
.cta-button {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 24px 10px 12px;
  min-height: 44px;
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1),
              background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
  position: relative;
}
.cta-button:hover {
  transform: translateY(-2px);
  background: var(--accent-deep);
}
.cta-button.ghost {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(239, 236, 228, 0.22);
}
.cta-button.ghost:hover {
  background: var(--text-on-dark);
  color: var(--bg-dark);
  border-color: var(--text-on-dark);
}
.cta-button-icon {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
  transition: background 0.35s ease;
}
.cta-button.ghost .cta-button-icon {
  background: rgba(239, 236, 228, 0.08);
}
.cta-button.ghost:hover .cta-button-icon {
  background: rgba(7, 9, 15, 0.1);
}
.cta-button-icon svg {
  width: 15px; height: 15px;
  display: block;
}
.cta-button-label {
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.cta-button-arrow {
  font-size: 18px;
  opacity: 0.78;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), opacity 0.3s ease;
  margin-left: 4px;
}
.cta-button:hover .cta-button-arrow {
  transform: translateX(4px);
  opacity: 1;
}
.cta-foot {
  margin-top: 32px;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 900px) {
  .site-header { padding: 18px 20px; gap: 14px; }
  .site-nav { display: none; }
  .header-meta { display: none; }

  .hero-inner { padding: 100px 6vw 60px; }
  .hero-heading { font-size: clamp(2.8rem, 14vw, 6rem); }
  .hero-bottom { grid-template-columns: 1fr; gap: 20px; }
  .hero-cta-row { justify-content: flex-start; }
  .hero-grid { background-size: 40px 40px; }

  #scroll-container { height: 700vh; }

  .align-left, .align-right {
    padding-left: 6vw;
    padding-right: 6vw;
    background: rgba(7, 9, 15, 0.78);
  }
  .align-left .section-inner,
  .align-right .section-inner,
  .pillars-inner,
  .scenarios-inner { max-width: 100% !important; }

  .section-heading { font-size: clamp(2rem, 8vw, 3rem); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .stat::before { display: none; }
  .stats-grid { border-top: none; padding-top: 0; }

  .marquee-text { font-size: clamp(4rem, 18vw, 8rem); }

  .scenario { grid-template-columns: 40px 1fr; gap: 10px; }
  .scen-meta { grid-column: 2; justify-self: start; margin-top: 4px; }

  .tier-row { grid-template-columns: 1fr; }
  .cta-button { padding: 14px 22px; font-size: 13px; }
}

/* ============================================================
   CONVENTIONAL B2B DEEP-DIVE (after the cinematic scroll)
   Sits above the fixed canvas with a solid background.
   ============================================================ */
.page-rest {
  position: relative;
  z-index: 10;
  background: var(--bg-dark);
  overflow: hidden;
}
/* soft seam between cinematic and conventional content */
.page-rest::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: clamp(140px, 18vh, 300px);
  background: linear-gradient(to bottom, var(--bg-darker), transparent);
  pointer-events: none;
  z-index: 0;
}

.b2b-section {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(72px, 11vh, 150px) 6vw;
  border-top: 1px solid var(--line-soft);
}
.b2b-section:first-child { border-top: 0; }

.b2b-heading {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.038em;
  color: var(--text-on-dark);
  overflow-wrap: break-word;
}
.b2b-heading .italic { color: var(--accent); }
.b2b-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.45rem);
  line-height: 1.5;
  color: var(--text-on-dark);
  max-width: 60ch;
  letter-spacing: -0.01em;
}
.b2b-p {
  font-size: clamp(0.98rem, 1.05vw, 1.1rem);
  line-height: 1.72;
  color: var(--text-soft);
  max-width: 64ch;
}
.b2b-p + .b2b-p { margin-top: 18px; }

/* INTRO — two column */
.b2b-intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
  margin-top: 30px;
}
.b2b-intro-grid .b2b-heading { margin-bottom: 0; }
.b2b-intro-copy { display: flex; flex-direction: column; gap: 18px; }

/* SOLVE — hairline card grid */
.solve-head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 18px;
  margin-bottom: 44px;
}
.solve-head .b2b-heading { max-width: 18ch; }
.solve-intro {
  font-size: clamp(0.98rem, 1.05vw, 1.12rem);
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 42ch;
}
.solve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.solve-card {
  background: var(--bg-dark);
  padding: clamp(26px, 2.6vw, 42px);
  display: flex; flex-direction: column; gap: 12px;
  transition: background 0.4s ease;
  min-height: 220px;
}
.solve-card:hover { background: rgba(90, 139, 255, 0.05); }
.solve-num {
  font-family: var(--display);
  font-size: 12px; letter-spacing: 0.2em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.solve-card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.18rem, 1.5vw, 1.55rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-on-dark);
}
.solve-card p {
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin-top: auto;
}

/* AUDIENCE triad */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.aud-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 2.6vw, 38px);
  background: rgba(239, 236, 228, 0.02);
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color 0.4s ease, transform 0.4s ease;
}
.aud-card:hover { border-color: rgba(90,139,255,0.4); transform: translateY(-3px); }
.aud-who {
  font-family: var(--display);
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
}
.aud-card p {
  font-size: 1rem; line-height: 1.6; color: var(--text-soft);
}

/* HOW IT WORKS */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 3.5vw, 60px);
  margin-top: 44px;
  align-items: start;
}
.how-col-title {
  font-family: var(--display);
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 18px;
}
.feature-list { display: flex; flex-direction: column; }
.feature {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.feature:first-child { border-top: 0; }
.feature-name {
  font-family: var(--display);
  font-weight: 500; font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
}
.feature-desc { font-size: 0.93rem; line-height: 1.55; color: var(--text-soft); }

/* hardware tiers (richer) */
.hw-tiers { display: flex; flex-direction: column; gap: 12px; }
.hw-tier {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 22px 20px;
  background: rgba(239, 236, 228, 0.02);
}
.hw-tier.accent {
  border-color: rgba(90, 139, 255, 0.4);
  background: rgba(90, 139, 255, 0.06);
}
.hw-tier-top { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.hw-tier-label {
  font-family: var(--display);
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent);
}
.hw-tier.accent .hw-tier-label { color: var(--accent-warm); }
.hw-tier-name {
  font-family: var(--display);
  font-weight: 500; font-size: 1.2rem; letter-spacing: -0.015em;
  color: var(--text-on-dark);
}
.hw-tier-note { font-size: 0.88rem; color: var(--text-mute); margin-bottom: 14px; }
.hw-points { display: flex; flex-direction: column; gap: 8px; }
.hw-points li {
  display: grid; grid-template-columns: 16px 1fr; gap: 10px;
  font-size: 0.92rem; color: var(--text-soft); line-height: 1.45;
}
.hw-points li::before {
  content: ""; width: 6px; height: 6px; margin-top: 7px;
  border-radius: 50%; background: var(--accent);
}

/* the kit (walizka) */
.kit {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
}
.kit-visual {
  position: relative;
  border-right: 1px solid var(--line);
  min-height: 190px;
  overflow: hidden;
}
.kit-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kit-visual::after {
  content: "READY-TO-USE KIT";
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 26px 0 12px; text-align: center;
  font-family: var(--display); font-size: 9px; letter-spacing: 0.28em;
  color: var(--text-soft);
  background: linear-gradient(to top, rgba(4,6,11,0.82), transparent);
  pointer-events: none;
}
.kit-body { padding: 24px 26px; display: flex; flex-direction: column; gap: 12px; }
.kit-body h4 {
  font-family: var(--display); font-weight: 500; font-size: 1.15rem;
  letter-spacing: -0.015em; color: var(--text-on-dark);
}
.kit-body p { font-size: 0.95rem; line-height: 1.6; color: var(--text-soft); }
.kit-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.kit-points span {
  font-family: var(--display);
  font-size: 11px; letter-spacing: 0.04em;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--text-soft);
}

/* KIT GALLERY (bento) */
.kit-gallery {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
  aspect-ratio: 2.5 / 1;
  margin-top: 46px;
}
.g-side {
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
}
.g-fig {
  position: relative;
  margin: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-darker);
  cursor: zoom-in;
}
.g-main { min-height: 0; }
.g-fig img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.g-fig:hover img { transform: scale(1.045); }
.g-fig figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 16px 14px;
  font-family: var(--display);
  font-size: 12px; letter-spacing: 0.01em;
  color: var(--text-on-dark);
  background: linear-gradient(to top, rgba(4,6,11,0.85), transparent);
  pointer-events: none;
}
.g-fig::after {
  content: "↗";
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(7,9,15,0.5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  color: #fff; font-size: 13px;
  opacity: 0; transform: translateY(-4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.g-fig:hover::after { opacity: 1; transform: none; }

/* LIGHTBOX */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  padding: 5vw;
  background: rgba(4, 6, 11, 0.93);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(1100px, 92vw); max-height: 86vh;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
  transform: scale(0.97);
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
}
.lightbox.is-open img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 22px; right: 26px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(239, 236, 228, 0.08);
  border: 1px solid var(--line);
  color: var(--text-on-dark);
  font-size: 24px; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
  transition: background 0.3s ease;
}
.lightbox-close:hover { background: rgba(239, 236, 228, 0.16); }

@media (max-width: 760px) {
  .kit-gallery { grid-template-columns: 1fr; grid-template-rows: none; aspect-ratio: auto; gap: 10px; }
  .g-main { aspect-ratio: 1.4 / 1; }
  .g-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; gap: 10px; }
  .g-side .g-fig { aspect-ratio: 1.15 / 1; }
}
@media (max-width: 460px) {
  .g-side { grid-template-columns: 1fr; }
  .g-side .g-fig { aspect-ratio: 1.5 / 1; }
}

/* FACTS — the 30-second answers */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 48px;
}
.fact {
  background: var(--bg-dark);
  padding: clamp(22px, 2.2vw, 32px);
  display: flex; flex-direction: column; gap: 10px;
}
.fact-q {
  font-family: var(--display);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
}
.fact-a {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.05rem, 1.3vw, 1.4rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
}

/* CUSTOM MODULES — vertical timeline */
.custom-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  margin-top: 30px;
}
.custom-intro { display: flex; flex-direction: column; gap: 18px; }
.custom-steps {
  position: relative;
  padding-left: 30px;
}
.custom-steps::before {
  content: "";
  position: absolute; left: 5px; top: 8px; bottom: 8px;
  width: 1px; background: var(--line);
}
.cstep {
  position: relative;
  padding: 12px 0 16px;
  display: flex; flex-direction: column; gap: 3px;
}
.cstep::before {
  content: "";
  position: absolute; left: -30px; top: 17px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg-dark);
  border: 1.5px solid var(--accent);
}
.cstep:first-child::before { background: var(--accent); }
.cstep-name {
  font-family: var(--display);
  font-weight: 500; font-size: 1.02rem; letter-spacing: -0.01em;
  color: var(--text-on-dark);
}
.cstep-desc { font-size: 0.9rem; color: var(--text-soft); line-height: 1.45; }

/* DEMO CTA */
.demo-cta {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(90px, 15vh, 190px) 6vw clamp(60px, 9vh, 110px);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.demo-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 30%, rgba(90,139,255,0.12), transparent 70%);
  pointer-events: none;
}
.demo-inner {
  position: relative;
  max-width: 880px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.demo-heading {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  line-height: 1.02; letter-spacing: -0.04em;
}
.demo-heading .italic { color: var(--accent); }
.demo-sub {
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  color: var(--text-soft);
  max-width: 50ch; line-height: 1.5;
}
.demo-primary-row { margin-top: 8px; }
.demo-primary {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 34px;
  background: var(--accent); color: #fff;
  font-family: var(--display); font-weight: 600; font-size: 16px;
  letter-spacing: -0.01em; border-radius: 999px;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), background 0.35s ease;
}
.demo-primary:hover { transform: translateY(-2px); background: var(--accent-deep); }
.demo-primary .cta-button-arrow { color: #fff; opacity: 0.9; }
.demo-contacts {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  margin-top: 4px;
}
.demo-note {
  font-size: 0.92rem; color: var(--text-mute); max-width: 46ch; line-height: 1.5;
  margin-top: 6px;
}
.demo-foot {
  margin-top: 40px;
  font-family: var(--display);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-mute);
}

/* SCROLL REVEAL (conventional content only) */
.reveal { opacity: 0; transform: translateY(34px); will-change: transform, opacity; }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); }

/* ============================================================
   MOBILE — conventional B2B
   ============================================================ */
@media (max-width: 900px) {
  .b2b-section { padding: 64px 6vw; }
  .b2b-intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .solve-head { flex-direction: column; gap: 12px; margin-bottom: 28px; }
  .solve-grid { grid-template-columns: 1fr; }
  .solve-card { min-height: 0; }
  .audience-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; gap: 40px; }
  .kit { grid-template-columns: 1fr; }
  .kit-visual { border-right: 0; border-bottom: 1px solid var(--line); min-height: 150px; }
  .custom-grid { grid-template-columns: 1fr; gap: 28px; }
  .demo-contacts { width: 100%; }
}
@media (max-width: 620px) {
  .facts { grid-template-columns: 1fr; }
  .b2b-heading { font-size: clamp(1.7rem, 7.5vw, 2.6rem); hyphens: auto; }
  .demo-heading { font-size: clamp(2rem, 9vw, 3rem); }
  .section-heading { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .solve-head .b2b-heading { max-width: 100%; }
  .demo-contacts { gap: 10px; }
  .demo-contacts .cta-button { width: 100%; justify-content: center; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
