:root {
  --bg: #0b1220;
  --bg-soft: #111827;
  --surface: rgba(15, 23, 36, 0.82);
  --surface-strong: #0f1724;
  --surface-hover: #172033;
  --card-bg: rgba(15, 23, 36, 0.74);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e6eef8;
  --text-secondary: #cbd5e1;
  --muted: #94a3b8;
  --primary: #60a5fa;
  --primary-600: #3b82f6;
  --on-primary: #0b1220;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #f87171;
  --maze-line: rgba(96, 165, 250, 0.16);
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.55);
  --radius: 8px;
  --content: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% top, rgba(59, 130, 246, 0.16), transparent 54%),
    radial-gradient(circle at 4% bottom, rgba(34, 197, 94, 0.08), transparent 58%),
    linear-gradient(180deg, #0b1220 0%, #0d1424 48%, #08111f 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(rgba(11, 18, 32, 0.56), rgba(11, 18, 32, 0.82)),
    repeating-linear-gradient(90deg, transparent 0 21px, rgba(96, 165, 250, 0.035) 21px 22px, transparent 22px 46px),
    repeating-linear-gradient(0deg, transparent 0 21px, rgba(96, 165, 250, 0.035) 21px 22px, transparent 22px 46px);
  background-position: center;
}

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

.ambient-grid {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: -2;
  width: min(54vw, 720px);
  height: min(54vw, 720px);
  opacity: 0.9;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 21px, var(--maze-line) 21px 24px, transparent 24px 46px),
    repeating-linear-gradient(0deg, transparent 0 21px, var(--maze-line) 21px 24px, transparent 24px 46px),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.04), transparent 62%);
  mask-image: linear-gradient(to top left, rgb(0, 0, 0), rgba(0, 0, 0, 0.4) 58%, transparent 86%);
  -webkit-mask-image: linear-gradient(to top left, rgb(0, 0, 0), rgba(0, 0, 0, 0.4) 58%, transparent 86%);
  transform: translate3d(var(--grid-x, 0), var(--grid-y, 0), 0);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: var(--scroll, 0%);
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--success));
  box-shadow: 0 0 22px rgba(96, 165, 250, 0.55);
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 10;
  width: var(--content);
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 23, 36, 0.74);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--on-primary);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--success));
  box-shadow: 0 14px 30px rgba(59, 130, 246, 0.24);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.desktop-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--text);
}

.header-action,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.header-action i,
.button i {
  font-size: 1rem;
  line-height: 1;
}

.header-action {
  color: var(--primary);
  background: rgba(96, 165, 250, 0.08);
}

.button:hover,
.header-action:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.34);
}

.button.primary {
  color: var(--on-primary);
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  box-shadow: 0 16px 40px rgba(59, 130, 246, 0.22);
}

.button.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.section-band {
  position: relative;
  width: var(--content);
  margin: 0 auto;
}

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(32px, 6vw, 76px);
  padding: 102px 0 36px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -12vw;
  top: 22vh;
  z-index: -1;
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  border: 1px solid rgba(96, 165, 250, 0.12);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.16), transparent 62%);
  filter: blur(1px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

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

h1 {
  max-width: 710px;
  margin-bottom: 24px;
  font-size: clamp(2.85rem, 5.6vw, 4.85rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.hero-copy p,
.section-heading p,
.intro-grid p,
.cta-band p {
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.product-stage {
  transform: translate3d(0, var(--parallax, 0), 0);
}

.system-window {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(15, 23, 36, 0.96), rgba(15, 23, 36, 0.76));
  box-shadow: var(--shadow);
}

.window-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.window-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--danger);
}

.window-topbar span:nth-child(2) {
  background: var(--warning);
}

.window-topbar span:nth-child(3) {
  background: var(--success);
}

.window-topbar strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.window-body {
  display: grid;
  grid-template-columns: 74px 1fr;
  min-height: 420px;
}

.mock-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 16px;
  border-right: 1px solid var(--border);
  background: rgba(27, 58, 107, 0.42);
}

.sidebar-pill {
  width: 100%;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-pill.active {
  background: rgba(96, 165, 250, 0.3);
}

.sidebar-pill.short {
  height: 92px;
  margin-top: auto;
}

.mock-content {
  padding: clamp(16px, 2.3vw, 28px);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric-row article,
.feature-card,
.timeline article,
.intro-stats {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.22);
}

.metric-row article {
  padding: 16px;
}

.metric-row small,
.metric-row span {
  display: block;
  color: var(--muted);
}

.metric-row small {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.metric-row small i {
  color: var(--primary);
}

.metric-row strong {
  display: block;
  margin: 12px 0 6px;
  font-size: clamp(1.4rem, 3vw, 2.3rem);
}

.metric-row span {
  color: var(--success);
  font-size: 0.8rem;
}

.operations-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 12px;
  margin-top: 12px;
}

.flow-panel,
.kanban-panel {
  min-height: 220px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(rgba(15, 23, 36, 0.8), rgba(15, 23, 36, 0.9)),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(96, 165, 250, 0.08) 28px 29px, transparent 29px 58px);
}

.flow-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.flow-node {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(96, 165, 250, 0.7);
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.16);
  box-shadow: 0 0 34px rgba(96, 165, 250, 0.24);
  animation: pulse 2.4s ease-in-out infinite;
}

.flow-node.medium {
  width: 56px;
  height: 56px;
  border-color: rgba(34, 197, 94, 0.7);
  background: rgba(34, 197, 94, 0.12);
  animation-delay: 0.35s;
}

.flow-line {
  flex: 1;
  max-width: 62px;
  height: 2px;
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.18), rgba(96, 165, 250, 0.85));
}

.kanban-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
}

.kanban-panel span {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.kanban-panel span:nth-child(1) {
  background: rgba(248, 113, 113, 0.16);
}

.kanban-panel span:nth-child(2) {
  background: rgba(245, 158, 11, 0.16);
}

.kanban-panel span:nth-child(3) {
  background: rgba(96, 165, 250, 0.16);
}

.kanban-panel span:nth-child(4) {
  background: rgba(34, 197, 94, 0.16);
}

.signal-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 0.7fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.signal-row span {
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  animation: signal 2.8s ease-in-out infinite;
}

.signal-row span:nth-child(2) {
  animation-delay: 0.15s;
}

.signal-row span:nth-child(3) {
  animation-delay: 0.3s;
}

.signal-row span:nth-child(4) {
  animation-delay: 0.45s;
}

.signal-row span:nth-child(5) {
  animation-delay: 0.6s;
}

.intro-band,
.platform-band,
.timeline-band,
.cta-band {
  padding: clamp(76px, 10vw, 132px) 0;
}

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

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 28px;
  align-items: stretch;
}

.intro-stats {
  position: relative;
  padding: 28px;
  overflow: hidden;
}

.intro-stats > i {
  position: absolute;
  top: 22px;
  right: 24px;
  color: rgba(96, 165, 250, 0.2);
  font-size: 3.2rem;
}

.intro-stats strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  color: var(--primary);
}

.intro-stats span {
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.feature-card {
  min-height: 245px;
  padding: 22px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.34);
  background: rgba(23, 32, 51, 0.78);
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 32px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 8px;
  color: var(--primary);
  font-weight: 800;
  background: rgba(96, 165, 250, 0.08);
}

.feature-icon i {
  font-size: 1.15rem;
}

.feature-card p,
.timeline p {
  color: var(--muted);
  line-height: 1.65;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.42), transparent);
}

.timeline article {
  position: relative;
  min-height: 230px;
  padding: 26px;
}

.timeline span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 34px;
  border-radius: 999px;
  color: var(--on-primary);
  font-weight: 800;
  background: var(--primary-600);
  box-shadow: 0 0 0 8px rgba(96, 165, 250, 0.08);
}

.timeline span i {
  font-size: 1.05rem;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 70px;
  padding: clamp(38px, 6vw, 64px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(96, 165, 250, 0.12), rgba(34, 197, 94, 0.06)),
    rgba(15, 23, 36, 0.72);
  box-shadow: var(--shadow);
}

.cta-band p {
  max-width: 680px;
  margin-bottom: 0;
}

.site-footer {
  width: var(--content);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 28px 0 44px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

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

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

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes signal {
  0%,
  100% {
    background: rgba(255, 255, 255, 0.055);
  }
  50% {
    background: rgba(96, 165, 250, 0.14);
  }
}

@media (max-width: 980px) {
  :root {
    --content: min(100vw - 28px, 760px);
  }

  .site-header {
    top: 10px;
  }

  .desktop-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 118px;
  }

  .product-stage {
    transform: none;
  }

  .feature-grid,
  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .timeline::before {
    display: none;
  }
}

@media (max-width: 680px) {
  :root {
    --content: min(100vw - 24px, 520px);
  }

  .site-header {
    align-items: center;
    min-height: 58px;
  }

  .brand {
    min-width: 0;
  }

  .brand small,
  .header-action {
    display: none;
  }

  h1 {
    font-size: clamp(2.8rem, 18vw, 4.2rem);
  }

  .window-body {
    grid-template-columns: 1fr;
  }

  .mock-sidebar {
    display: none;
  }

  .metric-row,
  .operations-grid,
  .intro-grid,
  .feature-grid,
  .timeline,
  .cta-band,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .metric-row,
  .operations-grid,
  .intro-grid,
  .feature-grid,
  .timeline {
    display: grid;
  }

  .cta-band,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

  .product-stage,
  .ambient-grid {
    transform: none !important;
  }
}
