:root {
  color-scheme: dark;
  --bg: #090c10;
  --bg-soft: #0d1218;
  --surface: #111820;
  --surface-strong: #151e28;
  --surface-muted: #0f151c;
  --line: rgba(186, 209, 232, 0.16);
  --line-strong: rgba(198, 224, 247, 0.28);
  --text: #f4f7fb;
  --text-soft: #c1cbd6;
  --text-muted: #7f8b98;
  --accent: #67d8ff;
  --accent-strong: #2eb7f5;
  --green: #70e2ac;
  --amber: #f0c76f;
  --blue: #7ba7ff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-lg: 0 28px 90px rgba(0, 0, 0, 0.45);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(22, 35, 46, 0.78), rgba(9, 12, 16, 0) 420px),
    radial-gradient(circle at 50% 0%, rgba(103, 216, 255, 0.14), transparent 42rem),
    var(--bg);
  color: var(--text);
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 72%);
}

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

/* Full-screen scroll snapping — one section per scroll gesture (desktop only) */
@media (min-width: 981px) and (prefers-reduced-motion: no-preference) {
  html {
    scroll-snap-type: y mandatory;
  }

  main > section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  main > section:not(.hero):not(.split-section) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
  }

  main > section.split-section {
    min-height: 100vh;
  }

  .site-footer {
    scroll-snap-align: start;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand,
.top-nav,
.nav-cta {
  border: 1px solid var(--line);
  background: rgba(9, 12, 16, 0.7);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.22);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 650;
}

.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(103, 216, 255, 0.34);
  border-radius: 7px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  background: rgba(103, 216, 255, 0.09);
}

.top-nav {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 6px;
  border-radius: var(--radius-md);
}

.top-nav a {
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--text-soft);
  font-size: 13px;
  transition: background-color 160ms ease, color 160ms ease;
}

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

.top-nav a.is-active {
  color: var(--accent);
  background: rgba(103, 216, 255, 0.13);
}

.nav-cta {
  justify-self: end;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}

.section-shell {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
  gap: 46px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 54px 0 80px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(52px, 7vw, 104px);
  line-height: 0.92;
  font-weight: 780;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1;
  font-weight: 760;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.25;
}

p {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.7;
}

.hero-subtitle {
  max-width: 650px;
  margin-bottom: 30px;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 750;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

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

.button-primary {
  border: 1px solid rgba(151, 231, 255, 0.52);
  background: linear-gradient(180deg, #8ae3ff, #2eb7f5);
  color: #061018;
  box-shadow: 0 16px 50px rgba(46, 183, 245, 0.26);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.platform-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.platform-note span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--text-muted);
  font-size: 12px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.trust-row li {
  position: relative;
  padding-left: 22px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.4;
}

.trust-row li::before {
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 999px;
  border: 1px solid rgba(112, 226, 172, 0.55);
  background: rgba(112, 226, 172, 0.16);
  content: "";
}

.trust-row li::after {
  position: absolute;
  left: 4px;
  top: 50%;
  width: 6px;
  height: 3px;
  margin-top: -2px;
  border-left: 1.4px solid var(--green);
  border-bottom: 1.4px solid var(--green);
  transform: rotate(-45deg);
  content: "";
}

.trust-row strong {
  color: var(--text);
  font-weight: 700;
}

.platform-tiny {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.demo-stage {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow-lg);
}

.window-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 12, 16, 0.72);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.demo-frame {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 12%, rgba(103, 216, 255, 0.14), transparent 22rem),
    var(--surface-muted);
}

.demo-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-video[hidden] {
  display: none;
}

.demo-video:not([hidden]) + .demo-fallback {
  display: none;
}

.demo-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 20px;
}

.demo-toolbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--text-soft);
  font-size: 13px;
}

.kanban-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  height: calc(100% - 32px);
}

.preview-column {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.column-label {
  display: block;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.preview-card {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(17, 24, 32, 0.86);
  animation: float-card 5.5s ease-in-out infinite;
  transition: border-color 600ms ease, box-shadow 600ms ease;
}

.card-pulse {
  animation:
    float-card 5.5s ease-in-out infinite,
    pipeline-pulse 5.6s ease-in-out infinite;
  animation-delay: 0s, var(--pulse-delay, 0s);
}

.preview-card strong,
.preview-card span {
  display: block;
  overflow-wrap: anywhere;
}

.preview-card strong {
  margin-bottom: 7px;
  font-size: 14px;
}

.preview-card span {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.card-active {
  border-color: rgba(103, 216, 255, 0.42);
  box-shadow: 0 0 0 1px rgba(103, 216, 255, 0.12);
}

.card-review {
  border-color: rgba(240, 199, 111, 0.36);
}

.card-done {
  border-color: rgba(112, 226, 172, 0.35);
}

.progress-line {
  position: relative;
  height: 3px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-line::after {
  position: absolute;
  inset: 0;
  width: 44%;
  border-radius: inherit;
  content: "";
  background: var(--accent);
  animation: progress 2.6s ease-in-out infinite;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading.narrow {
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
}

.why,
.workflow,
.split-section,
.control,
.agents,
.mode-section,
.power,
.download {
  padding: 78px 0;
}

.why .section-heading {
  margin-bottom: 38px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.why-grid article {
  position: relative;
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(165deg, rgba(103, 216, 255, 0.07), transparent 55%),
    rgba(17, 24, 32, 0.78);
  min-height: 240px;
}

.why-num {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.why-grid h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.25;
}

.why-grid p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
}

.why-grid em {
  font-style: normal;
  color: var(--text);
  background: rgba(103, 216, 255, 0.18);
  padding: 0 5px;
  border-radius: 4px;
}

.why-grid code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  color: var(--accent);
  background: rgba(103, 216, 255, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
}

.workflow-steps,
.control-grid,
.mode-grid,
.power-grid {
  display: grid;
  gap: 14px;
}

.workflow-steps {
  grid-template-columns: repeat(5, 1fr);
}

.workflow-steps article,
.control-grid article,
.mode-grid article,
.power-grid article,
.system-panel,
.download-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(17, 24, 32, 0.7);
}

.workflow-steps article {
  min-height: 220px;
  padding: 20px;
}

.workflow-steps span {
  display: inline-flex;
  margin-bottom: 54px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.workflow-steps p,
.control-grid p,
.mode-grid p,
.power-grid p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 44px;
  align-items: center;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-soft);
  line-height: 1.6;
}

.feature-list li::before {
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  content: "";
  background: var(--accent);
}

.system-panel {
  padding: 18px;
  box-shadow: var(--shadow-lg);
}

.panel-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

.panel-row:last-child {
  border-bottom: 0;
}

.panel-row strong,
.panel-row small,
.panel-row > span:last-child {
  display: block;
}

.panel-row small {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 12px;
}

.panel-row > span:last-child {
  color: var(--text-muted);
  font-size: 13px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.status-dot.blue {
  background: var(--blue);
}

.status-dot.green {
  background: var(--green);
}

.status-dot.amber {
  background: var(--amber);
}

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

.power-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.control-grid article,
.power-grid article {
  padding: 22px;
}

.agents {
  overflow: hidden;
}

.agent-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.agent-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 650;
}

.mode-grid {
  grid-template-columns: repeat(3, 1fr);
}

.mode-grid article {
  padding: 28px;
}

.mode-kicker {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.download-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(103, 216, 255, 0.12), transparent 48%),
    rgba(17, 24, 32, 0.78);
}

.download-panel h2 {
  font-size: clamp(32px, 4vw, 54px);
}

.download-panel p {
  max-width: 620px;
  margin-bottom: 0;
}

.download-actions {
  justify-content: flex-end;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 28px 0 42px;
  color: var(--text-muted);
  font-size: 13px;
}

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

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

@keyframes progress {
  0% {
    transform: translateX(-80%);
  }
  60%,
  100% {
    transform: translateX(190%);
  }
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes pipeline-pulse {
  0%,
  10% {
    border-color: var(--line);
    box-shadow: none;
  }
  16%,
  22% {
    border-color: rgba(103, 216, 255, 0.78);
    box-shadow:
      0 0 0 1px rgba(103, 216, 255, 0.4),
      0 10px 28px rgba(103, 216, 255, 0.22);
  }
  40%,
  100% {
    border-color: var(--line);
    box-shadow: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    display: none;
  }

  .hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .workflow-steps,
  .control-grid,
  .power-grid,
  .power-grid.cols-3,
  .mode-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .demo-stage {
    order: initial;
  }
}

@media (max-width: 700px) {
  .site-header,
  .section-shell,
  .site-footer {
    width: min(100% - 28px, var(--max-width));
  }

  .site-header {
    gap: 12px;
    padding: 12px 0;
  }

  .brand {
    font-size: 13px;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding-top: 28px;
  }

  h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

  h2 {
    font-size: clamp(31px, 10vw, 48px);
  }

  .demo-frame {
    min-height: 360px;
  }

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

  .workflow-steps,
  .control-grid,
  .mode-grid,
  .power-grid,
  .power-grid.cols-3,
  .why-grid,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .trust-row {
    flex-direction: column;
    gap: 8px;
  }

  .why-grid article {
    min-height: 0;
  }

  .workflow-steps article {
    min-height: 0;
  }

  .workflow-steps span {
    margin-bottom: 26px;
  }

  .download-actions {
    justify-content: stretch;
  }

  .download-actions .button,
  .hero-actions .button {
    width: 100%;
  }

  .site-footer {
    display: grid;
    gap: 10px;
  }
}

@media (max-width: 430px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(40px, 12vw, 52px);
  }

  .demo-fallback {
    padding: 14px;
  }

  .demo-toolbar {
    display: grid;
    gap: 6px;
  }
}

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