:root {
  --bg: #04050a;
  --bg-soft: #0a0c14;
  --panel: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f6fb;
  --muted: #9aa3b5;
  --blue: #3b82f6;
  --blue-bright: #60a5fa;
  --indigo: #4f46e5;
  --green: #34d399;
  --red: #f87171;
  --light: #f3f6fc;
  --light-text: #10131a;
  --light-muted: #6b7287;
  --light-line: rgba(16, 19, 26, 0.1);
  --radius: 16px;
  --font: "Sora", system-ui, sans-serif;
  --shadow: 0 30px 80px rgba(8, 16, 40, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-light {
  background: var(--light);
  color: var(--light-text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 10px 14px;
  background: #fff;
  color: #000;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.wrap-wide {
  width: min(1280px, calc(100% - 32px));
  margin-inline: auto;
}

/* Aurora canvas */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.6s ease;
}

body.is-light .aurora {
  opacity: 0.18;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site {
  position: relative;
  z-index: 2;
}

/* Header */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 40;
  padding: 0 16px;
}

.header-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding: 0 8px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(8, 10, 18, 0.55);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

body.is-light .header-shell {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(16, 19, 26, 0.1);
  box-shadow: 0 10px 30px rgba(16, 30, 70, 0.08);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.logo-mark {
  width: 22px;
  height: 22px;
  color: var(--blue-bright);
}

body.is-light .logo-mark {
  color: var(--blue);
}

.nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.nav a,
.nav button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

body.is-light .nav a,
body.is-light .nav button {
  color: var(--light-muted);
}

.nav a:hover,
.nav button:hover,
.nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

body.is-light .nav a:hover,
body.is-light .nav a.is-active {
  color: var(--light-text);
  background: rgba(16, 19, 26, 0.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

body.is-light .btn-ghost {
  background: #111827;
  color: #fff;
}

.btn-solid {
  background: #fff;
  color: #0b0f1a;
}

body.is-light .btn-solid {
  background: #fff;
  border-color: rgba(16, 19, 26, 0.14);
  color: #111;
}

.btn-glow {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(105deg, #2563eb, #4f46e5 55%, #6366f1);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.35), 0 12px 40px rgba(59, 130, 246, 0.35);
  min-height: 48px;
  padding: 0 8px 0 20px;
}

.btn-glow .arrow {
  width: 40px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
}

.btn-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shimmer 3.6s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  55% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  place-items: center;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  padding: 54px 0 80px;
  min-height: calc(100vh - 80px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #c6cedd;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5.4vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 700;
  max-width: 11ch;
}

.hero h1 .dim {
  color: rgba(244, 246, 251, 0.55);
}

.hero-lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
}

.hero-cta {
  margin-top: 28px;
}

.trust {
  margin-top: 48px;
}

.trust p {
  margin: 0 0 14px;
  color: rgba(154, 163, 181, 0.8);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  opacity: 0.78;
}

.trust-logos span {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.72);
}

.trust-logos span em {
  font-style: normal;
  font-weight: 500;
  opacity: 0.55;
}

/* Hero stage */
.hero-stage {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.stage-glow {
  position: absolute;
  width: 70%;
  height: 55%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.45), rgba(79, 70, 229, 0.12) 45%, transparent 70%);
  filter: blur(18px);
  animation: glow-breathe 5s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

.iso {
  position: relative;
  width: min(520px, 100%);
  aspect-ratio: 1.15;
  transform-style: preserve-3d;
  animation: float-y 6.5s ease-in-out infinite;
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0) rotateX(8deg) rotateZ(-18deg);
  }
  50% {
    transform: translateY(-14px) rotateX(8deg) rotateZ(-18deg);
  }
}

.iso svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.iso-label {
  position: absolute;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  white-space: nowrap;
}

.iso-label.a {
  top: 8%;
  left: 18%;
}
.iso-label.b {
  top: 42%;
  right: 2%;
}
.iso-label.c {
  bottom: 18%;
  left: 8%;
}

/* Sections shared */
.section {
  position: relative;
  padding: 88px 0;
}

.section-light {
  color: var(--light-text);
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  max-width: 16ch;
}

.section h2 .grad {
  background: linear-gradient(100deg, #2563eb, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-lead {
  margin: 16px 0 0;
  color: var(--light-muted);
  max-width: 36rem;
  font-size: 1.05rem;
}

/* Feature logs */
.logs {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--light-line);
  border-bottom: 1px solid var(--light-line);
}

.log {
  padding: 28px 22px 32px;
  border-right: 1px solid var(--light-line);
  min-height: 420px;
  transition: background 0.3s ease;
}

.log:last-child {
  border-right: 0;
}

.log:hover {
  background: rgba(59, 130, 246, 0.04);
}

.log-num {
  margin: 0 0 28px;
  color: #a0a8b8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.log-art {
  height: 160px;
  margin-bottom: 28px;
  display: grid;
  place-items: center;
}

.log h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.log p {
  margin: 0;
  color: var(--light-muted);
  font-size: 0.92rem;
}

.log .more {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--light-text);
  gap: 6px;
}

/* Signal section */
.signal {
  padding-top: 40px;
}

.signal-head {
  margin-bottom: 42px;
}

.signal-link {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 650;
  gap: 6px;
}

.dashboard {
  position: relative;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1.05fr 1fr 0.85fr;
  gap: 18px;
  align-items: start;
}

.panel {
  background: #fff;
  border: 1px solid rgba(16, 19, 26, 0.08);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  color: #374151;
  font-size: 0.88rem;
  font-weight: 600;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.metric strong {
  display: block;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.metric span {
  color: #6b7287;
  font-size: 0.78rem;
}

.metric .up {
  color: #10b981;
  font-weight: 700;
  font-size: 0.75rem;
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 4px;
}

.heat-cell {
  aspect-ratio: 1;
  border-radius: 3px;
  background: #e8eef8;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.35s ease;
}

.heat-cell.is-on {
  opacity: 1;
  transform: scale(1);
}

.heat-cell.l1 {
  background: #dbeafe;
}
.heat-cell.l2 {
  background: #93c5fd;
}
.heat-cell.l3 {
  background: #3b82f6;
}
.heat-cell.l4 {
  background: #1d4ed8;
}

.stream {
  height: 170px;
  margin-top: 8px;
}

.stream svg {
  width: 100%;
  height: 100%;
}

.stream-path {
  fill-opacity: 0.85;
  animation: stream-flow 8s ease-in-out infinite alternate;
}

@keyframes stream-flow {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-18px);
  }
}

.digest {
  transform: translateY(28px);
  z-index: 2;
}

.digest-date {
  font-size: 0.75rem;
  color: #6b7287;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 4px 10px;
}

.digest-item {
  padding: 14px 0;
  border-top: 1px solid #eef0f4;
}

.digest-item:first-of-type {
  border-top: 0;
}

.digest-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.digest-top strong {
  font-size: 0.9rem;
}

.tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
}

.tag-red {
  background: #fee2e2;
  color: #b91c1c;
}

.tag-green {
  background: #d1fae5;
  color: #047857;
}

.digest-item ul {
  margin: 0;
  padding-left: 16px;
  color: #6b7287;
  font-size: 0.8rem;
}

.digest-meta {
  margin: 8px 0 0;
  color: #9ca3af;
  font-size: 0.72rem;
}

/* CTA band */
.cta-band {
  margin: 40px 0 90px;
  padding: 48px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0b1224, #152044 50%, #1e1b4b);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.45), transparent 65%);
  animation: glow-breathe 4.5s ease-in-out infinite;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em;
}

.cta-band p {
  margin: 10px 0 0;
  color: #b6c0d6;
  max-width: 36ch;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--light-line);
  padding: 48px 0 28px;
  color: var(--light-muted);
  background: var(--light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
}

.site-footer .logo {
  color: var(--light-text);
}

.site-footer h3 {
  margin: 0 0 12px;
  color: var(--light-text);
  font-size: 0.85rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--light-line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

/* Page stubs */
.page-hero {
  padding: 72px 0 40px;
  color: var(--text);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.04em;
  max-width: 14ch;
}

.page-hero p {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 40rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 80px;
}

.card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  padding: 22px;
}

.card h3 {
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.form-panel {
  max-width: 520px;
  margin: 0 auto 80px;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  padding: 0 14px;
  outline: none;
}

.field textarea {
  min-height: 110px;
  padding: 12px 14px;
  resize: vertical;
}

.form-success {
  display: none;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #a7f3d0;
  margin-bottom: 14px;
}

.form.is-sent .form-success {
  display: block;
}

.form.is-sent .form-fields {
  display: none;
}

/* Reveal system */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.hero-copy > * {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-copy > *:nth-child(1) {
  animation-delay: 0.08s;
}
.hero-copy > *:nth-child(2) {
  animation-delay: 0.2s;
}
.hero-copy > *:nth-child(3) {
  animation-delay: 0.32s;
}
.hero-copy > *:nth-child(4) {
  animation-delay: 0.44s;
}
.hero-copy > *:nth-child(5) {
  animation-delay: 0.56s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.cursor-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.16), transparent 65%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: screen;
}

body.has-pointer .cursor-glow {
  opacity: 1;
}

body.is-light .cursor-glow {
  mix-blend-mode: multiply;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent 65%);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-copy > *,
  .reveal,
  .iso,
  .stage-glow,
  .btn-glow::after,
  .pulse-dot,
  .stream-path,
  .cta-band::before {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .cursor-glow {
    display: none;
  }
}

@media (max-width: 1050px) {
  .hero-grid,
  .logs,
  .dashboard,
  .footer-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .log {
    border-right: 0;
    border-bottom: 1px solid var(--light-line);
    min-height: 0;
  }

  .digest {
    transform: none;
  }

  .cta-band {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 860px) {
  .menu-btn {
    display: grid;
  }

  .nav,
  .header-actions .btn-ghost {
    display: none;
  }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 10, 18, 0.95);
  }

  body.is-light .nav.is-open {
    background: #fff;
    border-color: var(--light-line);
  }

  .header-shell {
    grid-template-columns: 1fr auto auto;
    position: relative;
  }

  .hero-stage {
    min-height: 360px;
  }
}
