:root {
  --bg: #02070d;
  --bg-2: #07111d;
  --surface: rgba(7, 17, 29, 0.8);
  --surface-strong: rgba(10, 22, 36, 0.94);
  --surface-soft: rgba(9, 19, 32, 0.68);
  --text: #ebf7ff;
  --muted: #9bb9d6;
  --line: rgba(102, 198, 255, 0.16);
  --line-strong: rgba(102, 198, 255, 0.34);
  --glow: #41bfff;
  --glow-soft: rgba(65, 191, 255, 0.18);
  --accent: #87e8ff;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --shadow-lg: 0 28px 90px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 16px 44px rgba(0, 0, 0, 0.34);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(28, 103, 170, 0.24), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(40, 173, 255, 0.14), transparent 16%),
    linear-gradient(180deg, #01050a 0%, #020811 38%, #06111d 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(108, 184, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 184, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at center, black 28%, transparent 88%);
  opacity: 0.75;
  animation: gridDrift 22s linear infinite;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-shell {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 25%, rgba(80, 185, 255, 0.06), transparent 16%),
    radial-gradient(circle at 85% 68%, rgba(80, 185, 255, 0.06), transparent 14%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(2, 7, 13, 0.88), rgba(2, 7, 13, 0.56));
  border-bottom: 1px solid rgba(102, 198, 255, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--glow));
  box-shadow: 0 0 0 6px rgba(65, 191, 255, 0.12), 0 0 22px rgba(65, 191, 255, 0.5);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  letter-spacing: 0.14em;
  font-size: 15px;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a { transition: color 160ms ease, transform 160ms ease; }
.nav-links a:hover { color: var(--text); transform: translateY(-1px); }

.nav-cta {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 12px 16px;
  color: var(--text) !important;
  background: rgba(8, 20, 34, 0.78);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 17, 29, 0.7);
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.hero {
  position: relative;
  padding: 92px 0 64px;
  overflow: hidden;
}

.hero-energy-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.85;
}

.energy-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(135, 232, 255, 0.8), transparent);
  box-shadow: 0 0 12px rgba(65, 191, 255, 0.5);
}

.line-a {
  --rot: -11deg;
  width: 28vw;
  min-width: 280px;
  left: -3vw;
  top: 34%;
  transform: rotate(var(--rot));
  animation: energyShift 10s ease-in-out infinite;
}

.line-b {
  --rot: 12deg;
  width: 24vw;
  min-width: 230px;
  right: -2vw;
  top: 26%;
  transform: rotate(var(--rot));
  animation: energyShift 12s ease-in-out infinite reverse;
}

.line-c {
  --rot: -8deg;
  width: 18vw;
  min-width: 180px;
  right: 12vw;
  bottom: 22%;
  transform: rotate(var(--rot));
  animation: energyShift 11s ease-in-out infinite;
}

.energy-orb {
  position: absolute;
  width: 18px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #ffffff, #87e8ff 40%, rgba(65, 191, 255, 0.15) 72%, transparent 74%);
  box-shadow: 0 0 32px rgba(65, 191, 255, 0.55);
}

.orb-a {
  left: 10%;
  top: 40%;
  animation: orbFloat 8.8s ease-in-out infinite;
}

.orb-b {
  right: 14%;
  top: 30%;
  animation: orbFloat 10.4s ease-in-out infinite reverse;
}

.orb-c {
  right: 20%;
  bottom: 18%;
  animation: orbFloat 9.6s ease-in-out infinite;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 17, 29, 0.72);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.trust-grid h2 {
  margin: 18px 0 0;
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.hero h1 {
  font-size: clamp(3.3rem, 7vw, 6.2rem);
  max-width: 10.5ch;
}

.lede,
.section-heading p,
.trust-grid p,
.step-card p,
.deploy-card p,
.feature-card span,
.faq-item p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

.hero-copy .lede { max-width: 62ch; margin-top: 22px; }
.hero-copy strong { color: var(--text); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary {
  background: linear-gradient(180deg, rgba(115, 228, 255, 0.28), rgba(47, 149, 235, 0.22));
  border-color: rgba(132, 233, 255, 0.42);
  box-shadow: 0 12px 34px rgba(20, 112, 180, 0.34), inset 0 1px 0 rgba(255,255,255,0.15);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(7, 17, 29, 0.7);
}

.signal-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.signal-row li,
.metric-card,
.step-card,
.deploy-card,
.feature-card,
.faq-item,
.arch-node,
.hero-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(9, 20, 34, 0.88), rgba(7, 17, 29, 0.82));
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.03);
}

.signal-row li {
  border-radius: var(--radius-md);
  padding: 16px 16px 15px;
}

.signal-row span,
.metric-card span,
.arch-node span,
.feature-card span {
  display: block;
  color: var(--muted);
}

.signal-row strong,
.metric-card strong,
.arch-node strong,
.deploy-card h3,
.step-card h3,
.feature-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
}

.hero-card {
  position: relative;
  padding: 24px;
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
}

.frame-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 28%, rgba(66, 178, 255, 0.16), transparent 34%),
    radial-gradient(circle at 20% 72%, rgba(66, 178, 255, 0.10), transparent 22%),
    radial-gradient(circle at 82% 24%, rgba(66, 178, 255, 0.10), transparent 20%);
}

.electric-hero::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 24px;
  border: 1px solid rgba(135, 232, 255, 0.12);
  pointer-events: none;
}

.logo-stage {
  position: relative;
  width: min(100%, 560px);
  margin: 0 auto;
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
  filter:
    drop-shadow(0 0 12px rgba(65, 191, 255, 0.3))
    drop-shadow(0 0 36px rgba(65, 191, 255, 0.14));
  animation: logoBreath 6.6s ease-in-out infinite;
}

.sweep-band {
  position: absolute;
  inset: 12% -10%;
  background: linear-gradient(105deg, transparent 22%, rgba(255, 255, 255, 0.38) 42%, rgba(135, 232, 255, 0.18) 48%, transparent 58%);
  filter: blur(9px);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0.36;
  z-index: 2;
}

.sweep-a { animation: sweepAcross 7s linear infinite; }
.sweep-b { animation: sweepAcross 9.5s linear infinite reverse; opacity: 0.22; }

.spark {
  position: absolute;
  width: 14px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, #ffffff 0%, #87e8ff 38%, rgba(65, 191, 255, 0.2) 68%, transparent 70%);
  box-shadow: 0 0 18px rgba(65, 191, 255, 0.6);
  z-index: 3;
  pointer-events: none;
}

.spark-a { left: 14%; top: 38%; animation: sparkPulse 4s ease-in-out infinite; }
.spark-b { right: 18%; top: 25%; animation: sparkPulse 3.6s ease-in-out infinite 0.8s; }
.spark-c { right: 22%; top: 62%; animation: sparkPulse 4.6s ease-in-out infinite 1.2s; }

.pulse-node {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 4;
  pointer-events: none;
  border-radius: 999px;
  overflow: visible;
}

.pulse-node .scan-ring,
.pulse-node .scan-sweep,
.pulse-node .scan-dot {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.node-eye {
  left: 50%;
  top: 33%;
  width: 13%;
  aspect-ratio: 1;
}

.node-eye .scan-ring {
  border: 1px solid rgba(135, 232, 255, 0.24);
  box-shadow: 0 0 0 10px rgba(65, 191, 255, 0.05), 0 0 22px rgba(65, 191, 255, 0.18) inset;
}

.node-eye .scan-sweep {
  background: radial-gradient(circle at 50% 50%, transparent 0 48%, rgba(135, 232, 255, 0.18) 58%, transparent 68%);
  animation: ringPulse 4.8s ease-in-out infinite;
}

.node-eye .scan-dot {
  width: 29%;
  height: 29%;
  left: 36%;
  top: 34%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.85), rgba(135, 232, 255, 0.8) 26%, rgba(3, 13, 25, 0.95) 28%, rgba(3, 13, 25, 0.95) 74%, rgba(135, 232, 255, 0.55) 100%);
  box-shadow: 0 0 10px rgba(135, 232, 255, 0.35);
  animation: eyeSweep 5.4s ease-in-out infinite;
}

.node-mobile {
  left: 50%;
  top: 55.2%;
  width: 3.6%;
  aspect-ratio: 1;
  opacity: 0.18;
}

.node-mobile .scan-ring {
  border: 1px solid rgba(135, 232, 255, 0.18);
  box-shadow: 0 0 0 8px rgba(65, 191, 255, 0.04);
}

.node-mobile .scan-sweep {
  background: radial-gradient(circle, rgba(255,255,255,0.8), rgba(135, 232, 255, 0.42) 40%, transparent 72%);
  animation: mobilePulse 3.8s ease-in-out infinite;
}

.node-mobile .scan-dot {
  background: radial-gradient(circle, #ffffff 0%, #87e8ff 34%, rgba(65, 191, 255, 0.1) 72%, transparent 74%);
  box-shadow: 0 0 12px rgba(65, 191, 255, 0.5);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
  position: relative;
  z-index: 5;
}

.hero-badges span {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(5, 13, 22, 0.76);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust-strip {
  padding: 10px 0 20px;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.kicker,
.section-heading .eyebrow {
  display: inline-flex;
}

.kicker {
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
}

.trust-grid h2,
.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.metric-card,
.step-card,
.deploy-card,
.feature-card,
.faq-item {
  border-radius: var(--radius-lg);
  padding: 22px;
}

.section {
  padding: 90px 0;
}

.alt-section {
  background: linear-gradient(180deg, rgba(6, 17, 29, 0.45), rgba(6, 17, 29, 0.1));
  border-top: 1px solid rgba(102, 198, 255, 0.06);
  border-bottom: 1px solid rgba(102, 198, 255, 0.06);
}

.section-grid,
.split-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 26px;
  align-items: center;
}

.section-heading.center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 34px;
}

.architecture-panel {
  display: grid;
  gap: 18px;
}

.arch-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.arch-node {
  border-radius: 24px;
  padding: 24px;
  min-height: 148px;
}

.arch-node small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.arch-core {
  position: relative;
  min-height: 180px;
  border-color: rgba(127, 230, 255, 0.36);
  box-shadow: 0 26px 80px rgba(15, 75, 122, 0.28), inset 0 1px 0 rgba(255,255,255,0.05);
}

.arch-core::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(127, 230, 255, 0.12);
  border-radius: 18px;
  pointer-events: none;
}

.steps-grid,
.deploy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step-number {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: rgba(22, 122, 198, 0.22);
  border: 1px solid rgba(120, 223, 255, 0.24);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.step-card h3,
.deploy-card h3 { margin: 18px 0 10px; }

.feature-stack {
  display: grid;
  gap: 14px;
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.08rem;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 14px 0 0; }

.footer {
  padding: 32px 0 46px;
  border-top: 1px solid rgba(102, 198, 255, 0.08);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer p,
.footer-meta {
  color: var(--muted);
}

.footer-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal-delay { transition-delay: 100ms; }
.reveal-delay-1 { transition-delay: 90ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 230ms; }
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 30px, 30px 0; }
}

@keyframes energyShift {
  0%, 100% { transform: translateX(0) translateY(0) rotate(var(--rot, 0deg)); opacity: 0.25; }
  50% { transform: translateX(12px) translateY(-8px) rotate(var(--rot, 0deg)); opacity: 0.8; }
}

@keyframes orbFloat {
  0%, 100% { transform: translate3d(0,0,0) scale(0.92); opacity: 0.5; }
  50% { transform: translate3d(18px,-12px,0) scale(1.2); opacity: 1; }
}

@keyframes logoBreath {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 12px rgba(65, 191, 255, 0.28)) drop-shadow(0 0 36px rgba(65, 191, 255, 0.12)); }
  50% { transform: translateY(-4px); filter: drop-shadow(0 0 18px rgba(65, 191, 255, 0.4)) drop-shadow(0 0 52px rgba(65, 191, 255, 0.16)); }
}

@keyframes sweepAcross {
  0% { transform: translateX(-26%) translateY(0) rotate(0deg); }
  100% { transform: translateX(24%) translateY(0) rotate(0deg); }
}

@keyframes sparkPulse {
  0%, 100% { transform: scale(0.65); opacity: 0.32; }
  50% { transform: scale(1.3); opacity: 1; }
}

@keyframes ringPulse {
  0%, 100% { transform: scale(0.92); opacity: 0.2; }
  50% { transform: scale(1.08); opacity: 0.78; }
}

@keyframes eyeSweep {
  0%, 100% { transform: translateX(-38%) scale(0.94); }
  50% { transform: translateX(42%) scale(1.02); }
}

@keyframes mobilePulse {
  0%, 100% { transform: scale(0.78); opacity: 0.35; }
  50% { transform: scale(1.38); opacity: 1; }
}

@media (max-width: 1080px) {
  .hero-grid,
  .trust-grid,
  .section-grid,
  .split-grid,
  .steps-grid,
  .deploy-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 { max-width: 12ch; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(4, 12, 20, 0.96);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open { display: flex; }
  .nav-cta { text-align: center; }

  .hero-grid,
  .trust-grid,
  .section-grid,
  .split-grid,
  .steps-grid,
  .deploy-grid,
  .signal-row,
  .arch-row,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .hero { padding-top: 68px; }
  .section { padding: 72px 0; }
  .node-mobile { opacity: 1; }
  .hero-card { padding: 18px; }
  .line-a { width: 62vw; top: 23%; }
  .line-b { width: 48vw; top: 18%; }
  .line-c { width: 42vw; bottom: 34%; }
}

@media (max-width: 540px) {
  .container { width: min(calc(100% - 20px), var(--max)); }
  .topbar .container { width: min(calc(100% - 20px), var(--max)); }
  .hero h1 { font-size: clamp(2.6rem, 15vw, 4rem); }
  .button { width: 100%; }
  .hero-actions { flex-direction: column; }
  .metric-card,
  .step-card,
  .deploy-card,
  .feature-card,
  .faq-item,
  .arch-node { padding: 18px; }
  .footer-wrap { flex-direction: column; align-items: flex-start; }
  .footer-meta { justify-content: flex-start; }
  .hero-badges { gap: 8px; }
  .hero-badges span { font-size: 11px; }
  .node-eye { width: 14.5%; top: 32.9%; }
  .node-mobile { width: 4.6%; top: 55.1%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
