:root {
  --bg: #05070a;
  --panel: rgba(7, 15, 23, 0.82);
  --panel-solid: #07111a;
  --line: rgba(125, 224, 255, 0.22);
  --line-strong: rgba(125, 224, 255, 0.44);
  --text: #eef9ff;
  --muted: #9fb3c1;
  --blue: #23a8ff;
  --cyan: #78ecff;
  --amber: #ffb66b;
  --green: #8bff9c;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.48);
  --radius: 8px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(120, 236, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(120, 236, 255, 0.035) 1px, transparent 1px),
    linear-gradient(118deg, #020305 0%, #07111a 46%, #030609 100%);
  background-size: 48px 48px, 48px 48px, auto;
  font-family: var(--font);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.76)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.82));
}

#neuralCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.42;
  pointer-events: none;
}

.page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(3, 7, 11, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-icon {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: inset 0 0 24px rgba(35, 168, 255, 0.16), 0 0 22px rgba(35, 168, 255, 0.24);
}

.brand-icon::before,
.brand-icon::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 7px;
  height: 15px;
  border: 2px solid var(--cyan);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.brand-icon::before { left: 11px; transform: rotate(-8deg); }
.brand-icon::after { right: 11px; transform: rotate(8deg); }
.brand-icon span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  height: 18px;
  border: 2px solid var(--cyan);
  border-radius: 50% 50% 42% 42%;
}

.brand-text strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-text em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  color: rgba(238, 249, 255, 0.76);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 12px;
  border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle { display: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
  gap: 44px;
  align-items: center;
  min-height: calc(100vh - 120px);
  padding: 56px 0 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(120, 236, 255, 0.24);
  border-radius: var(--radius);
  color: var(--cyan);
  background: rgba(35, 168, 255, 0.07);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(139, 255, 156, 0.82);
}

h1,
h2,
h3,
p { overflow-wrap: anywhere; }

.hero h1 {
  max-width: 760px;
  margin: 24px 0 20px;
  font-size: clamp(52px, 8.2vw, 104px);
  line-height: 0.9;
  letter-spacing: 0;
  font-weight: 900;
}

.hero h1::after {
  content: "Local. Private. Powerful.";
  display: block;
  margin-top: 16px;
  color: transparent;
  background: linear-gradient(90deg, #ffffff, var(--cyan) 46%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1;
  text-shadow: 0 0 34px rgba(35, 168, 255, 0.2);
}

.lead {
  max-width: 680px;
  margin: 0 0 28px;
  color: #c4d2dc;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-weight: 900;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #041017;
  background: linear-gradient(135deg, #f0feff, var(--cyan) 38%, var(--blue));
  box-shadow: 0 18px 42px rgba(35, 168, 255, 0.28);
}

.button-secondary {
  border: 1px solid rgba(120, 236, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.button-secondary:hover {
  border-color: var(--line-strong);
}

.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.signal-strip span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: #dff7ff;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.hero-media {
  position: relative;
  min-height: 630px;
}

.portrait {
  position: absolute;
  inset: 0 0 auto auto;
  width: min(540px, 100%);
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(120, 236, 255, 0.28);
  border-radius: var(--radius);
  background: #061018;
  box-shadow: var(--shadow), 0 0 70px rgba(35, 168, 255, 0.22);
}

.portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, 0.68)),
    linear-gradient(90deg, rgba(35, 168, 255, 0.1), transparent 34%, transparent 72%, rgba(255, 182, 107, 0.08));
}

.portrait::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: -20%;
  top: 0;
  width: 140%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120, 236, 255, 0.95), transparent);
  animation: scan 5.2s linear infinite;
}

.portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
}

.portrait figcaption {
  position: absolute;
  z-index: 4;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(120, 236, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(3, 8, 12, 0.64);
  backdrop-filter: blur(16px);
}

.portrait figcaption strong,
.portrait figcaption span {
  display: block;
}

.portrait figcaption strong {
  font-size: 15px;
  font-weight: 900;
}

.portrait figcaption span {
  max-width: 220px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

@keyframes scan {
  from { transform: translateY(0); }
  to { transform: translateY(680px); }
}

.hud {
  position: absolute;
  z-index: 5;
  width: 220px;
  padding: 14px;
  border: 1px solid rgba(120, 236, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(3, 8, 12, 0.72);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34), inset 0 0 24px rgba(35, 168, 255, 0.08);
  backdrop-filter: blur(14px);
}

.hud-left { left: -12px; top: 110px; }
.hud-right { right: -18px; top: 350px; }

.hud-label {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.hud strong {
  display: block;
  font-size: 16px;
}

.hud small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.proof-row,
.system-grid {
  display: grid;
  gap: 16px;
}

.proof-row {
  grid-template-columns: repeat(3, 1fr);
  padding: 24px 0 96px;
}

.proof-row article,
.system-grid article,
.terminal,
.contact {
  border: 1px solid rgba(120, 236, 255, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(9, 22, 34, 0.84), rgba(4, 10, 16, 0.9));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.proof-row article {
  min-height: 220px;
  padding: 24px;
}

.proof-row span {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.proof-row h2,
.system-grid h3 {
  margin: 20px 0 10px;
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: 0;
}

.proof-row p,
.section-intro p,
.system-grid p,
.workflow-copy p,
.workflow-copy li,
.contact p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.section {
  padding: 0 0 98px;
}

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

.section-intro .eyebrow {
  margin: 0 auto;
}

.section-intro h2,
.workflow-copy h2,
.contact h2 {
  margin: 20px 0 14px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

.system-grid {
  grid-template-columns: repeat(4, 1fr);
}

.system-grid article {
  min-height: 286px;
  padding: 22px;
}

.system-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  color: #041017;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 34px rgba(35, 168, 255, 0.28);
  font-family: var(--mono);
  font-weight: 700;
}

.workflow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 30px;
  align-items: center;
  padding: 0 0 98px;
}

.terminal {
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  gap: 8px;
  height: 42px;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-bar span:nth-child(1) { background: #ff6b5f; }
.terminal-bar span:nth-child(2) { background: #ffbd4a; }
.terminal-bar span:nth-child(3) { background: #35d46b; }

pre {
  margin: 0;
  padding: 24px;
  white-space: pre-wrap;
}

code {
  color: #dffcff;
  font-family: var(--mono);
  font-size: clamp(13px, 1.8vw, 16px);
  line-height: 1.78;
}

code span {
  color: var(--cyan);
}

.workflow-copy ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.workflow-copy li {
  position: relative;
  padding: 12px 14px 12px 36px;
  border: 1px solid rgba(120, 236, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  font-weight: 700;
}

.workflow-copy li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(139, 255, 156, 0.66);
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 42px;
  padding: 30px;
}

.contact p:last-child {
  max-width: 740px;
  margin-bottom: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1050px) {
  .hero,
  .workflow {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: auto;
  }

  .portrait {
    position: relative;
    margin: 0 auto;
  }

  .hud {
    display: none;
  }

  .system-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    top: 10px;
  }

  .brand-text em {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    place-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(120, 236, 255, 0.26);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
  }

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

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(320px, calc(100vw - 24px));
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(3, 7, 11, 0.96);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav a {
    padding: 13px 12px;
  }

  .hero {
    gap: 22px;
    min-height: calc(100vh - 92px);
    padding: 28px 0 18px;
  }

  .hero h1 {
    margin: 16px 0 14px;
    font-size: clamp(38px, 12vw, 58px);
    line-height: 0.94;
  }

  .hero h1::after {
    margin-top: 10px;
    font-size: clamp(24px, 7.8vw, 34px);
  }

  .lead {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.48;
  }

  .hero-actions {
    gap: 8px;
    margin-bottom: 0;
  }

  .button {
    min-height: 46px;
    padding: 0 14px;
    font-size: 14px;
  }

  .signal-strip {
    display: none;
  }

  .portrait {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .portrait img {
    object-position: 50% 34%;
  }

  .portrait figcaption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 10px;
  }

  .portrait figcaption span {
    display: none;
  }

  .proof-row,
  .system-grid {
    grid-template-columns: 1fr;
  }

  .proof-row {
    padding-bottom: 72px;
  }

  .section,
  .workflow {
    padding-bottom: 76px;
  }

  .contact {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }
}

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