:root {
  --bg: #07090d;
  --bg-raise: #0c1016;
  --panel: #10151d;
  --panel-2: #141a24;
  --line: rgba(148, 179, 222, 0.13);
  --line-strong: rgba(148, 179, 222, 0.24);
  --text: #eef3fa;
  --text-dim: #9fb0c6;
  --text-faint: #7f91aa;
  --cyan: #15a9d1;
  --blue: #2456d8;
  --grad: linear-gradient(135deg, var(--cyan), var(--blue));
  --glow-cyan: rgba(34, 211, 247, 0.35);
  --glow-blue: rgba(47, 107, 255, 0.35);
  --radius: 18px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --nav-h: 72px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: rgba(34, 211, 247, 0.28);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
.btn:focus-visible,
.nav a:focus-visible,
.nav-toggle:focus-visible,
.footer a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--blue);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
}

.skip-link:focus {
  left: 0;
}

.page-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(760px 500px at 82% 12%, rgba(47, 107, 255, 0.08), transparent 68%),
    radial-gradient(620px 420px at 10% 22%, rgba(34, 211, 247, 0.04), transparent 70%);
}

.nav-sentinel {
  position: absolute;
  top: 12px;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

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

.btn:active {
  transform: translateY(1px);
}

.btn-solid {
  background: #1f4fd1;
  color: #fff;
  box-shadow: 0 6px 20px -12px var(--glow-blue), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-solid:hover {
  background: #245be6;
  box-shadow: 0 12px 28px -16px var(--glow-blue), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-outline {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-outline:hover {
  border-color: var(--cyan);
  background: rgba(34, 211, 247, 0.06);
}

.btn-ghost {
  color: var(--text-dim);
  padding: 11px 14px;
}

.btn-ghost:hover {
  color: var(--text);
}

.btn-lg {
  padding: 15px 30px;
  font-size: 16px;
  border-radius: 999px;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav {
  background: rgba(7, 9, 13, 0.78);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: var(--line);
}

.nav.scrolled,
.nav.open {
  background: rgba(7, 9, 13, 0.88);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0 28px;
}

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

.brand-mark {
  width: 32px;
  height: 32px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 10px rgba(34, 211, 247, 0.4));
}

.brand-mark img {
  width: 32px;
  height: auto;
  max-height: 32px;
  object-fit: contain;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand-text em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-left: 5px;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 6px;
  margin-left: 8px;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 10px;
  transition: color 0.15s ease, background 0.15s ease;
}

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

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 28px 24px;
  background: rgba(7, 9, 13, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-mobile a {
  padding: 12px 4px;
  font-weight: 500;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(148, 179, 222, 0.06);
}

.nav-mobile .btn {
  margin-top: 14px;
  color: #fff;
  border: none;
}

.nav.open .nav-mobile {
  display: flex;
}

main,
section,
.footer {
  position: relative;
  z-index: 1;
}

.section-head {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}

.kicker,
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.kicker {
  margin-bottom: 18px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08;
}

.lede {
  color: var(--text-dim);
  font-size: 17.5px;
  margin-top: 20px;
}

body.has-js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.65, 0.25, 1), transform 0.7s cubic-bezier(0.2, 0.65, 0.25, 1);
}

body.has-js .reveal.in {
  opacity: 1;
  transform: none;
}

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(360px, 1.16fr);
  align-items: start;
  gap: clamp(32px, 4vw, 58px);
  max-width: 1240px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 76px) 28px 96px;
}

.hero-content {
  position: relative;
  max-width: 690px;
  min-width: 0;
}

.hero-eyebrow {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 18px;
  background: rgba(16, 21, 29, 0.55);
  backdrop-filter: blur(8px);
  margin-bottom: 30px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(44px, 5.8vw, 72px);
  line-height: 1.02;
}

.hero-title span {
  display: block;
}

.hero-title span:last-child {
  color: #c6d6ee;
}

.hero-sub {
  color: var(--text-dim);
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 620px;
  margin-top: 26px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.hero-anim {
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(420px 260px at 50% 34%, rgba(21, 169, 209, 0.12), transparent 66%),
    rgba(16, 21, 29, 0.64);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 22px 64px -42px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.anim-stage {
  position: relative;
  min-height: 432px;
  overflow: hidden;
}

.canvas-floor {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(238, 243, 250, 0.34), transparent);
}

.stick-figure {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 150px;
  height: 210px;
  transform: translate(-50%, -55%);
  animation: figure-step 2.6s ease-in-out infinite;
}

.stick-figure span {
  position: absolute;
  display: block;
  background: #eef3fa;
  box-shadow: 0 0 18px rgba(21, 169, 209, 0.14);
}

.stick-figure .head {
  width: 58px;
  height: 58px;
  left: 46px;
  top: 0;
  border: 5px solid #eef3fa;
  border-radius: 999px;
  background: transparent;
}

.torso {
  width: 8px;
  height: 86px;
  left: 71px;
  top: 58px;
  border-radius: 999px;
}

.arm,
.leg {
  width: 8px;
  height: 76px;
  left: 71px;
  top: 68px;
  border-radius: 999px;
  transform-origin: top center;
}

.arm.left {
  transform: rotate(52deg);
  animation: arm-left 2.6s ease-in-out infinite;
}

.arm.right {
  transform: rotate(-48deg);
  animation: arm-right 2.6s ease-in-out infinite;
}

.leg {
  top: 138px;
  height: 82px;
}

.leg.left {
  transform: rotate(28deg);
  animation: leg-left 2.6s ease-in-out infinite;
}

.leg.right {
  transform: rotate(-32deg);
  animation: leg-right 2.6s ease-in-out infinite;
}

.timeline-strip {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.4fr 1fr;
  gap: 10px;
}

.timeline-strip span {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.timeline-strip span:nth-child(2),
.timeline-strip span:nth-child(4) {
  background: rgba(21, 169, 209, 0.13);
}

@keyframes figure-step {
  0%, 100% { transform: translate(-50%, -55%) rotate(-1deg); }
  50% { transform: translate(-50%, -58%) rotate(1deg); }
}

@keyframes arm-left {
  0%, 100% { transform: rotate(52deg); }
  50% { transform: rotate(22deg); }
}

@keyframes arm-right {
  0%, 100% { transform: rotate(-48deg); }
  50% { transform: rotate(-74deg); }
}

@keyframes leg-left {
  0%, 100% { transform: rotate(28deg); }
  50% { transform: rotate(48deg); }
}

@keyframes leg-right {
  0%, 100% { transform: rotate(-32deg); }
  50% { transform: rotate(-12deg); }
}

.section-preview {
  width: 100%;
  height: auto;
  margin: 22px 0 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.project,
.features,
.roadmap {
  padding: 110px 28px;
}

.project-layout {
  max-width: 1160px;
  margin: 58px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.project-copy {
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: clamp(26px, 4vw, 42px);
  background:
    linear-gradient(150deg, rgba(34, 211, 247, 0.10), transparent 42%),
    rgba(20, 26, 36, 0.76);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.project-copy h3,
.roadmap-item h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.project-copy p,
.roadmap-item p,
.footer p {
  color: var(--text-dim);
  margin-top: 16px;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 34px;
}

.mini-metrics span {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--font-display);
  font-weight: 600;
}

.workflow-list {
  max-width: 1160px;
  margin: 58px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.workflow-list li {
  padding: 26px 24px;
  border-right: 1px solid var(--line);
}

.workflow-list li:last-child {
  border-right: 0;
}

.workflow-list strong,
.roadmap-item span {
  display: block;
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.workflow-list span {
  color: var(--text-dim);
  display: block;
}

.roadmap-track {
  max-width: 1160px;
  margin: 58px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.roadmap-item {
  border-top: 1px solid var(--line-strong);
  padding: 28px 4px 0;
}

.roadmap-item h3 {
  font-size: clamp(21px, 2.2vw, 28px);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 42px 28px;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.footer p {
  margin-top: 0;
}

.footer-links {
  display: flex;
  gap: 18px;
  color: var(--text-dim);
}

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 920px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  body:not(.has-js) .nav-mobile {
    display: flex;
  }

  body:not(.has-js) .nav-toggle {
    display: none;
  }

  .hero,
  .project-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 38px);
  }

  .hero-content {
    max-width: 760px;
  }

  .roadmap-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-inner {
    padding: 0 18px;
  }

  .brand-text {
    font-size: 17px;
  }

  .hero,
  .project,
  .features,
  .roadmap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    min-height: 100svh;
    padding-bottom: 18px;
  }

  .hero-title {
    font-size: clamp(34px, 9vw, 40px);
    line-height: 1.07;
    overflow-wrap: break-word;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-cta {
    max-width: 100%;
  }

  .hero-anim {
    margin-top: 10px;
  }

  .anim-stage {
    min-height: 246px;
  }

  .stick-figure {
    transform: translate(-50%, -55%) scale(0.72);
    animation-name: figure-step-mobile;
  }

  .timeline-strip {
    left: 18px;
    right: 18px;
    bottom: 18px;
    gap: 7px;
  }

  .timeline-strip span {
    height: 24px;
  }

  @keyframes figure-step-mobile {
    0%, 100% { transform: translate(-50%, -55%) scale(0.72) rotate(-1deg); }
    50% { transform: translate(-50%, -58%) scale(0.72) rotate(1deg); }
  }

  .workflow-list,
  .roadmap-track {
    grid-template-columns: 1fr;
  }

  .workflow-list li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-left: 0;
    padding-right: 0;
  }

  .workflow-list li:last-child {
    border-bottom: 0;
  }

  .mini-metrics {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

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

  body.has-js .reveal {
    opacity: 1;
    transform: none;
  }

  .stick-figure,
  .arm.left,
  .arm.right,
  .leg.left,
  .leg.right {
    animation: none;
  }
}
