/* VaultMaster — Section Layouts */

/* ============ NAVIGATION ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 200ms ease, border-color 200ms ease, backdrop-filter 200ms ease;
}
.nav.is-scrolled {
  background: rgba(10, 12, 15, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner {
  width: 100%;
  max-width: var(--content-max-wide);
  margin: 0 auto;
  padding: 0 var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.nav-brand {
  display: flex;
  align-items: center;
  color: var(--text-primary);
}
.nav-brand img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.nav-links a {
  position: relative;
  font-size: var(--text-nav);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  padding-bottom: 10px;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.is-active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: var(--radius-full);
  background: var(--primary);
}

.nav-actions { display: flex; align-items: center; gap: var(--space-2); }
.nav-login { font-size: var(--text-nav); font-weight: var(--weight-medium); color: var(--text-secondary); }
.nav-login:hover { color: var(--text-primary); }
.nav-actions .btn-primary { height: 40px; padding: 0 var(--space-2); }

.nav-hamburger {
  display: none;
  width: 40px; height: 40px;
  background: none; border: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-hamburger span {
  width: 20px; height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-void);
  z-index: 150;
  display: flex;
  flex-direction: column;
  padding: var(--space-3);
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
  transition: opacity 250ms var(--ease-reveal), transform 250ms var(--ease-reveal);
}
.mobile-menu.is-open { opacity: 1; transform: scale(1); pointer-events: auto; }
.mobile-menu-header { display: flex; justify-content: flex-end; }
.mobile-menu-close {
  width: 40px; height: 40px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-6) 0;
}
.mobile-menu-links a {
  font-size: 24px;
  font-family: var(--font-display);
  font-weight: var(--weight-headline);
  color: var(--text-primary);
}
.mobile-menu-actions { margin-top: auto; display: flex; flex-direction: column; gap: var(--space-2); }

/* ============ HERO ============
   Desktop/laptop: the section is capped to one viewport (nav height
   subtracted) and laid out as a column flexbox. The text block keeps
   its natural size (flex-shrink: 0); the visual is the flexible child
   and self-adjusts to fill exactly whatever room remains, so the full
   three-phone composition is always visible with no scroll and no
   large blank region, regardless of exact text height. */
.hero {
  padding-top: var(--nav-height);
  padding-bottom: 0;
  text-align: center;
  overflow: hidden;
}
.hero-inner { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.hero h1 { margin-bottom: var(--space-2); }
.hero-sub {
  font-size: var(--text-body-lg);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto var(--space-4);
}
.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.hero-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}
.hero-visual {
  margin: 24px auto 20px;
  max-width: 1100px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero-visual img { width: 100%; height: auto; object-fit: contain; display: block; }

@media (min-width: 1024px) {
  .hero {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding-top: calc(var(--nav-height) + clamp(2px, 0.6vh, 6px));
  }
  .hero-inner { flex-shrink: 0; }
  .hero h1 { font-size: clamp(28px, 3.7vh, 48px); line-height: 1.06; margin-bottom: clamp(4px, 0.5vh, 6px); }
  .hero-sub { font-size: clamp(13px, 1.2vh, 15px); line-height: 1.3; margin-bottom: clamp(6px, 0.9vh, 10px); }
  .hero-cta-row { margin-bottom: clamp(8px, 1.1vh, 12px); }
  .hero-chips { margin-top: clamp(6px, 0.9vh, 10px); }
  .hero-visual {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    margin: clamp(4px, 0.6vh, 8px) auto 8px;
  }
  .hero-visual img {
    width: auto;
    height: auto;
    max-width: min(78vw, 980px);
    max-height: 100%;
    object-fit: contain;
  }
}

@media (max-width: 767px) {
  .hero {
    display: block;
    max-height: none;
    padding-top: calc(28px + var(--nav-height));
    padding-bottom: 32px;
  }
  .hero-inner { padding: 0 clamp(20px, 5vw, 28px); }
  .hero h1 {
    font-size: clamp(42px, 12vw, 58px);
    line-height: 1.05;
    margin-bottom: 14px;
  }
  .hero-sub {
    font-size: clamp(18px, 4.5vw, 21px);
    line-height: 1.5;
    max-width: 34rem;
    margin: 0 auto 20px;
  }
  .hero-cta-row { flex-direction: column; gap: 10px; margin-bottom: 18px; }
  .hero-cta-row .btn { width: 100%; }
  .hero-chips { overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; padding-bottom: 4px; margin-top: 16px; }
  .hero-visual { margin: 16px auto 0; }
}

/* ============ ONBOARDING SHOWCASE — single-slide carousel ============
   Reuses the .carousel / .story-media / .story-copy system defined
   under Screenshot Story below; only section-specific compaction
   (padding, header spacing) is scoped here. */
.onboarding { padding-block: clamp(20px, 3.4vh, 40px); }
.onboarding .section-head { margin: 0 auto 10px; }
.onboarding .section-head .eyebrow { display: block; margin-bottom: 6px; }
.onboarding .section-head p { margin-top: 6px; }
.onboarding .carousel { margin-top: 4px; }

/* ---- enlarged screenshot + rebalanced two-column layout ---- */
.onboarding .carousel-slide {
  grid-template-columns: minmax(380px, 0.95fr) minmax(430px, 1.05fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.onboarding .story-media img {
  max-height: clamp(460px, 56vh, 560px);
}

/* ---- copy panel: aligned toward the top, richer description ---- */
.onboarding .story-copy {
  align-self: start;
  padding-top: clamp(16px, 3vh, 32px);
}
.onboarding .story-copy .eyebrow { font-size: clamp(15px, 1vw, 17px); margin-bottom: 12px; }
.onboarding .story-copy h3 { font-size: clamp(38px, 3.4vw, 46px); line-height: 1.12; margin-bottom: 16px; }
.onboarding .story-copy p {
  font-size: clamp(19px, 1.3vw, 22px);
  line-height: 1.55;
  max-width: 560px;
}

.onboarding .carousel-controls { margin-top: 16px; }

@media (max-width: 1023px) {
  .onboarding .story-copy h3 { font-size: clamp(34px, 4vw, 38px); }
  .onboarding .story-copy p { font-size: clamp(18px, 2vw, 20px); }
}

@media (max-width: 860px) {
  .onboarding .carousel-slide { grid-template-columns: 1fr; }
  .onboarding .story-copy { align-self: auto; padding-top: 0; }
}

@media (max-width: 767px) {
  .onboarding { padding-block: clamp(24px, 6vh, 44px); }
  .onboarding .story-copy h3 { font-size: clamp(28px, 6vw, 32px); }
  .onboarding .story-copy p { font-size: clamp(17px, 4vw, 19px); }
}

/* ============ PROBLEM / SOLUTION (shared 3-card grid) ============ */
.section-head {
  max-width: 640px;
  margin: 0 auto 32px;
  text-align: center;
}
.section-head p { margin-top: var(--space-2); font-size: var(--text-body-lg); }

.solution { background: var(--bg-deep); }

.triad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.triad-card { display: flex; flex-direction: column; gap: var(--space-2); }
.triad-card p { color: var(--text-secondary); }

@media (max-width: 860px) {
  .triad-grid { grid-template-columns: 1fr; gap: var(--space-3); }
}

/* ---- Problem section: lighter, more premium panel treatment ----
   Scoped to .problem only — Solution's cards are untouched. */
.problem .section-head { margin-bottom: 52px; }
.problem .triad-grid { gap: 24px; }
.problem .triad-card {
  background: var(--bg-deep);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: border-color var(--duration-interaction) var(--ease-interaction),
              box-shadow var(--duration-interaction) var(--ease-interaction);
}
.problem .triad-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}
.problem .triad-card p {
  font-size: 15.5px;
  line-height: 1.65;
}

/* ============ HOW IT WORKS ============ */
.hiw { padding: 80px 0; }
.hiw-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: 40px;
}
.hiw-track::before {
  content: '';
  position: absolute;
  top: 28px; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.hiw-line-dot {
  position: absolute;
  top: 24px; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.6);
  transition: left 100ms linear;
}
.hiw-step { position: relative; }
.hiw-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(135deg, var(--gradient-stop-1), var(--gradient-stop-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--space-2);
}
.hiw-step h4 { margin-bottom: var(--space-1); }
.hiw-step p { color: var(--text-secondary); font-size: var(--text-body-sm); }

@media (max-width: 1023px) {
  .hiw-track { grid-template-columns: repeat(2, 1fr); }
  .hiw-track::before, .hiw-line-dot { display: none; }
}
@media (max-width: 767px) {
  .hiw-track { grid-template-columns: 1fr; }
}

/* ============ ADAPTIVE SECURITY (signature section) ============ */
.adaptive {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.adaptive .glow-bg::before, .adaptive .glow-bg::after { opacity: 0.14; }
.zone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: 32px;
  position: relative;
  z-index: 1;
}
.zone-panel {
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--duration-interaction) var(--ease-interaction);
  cursor: pointer;
}
.zone-panel .zone-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 300ms var(--ease-reveal), opacity 300ms var(--ease-reveal), margin-top 300ms;
}
.zone-panel.is-expanded .zone-detail,
.zone-panel:hover .zone-detail {
  max-height: 80px;
  opacity: 1;
  margin-top: var(--space-2);
}
.zone-standard { border-color: rgba(var(--accent-rgb), 0.25); }
.zone-sensitive { border-color: rgba(var(--warn-orange-rgb), 0.3); box-shadow: 0 0 30px rgba(var(--warn-orange-rgb), 0.05); }
.zone-critical {
  border-color: rgba(var(--danger-rgb), 0.35);
  box-shadow: 0 0 40px rgba(var(--danger-rgb), 0.08);
}
.zone-badge {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-2);
}
.zone-standard .zone-badge { background: rgba(var(--accent-rgb), 0.12); }
.zone-sensitive .zone-badge { background: rgba(var(--warn-orange-rgb), 0.12); }
.zone-critical .zone-badge { background: rgba(var(--warn-orange-rgb), 0.18); }
.zone-panel h4 { margin-bottom: var(--space-1); }
.zone-panel p { color: var(--text-secondary); font-size: var(--text-body-sm); margin-bottom: var(--space-2); }
.zone-detail-text { font-size: 13px; color: var(--text-tertiary); font-family: var(--font-mono); }

.zone-standard h4 { color: var(--accent); }
.zone-sensitive h4 { color: var(--warn-orange); }
.zone-critical h4 { color: var(--danger); }

.adaptive-support { max-width: 720px; margin: 32px auto 0; text-align: center; position: relative; z-index: 1; }
.adaptive-cta { text-align: center; margin-top: 24px; position: relative; z-index: 1; }

@media (max-width: 860px) {
  .zone-grid { grid-template-columns: 1fr; }
}

/* ============ FEATURES ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
  align-items: stretch;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 24px 26px;
  overflow: hidden;
  transition: border-color var(--duration-interaction) var(--ease-interaction),
              box-shadow var(--duration-interaction) var(--ease-interaction),
              transform var(--duration-interaction) var(--ease-interaction);
}

/* thin top accent line — appears on hover only, never decorative-by-default */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.55), transparent);
  opacity: 0;
  transition: opacity var(--duration-interaction) var(--ease-interaction);
}
.feature-card:hover::before { opacity: 1; }

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
  box-shadow: 0 0 44px rgba(var(--primary-rgb), 0.10), 0 18px 34px rgba(0, 0, 0, 0.28);
}

/* icon area */
.feature-card .icon-tile {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, var(--surface-2), var(--bg-deep));
  border: 1px solid var(--border);
  margin-bottom: 20px;
  transition: border-color var(--duration-interaction) var(--ease-interaction);
}
.feature-card .icon-tile::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.16), transparent 72%);
  opacity: 0;
  transition: opacity var(--duration-interaction) var(--ease-interaction);
  z-index: -1;
}
.feature-card .icon-tile .icon {
  transition: stroke var(--duration-interaction) var(--ease-interaction),
              filter var(--duration-interaction) var(--ease-interaction);
}
.feature-card:hover .icon-tile { border-color: var(--border-glow); }
.feature-card:hover .icon-tile::before { opacity: 1; }
.feature-card:hover .icon-tile .icon:not(.icon-security) {
  stroke: var(--primary);
  filter: drop-shadow(0 0 6px rgba(var(--primary-rgb), 0.5));
}
.feature-card:hover .icon-tile .icon.icon-security {
  filter: drop-shadow(0 0 6px rgba(var(--warn-orange-rgb), 0.45));
}

.feature-card h4 { margin: 0 0 10px; line-height: 1.3; }
.feature-card p { color: var(--text-secondary); font-size: var(--text-body-sm); margin: 0; }

.features-more { text-align: center; margin-top: var(--space-6); }

@media (max-width: 1023px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
}
@media (hover: none) {
  .feature-card:hover { transform: none; }
}

/* ============ SCREENSHOT STORY — single-slide carousel ============
   Compact, viewport-aware: the whole section is sized to fit within
   common desktop/laptop viewport heights (1366x768 and up) without
   requiring vertical scroll. */
.story { padding-block: clamp(6px, 1.2vh, 18px); }

.story .section-head { margin: 0 auto 4px; }
.story .section-head p { margin-top: 4px; }
.story .carousel { margin-top: 0; }

/* ---- enlarged screenshot + rebalanced two-column layout
   (mirrors the .onboarding carousel treatment; kept scoped to
   .story so the onboarding carousel is unaffected) ---- */
.story .carousel-slide {
  grid-template-columns: minmax(460px, 1.15fr) minmax(360px, 0.85fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.story .story-media img {
  max-height: clamp(480px, 70.2vh, 640px);
}

.story .story-copy {
  align-self: start;
  padding-top: clamp(8px, 1.6vh, 20px);
}
.story .story-copy .eyebrow { font-size: clamp(15px, 1vw, 17px); margin-bottom: 12px; }
.story .story-copy h3 { font-size: clamp(32px, 2.8vw, 42px); line-height: 1.18; margin-bottom: 14px; }
.story .story-copy p {
  font-size: clamp(18px, 1.2vw, 20px);
  line-height: 1.55;
  max-width: 560px;
}

.story .carousel-controls { margin-top: 6px; }

@media (max-width: 1023px) {
  .story .story-copy h3 { font-size: clamp(28px, 3.4vw, 34px); }
  .story .story-copy p { font-size: clamp(17px, 2vw, 19px); }
}

@media (max-width: 860px) {
  .story .carousel-slide { grid-template-columns: 1fr; }
  .story .story-copy { align-self: auto; padding-top: 0; }
}

@media (max-width: 767px) {
  .story { padding-block: clamp(24px, 6vh, 44px); }
  .story .story-copy h3 { font-size: clamp(26px, 6vw, 30px); }
  .story .story-copy p { font-size: clamp(16px, 4vw, 18px); }
}

.carousel {
  position: relative;
  margin-top: 12px;
  border-radius: var(--radius-lg);
}
.carousel:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 8px;
  border-radius: var(--radius-lg);
}

.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 300ms var(--ease-interaction);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
  padding: 0;
}

.story-media { position: relative; text-align: center; }
.story-media img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: clamp(360px, 48vh, 560px);
  object-fit: contain;
  margin: 0 auto;
  cursor: zoom-in;
  border-radius: var(--radius-lg);
}
.story-copy { padding-top: 0; }
.story-copy .eyebrow { display: block; margin-bottom: 10px; font-size: 15px; }
.story-copy h3 { margin-bottom: 14px; font-size: 36px; line-height: 1.5; }
.story-copy p { color: var(--text-secondary); font-size: 20px; line-height: 1.5; }

/* ---- control row: prev arrow · counter + dots · next arrow ---- */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.carousel-arrow {
  position: static;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--duration-interaction) var(--ease-interaction),
              background-color var(--duration-interaction) var(--ease-interaction),
              box-shadow var(--duration-interaction) var(--ease-interaction),
              opacity var(--duration-interaction) var(--ease-interaction);
}
.carousel-arrow .icon { width: 24px; height: 24px; stroke: var(--text-primary); }
.carousel-arrow:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}
.carousel-arrow:hover:not(:disabled) .icon { stroke: var(--primary); }
.carousel-arrow:disabled { opacity: 0.35; pointer-events: none; }
.carousel-prev .icon { transform: scaleX(-1); }

.carousel-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}
.carousel-counter { color: var(--text-tertiary); font-size: 13px; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color var(--duration-interaction) var(--ease-interaction),
              transform var(--duration-interaction) var(--ease-interaction);
}
.carousel-dot.is-active { background: var(--primary); transform: scale(1.3); }

@media (max-width: 1023px) {
  .story-copy h3 { font-size: 32px; }
  .story-copy p { font-size: 19px; }
}
@media (max-width: 860px) {
  .carousel-slide { grid-template-columns: 1fr; gap: var(--space-3); }
  .story-media img { max-height: clamp(280px, 40vh, 420px); }
}
@media (max-width: 767px) {
  .story { padding-block: clamp(28px, 6vh, 48px); }
  .story-copy h3 { font-size: 28px; }
  .story-copy p { font-size: 18px; }
  .carousel-controls { gap: 12px; }
  .carousel-arrow { width: 48px; height: 48px; }
}

/* ============ SECURITY ARCHITECTURE ============
   Only the heading + .arch-diagram block is budgeted to fit one
   viewport (see .arch-diagram sizing below) — .arch-support flows
   naturally afterward and is simply more compact than before, not
   constrained to a viewport. */
.arch { padding-block: clamp(24px, 4vh, 48px); }

.arch .section-head { max-width: 900px; margin: 0 auto 14px; }
.arch .section-head h2 { font-size: clamp(34px, 3.6vw, 46px); line-height: 1.18; }
.arch .section-head p { font-size: clamp(15px, 1.4vw, 19px); margin-top: 8px; }

.arch-diagram {
  max-width: 900px;
  margin: 16px auto 0;
  background: var(--bg-deep);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.arch-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
  width: 100%;
}
.arch-row-single { justify-content: center; }

.arch-node {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  text-align: center;
  cursor: help;
  position: relative;
  font-size: 13px;
  line-height: 1.3;
  color: var(--text-primary);
  transition: border-color var(--duration-interaction) var(--ease-interaction),
              background-color var(--duration-interaction) var(--ease-interaction);
}
.arch-node:hover { border-color: var(--border-glow); background: rgba(255, 255, 255, 0.05); }
.arch-node .mono { display: block; color: var(--primary); font-size: 11px; margin-top: 3px; }
.arch-node-branch { border-color: rgba(var(--primary-rgb), 0.25); }

.arch-connector-h { color: var(--primary); flex-shrink: 0; opacity: 0.7; }
.arch-connector-col { color: var(--text-tertiary); display: flex; justify-content: center; height: 22px; }

.arch-signal-group {
  width: 100%;
  max-width: 460px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.arch-signal-label {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.arch-signal-row { display: flex; gap: 8px; }
.arch-signal-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 12.5px;
  color: var(--text-secondary);
  cursor: help;
}
.arch-signal-chip .icon { width: 15px; height: 15px; stroke: var(--text-tertiary); }

/* ---- rest of the section: shortened, not viewport-constrained ---- */
.arch-support {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
.arch-support-item h4 { margin-bottom: 6px; color: var(--primary); font-size: 16px; }
.arch-support-item p { color: var(--text-secondary); font-size: var(--text-body-sm); line-height: 1.55; }

@media (max-width: 1023px) {
  .arch-support { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 767px) {
  .arch { padding-block: clamp(20px, 5vh, 36px); }
  .arch-diagram { padding: 16px; }
  .arch-row { flex-direction: column; gap: 8px; }
  .arch-row .arch-node { width: 100%; }
  .arch-connector-h { transform: rotate(90deg); }
  .arch-signal-group { max-width: 100%; }
  .arch-signal-row { flex-direction: column; width: 100%; }
  .arch-signal-chip { width: 100%; justify-content: center; }
}

@media (max-width: 1023px) and (min-width: 768px) {
  .arch-row { flex-wrap: wrap; row-gap: 12px; }
}

/* ============ COMPARISON ============ */
.comparison { background: var(--bg-deep); }
.compare-wrap { max-width: 900px; margin: var(--space-6) auto 0; overflow-x: auto; }
.compare-cards { display: none; flex-direction: column; gap: var(--space-2); margin-top: var(--space-6); }
.compare-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-3); }
.compare-card .eyebrow { display: block; margin-bottom: var(--space-1); }
.compare-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); }
.compare-row:last-child { border-bottom: none; }
.compare-label { color: var(--text-tertiary); font-size: 13px; }

@media (max-width: 767px) {
  .compare-wrap { display: none; }
  .compare-cards { display: flex; }
}

/* ============ BENEFITS ============ */
.benefits-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.benefits-list p {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--weight-headline);
  color: var(--text-primary);
  line-height: 1.3;
}
.benefits-cta { text-align: center; margin-top: var(--space-8); }

@media (max-width: 767px) {
  .benefits-list p { font-size: 22px; }
}

/* ============ TESTIMONIALS ============ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.testimonial-card blockquote {
  font-size: var(--text-body);
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: var(--space-3);
}
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-avatar {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
}
.testimonial-author small { color: var(--text-tertiary); display: block; }

@media (max-width: 860px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* ============ FAQ ============ */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  background: none; border: none;
  text-align: left;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: var(--text-h4);
  font-weight: var(--weight-headline);
  cursor: pointer;
}
.faq-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  position: relative;
  transition: transform 240ms ease-in-out;
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--text-secondary);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-icon::before { width: 12px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 12px; }

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 240ms ease-in-out;
}
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-panel-inner { overflow: hidden; }
.faq-panel p {
  padding-bottom: var(--space-3);
  color: var(--text-secondary);
  opacity: 0;
  transition: opacity 220ms ease-in-out;
}
.faq-item.is-open .faq-panel p { opacity: 1; transition-delay: 60ms; }
.faq-footer { text-align: center; margin-top: var(--space-4); }

/* ============ ROADMAP ============ */
.roadmap-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-8);
  position: relative;
}
.roadmap-track::before {
  content: '';
  position: absolute;
  /* end stop = geometric center of column 2 (4 equal 1fr columns,
     3 gaps of var(--space-3)) so the highlight meets the "in progress"
     node exactly, not an arbitrary 25% */
  top: 10px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    var(--primary) 0%,
    var(--primary) calc(37.5% - (var(--space-3) / 8)),
    var(--border) calc(37.5% - (var(--space-3) / 8)),
    var(--border) 100%
  );
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 220ms var(--ease-interaction);
}
.roadmap-track.is-visible::before { transform: scaleX(1); }

.roadmap-stage { position: relative; padding-top: 40px; }
.roadmap-dot {
  position: absolute;
  /* single shared baseline: top matches the timeline line's own
     top (10px), and translate(-50%, -50%) centers the dot on that
     line regardless of its width/height — so the larger active dot
     never needs (and never gets) a different top value */
  top: 10px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--text-tertiary);
  opacity: 0;
  transition: opacity 160ms ease-out;
  transition-delay: 60ms;
}
.roadmap-track.is-visible .roadmap-dot { opacity: 1; }

/* current milestone: the visual focus of the timeline
   (same top/left/transform as the base dot — only size changes,
   so it stays perfectly centered on the same baseline) */
.roadmap-stage.is-active .roadmap-dot {
  width: 14px; height: 14px;
  background: var(--primary);
  filter: drop-shadow(0 0 6px rgba(var(--primary-rgb), 0.55));
  animation: roadmap-pulse 2.4s ease-in-out infinite;
}
@keyframes roadmap-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(var(--primary-rgb), 0); }
}
@media (prefers-reduced-motion: reduce) {
  .roadmap-stage.is-active .roadmap-dot { animation: none; }
}

.roadmap-stage .pill { margin-bottom: 20px; }
.roadmap-stage p {
  color: var(--text-secondary);
  font-size: var(--text-body-sm);
  text-wrap: pretty;
}

/* entrance: timeline draws in, nodes fade in, cards fade upward
   (~90-346ms total, no bounce) */
.roadmap-stage > .pill,
.roadmap-stage > p {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 220ms ease-out, transform 220ms ease-out;
  transition-delay: calc(90ms + var(--stage-index, 0) * 12ms);
}
.roadmap-track.is-visible .roadmap-stage > .pill,
.roadmap-track.is-visible .roadmap-stage > p {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .roadmap-track::before { transform: none; transition: none; }
  .roadmap-dot { opacity: 1; transition: none; }
  .roadmap-stage > .pill,
  .roadmap-stage > p { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 1023px) {
  .roadmap-track { grid-template-columns: 1fr; gap: var(--space-4); }
  .roadmap-track::before {
    top: 0; bottom: 0; left: 4px; width: 1px; height: 100%; right: auto;
    background: linear-gradient(
      to bottom,
      var(--primary) 0%,
      var(--primary) 25%,
      var(--border) 25%,
      var(--border) 100%
    );
    transform-origin: top center;
  }
  .roadmap-stage { padding-top: 0; padding-left: var(--space-3); }
  .roadmap-dot { top: 4px; left: -1px; }
  .roadmap-stage.is-active .roadmap-dot { top: 2px; left: -3px; }
  .roadmap-stage.is-active { transform: none; }
}

/* ============ EARLY ACCESS SIGNUP ============ */
.early-access { background: var(--bg-deep); position: relative; overflow: hidden; padding: 96px 0; }
.early-access-card {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.early-access-card h2 { margin-top: 10px; font-size: 34px; line-height: 1.25; }
.early-access-lead {
  margin-top: 16px;
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.55;
}
.early-access-sub {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.early-access-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
  text-align: left;
}
.early-access-field-row { display: flex; gap: var(--space-2); }
.early-access-field-row .input { flex: 1; }
.early-access-field-row button[type="submit"] {
  flex-shrink: 0;
  min-width: 128px;
  transition: opacity var(--duration-interaction) var(--ease-interaction),
              background-color var(--duration-interaction) var(--ease-interaction);
}
.early-access-field-row button[type="submit"]:disabled {
  opacity: 0.75;
  cursor: progress;
}

.early-access-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  cursor: pointer;
}
.early-access-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--primary);
}
.early-access-consent a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

/* Brevo honeypot — off-screen, unreachable by keyboard, invisible to AT,
   but still present in the DOM/submission so it works as a bot trap */
.brevo-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  left: -9999px;
  top: -9999px;
}

.early-access-privacy {
  margin-top: 14px;
  color: var(--text-tertiary);
  font-size: 13px;
}

.early-access-divider {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 28px 0 20px;
  color: var(--text-tertiary);
  font-size: 13px;
}
.early-access-divider::before, .early-access-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.install-status { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.btn-disabled {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.3);
}
.btn-disabled:hover { filter: grayscale(0.3); box-shadow: none; }
.install-soon-badge { text-transform: uppercase; letter-spacing: 0.06em; }
.install-status-note { color: var(--text-tertiary); font-size: 13px; max-width: 380px; }

@media (max-width: 767px) {
  .early-access-card { padding: 32px 26px; }
  .early-access-card h2 { font-size: clamp(34px, 8vw, 40px); line-height: 1.14; }
  .early-access-lead { font-size: 18px; line-height: 1.55; }
  .early-access-sub { font-size: 17px; line-height: 1.6; }
  .early-access-field-row { flex-direction: column; }
  .early-access-field-row .input { flex: none; }
  .early-access-field-row button[type="submit"] { width: 100%; }
  .early-access-consent input[type="checkbox"] { margin-top: 3px; }
  .early-access-divider { margin: 20px 0 16px; }
  .install-status { gap: 8px; }
}

/* ============ FOOTER ============ */
.footer { background: var(--bg-raised); border-top: 1px solid var(--border); padding: var(--space-12) 0 var(--space-4); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-4);
}
.footer-brand-line { color: var(--text-secondary); font-size: var(--text-body-sm); margin: var(--space-2) 0 var(--space-3); }
.footer-social { display: flex; gap: var(--space-2); }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.footer-col h4 { font-size: var(--text-body-sm); color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-2); font-family: var(--font-body); font-weight: var(--weight-headline); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-secondary); font-size: var(--text-body-sm); }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.footer-copyright { color: var(--text-tertiary); font-size: 13px; }
.footer-trust { color: var(--text-tertiary); }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
