.hero {
  position: relative;
  min-height: min(100svh, 58rem);
  display: flex; align-items: center;
  padding-top: 4.6rem;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.aurora { position: absolute; border-radius: 50%; mix-blend-mode: screen; will-change: transform; }
.aurora.a1 {
  width: 74vmax; height: 74vmax; top: -46%; left: -16%;
  background: radial-gradient(closest-side, rgba(128,0,255,0.26), rgba(128,0,255,0.09) 46%, transparent 72%);
  animation: drift-a 36s ease-in-out infinite alternate;
}
.aurora.a2 {
  width: 60vmax; height: 60vmax; top: -34%; right: -22%;
  background: radial-gradient(closest-side, rgba(64,18,186,0.30), rgba(64,18,186,0.10) 48%, transparent 74%);
  animation: drift-b 48s ease-in-out infinite alternate;
}
.aurora.a3 {
  width: 52vmax; height: 52vmax; bottom: -52%; left: 14%;
  background: radial-gradient(closest-side, rgba(162,89,255,0.14), rgba(162,89,255,0.05) 50%, transparent 74%);
  animation: drift-c 56s ease-in-out infinite alternate;
}
.aurora.a4 {
  width: 34vmax; height: 34vmax; top: 10%; right: 0;
  background: radial-gradient(closest-side, rgba(222,120,255,0.10), transparent 70%);
  animation: drift-d 42s ease-in-out infinite alternate;
}
@keyframes drift-a { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(8vmax, 5vmax, 0) scale(1.16); } }
@keyframes drift-b { from { transform: translate3d(0, 0, 0) scale(1.1); } to { transform: translate3d(-7vmax, 7vmax, 0) scale(0.94); } }
@keyframes drift-c { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(10vmax, -6vmax, 0) scale(1.22); } }
@keyframes drift-d { from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.55; } to { transform: translate3d(-6vmax, 4vmax, 0) scale(1.3); opacity: 1; } }

.hero-grid {
  position: absolute; inset: 0; z-index: 1;
  background-image: radial-gradient(rgba(128,0,255,0.12) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 20%, transparent 74%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 20%, transparent 74%);
  opacity: 0.5;
}

.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 38%; z-index: 2;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 3; width: 100%;
  padding-block: 5.5rem 4.5rem;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-inner > * { min-width: 0; }
.hero-copy { max-width: 44rem; }
.hero h1.display { font-size: clamp(2rem, 5.4vw, 4.2rem); line-height: 0.99; }

.hero-pill {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary-bright);
  padding: 0.4em 0.85em; margin-bottom: 1.6rem;
  border: 1px solid var(--border); border-radius: 99px;
  background: var(--primary-faint);
}
.hero-pill .led {
  width: 6px; height: 6px; border-radius: 99px;
  background: var(--primary-bright); box-shadow: 0 0 10px var(--primary-bright);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 { margin: 0 0 1.5rem; }
.hero h1 .react { position: relative; color: var(--primary-bright); }
.hero h1 .react::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.08em; height: 0.42em;
  background: var(--primary); opacity: 0.16; z-index: -1; border-radius: 2px;
}
.hero .lede { max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; align-items: center; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 2.4rem;
  margin-top: 2rem; padding-top: 1.6rem;
  border-top: 1px solid var(--hairline);
}
.hero-stats li { display: flex; flex-direction: column; gap: 0.15rem; }
.hero-stats strong {
  font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; letter-spacing: -0.03em;
  color: var(--text);
}
.hero-stats span {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-faint);
}

.hero-console {
  position: relative;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-elev), rgba(10,7,18,0.75));
  box-shadow: 0 30px 80px -40px rgba(128,0,255,0.5), 0 0 0 1px rgba(255,255,255,0.02) inset;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
}
.console-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--hairline);
}
.console-bar .dotc { width: 10px; height: 10px; border-radius: 99px; background: var(--bg-elev-2); border: 1px solid var(--border-soft); }
.console-bar .ttl { margin-left: 0.6rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.06em; }
.console-bar .live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ok);
}
.console-bar .live-led { width: 6px; height: 6px; border-radius: 99px; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: pulse 1.8s ease-in-out infinite; }

.console-feed {
  height: 14rem; padding: 0.9rem 1.1rem;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.55rem;
  overflow: hidden;
  font-family: var(--font-mono); font-size: 0.82rem;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%);
  mask-image: linear-gradient(to bottom, transparent, #000 14%);
}
.console-feed li { display: flex; gap: 0.7rem; align-items: baseline; white-space: nowrap; min-width: 0; }
.console-feed li.enter { animation: feedin 0.45s var(--ease-out) both; }
@keyframes feedin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.console-feed .t { color: var(--text-faint); font-size: 0.76rem; }
.console-feed .tag { padding: 0.05em 0.5em; border-radius: 5px; font-size: 0.68rem; letter-spacing: 0.05em; flex-shrink: 0; }
.console-feed .tag.scan { background: rgba(128,0,255,0.16); color: var(--primary-bright); }
.console-feed .tag.act { background: rgba(91,227,154,0.14); color: var(--ok); }
.console-feed .tag.flag { background: rgba(255,90,90,0.14); color: #ff7a7a; }
.console-feed .m { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.console-feed .m b { color: var(--text); font-weight: 400; }

.console-foot {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 1.1rem; border-top: 1px solid var(--hairline);
  font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-faint); letter-spacing: 0.04em;
}
.console-foot .caret {
  width: 0.5rem; height: 1rem; background: var(--primary-bright); border-radius: 1px;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-scroll {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  z-index: 4; display: inline-flex; flex-direction: column; align-items: center; gap: 0.35rem;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-faint); transition: color 0.25s var(--ease);
}
.hero-scroll:hover { color: var(--primary-bright); }
.hero-scroll svg { width: 1.05rem; height: 1.05rem; animation: bob 1.9s var(--ease) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); opacity: 0.7; } 50% { transform: translateY(4px); opacity: 1; } }

@media (max-width: 960px) {
  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.6rem; padding-block: 6rem 4.5rem; }
  .hero-copy { max-width: 46rem; }
  .hero-console { max-width: 34rem; }
  .hero-scroll { display: none; }
  .aurora.a1 { top: -24%; left: -42%; }
  .aurora.a2 { top: -18%; right: -48%; }
  .aurora.a3 { bottom: -30%; left: -10%; }
}
@media (max-width: 460px) {
  .hero-stats { gap: 1.6rem; }
  .hero-stats strong { font-size: 1.35rem; }
  .console-feed { font-size: 0.76rem; height: 14rem; }
  .aurora.a4 { display: none; }
}

.strip {
  border-block: 1px solid var(--hairline);
  overflow: hidden;
  padding: 0;
}
.strip-track {
  display: flex; gap: 3rem; white-space: nowrap;
  padding-block: 1rem;
  animation: marquee 38s linear infinite;
  width: max-content;
}
.strip-track span {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-faint); display: inline-flex; align-items: center; gap: 1rem;
}
.strip-track span::after { content: "·"; color: var(--primary); }
@keyframes marquee { to { transform: translateX(-50%); } }
.strip:hover .strip-track { animation-play-state: paused; }

.section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }
.section-head { max-width: 46rem; margin-bottom: 3.2rem; }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head h2 { margin-bottom: 1.1rem; }

.features { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.1rem; }
.feature {
  position: relative;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0));
  padding: 1.7rem;
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), background 0.4s var(--ease);
}
.feature::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--primary-faint), transparent 70%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.feature:hover { border-color: var(--border); transform: translateY(-3px); }
.feature:hover::before { opacity: 1; }
.feature > * { position: relative; }
.feature .ico {
  width: 2.6rem; height: 2.6rem; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-dim); border: 1px solid var(--border);
  margin-bottom: 1.2rem;
}
.feature .ico svg { width: 1.35rem; height: 1.35rem; stroke: var(--primary-bright); }
.feature .num { position: absolute; top: 1.4rem; right: 1.5rem; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-faint); letter-spacing: 0.1em; }
.feature h3 { margin-bottom: 0.55rem; }
.feature p { color: var(--text-muted); font-size: 0.96rem; }
.feature .tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.1rem; }
.feature .tags span { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); border: 1px solid var(--hairline); padding: 0.2em 0.6em; border-radius: 6px; }

.feature.col-7 { grid-column: span 7; }
.feature.col-5 { grid-column: span 5; }
.feature.col-4 { grid-column: span 4; }
.feature.col-6 { grid-column: span 6; }

.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.step { padding: 2rem 1.6rem; border-right: 1px solid var(--hairline); position: relative; }
.step:last-child { border-right: none; }
.step .idx { font-family: var(--font-mono); font-size: 0.74rem; color: var(--primary-bright); letter-spacing: 0.1em; }
.step h4 { font-size: 1.1rem; margin: 0.9rem 0 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.9rem; }
.step::after {
  content: "→"; position: absolute; right: -0.62em; top: 2.1rem; z-index: 2;
  color: var(--primary); background: var(--bg); padding: 0 0.2em; font-size: 0.95rem;
}
.step:last-child::after { display: none; }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; align-items: center; }
.cov-grid { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.cov-grid span {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted);
  border: 1px solid var(--border-soft); border-radius: 8px; padding: 0.5em 0.85em;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.cov-grid span:hover { color: var(--text); border-color: var(--primary); background: var(--primary-faint); }

.panel {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-elev), var(--bg));
  overflow: hidden;
}
.panel-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--hairline); }
.panel-bar .dotc { width: 10px; height: 10px; border-radius: 99px; background: var(--bg-elev-2); border: 1px solid var(--border-soft); }
.panel-bar .ttl { margin-left: 0.6rem; font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-faint); letter-spacing: 0.08em; }
.panel-body { padding: 1.3rem; font-family: var(--font-mono); font-size: 0.84rem; line-height: 1.9; }
.log-line { display: flex; gap: 0.8rem; align-items: baseline; }
.log-line .t { color: var(--text-faint); }
.log-line .tag { padding: 0.05em 0.5em; border-radius: 5px; font-size: 0.72rem; letter-spacing: 0.06em; }
.tag.scan { background: rgba(128,0,255,0.16); color: var(--primary-bright); }
.tag.act { background: rgba(91,227,154,0.14); color: var(--ok); }
.tag.flag { background: rgba(255,90,90,0.14); color: #ff7a7a; }
.log-line .m { color: var(--text-muted); }

.cta-band {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(128,0,255,0.12), transparent 62%),
    var(--bg-elev);
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
}
.cta-band h2 { margin-bottom: 1.1rem; }
.cta-band .lede { margin-inline: auto; margin-bottom: 2rem; }
.cta-band .hero-actions { justify-content: center; }

@media (max-width: 900px) {
  .features { grid-template-columns: repeat(6, 1fr); }
  .feature.col-7, .feature.col-5, .feature.col-4, .feature.col-6 { grid-column: span 6; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2)::after { display: none; }
  .step:nth-child(1), .step:nth-child(2) { border-bottom: 1px solid var(--hairline); }
  .split { grid-template-columns: 1fr; gap: 2.2rem; }
}
@media (max-width: 560px) {
  .pipeline { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--hairline); }
  .step::after { content: "↓"; right: auto; left: 1.6rem; top: auto; bottom: -0.62em; }
  .step:last-child { border-bottom: none; }
}
