:root {
  --bg0: #070b09;
  --bg1: #0d1511;
  --ink: #e8f5ee;
  --ink-dim: #8aa396;
  --line: rgba(51, 245, 143, 0.16);
  --accent: #33f58f;
  --accent-soft: rgba(51, 245, 143, 0.12);
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(900px 520px at 70% -10%, rgba(51, 245, 143, 0.14), transparent 60%),
    radial-gradient(700px 420px at 10% 20%, rgba(51, 245, 143, 0.06), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 45%, #08100c);
  overflow-x: hidden;
}

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

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

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0.035;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(7, 11, 9, 0.88), rgba(7, 11, 9, 0));
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}

.top-nav {
  display: flex;
  gap: 1.5rem;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

.top-nav a:hover {
  color: var(--accent);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 7rem 1.25rem 5rem;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-video,
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-fallback {
  background:
    radial-gradient(circle at 60% 40%, rgba(51, 245, 143, 0.18), transparent 42%),
    url("./assets/media/hero-poster.svg") center / cover no-repeat,
    #050806;
}

.hero-fallback::after {
  content: "";
  position: absolute;
  inset: -20% auto -20% -30%;
  width: 28%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(51, 245, 143, 0.07),
    transparent
  );
  transform: skewX(-18deg);
  animation: sweep 7.5s var(--ease) infinite;
}

.hero-video:not([data-ready="true"]) {
  opacity: 0;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 9, 0.55), rgba(7, 11, 9, 0.72) 45%, rgba(7, 11, 9, 0.94)),
    radial-gradient(60% 50% at 50% 40%, transparent, rgba(7, 11, 9, 0.75));
}

.hero-inner {
  width: min(720px, 100%);
  text-align: center;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 10vw, 5.6rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  animation: rise 1s var(--ease) both;
}

.hero-lead {
  margin: 1.15rem auto 0;
  max-width: 28ch;
  color: var(--ink-dim);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  line-height: 1.55;
  animation: rise 1s var(--ease) 0.08s both;
}

.download-panel {
  margin-top: 2.4rem;
  animation: rise 1s var(--ease) 0.16s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: #04140c;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
  box-shadow: 0 0 0 1px rgba(51, 245, 143, 0.35), 0 12px 40px rgba(51, 245, 143, 0.18);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-primary.is-disabled {
  pointer-events: none;
  opacity: 0.55;
  box-shadow: none;
}

.download-meta {
  margin: 0.85rem 0 0;
  color: var(--ink-dim);
  font-size: 0.9rem;
}

.platform-links {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  color: var(--ink-dim);
  font-size: 0.92rem;
}

.platform-links[hidden] {
  display: none !important;
}

.platform-links a {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 7.5rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 14, 11, 0.55);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.platform-links a:hover,
.platform-links a.is-active {
  color: var(--ink);
  border-color: rgba(51, 245, 143, 0.55);
  background: var(--accent-soft);
}

.platform-links a.is-empty {
  opacity: 0.35;
  pointer-events: none;
}

.plat-name {
  color: var(--ink);
  font-weight: 600;
}

.plat-rec {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}

.plat-rec[hidden] {
  display: none !important;
}

.plat-ver {
  font-size: 0.78rem;
  color: var(--ink-dim);
}

.capabilities {
  width: min(1100px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 5rem 0 6rem;
}

.section-head {
  max-width: 34rem;
  margin-bottom: 3.5rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0.8rem 0 0;
  color: var(--ink-dim);
  font-size: 1.05rem;
  line-height: 1.6;
}

.cap-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  margin-bottom: 4.5rem;
}

.cap-row.reverse {
  grid-template-columns: 1.15fr 1fr;
}

.cap-row.reverse .cap-copy {
  order: 2;
}

.cap-row.reverse .cap-visual {
  order: 1;
}

.cap-kicker {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cap-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
}

.cap-copy p:last-child {
  margin: 0.75rem 0 0;
  color: var(--ink-dim);
  line-height: 1.65;
  max-width: 34ch;
}

.sell-points {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
  max-width: 38rem;
  color: var(--ink-dim);
  line-height: 1.55;
  font-size: 0.98rem;
}

.sell-points li {
  padding-left: 0.9rem;
  border-left: 2px solid rgba(51, 245, 143, 0.35);
}

.sell-points strong {
  display: inline;
  color: var(--ink);
  font-weight: 600;
}

.cap-visual {
  position: relative;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(51, 245, 143, 0.08), rgba(8, 14, 11, 0.9));
}

.demo {
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 0.9rem 1rem 1.1rem;
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
  color: var(--ink-dim);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(51, 245, 143, 0.28);
}

.demo-bar span:first-child {
  background: rgba(51, 245, 143, 0.55);
}

.demo-bar em {
  margin-left: auto;
  font-style: normal;
  opacity: 0.75;
}

/* —— Code demo: lines write in, undo pulse —— */
.demo-code-body {
  position: relative;
  flex: 1;
  display: grid;
  align-content: start;
  gap: 0.55rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86rem;
}

.code-line {
  display: flex;
  gap: 0.75rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: rgba(7, 11, 9, 0.55);
  color: var(--ink-dim);
  opacity: 0;
  transform: translateX(-8px);
  animation: line-in 7s var(--ease) infinite;
}

.code-line:nth-child(1) {
  animation-delay: 0s;
}
.code-line:nth-child(2) {
  animation-delay: 0.7s;
}
.code-line:nth-child(3) {
  animation-delay: 1.3s;
}
.code-line:nth-child(4) {
  animation-delay: 2s;
}

.code-line i {
  color: rgba(138, 163, 150, 0.55);
  font-style: normal;
}

.code-line b {
  color: var(--accent);
  font-weight: 600;
}

.code-line.write {
  color: var(--ink);
  box-shadow: inset 2px 0 0 var(--accent);
}

.code-line.dim b {
  color: var(--ink-dim);
}

.code-undo {
  margin-top: 0.55rem;
  justify-self: start;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(51, 245, 143, 0.35);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.78rem;
  opacity: 0;
  animation: undo-pulse 7s var(--ease) infinite;
}

@keyframes line-in {
  0%,
  8% {
    opacity: 0;
    transform: translateX(-8px);
  }
  14%,
  78% {
    opacity: 1;
    transform: none;
  }
  88%,
  100% {
    opacity: 0.25;
  }
}

@keyframes undo-pulse {
  0%,
  45% {
    opacity: 0;
    transform: translateY(6px);
  }
  55%,
  78% {
    opacity: 1;
    transform: none;
    box-shadow: 0 0 0 0 rgba(51, 245, 143, 0.35);
  }
  65% {
    box-shadow: 0 0 0 8px rgba(51, 245, 143, 0);
  }
  90%,
  100% {
    opacity: 0;
  }
}

/* —— Web demo: fields fill, slider, cursor —— */
.web-stage {
  position: relative;
  flex: 1;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(7, 11, 9, 0.55);
  padding: 1.1rem 1rem 1.2rem;
  overflow: hidden;
}

.web-field {
  position: relative;
  height: 2.1rem;
  margin-bottom: 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(51, 245, 143, 0.18);
  font-size: 0.82rem;
  line-height: 2.1rem;
  padding: 0 0.75rem;
  background: rgba(51, 245, 143, 0.03);
  overflow: hidden;
  white-space: nowrap;
  color: var(--ink-dim);
}

.web-field.f1 {
  animation: field-fill-1 8s var(--ease) infinite;
}
.web-field.f2 {
  animation: field-fill-2 8s var(--ease) infinite;
}

@keyframes field-fill-1 {
  0%,
  12% {
    box-shadow: none;
    background-image: none;
  }
  20%,
  100% {
    box-shadow: inset 2px 0 0 var(--accent);
    background-image: linear-gradient(
      90deg,
      rgba(51, 245, 143, 0.14) 0 42%,
      transparent 42%
    );
  }
}

@keyframes field-fill-2 {
  0%,
  28% {
    box-shadow: none;
    background-image: none;
  }
  36%,
  100% {
    box-shadow: inset 2px 0 0 var(--accent);
    background-image: linear-gradient(
      90deg,
      rgba(51, 245, 143, 0.14) 0 55%,
      transparent 55%
    );
  }
}

.web-slider {
  position: relative;
  height: 2.2rem;
  margin-top: 0.4rem;
  border-radius: 999px;
  background: rgba(51, 245, 143, 0.08);
  border: 1px solid rgba(51, 245, 143, 0.2);
  overflow: hidden;
}

.web-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--accent);
  animation: slider-move 8s var(--ease) infinite;
}

.web-cursor {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(51, 245, 143, 0.15);
  top: 1.35rem;
  left: 1.2rem;
  animation: cursor-path 8s var(--ease) infinite;
  pointer-events: none;
}

.web-steps {
  position: absolute;
  right: 0.9rem;
  bottom: 0.85rem;
  display: flex;
  gap: 0.35rem;
}

.web-steps i {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 0.7rem;
  color: var(--ink-dim);
  border: 1px solid rgba(51, 245, 143, 0.2);
}

.web-steps i.on {
  animation: step-on 8s var(--ease) infinite;
}

.web-steps i:nth-child(1).on {
  animation-delay: 0.5s;
}
.web-steps i:nth-child(2).on {
  animation-delay: 2s;
}
.web-steps i:nth-child(3) {
  animation: step-on 8s var(--ease) infinite;
  animation-delay: 4.2s;
}

@keyframes slider-move {
  0%,
  48% {
    transform: translateX(0);
  }
  62%,
  85% {
    transform: translateX(12.5rem);
  }
  100% {
    transform: translateX(12.5rem);
  }
}

@keyframes cursor-path {
  0%,
  8% {
    top: 1.4rem;
    left: 1.4rem;
    opacity: 0;
  }
  14% {
    opacity: 1;
  }
  22% {
    top: 1.4rem;
    left: 40%;
  }
  38% {
    top: 4rem;
    left: 35%;
  }
  52% {
    top: 7.1rem;
    left: 1.6rem;
  }
  68% {
    top: 7.1rem;
    left: 70%;
  }
  85%,
  100% {
    opacity: 0.35;
  }
}

@keyframes step-on {
  0%,
  10% {
    color: var(--ink-dim);
    background: transparent;
    border-color: rgba(51, 245, 143, 0.2);
  }
  20%,
  100% {
    color: #04140c;
    background: var(--accent);
    border-color: var(--accent);
  }
}

/* —— Business demo: scan + risk hints —— */
.biz-stage {
  flex: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 0.85rem;
  min-height: 0;
}

.biz-doc {
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(7, 11, 9, 0.55);
  padding: 1rem 0.85rem;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  overflow: hidden;
}

.biz-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 5.2rem;
  margin-bottom: 0.35rem;
  padding: 0.35rem 0.2rem 0;
}

.biz-chart i {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--accent), rgba(51, 245, 143, 0.25));
  opacity: 0.35;
  transform-origin: bottom;
  animation: bar-grow 6.5s var(--ease) infinite;
}

.biz-chart i:nth-child(1) {
  animation-delay: 0.15s;
}
.biz-chart i:nth-child(2) {
  animation-delay: 0.3s;
}
.biz-chart i:nth-child(3) {
  animation-delay: 0.45s;
}
.biz-chart i:nth-child(4) {
  animation-delay: 0.6s;
}
.biz-chart i:nth-child(5) {
  animation-delay: 0.75s;
}

@keyframes bar-grow {
  0%,
  12% {
    opacity: 0.2;
    transform: scaleY(0.25);
  }
  28%,
  78% {
    opacity: 0.95;
    transform: scaleY(1);
  }
  90%,
  100% {
    opacity: 0.35;
    transform: scaleY(0.85);
  }
}

.biz-doc s {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: rgba(138, 163, 150, 0.22);
  text-decoration: none;
}

.biz-doc s:nth-of-type(1) {
  width: 88%;
}
.biz-doc s:nth-of-type(2) {
  width: 64%;
}

.biz-doc s.risk {
  background: rgba(51, 245, 143, 0.16);
  box-shadow: 0 0 0 1px rgba(51, 245, 143, 0.28);
  animation: risk-glow 6.5s var(--ease) infinite;
}

.biz-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 28%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(51, 245, 143, 0.12),
    transparent
  );
  animation: scan-y 6.5s var(--ease) infinite;
}

.biz-hints {
  display: grid;
  gap: 0.55rem;
  align-content: center;
}

.hint {
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(51, 245, 143, 0.22);
  background: rgba(51, 245, 143, 0.06);
  color: var(--ink);
  font-size: 0.78rem;
  opacity: 0;
  transform: translateY(8px);
  animation: hint-in 6.5s var(--ease) infinite;
}

.hint.h1 {
  animation-delay: 1.1s;
}
.hint.h2 {
  animation-delay: 2s;
}
.hint.h3 {
  animation-delay: 2.8s;
  color: var(--ink-dim);
  border-style: dashed;
}

@keyframes scan-y {
  0% {
    top: -10%;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  55% {
    top: 75%;
    opacity: 1;
  }
  70%,
  100% {
    top: 90%;
    opacity: 0;
  }
}

@keyframes risk-glow {
  0%,
  25% {
    filter: brightness(1);
  }
  40%,
  70% {
    filter: brightness(1.35);
  }
  100% {
    filter: brightness(1);
  }
}

@keyframes hint-in {
  0%,
  15% {
    opacity: 0;
    transform: translateY(8px);
  }
  28%,
  78% {
    opacity: 1;
    transform: none;
  }
  90%,
  100% {
    opacity: 0.2;
  }
}

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

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  color: var(--ink-dim);
  font-size: 0.9rem;
}

.foot-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
}

.foot-brand img {
  border-radius: 6px;
}

.foot-note {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.foot-legal {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(138, 163, 150, 0.85);
}

.foot-legal a {
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.foot-note a:hover,
.foot-legal a:hover {
  color: var(--accent);
  border-color: rgba(51, 245, 143, 0.45);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sweep {
  0% {
    left: -30%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  55% {
    opacity: 1;
  }
  100% {
    left: 110%;
    opacity: 0;
  }
}

@media (max-width: 820px) {
  .cap-row,
  .cap-row.reverse {
    grid-template-columns: 1fr;
  }

  .cap-row.reverse .cap-copy,
  .cap-row.reverse .cap-visual {
    order: initial;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-title,
  .hero-lead,
  .download-panel,
  .hero-fallback::after,
  [data-reveal],
  .code-line,
  .code-undo,
  .web-field,
  .web-knob,
  .web-cursor,
  .web-steps i,
  .biz-scan,
  .biz-doc s.risk,
  .biz-chart i,
  .hint {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .web-cursor {
    display: none;
  }
}
