:root {
  --bg: #070A1C;
  --bg-soft: #0A0E26;
  --surface: rgba(13, 18, 50, 0.78);
  --surface-border: rgba(77, 143, 255, 0.32);
  --text: #E2E8F8;
  --muted: #8896C8;
  --accent: #9D6EF8;
  --accent-2: #4D8FFF;
  --accent-3: #22D3EE;
  --maxw: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  background: radial-gradient(circle at 14% 8%, rgba(157, 110, 248, 0.18) 0%, transparent 42%),
              radial-gradient(circle at 80% 12%, rgba(77, 143, 255, 0.16) 0%, transparent 44%),
              linear-gradient(150deg, #05071A 0%, #0A0E26 36%, #0D1232 65%, #070A1C 100%);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body.is-preloading {
  overflow: hidden;
}

.boot-sequence {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: radial-gradient(circle at 50% 30%, rgba(157, 110, 248, 0.16), transparent 40%),
              radial-gradient(circle at 50% 60%, rgba(77, 143, 255, 0.15), transparent 46%),
              #05071A;
  display: grid;
  place-content: center;
  gap: 0.8rem;
  text-align: center;
  padding: 1rem;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.boot-sequence.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.boot-logo {
  width: 88px;
  margin: 0 auto;
  filter: drop-shadow(0 0 18px rgba(157, 110, 248, 0.65));
}

.boot-title {
  margin: 0;
  font-family: "Orbitron", "Segoe UI", sans-serif;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--accent-2);
}

.boot-lines {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #8896C8;
  font-family: "Orbitron", "Segoe UI", sans-serif;
  font-size: 0.67rem;
  letter-spacing: 0.11em;
  line-height: 1.9;
  text-transform: uppercase;
}

.boot-lines li {
  opacity: 0;
  animation: bootType 0.7s ease forwards;
}

.boot-lines li:nth-child(1) { animation-delay: 0.15s; }
.boot-lines li:nth-child(2) { animation-delay: 0.45s; }
.boot-lines li:nth-child(3) { animation-delay: 0.75s; }
.boot-lines li:nth-child(4) { animation-delay: 1.05s; }

.boot-meter {
  width: min(86vw, 420px);
  height: 10px;
  margin: 0.2rem auto 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.boot-meter span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(157, 110, 248, 0.55);
  animation: bootLoad 1.7s ease forwards;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035) 0,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 2px,
    transparent 4px
  );
  opacity: 0.28;
}

body::after {
  background: radial-gradient(circle at center, transparent 35%, rgba(0, 0, 0, 0.45) 100%);
}

.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.cursor-glow {
  position: fixed;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  pointer-events: none;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(157, 110, 248, 0.26) 0%, rgba(77, 143, 255, 0.12) 38%, rgba(0, 0, 0, 0) 70%);
  mix-blend-mode: screen;
  opacity: 0.5;
  z-index: 5;
}

.gradient-orb {
  position: absolute;
  width: 44vmax;
  height: 44vmax;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  animation: drift 14s ease-in-out infinite;
}

.orb-a {
  background: var(--accent);
  left: -10vmax;
  top: -14vmax;
}

.orb-b {
  background: var(--accent-2);
  right: -12vmax;
  bottom: -16vmax;
  animation-delay: -5s;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(77, 143, 255, 0.11) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(157, 110, 248, 0.1) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.scan-beam {
  position: absolute;
  left: -15%;
  width: 40%;
  height: 150%;
  background: linear-gradient(90deg, transparent, rgba(77, 143, 255, 0.22), transparent);
  transform: skewX(-20deg);
  filter: blur(8px);
  animation: scanlineMove 8.4s linear infinite;
}

.noise-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.09;
  background-image: radial-gradient(rgba(255, 255, 255, 0.45) 0.7px, transparent 0.7px);
  background-size: 3px 3px;
  animation: noiseShift 0.4s steps(2) infinite;
}

.site-header {
  width: min(100% - 2rem, var(--maxw));
  margin: 1.2rem auto 0;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 14, 38, 0.72);
  border: 1px solid rgba(157, 110, 248, 0.42);
  box-shadow: 0 0 24px rgba(157, 110, 248, 0.22), inset 0 0 28px rgba(77, 143, 255, 0.1);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0.8rem;
  z-index: 10;
}

.site-header.is-scrolled {
  background: rgba(7, 10, 28, 0.93);
  border-color: rgba(77, 143, 255, 0.45);
}

.brand {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Orbitron", "Segoe UI", sans-serif;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.logo {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(157, 110, 248, 0.65));
}

.brand-text {
  position: relative;
  font-size: 0.95rem;
  color: var(--accent-2);
  text-shadow: 0 0 8px rgba(77, 143, 255, 0.7);
}

.brand-text::after {
  content: attr(data-text);
  position: absolute;
  left: 1px;
  top: 0;
  color: rgba(157, 110, 248, 0.72);
  clip-path: inset(20% 0 44% 0);
  animation: glitch 2.4s infinite steps(1);
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

nav a.active {
  color: var(--accent-2);
  text-shadow: 0 0 10px rgba(77, 143, 255, 0.75);
}

nav a:hover {
  color: var(--accent-2);
  text-shadow: 0 0 10px rgba(77, 143, 255, 0.8);
}

main {
  width: min(100% - 2rem, var(--maxw));
  margin: 1.2rem auto 4rem;
}

.hero {
  padding: 5.2rem 0 3.2rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent-3);
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-family: "Orbitron", "Segoe UI", sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 4.8vw, 4.3rem);
  line-height: 1.06;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 0 15px rgba(157, 110, 248, 0.45), 0 0 28px rgba(77, 143, 255, 0.2);
}

.headline-glitch {
  position: relative;
  display: inline-block;
}

.headline-glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 2px;
  top: 0;
  color: rgba(77, 143, 255, 0.78);
  clip-path: inset(34% 0 38% 0);
  animation: glitch 3.2s infinite steps(1);
}

.hero-copy {
  max-width: 66ch;
  color: var(--muted);
  margin: 1.2rem 0 1.8rem;
  line-height: 1.7;
}

.terminal-line {
  margin: 0 0 1rem;
  font-family: "Orbitron", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--accent-3);
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.65);
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  font-weight: 700;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #070A1C;
  background: linear-gradient(100deg, #9D6EF8, #4D8FFF);
  box-shadow: 0 8px 30px rgba(157, 110, 248, 0.35);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid rgba(77, 143, 255, 0.5);
  background: rgba(9, 8, 27, 0.76);
}

.hero-emblem {
  justify-self: end;
  width: min(100%, 360px);
  padding: 1.2rem;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(26, 8, 41, 0.9), rgba(8, 10, 29, 0.8));
  border: 1px solid rgba(157, 110, 248, 0.42);
  box-shadow: inset 0 0 30px rgba(77, 143, 255, 0.12), 0 0 26px rgba(157, 110, 248, 0.2);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-emblem::before {
  content: "";
  position: absolute;
  inset: -45% -70% auto;
  height: 140%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: rotate(18deg);
  animation: sheen 5s linear infinite;
}

.hero-logo {
  width: min(240px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(157, 110, 248, 0.65));
}

.hero-emblem p {
  margin: 0.45rem 0 0;
  color: var(--accent-2);
  font-family: "Orbitron", "Segoe UI", sans-serif;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
}

.hero-stats {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.hero-stats article,
.feature-card,
.steps li,
.privacy-panel,
.cta-panel {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 20px rgba(77, 143, 255, 0.06);
}

.hero-stats article {
  padding: 1rem;
}

.hero-stats h3 {
  font-family: "Orbitron", "Segoe UI", sans-serif;
  font-size: 1rem;
  color: var(--accent-2);
}

.hero-stats p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.section {
  padding: 2.1rem 0;
}

.section-head {
  margin-bottom: 1.2rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.use-case-card {
  background: linear-gradient(165deg, rgba(14, 10, 35, 0.85), rgba(8, 11, 29, 0.75));
  border: 1px solid rgba(157, 110, 248, 0.34);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: inset 0 0 16px rgba(77, 143, 255, 0.08);
}

.use-case-card h3 {
  font-family: "Orbitron", "Segoe UI", sans-serif;
  color: var(--accent-2);
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.use-case-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.architecture-panel {
  background: linear-gradient(160deg, rgba(10, 10, 34, 0.82), rgba(6, 7, 24, 0.78));
  border: 1px solid rgba(77, 143, 255, 0.3);
  border-radius: 18px;
  padding: 1.1rem;
  box-shadow: inset 0 0 30px rgba(157, 110, 248, 0.08), 0 0 28px rgba(77, 143, 255, 0.1);
}

.arch-pillars {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.arch-pillars article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
}

.arch-pillars h3 {
  margin-bottom: 0.4rem;
  color: var(--accent-3);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
}

.arch-pillars p {
  margin: 0;
  color: var(--muted);
  line-height: 1.52;
}

.dashboard-panel {
  background: linear-gradient(170deg, rgba(12, 10, 33, 0.86), rgba(6, 8, 27, 0.8));
  border: 1px solid rgba(77, 143, 255, 0.35);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: inset 0 0 24px rgba(77, 143, 255, 0.08), 0 0 24px rgba(157, 110, 248, 0.14);
}

.dashboard-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.dashboard-panel h3 {
  font-family: "Orbitron", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--accent-2);
}

.dash-chip {
  font-family: "Orbitron", "Segoe UI", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  border-radius: 999px;
  padding: 0.24rem 0.55rem;
  border: 1px solid transparent;
}

.chip-live {
  color: #070A1C;
  background: linear-gradient(120deg, var(--accent-2), #7AB4FF);
}

.chip-sync {
  color: #070A1C;
  background: linear-gradient(120deg, var(--accent), #C4A8FF);
}

.chip-idle {
  color: #0A0E26;
  background: linear-gradient(120deg, #3D4A78, #8896C8);
}

.chip-ready {
  color: #070A1C;
  background: linear-gradient(120deg, var(--accent-3), #F5C242);
}

.node-list,
.terminal-stream {
  margin: 0;
  padding: 0;
  list-style: none;
}

.node-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  padding: 0.62rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.node-list li + li {
  margin-top: 0.55rem;
}

.meter-wrap {
  margin-top: 0.95rem;
}

.meter-wrap p {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.meter {
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.meter + .meter {
  margin-top: 0.5rem;
}

.bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  animation: pulseBar 2.6s ease-in-out infinite;
}

.bar-a {
  width: 72%;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
}

.bar-b {
  width: 48%;
  animation-duration: 3.4s;
  background: linear-gradient(120deg, var(--accent-3), var(--accent-2));
}

.terminal-panel {
  position: relative;
}

.terminal-panel::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 3.2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77, 143, 255, 0.8), transparent);
}

.terminal-stream {
  margin-top: 0.7rem;
  font-family: "Orbitron", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  color: #7AB4FF;
  letter-spacing: 0.04em;
}

.terminal-stream li {
  padding: 0.45rem 0;
  border-bottom: 1px dashed rgba(77, 143, 255, 0.22);
}

.terminal-stream li:last-child {
  border-bottom: 0;
}

.ts-time {
  color: #C4A8FF;
  margin-right: 0.5rem;
}

h2 {
  font-family: "Orbitron", "Segoe UI", sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2.3rem);
  text-transform: uppercase;
  line-height: 1.15;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  padding: 1.1rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.tilt {
  transform-style: preserve-3d;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.feature-card:hover {
  border-color: rgba(157, 110, 248, 0.82);
  box-shadow: 0 0 25px rgba(157, 110, 248, 0.35);
  transform: translateY(-4px) scale(1.02);
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.55rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  align-items: start;
  padding: 1rem;
}

.steps span {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #070A1C;
  background: linear-gradient(120deg, var(--accent-3), #F5C242);
  font-family: "Orbitron", "Segoe UI", sans-serif;
  font-weight: 700;
}

.steps h3 {
  margin-bottom: 0.3rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.privacy-panel,
.cta-panel {
  padding: 1.2rem;
}

.privacy-panel p,
.cta-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  width: min(100% - 2rem, var(--maxw));
  margin: 0 auto 1.8rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(157, 110, 248, 0.34);
  padding-top: 1rem;
  font-size: 0.9rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(4%, -3%, 0);
  }
}

@keyframes glitch {
  0%,
  70%,
  100% {
    transform: translate(0, 0);
    opacity: 0.68;
  }
  74% {
    transform: translate(-1px, 1px);
  }
  78% {
    transform: translate(1px, -1px);
  }
  82% {
    transform: translate(0, 1px);
  }
}

@keyframes scanlineMove {
  0% {
    transform: translateX(-60%) skewX(-20deg);
  }
  100% {
    transform: translateX(300%) skewX(-20deg);
  }
}

@keyframes noiseShift {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(1px, -1px);
  }
  100% {
    transform: translate(-1px, 1px);
  }
}

@keyframes sheen {
  0% {
    transform: translateX(-70%) rotate(18deg);
    opacity: 0;
  }
  18% {
    opacity: 0.9;
  }
  34%,
  100% {
    transform: translateX(115%) rotate(18deg);
    opacity: 0;
  }
}

@keyframes pulseBar {
  0%,
  100% {
    transform: scaleX(0.72);
    transform-origin: left;
    opacity: 0.76;
  }
  50% {
    transform: scaleX(1);
    transform-origin: left;
    opacity: 1;
  }
}

@keyframes bootLoad {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes bootType {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-emblem {
    justify-self: start;
    width: min(100%, 300px);
  }

  .hero-stats,
  .feature-grid,
  .dashboard-grid,
  .use-case-grid,
  .arch-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  nav {
    display: none;
  }
}

@media (max-width: 680px) {
  .hero {
    padding-top: 4.2rem;
  }

  .hero-stats,
  .feature-grid,
  .dashboard-grid,
  .use-case-grid,
  .arch-pillars {
    grid-template-columns: 1fr;
  }

  .node-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header {
    border-radius: 14px;
    top: 0.5rem;
  }

  .cursor-glow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
