/* =============================================================
   EP07 DESIGN PASS ??final-overrides.css
   Pure visual/layout changes. Zero copy changes.
   ============================================================= */

/* ?? Fix stale leaked CSS from custom.css ?? */
#solution .control-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.35rem !important;
  max-width: 1080px !important;
}
#solution .control-card {
  grid-column: auto !important;
  min-height: 220px !important;
}

/* ?? Global section rhythm ?? */
main > section + section {
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* ?? Hero section ?? */
.hero-section {
  padding-top: 7.5rem !important;
  padding-bottom: 5rem !important;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(59,130,246,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-size: clamp(2.2rem, 5.6vw, 4.5rem) !important;
  line-height: 1.18 !important;
  letter-spacing:.01em !important;
  margin-top: 0.75rem !important;
}

.hero-copy {
  font-size: clamp(1.05rem, 2.1vw, 1.3rem) !important;
  line-height: 1.7 !important;
  margin-top: 1.5rem !important;
}

.hero-note {
  margin-top: 1.25rem !important;
  font-size: 0.94rem !important;
  line-height: 1.65 !important;
}

.hero-actions {
  margin-top: 2.5rem !important;
}

.btn-primary {
  padding: 0.82rem 2rem !important;
  font-size: 0.92rem !important;
  box-shadow: 0 4px 20px rgba(59,130,246,0.25) !important;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}

.btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 32px rgba(59,130,246,0.35) !important;
}

.hero-control-line {
  margin-top: 1.15rem !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.02em !important;
  opacity: 0.7;
}

/* ?? Problem section (flat ??elevated) ?? */
#problem {
  padding-top: 7rem !important;
  padding-bottom: 7rem !important;
}

#problem h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem) !important;
  letter-spacing:.01em !important;
}

/* (1) More space between problem subtitle and cards */
#problem .grid,
#problem .mt-10 {
  margin-top: 3rem !important;
}

#problem .bg-gray-900\/50 {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(18,22,29,0.96), rgba(12,15,21,0.92)) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 1.35rem !important;
  padding: 2rem 1.75rem !important;
  box-shadow: 0 16px 44px rgba(0,0,0,0.2);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

#problem .bg-gray-900\/50:hover {
  transform: translateY(-6px);
  border-color: rgba(239,68,68,0.3) !important;
  box-shadow: 0 24px 56px rgba(0,0,0,0.3);
}

#problem .bg-gray-900\/50::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239,68,68,0.6), transparent);
}

#problem .bg-gray-900\/50 h3 {
  font-size: 1.2rem !important;
  margin-bottom: 0.6rem !important;
}

#problem .bg-gray-900\/50 p {
  font-size: 0.95rem !important;
  line-height: 1.72 !important;
}

/* Red accent tint per-card */
#problem .bg-gray-900\/50:nth-child(1)::before {
  background: linear-gradient(90deg, transparent, rgba(239,68,68,0.5), transparent);
}
#problem .bg-gray-900\/50:nth-child(2)::before {
  background: linear-gradient(90deg, transparent, rgba(251,146,60,0.5), transparent);
}
#problem .bg-gray-900\/50:nth-child(3)::before {
  background: linear-gradient(90deg, transparent, rgba(251,191,36,0.5), transparent);
}

/* ?? Governance controls section ?? */
#solution {
  padding-top: 7rem !important;
  padding-bottom: 7rem !important;
}

#solution h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem) !important;
  letter-spacing:.01em !important;
}

#solution > div > .text-center > p {
  margin-top: 0.65rem !important;
}

#solution .control-grid {
  max-width: 1080px !important;
  margin-top: 3rem !important;
}

/* (2) Remove radial glow reflection effect on governance cards */
#solution .control-card::after {
  display: none !important;
}

#solution .control-card {
  min-height: 240px !important;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease !important;
}

#solution .control-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 28px 64px rgba(0,0,0,0.35) !important;
}

/* ?? Workflow section (01-05 step cards) ?? */
#overview {
  padding-top: 7rem !important;
  padding-bottom: 7rem !important;
}

#overview h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem) !important;
  letter-spacing:.01em !important;
}

#overview h2 + p {
  margin-top: 0.75rem !important;
}

/* (3) More space between workflow subtitle and cards */
#overview .mb-14 {
  margin-bottom: 3.5rem !important;
}

#overview .workflow-stage-rail {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.5rem !important;
  max-width: 1120px !important;
  margin: 0 auto !important;
}

#overview .workflow-stage-card {
  min-height: 0 !important;
  padding: 2rem 1.5rem 1.6rem !important;
  border-radius: 1.65rem !important;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease !important;
}

/* 3-column: all 6 cards auto-place equally */
#overview .workflow-stage-card:nth-child(1),
#overview .workflow-stage-card:nth-child(2),
#overview .workflow-stage-card:nth-child(3),
#overview .workflow-stage-card:nth-child(4),
#overview .workflow-stage-card:nth-child(5),
#overview .workflow-stage-card:nth-child(6) { grid-column: auto !important; }

/* Per-step accent colors for differentiation */
#overview .workflow-stage-card:nth-child(1) .workflow-stage-index {
  background: rgba(96,165,250,0.14);
  border-color: rgba(96,165,250,0.34);
  color: #bfdbfe;
}
#overview .workflow-stage-card:nth-child(2) .workflow-stage-index {
  background: rgba(52,211,153,0.14);
  border-color: rgba(52,211,153,0.34);
  color: #d1fae5;
}
#overview .workflow-stage-card:nth-child(3) .workflow-stage-index {
  background: rgba(251,191,36,0.14);
  border-color: rgba(251,191,36,0.34);
  color: #fef3c7;
}
#overview .workflow-stage-card:nth-child(4) .workflow-stage-index {
  background: rgba(56,189,248,0.14);
  border-color: rgba(56,189,248,0.34);
  color: #e0f2fe;
}
#overview .workflow-stage-card:nth-child(5) .workflow-stage-index {
  background: rgba(168,85,247,0.14);
  border-color: rgba(168,85,247,0.34);
  color: #ede9fe;
}

/* Per-step top border accent */
#overview .workflow-stage-card {
  position: relative;
  overflow: hidden;
}
#overview .workflow-stage-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
}
#overview .workflow-stage-card:nth-child(1)::before { background: linear-gradient(90deg, transparent, rgba(96,165,250,0.6), transparent); }
#overview .workflow-stage-card:nth-child(2)::before { background: linear-gradient(90deg, transparent, rgba(52,211,153,0.6), transparent); }
#overview .workflow-stage-card:nth-child(3)::before { background: linear-gradient(90deg, transparent, rgba(251,191,36,0.6), transparent); }
#overview .workflow-stage-card:nth-child(4)::before { background: linear-gradient(90deg, transparent, rgba(56,189,248,0.6), transparent); }
#overview .workflow-stage-card:nth-child(5)::before { background: linear-gradient(90deg, transparent, rgba(168,85,247,0.6), transparent); }

/* Per-step hover border accent */
#overview .workflow-stage-card:nth-child(1):hover { border-color: rgba(96,165,250,0.3) !important; }
#overview .workflow-stage-card:nth-child(2):hover { border-color: rgba(52,211,153,0.3) !important; }
#overview .workflow-stage-card:nth-child(3):hover { border-color: rgba(251,191,36,0.3) !important; }
#overview .workflow-stage-card:nth-child(4):hover { border-color: rgba(56,189,248,0.3) !important; }
#overview .workflow-stage-card:nth-child(5):hover { border-color: rgba(168,85,247,0.3) !important; }

#overview .workflow-stage-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 28px 64px rgba(0,0,0,0.35) !important;
  background: linear-gradient(180deg, rgba(22,27,36,0.98), rgba(15,19,26,0.96)) !important;
}

#overview .workflow-stage-card h3 {
  margin-bottom: 0.85rem !important;
  font-size: 1.25rem !important;
}

#overview .workflow-stage-card p {
  line-height: 1.82 !important;
  font-size: 0.95rem !important;
}

/* ?? Trust boundary / verify section ?? */
#verify {
  padding-top: 7.5rem !important;
  padding-bottom: 7.5rem !important;
}

#verify h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem) !important;
  letter-spacing:.01em !important;
}

#verify h2 + p {
  margin-top: 0.75rem !important;
}

/* (4) More space between trust subtitle and panels */
#verify > div > .text-center {
  margin-bottom: 3.5rem !important;
}

#verify .state-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 2rem !important;
  max-width: 1060px !important;
  margin: 0 auto !important;
}

#verify .state-panel {
  min-height: 300px !important;
  padding: 2.3rem 2rem !important;
  border-radius: 1.75rem !important;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease !important;
}

#verify .state-panel-live {
  background: linear-gradient(165deg, rgba(15,28,22,0.97), rgba(10,18,15,0.92)) !important;
}

#verify .state-panel-live .state-label {
  color: #6ee7b7 !important;
}

#verify .state-panel-scope {
  background: linear-gradient(165deg, rgba(30,24,15,0.97), rgba(22,18,12,0.92)) !important;
}

#verify .state-panel-scope .state-label {
  color: #fcd34d !important;
}

#verify .state-panel:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 28px 64px rgba(0,0,0,0.35) !important;
}

#verify .state-panel-live:hover {
  border-color: rgba(52,211,153,0.38) !important;
}

#verify .state-panel-scope:hover {
  border-color: rgba(251,191,36,0.35) !important;
}

#verify .state-list li {
  margin-bottom: 0.55rem !important;
  line-height: 1.82 !important;
  font-size: 0.96rem !important;
}

/* Bullet markers */
#verify .state-panel-live .state-list li::marker {
  color: #34d399;
}

#verify .state-panel-scope .state-list li::marker {
  color: #fbbf24;
}

/* ?? Artifact example (premium treatment) ?? */
#verify .artifact-shell {
  display: grid !important;
  grid-template-columns: minmax(0, 1.22fr) minmax(340px, 0.78fr) !important;
  gap: 2rem !important;
  margin-top: 3rem !important;
}

#verify .artifact-frame {
  padding: 2.5rem !important;
  border-radius: 2rem !important;
  background: linear-gradient(180deg, rgba(16,20,28,0.99), rgba(11,14,20,0.96)) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  box-shadow: 0 28px 72px rgba(0,0,0,0.3) !important;
  transition: transform 220ms ease, box-shadow 220ms ease !important;
}

#verify .artifact-frame:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 36px 80px rgba(0,0,0,0.38) !important;
}

#verify .artifact-header h3 {
  font-size: 1.85rem !important;
  line-height: 1.12 !important;
}

#verify .artifact-status {
  padding: 0.48rem 0.9rem !important;
  font-size: 0.8rem !important;
}

#verify .artifact-meta-grid {
  gap: 1rem !important;
  margin-top: 0.5rem;
}

#verify .artifact-meta-card {
  padding: 1.35rem 1.25rem !important;
  border-radius: 1.1rem !important;
  background: rgba(0,0,0,0.25) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: none !important;
  transition: border-color 200ms ease, background 200ms ease !important;
}

#verify .artifact-meta-card:hover {
  transform: none !important;
  border-color: rgba(96,165,250,0.2) !important;
  background: rgba(255,255,255,0.025) !important;
  box-shadow: none !important;
}

#verify .artifact-note {
  margin-top: 1.25rem !important;
  padding: 1.5rem 1.35rem !important;
  border-radius: 1.1rem !important;
  background: rgba(59,130,246,0.05) !important;
  border: 1px solid rgba(59,130,246,0.15) !important;
  box-shadow: none !important;
}

#verify .artifact-note:hover {
  transform: none !important;
  background: rgba(59,130,246,0.07) !important;
  box-shadow: none !important;
}

#verify .artifact-side-card {
  padding: 1.55rem 1.4rem !important;
  border-radius: 1.35rem !important;
  background: linear-gradient(180deg, rgba(18,22,29,0.98), rgba(14,17,23,0.94)) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  transition: transform 220ms ease, border-color 220ms ease !important;
}

#verify .artifact-side-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(96,165,250,0.2) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25) !important;
}

#verify .artifact-sidebar {
  gap: 1.25rem !important;
}

/* ?? Contact section ?? */
#contact {
  padding-top: 6.5rem !important;
  padding-bottom: 7rem !important;
}

#contact h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem) !important;
  letter-spacing:.01em !important;
}

/* ?? Section heading kicker uniformity ?? */
.hero-kicker {
  font-size: 0.74rem !important;
  padding: 0.4rem 0.85rem !important;
}

/* ?? Footer breathing ?? */
footer {
  margin-top: 0 !important;
  border-top-color: rgba(255,255,255,0.06) !important;
}

footer > div {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

.footer-product-bridge {
  display: grid;
  gap: 0.22rem;
  text-align: center;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  background: rgba(255,255,255,0.02);
}

.footer-product-label {
  margin: 0;
  color: rgba(255,255,255,0.52);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-product-link {
  color: #fff;
  font-weight: 600;
}

.footer-product-copy {
  color: rgba(255,255,255,0.62);
  font-size: 0.84rem;
}

/* ?? Responsive: tablet ?? */
@media (max-width: 1080px) {
  #verify .state-grid,
  #verify .artifact-shell {
    grid-template-columns: 1fr !important;
  }
}

/* ?? Responsive: mobile ?? */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 5rem !important;
    padding-bottom: 3.5rem !important;
  }

  .hero-title {
    font-size: clamp(1.85rem, 9vw, 2.6rem) !important;
  }

  #problem,
  #solution,
  #overview,
  #verify {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
  }

  #contact {
    padding-top: 4rem !important;
    padding-bottom: 4.5rem !important;
  }

  #problem .grid {
    gap: 1rem !important;
  }

  #problem .bg-gray-900\/50 {
    padding: 1.35rem !important;
  }

  #solution .control-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  #solution .control-card {
    min-height: auto !important;
    padding: 1.25rem 1.15rem 1.1rem !important;
  }

  #overview .workflow-stage-rail {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  #overview .workflow-stage-card {
    min-height: auto !important;
    padding: 1.35rem !important;
  }

  #verify .state-grid,
  #verify .artifact-shell {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  #verify .state-panel,
  #verify .artifact-frame,
  #verify .artifact-side-card {
    min-height: auto !important;
    padding: 1.35rem !important;
  }

  #verify .artifact-meta-grid {
    grid-template-columns: 1fr !important;
  }

  #verify .artifact-header {
    flex-direction: column !important;
  }

  /* Reduce hover translate on mobile for better UX */
  #solution .control-card:hover,
  #overview .workflow-stage-card:hover,
  #verify .state-panel:hover,
  #verify .artifact-frame:hover,
  #verify .artifact-side-card:hover,
  #problem .bg-gray-900\/50:hover {
    transform: translateY(-3px) !important;
  }
}

/* ?? Smooth transition baseline ?? */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ?? (5) Story.html card effects ?? */
/* Story heading-to-card spacing */
.story-cards {
  margin-top: 3rem !important;
}
.story-negation-grid {
  margin-top: 2.5rem !important;
}

.auxtho-bridge-shell {
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(18,22,29,0.96), rgba(12,15,21,0.92)) !important;
  box-shadow: 0 16px 44px rgba(0,0,0,0.2);
}

.auxtho-bridge-label {
  margin: 0 0 0.75rem;
  color: rgba(147,197,253,0.84);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auxtho-bridge-card {
  margin-top: 1.4rem;
  padding: 1.3rem 1.35rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.2rem;
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.auxtho-bridge-link {
  white-space: nowrap;
}

.story-cards .bg-gray-900\/50 {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(18,22,29,0.96), rgba(12,15,21,0.92)) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 1.35rem !important;
  padding: 2.25rem 2rem !important;
  box-shadow: 0 16px 44px rgba(0,0,0,0.2);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.story-cards .bg-gray-900\/50:hover {
  transform: translateY(-6px);
  border-color: rgba(96,165,250,0.3) !important;
  box-shadow: 0 24px 56px rgba(0,0,0,0.3);
}

.story-cards .bg-gray-900\/50::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
}

.story-cards .bg-gray-900\/50:nth-child(1)::before {
  background: linear-gradient(90deg, transparent, rgba(96,165,250,0.6), transparent);
}

.story-cards .bg-gray-900\/50:nth-child(2)::before {
  background: linear-gradient(90deg, transparent, rgba(52,211,153,0.6), transparent);
}

.story-cards .bg-gray-900\/50:hover:nth-child(1) {
  border-color: rgba(96,165,250,0.3) !important;
}

.story-cards .bg-gray-900\/50:hover:nth-child(2) {
  border-color: rgba(52,211,153,0.3) !important;
}

.story-cards .bg-gray-900\/50 h2 {
  font-size: 2rem !important;
  letter-spacing:.01em;
}

.story-cards .bg-gray-900\/50 p {
  color: var(--muted) !important;
  line-height: 1.72 !important;
  font-size: 1.05rem !important;
}

/* Story practice cards: 2x2 grid */
.story-practice-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1.25rem !important;
}

.story-practice-grid .bg-gray-900\/50 {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(18,22,29,0.96), rgba(12,15,21,0.92)) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 1.35rem !important;
  padding: 1.75rem 1.5rem !important;
  box-shadow: 0 16px 44px rgba(0,0,0,0.2);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.story-practice-grid .bg-gray-900\/50:hover {
  transform: translateY(-6px);
  border-color: rgba(96,165,250,0.25) !important;
  box-shadow: 0 24px 56px rgba(0,0,0,0.3);
}

.story-practice-grid .bg-gray-900\/50::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96,165,250,0.4), transparent);
}

/* Story negation cards: 3-col grid */
.story-negation-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.25rem !important;
}

.story-negation-grid .bg-gray-900\/50 {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(18,22,29,0.96), rgba(12,15,21,0.92)) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 1.35rem !important;
  padding: 1.5rem 1.35rem !important;
  box-shadow: 0 16px 44px rgba(0,0,0,0.2);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.story-negation-grid .bg-gray-900\/50:hover {
  transform: translateY(-6px);
  border-color: rgba(239,68,68,0.25) !important;
  box-shadow: 0 24px 56px rgba(0,0,0,0.3);
}

.story-negation-grid .bg-gray-900\/50::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239,68,68,0.4), transparent);
}

@media (max-width: 768px) {
  .story-practice-grid,
  .story-negation-grid {
    grid-template-columns: 1fr !important;
  }

  .auxtho-bridge-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* =============================================================
   EP19 READABILITY POLISH PASS
   Scope: readability only, no structural or positioning rewrite
   ============================================================= */

.hero-copy {
  color: #d2d8e2 !important;
  font-size: clamp(1.08rem, 2.15vw, 1.34rem) !important;
  line-height: 1.72 !important;
}

.hero-note {
  color: #bcc5d1 !important;
  font-size: 1rem !important;
  line-height: 1.72 !important;
}

.hero-control-line {
  color: #aab4c0 !important;
  font-size: 0.86rem !important;
  line-height: 1.68 !important;
  opacity: 0.88 !important;
}

#problem,
#solution,
#overview,
#whats-new {
  padding-top: 6.1rem !important;
  padding-bottom: 6.1rem !important;
}

#verify {
  padding-top: 6.5rem !important;
  padding-bottom: 6.5rem !important;
}

#problem .text-lg.text-gray-400,
#solution > div > .text-center > p,
#whats-new .text-lg.text-gray-400,
#verify h2 + p {
  color: #c1cad6 !important;
  font-size: 1.03rem !important;
  line-height: 1.78 !important;
}

#problem .grid,
#problem .mt-10,
#solution .control-grid,
#whats-new .control-grid,
#verify > div > .text-center,
#overview .mb-14 {
  margin-top: 2.6rem !important;
  margin-bottom: 3rem !important;
}

#solution .control-card p:not(.control-kicker),
#whats-new .control-card p:not(.control-kicker) {
  color: #c4ccd7 !important;
  font-size: 1rem !important;
  line-height: 1.78 !important;
}

#problem .bg-gray-900\/50 p,
#overview .workflow-stage-card p,
#verify .state-list li,
#verify .artifact-meta-text,
#verify .artifact-steps li,
#verify .artifact-subhead {
  color: #c3ccd7 !important;
}

#problem .bg-gray-900\/50 p,
#overview .workflow-stage-card p,
#verify .artifact-steps li {
  font-size: 1rem !important;
  line-height: 1.8 !important;
}

#verify .artifact-meta-text,
#verify .state-list li {
  font-size: 1rem !important;
  line-height: 1.82 !important;
}

#whats-new {
  padding-top: 5.9rem !important;
  padding-bottom: 5.9rem !important;
}

#whats-new h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem) !important;
  letter-spacing:.01em !important;
}

#whats-new .control-grid {
  max-width: 1080px !important;
  gap: 1.2rem !important;
}

#whats-new .control-card {
  min-height: 225px !important;
  padding: 1.45rem 1.25rem 1.2rem !important;
}

#whats-new .control-card h3 {
  font-size: 1.16rem !important;
  line-height: 1.3 !important;
  margin-bottom: 0.65rem !important;
}

#whats-new .control-kicker {
  opacity: 0.92 !important;
}

@media (max-width: 768px) {
  .hero-copy {
    font-size: 1.08rem !important;
    line-height: 1.78 !important;
  }

  .hero-note {
    font-size: 0.98rem !important;
    line-height: 1.78 !important;
  }

  .hero-control-line {
    font-size: 0.88rem !important;
    line-height: 1.72 !important;
  }

  #problem,
  #solution,
  #overview,
  #whats-new,
  #verify {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  #problem .text-lg.text-gray-400,
  #solution > div > .text-center > p,
  #whats-new .text-lg.text-gray-400,
  #verify h2 + p {
    font-size: 1rem !important;
    line-height: 1.8 !important;
  }

  #solution .control-card p:not(.control-kicker),
  #whats-new .control-card p:not(.control-kicker),
  #problem .bg-gray-900\/50 p,
  #overview .workflow-stage-card p,
  #verify .state-list li,
  #verify .artifact-meta-text,
  #verify .artifact-steps li {
    font-size: 1rem !important;
    line-height: 1.84 !important;
  }

  #whats-new .control-card,
  #solution .control-card,
  #problem .bg-gray-900\/50,
  #overview .workflow-stage-card,
  #verify .state-panel,
  #verify .artifact-frame,
  #verify .artifact-side-card {
    padding: 1.3rem 1.1rem !important;
  }
}

/* Badge wrap fix for long release-boundary label */
.hero-kicker {
  max-width: min(92vw, 640px) !important;
  white-space: normal !important;
  text-align: center !important;
  line-height: 1.35 !important;
}

@media (max-width: 768px) {
  .hero-kicker {
    display: inline-block !important;
    max-width: min(92vw, 320px) !important;
    font-size: 0.68rem !important;
    line-height: 1.34 !important;
    padding: 0.48rem 0.72rem !important;
    letter-spacing: 0.1em !important;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(1.9rem, 8.6vw, 2.7rem) !important;
    line-height: 1.14 !important;
    letter-spacing:.01em !important;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(1.65rem, 7.2vw, 2.35rem) !important;
    line-height: 1.18 !important;
    max-width: 100% !important;
  }

  .hero-copy,
  .hero-note {
    max-width: 100% !important;
  }
}


/* Force center alignment for What's new cards */
#whats-new .control-grid {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* What\'s new cards: match sitewide hover rhythm */
#whats-new .control-card {
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease !important;
}

#whats-new .control-card:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(96,165,250,0.26) !important;
  box-shadow: 0 28px 64px rgba(0,0,0,0.32) !important;
  background: linear-gradient(180deg, rgba(22,27,36,0.98), rgba(15,19,26,0.96)) !important;
}

/* Sample package cards: match sitewide hover rhythm */
#sample .control-card {
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 1rem 1rem 1.3rem !important;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease !important;
}

#sample .control-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96,165,250,0.65), transparent);
  opacity: 0.72;
  pointer-events: none;
}

#sample .sample-card-media {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
}

#sample .sample-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 260ms ease, filter 260ms ease;
}

#sample .control-card:hover .sample-card-media img {
  transform: scale(1.035);
  filter: saturate(1.06) contrast(1.04);
}

#sample .control-card h3 {
  font-size: 1.15rem !important;
  line-height: 1.28 !important;
  margin-bottom: 0.5rem !important;
}

#sample .sample-card-caption {
  color: #e5edf8 !important;
  font-size: 0.95rem !important;
  line-height: 1.45 !important;
  margin-bottom: 0.45rem !important;
}

#sample .control-card p:not(.control-kicker):not(.sample-card-caption) {
  color: #b3bcc8 !important;
  font-size: 0.95rem !important;
  line-height: 1.68 !important;
}

#sample .control-card:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(96,165,250,0.26) !important;
  box-shadow: 0 28px 64px rgba(0,0,0,0.32) !important;
  background: linear-gradient(180deg, rgba(22,27,36,0.98), rgba(15,19,26,0.96)) !important;
}

.sample-lightbox {
  width: min(1120px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f8fafc;
  overflow: hidden;
  overscroll-behavior: contain;
}

.sample-lightbox::backdrop {
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sample-lightbox-panel {
  position: relative;
  max-height: inherit;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(15,19,26,0.98), rgba(7,10,15,0.98));
  box-shadow: 0 34px 90px rgba(0,0,0,0.55);
}

.sample-lightbox-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(8,11,17,0.86);
  color: #f8fafc;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.sample-lightbox-close:hover {
  transform: translateY(-1px);
  border-color: rgba(96,165,250,0.35);
  background: rgba(20,25,34,0.94);
}

.sample-lightbox figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  max-height: inherit;
  min-height: 0;
  margin: 0;
}

.sample-lightbox-image-wrap {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: #070a0f;
}

.sample-lightbox-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.sample-lightbox-caption {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem 1.15rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(10,14,20,0.92);
}

.sample-lightbox-title {
  margin: 0;
  color: #f8fafc;
  font-weight: 700;
  font-size: 1rem;
}

.sample-lightbox-subtitle {
  margin: 0;
  color: #aeb8c7;
  font-size: 0.92rem;
  line-height: 1.45;
}

html.sample-lightbox-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.sample-lightbox-open {
  overflow: hidden;
  overscroll-behavior: none;
}

@media (max-width: 768px) {
  #sample .control-grid-3 {
    grid-template-columns: 1fr !important;
  }

  #sample .sample-card-media {
    aspect-ratio: 16 / 9;
  }

  #whats-new .control-card:hover,
  #sample .control-card:hover {
    transform: translateY(-3px) !important;
  }

  .sample-lightbox {
    width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
  }

  .sample-lightbox-caption {
    padding: 0.85rem 1rem 1rem;
  }
}

.auxtho-subtle-bridge {
  margin-top: 0.85rem;
  color: rgba(255,255,255,0.56) !important;
  font-size: 0.9rem;
  line-height: 1.65;
  text-align: center;
}

.auxtho-subtle-link {
  color: #b8d3ff !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(96,165,250,0.38);
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.auxtho-subtle-link:hover {
  color: #ffffff !important;
  text-decoration-color: rgba(255,255,255,0.55);
}

@media (max-width: 768px) {
  .auxtho-subtle-bridge {
    font-size: 0.84rem;
    line-height: 1.6;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
  }
}

/* == existing-systems FAQ section fix == */
#existing-systems {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

#existing-systems > div {
  max-width: 52rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

#existing-systems > div > div {
  display: block !important;
  position: relative !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, rgba(18,22,29,0.97), rgba(12,15,21,0.94)) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 1.5rem !important;
  padding: 2.5rem !important;
  box-shadow: 0 16px 44px rgba(0,0,0,0.2);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease !important;
}

#existing-systems > div > div::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96,165,250,0.65), transparent);
  opacity: 0.7;
  pointer-events: none;
}

#existing-systems > div > div:hover {
  transform: translateY(-6px) !important;
  background: linear-gradient(180deg, rgba(22,27,36,0.98), rgba(15,19,26,0.96)) !important;
  border-color: rgba(96,165,250,0.28) !important;
  box-shadow: 0 28px 64px rgba(0,0,0,0.32) !important;
}

@media (max-width: 768px) {
  #existing-systems > div > div:hover {
    transform: translateY(-3px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #existing-systems > div > div {
    transition: none !important;
  }

  #existing-systems > div > div:hover {
    transform: none !important;
  }
}
