/* ============================================
   InfraSync Mono — Hero + sections
   ============================================ */

/* ============================================
   HERO — scroll-locked cinematic stage
   ============================================ */
.hero {
  position: relative;
  height: 125vh;
  background: var(--bg);
}
.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-ghost { display: none; }

.hero-rail { display: none; }
.hero-eyebrow { display: none; }
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

/* Synthetic signal wave */
.signal-wave {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}
.signal-wave svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.signal-wave path {
  fill: none;
  stroke: var(--signal-color);
  stroke-width: 0.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

/* Hero copy */
.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 1400px;
  padding: 0 32px;
  width: 100%;
}

.hero h1 {
  font-size: clamp(48px, 9vw, 168px);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--text);
}
.hero h1 .line {
  display: block;
  white-space: nowrap;
  will-change: transform, opacity, filter;
  position: relative;
  transform-origin: 50% 50%;
}
.hero h1 .accent {
  font-weight: 700;
  letter-spacing: -0.05em;
  display: inline-block;
  will-change: transform;
}
.hero h1 .amp {
  font-weight: 300;
  display: inline;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 40px auto 0;
  line-height: 1.55;
  font-weight: 400;
  will-change: transform, opacity;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
  will-change: transform, opacity;
}

/* Scroll cue (bottom) */
.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  z-index: 5;
  will-change: opacity, transform;
}
.scroll-cue-line {
  width: 1px;
  height: 36px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.scroll-cue-line::after {
  content: '';
  position: absolute;
  top: -36px;
  left: 0; right: 0;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--text));
  animation: cue-fall 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes cue-fall {
  0% { top: -36px; }
  100% { top: 100%; }
}

/* ============================================
   SECTIONS — section start labels (NON-sticky)
   ============================================ */
.section-label {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  margin-bottom: 80px;
}
.section-label-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.section-label .label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.section-label .label strong { color: var(--text); margin-right: 12px; font-weight: 700; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  margin-bottom: 100px;
  align-items: end;
}
.section-head h2 {
  font-size: clamp(36px, 5vw, 76px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.section-head h2 .accent {
  font-weight: 500;
}
.section-head .desc {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 480px;
  line-height: 1.5;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================
   SERVICES — editorial spreads
   ============================================ */
.services {
  padding: 0 0 120px;
}
.services-list {
  display: flex;
  flex-direction: column;
}
/* ============================================
   SERVICES — sticky stacking cards (paper stack)
   ============================================ */
.services {
  padding: 0 0 120px;
}
.services-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.service-spread {
  position: sticky;
  top: 100px;
  display: grid;
  grid-template-columns: 80px 1fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 56px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-card);
  min-height: 520px;
  box-shadow: 0 -1px 0 var(--line);
  will-change: transform;
  transform-origin: 50% 0%;
}
.service-spread:last-child { border-bottom: 1px solid var(--line); }
.service-num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  align-self: start;
  position: relative;
  top: 0;
  padding-top: 8px;
  text-transform: uppercase;
}
.service-text {
  position: relative;
  top: 0;
  align-self: center;
}
.service-mockup {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-elev);
  height: 420px;
  position: relative;
  overflow: hidden;
}
.service-tagline {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 24px;
}
.service-spread h3 {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 22px;
}
.service-spread .desc {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.55;
  max-width: 480px;
  margin-bottom: 36px;
}
.service-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.service-tags span {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  font-weight: 500;
}
.service-mockup {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-elev);
  height: 460px;
  position: relative;
  overflow: hidden;
}

/* ============================================
   PROCESS — scroll-locked horizontal (kept)
   ============================================ */
.process {
  position: relative;
  padding: 0;
  background: var(--bg);
}
.process-pin {
  height: 400vh;
  position: relative;
}
.process-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 100px 0 60px;
}
.process-head {
  padding: 0 40px;
  max-width: 1320px;
  margin: 0 auto 48px;
  width: 100%;
}
.process-head h2 {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 900px;
}
.process-head h2 .accent { font-weight: 500; }
.process-head p {
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 540px;
  font-size: 16px;
}
.process-track {
  flex: 1;
  display: flex;
  gap: 32px;
  padding: 0 40px;
  will-change: transform;
}
.process-step {
  flex: 0 0 calc(100vw - 200px);
  max-width: 1100px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-card);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  position: relative;
  overflow: hidden;
}
.process-step-num {
  position: absolute;
  top: 28px;
  right: 40px;
  font-size: 180px;
  line-height: 1;
  color: var(--text);
  font-weight: 200;
  letter-spacing: -0.05em;
  opacity: 0.04;
}
.process-step .label-mono { margin-bottom: 28px; }
.process-step h3 {
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 300;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  line-height: 1.02;
}
.process-step p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.55;
  max-width: 92%;
}
.process-step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.process-step-tags span {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 11px;
  color: var(--text-secondary);
}
.process-visual {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-muted);
  position: relative;
  overflow: hidden;
}

.process-progress {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.process-progress span {
  width: 28px; height: 2px;
  background: var(--line-strong);
  transition: background 0.3s;
}
.process-progress span.active { background: var(--text); }

/* ============================================
   BENEFITS — sticky stats + animated rows
   ============================================ */
.benefits {
  padding: 80px 0 160px;
}
.benefits-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: start;
}
.benefits-stats-pane {
  position: relative;
}
.benefits-stats-sticky {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.big-stat {
  display: grid;
  grid-template-columns: 1fr;
  padding: 14px 0;
  opacity: 0.25;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  border-left: 2px solid transparent;
  padding-left: 18px;
  transition: opacity 0.6s, border-color 0.4s, padding-left 0.5s;
}
.big-stat.active {
  opacity: 1;
  border-left-color: var(--text);
  padding-left: 22px;
}
.big-stat .big-stat-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.big-stat .big-stat-num {
  font-size: clamp(44px, 5.5vw, 84px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.big-stat.active .big-stat-num {
  transform: translateX(-4px) scale(1.03);
  transform-origin: 0 50%;
}

.benefits-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.benefit-row {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  will-change: transform, opacity;
}
.benefit-row::before {
  content: '';
  position: absolute;
  left: 0; top: 64px;
  width: 0; height: 1px;
  background: var(--text);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.benefit-row:first-child { border-top: 1px solid var(--line); }
.benefit-row.active::before { width: 56px; }
.benefit-row.active h3 { transform: translateX(8px); }
.benefit-row.active p { opacity: 1; }

.benefit-row-num {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 20px;
  padding-left: 72px;
}
.benefit-row h3 {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 300;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  line-height: 1.05;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.benefit-row p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.55;
  max-width: 540px;
  opacity: 0.7;
  transition: opacity 0.5s, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================
   CTA — scale-on-approach (tighter)
   ============================================ */
.cta {
  padding: 0;
  border-top: 1px solid var(--line);
  height: 150vh;
  position: relative;
  text-align: left;
  background: var(--bg);
}
.cta-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cta-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, var(--hover) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.8s;
  pointer-events: none;
}
.cta-stage.lit::before { opacity: 1; }
.cta-content {
  text-align: center;
  max-width: 1300px;
  padding: 0 32px;
  position: relative;
  will-change: transform, opacity, filter;
}
.cta-content h2 {
  font-size: clamp(48px, 9vw, 180px);
  font-weight: 200;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin-bottom: 32px;
}
.cta-content h2 .accent {
  font-weight: 700;
  letter-spacing: -0.055em;
  position: relative;
  display: inline-block;
}
.cta-content h2 .word-block {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.cta-content p {
  color: var(--text-secondary);
  margin-bottom: 48px;
  font-size: 17px;
  letter-spacing: -0.005em;
}
.cta-content .btn {
  font-size: 15px;
  padding: 16px 30px;
  border-radius: 999px;
}

/* CTA giant background wordmark */
.cta-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  z-index: 0;
}
.cta-bg-text {
  font-size: clamp(160px, 22vw, 380px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  white-space: nowrap;
  will-change: transform;
}

@media (max-width: 900px) {
  .benefits-split { grid-template-columns: 1fr; gap: 40px; }
  .benefits-stats-sticky { position: relative; top: 0; }
  .big-stat { opacity: 1; }
  .benefit-row-num { padding-left: 0; }
  .benefit-row::before { display: none; }
  .cta { height: auto; }
  .cta-stage { position: relative; top: 0; height: auto; padding: 80px 0; }
  /* Hide section markers on mobile to avoid stacking issues */
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  padding: 160px 0;
}
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-align: left;
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.faq-icon {
  width: 32px; height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.4s, border-color 0.3s, background 0.3s;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--text);
  transition: background 0.3s;
}
.faq-icon::before { width: 12px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 12px; }
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  border-color: var(--text);
  background: var(--text);
}
.faq-item.open .faq-icon::before,
.faq-item.open .faq-icon::after { background: var(--bg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-a-inner {
  padding-bottom: 36px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  max-width: 760px;
}
.faq-item.open .faq-a { max-height: 320px; }

/* OLD CTA STYLES removed — now in benefits section above */
.cta-removed-marker {}

.footer {
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 80px;
}
.footer h4 {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 16px;
  max-width: 320px;
  line-height: 1.55;
}
.footer-newsletter {
  display: flex;
  border-bottom: 1px solid var(--line-strong);
  align-items: center;
}
.footer-newsletter input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  padding: 12px 0;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}
.footer-newsletter input::placeholder { color: var(--text-dim); }
.footer-newsletter button {
  border: none;
  background: none;
  color: var(--text);
  padding: 12px 0 12px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-transform: uppercase;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ============================================
   MONO UI MOCKUPS (inside service mockup containers)
   ============================================ */
.mockup {
  position: absolute;
  inset: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: inherit;
  font-size: 12px;
}
.mockup-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.mockup-head .dot {
  width: 6px; height: 6px;
  background: var(--text);
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
  animation: live-pulse 2s ease-in-out infinite;
}

/* 1. Task list (AI PM) */
.mk-pm-task {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.mk-pm-task:last-child { border-bottom: none; }
.mk-pm-check {
  width: 16px; height: 16px;
  border: 1px solid var(--line-bold);
  border-radius: 4px;
  position: relative;
}
.mk-pm-check.done { background: var(--text); border-color: var(--text); }
.mk-pm-check.done::after {
  content: '';
  position: absolute;
  top: 2px; left: 5px;
  width: 4px; height: 8px;
  border: solid var(--bg);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.mk-pm-title { font-size: 12px; color: var(--text); font-weight: 500; }
.mk-pm-meta { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.mk-pm-status {
  font-size: 9px;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mk-pm-status.active { border-color: var(--text); color: var(--text); font-weight: 600; }

/* 2. Vault chart */
.mk-vault-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mk-vault-stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
.mk-vault-stat-label {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.mk-vault-stat-num {
  font-size: 20px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.mk-vault-chart {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  position: relative;
  min-height: 140px;
}
.mk-vault-chart svg { width: 100%; height: 100%; }
.mk-vault-chart-label {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* 3. Indexer log stream */
.mk-indexer-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 11px;
  color: var(--text-secondary);
}
.mk-indexer-search .cursor {
  width: 1px;
  height: 12px;
  background: var(--text);
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.mk-indexer-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.mk-indexer-row .time { color: var(--text-muted); font-weight: 500; }
.mk-indexer-row .msg { color: var(--text-secondary); }
.mk-indexer-row .msg .hi { color: var(--text); font-weight: 600; }
.mk-indexer-row .badge {
  font-size: 9px;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* 4. Lead pipeline */
.mk-leads-orbit {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mk-leads-orbit svg { width: 100%; height: 100%; max-height: 220px; }
.mk-leads-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 11px;
}
.mk-leads-item .av {
  width: 22px; height: 22px;
  background: var(--text);
  color: var(--bg);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.mk-leads-item .name { color: var(--text); font-weight: 500; }
.mk-leads-item .role { color: var(--text-muted); font-size: 10px; }
.mk-leads-item .verified { font-size: 9px; color: var(--text-secondary); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }

/* 5. Tx debugger code */
.mk-debug-tabs {
  display: flex;
  gap: 6px;
}
.mk-debug-tab {
  padding: 6px 12px;
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-muted);
  font-weight: 500;
}
.mk-debug-tab.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.mk-debug-code {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--text-secondary);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.mk-debug-code .ln {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
}
.mk-debug-code .num { color: var(--text-dim); text-align: right; }
.mk-debug-code .kw { color: var(--text); font-weight: 600; }
.mk-debug-code .str { color: var(--text-secondary); font-style: italic; }
.mk-debug-code .com { color: var(--text-dim); }
.mk-debug-code .err {
  background: var(--hover-strong);
  border-left: 2px solid var(--text);
  margin: 4px -16px;
  padding: 4px 16px 4px 14px;
}
.mk-debug-status {
  display: flex;
  gap: 18px;
  font-size: 10px;
  color: var(--text-secondary);
}
.mk-debug-status span::before {
  content: '●';
  color: var(--text);
  margin-right: 6px;
}

/* 6. Custom — neural diagram (mono lines) */
.mk-custom {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mk-custom svg { width: 100%; height: 100%; }
.mk-custom svg circle { fill: var(--text); }
.mk-custom svg path { stroke: var(--line-bold); stroke-width: 0.5; fill: none; }
.mk-custom svg text { fill: var(--text-muted); }

/* Process visuals — mono */
.v-discovery {
  padding: 24px;
}
.v-discovery .meter {
  margin-bottom: 16px;
}
.v-discovery .meter-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.v-discovery .meter-label .val { color: var(--text); font-weight: 600; }
.v-discovery .meter-bar {
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.v-discovery .meter-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  width: var(--w, 50%);
  background: var(--text);
  border-radius: 2px;
}
.v-discovery .score-card {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}
.v-discovery .score-card .label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.v-discovery .score-card .num {
  font-size: 36px;
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.v-build {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.v-build-modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.v-build-mod {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}
.v-build-mod.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.v-build-code {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--text-secondary);
  background: var(--bg);
}
.v-build-code .kw { color: var(--text); font-weight: 600; }
.v-build-code .str { color: var(--text-secondary); font-style: italic; }
.v-build-code .com { color: var(--text-dim); }

.v-ops {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.v-ops-247 {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--text);
}
.v-ops-247 small {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
  font-weight: 500;
}
.v-ops-graph {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  min-height: 120px;
}
.v-ops-graph svg { width: 100%; height: 100%; }
.v-ops-alerts { display: flex; flex-direction: column; gap: 6px; }
.v-ops-alert {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  font-size: 11px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  align-items: center;
}
.v-ops-alert .marker {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text);
}
.v-ops-alert .txt { color: var(--text-secondary); }
.v-ops-alert .t { color: var(--text-muted); font-size: 10px; }

.v-transfer {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.v-transfer-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}
.v-transfer-card .ic {
  width: 36px; height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}
.v-transfer-card .name { font-size: 13px; color: var(--text); font-weight: 600; }
.v-transfer-card .meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.v-transfer-card .pct { font-size: 18px; color: var(--text); font-weight: 500; }
.v-transfer-card.update {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.v-transfer-card.update .ic { color: var(--bg); border-color: rgba(255,255,255,0.3); }
.v-transfer-card.update .name { color: var(--bg); }
.v-transfer-card.update .meta { color: rgba(255,255,255,0.6); }
.v-transfer-card.update .pct { color: var(--bg); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  html, body { overflow-x: hidden; }
  section { padding: 60px 0 !important; }
  .container { padding: 0 20px; }
  .nav { padding: 14px 20px !important; grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .nav-right { gap: 10px; }
  .section-label { padding: 20px 0; margin-bottom: 40px; }

  /* HERO mobile — no sticky pin */
  .hero {
    position: relative;
    height: auto;
    min-height: 100vh;
    padding: 0;
    overflow: hidden;
  }
  .hero-stage {
    position: relative;
    top: 0;
    height: 100vh;
    min-height: 600px;
    padding: 80px 0 80px;
    overflow: hidden;
  }
  .signal-wave {
    position: absolute;
    inset: 0;
    height: 100%;
  }
  .signal-wave svg { width: 100%; height: 100%; }
  .hero-content {
    padding: 0 24px;
    max-width: 100%;
    width: 100%;
  }
  .hero h1 {
    font-size: clamp(36px, 10vw, 64px) !important;
    white-space: normal !important;
    word-break: keep-all;
    overflow-wrap: break-word;
    text-align: center;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
  .hero h1 .line {
    white-space: normal !important;
    display: block;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
  .hero h1 .accent { transform: none !important; }
  .hero-sub {
    padding: 0 16px;
    font-size: 14px;
    margin-top: 24px;
    transform: none !important;
    opacity: 1 !important;
  }
  .hero-actions {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 24px;
    transform: none !important;
    opacity: 1 !important;
  }
  .scroll-cue { bottom: 24px; opacity: 1 !important; }

  /* SERVICES mobile — tighter */
  .services { padding: 0 0 40px !important; }
  .services-list { padding: 0; }
  .service-spread {
    position: relative !important;
    top: 0 !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 32px 24px !important;
    margin-bottom: 12px;
    min-height: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    border-radius: 16px;
  }
  .service-spread .service-num,
  .service-spread .service-text {
    position: relative !important;
    top: 0 !important;
    padding-top: 0 !important;
  }
  .service-mockup { height: 320px; }

  /* PROCESS mobile — tighter spacing */
  .process { padding: 0 !important; }
  .process-pin { height: auto !important; }
  .process-sticky {
    position: relative !important;
    top: 0 !important;
    height: auto !important;
    padding: 20px 0 40px !important;
    overflow: visible !important;
  }
  .process-head {
    padding: 0 20px !important;
    margin: 0 auto 24px !important;
  }
  .process-head h2 { font-size: 32px !important; }
  .process-head p { font-size: 14px; }
  .process-track {
    flex-direction: column;
    gap: 12px !important;
    transform: none !important;
    padding: 0 20px !important;
  }
  .process-step {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: 1fr !important;
    padding: 32px 24px !important;
  }
  .process-step-num { font-size: 100px !important; top: 16px !important; right: 20px !important; }
  .process-step h3 { font-size: 26px !important; }
  .process-progress { display: none !important; }

  /* BENEFITS mobile */
  .benefits { padding: 40px 0 60px !important; }
  .benefits-split {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .benefits-stats-sticky {
    position: relative !important;
    top: 0 !important;
    padding: 20px 0 !important;
  }
  .big-stat {
    opacity: 1 !important;
    border-left-color: transparent !important;
    padding-left: 0 !important;
  }
  .big-stat .big-stat-num { transform: none !important; font-size: 44px !important; }
  .benefit-row {
    opacity: 1 !important;
    transform: none !important;
    padding: 32px 0 !important;
  }
  .benefit-row::before { display: none; }
  .benefit-row:last-child { border-bottom: none; }
  .benefit-row-num { padding-left: 0 !important; margin-bottom: 12px; }
  .benefit-row h3 { font-size: 22px !important; transform: none !important; }
  .benefit-row.active h3 { transform: none !important; }
  .benefit-row.active p { transform: none !important; }

  /* CTA mobile — collapse pin */
  .cta {
    height: auto !important;
    padding: 60px 0 60px !important;
    border-top: 1px solid var(--line);
  }
  .cta-stage {
    position: relative !important;
    top: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }
  .cta-stage::before { display: none; }
  .cta-content {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    padding: 0 24px;
  }
  .cta-content h2 { font-size: clamp(28px, 8vw, 48px) !important; }
  .cta-content p { font-size: 15px; }

  /* Section heads + labels */
  .section-label-inner { gap: 16px; flex-wrap: wrap; }
  .section-head { grid-template-columns: 1fr !important; gap: 16px !important; margin-bottom: 40px !important; }
  .section-head h2 { font-size: clamp(28px, 7vw, 40px) !important; }

  /* Footer */
  .footer { padding: 40px 0 24px; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 32px; margin-bottom: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

@media (max-width: 560px) {
  .hero-actions .btn { width: 100%; justify-content: center; }
}
