:root {
  --bg: #202020;
  --panel: #2b2b2b;
  --sheet: #f7f7f7;
  --sheet-line: #d0d0d0;
  --ink: #111111;
  --muted: #667085;
  --text-on-dark: #f1f5f9;
  --subtle-on-dark: #a8b3c3;
  --green: #4fb37c;
  --green-dark: #3f9668;
  --blue: #2b78b8;
  --blue-dark: #1f3f66;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.js-ready {
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-on-dark);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 10px clamp(18px, 4vw, 56px);
  background: rgba(32, 32, 32, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  animation: headerDrop 620ms ease-out both;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 132px;
  height: auto;
  display: block;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 34px);
  color: #d7dde5;
  font-size: 14px;
  font-weight: 700;
}

nav a {
  color: #d7dde5;
}

nav a:hover {
  color: #ffffff;
}

nav a,
.button,
.module-grid article,
.roadmap div,
.preview-tabs span,
.control strong {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.hero {
  position: relative;
  min-height: 88svh;
  padding: 120px clamp(22px, 6vw, 92px) 64px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(32, 32, 32, 0.98) 0%, rgba(32, 32, 32, 0.9) 42%, rgba(32, 32, 32, 0.78) 100%),
    #202020;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-media {
  position: absolute;
  right: clamp(-190px, -8vw, -60px);
  top: 50%;
  width: min(66vw, 820px);
  transform: translateY(-48%);
  opacity: 0.72;
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.65));
  animation: wireframeEntrance 900ms ease-out 140ms both, wireframeDrift 8s ease-in-out 1.1s infinite;
}

.hero-media img {
  width: 100%;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  animation: contentRise 760ms ease-out 80ms both;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(56px, 9vw, 128px);
  line-height: 0.92;
  color: #ffffff;
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 30px;
  color: #d9e1ea;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
  font-weight: 700;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--green);
  color: #07110c;
  border-color: #6cc996;
}

.button.primary:hover {
  background: #65c991;
  box-shadow: 0 12px 28px rgba(79, 179, 124, 0.24);
  transform: translateY(-1px);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.18);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}

.hero-status {
  position: absolute;
  left: clamp(22px, 6vw, 92px);
  right: clamp(22px, 6vw, 92px);
  bottom: 20px;
  z-index: 3;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
}

.hero-status span {
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: statusIn 520ms ease-out both;
}

.hero-status span:nth-child(1) {
  animation-delay: 460ms;
}

.hero-status span:nth-child(2) {
  animation-delay: 540ms;
}

.hero-status span:nth-child(3) {
  animation-delay: 620ms;
}

.section {
  padding: 76px clamp(22px, 6vw, 92px);
}

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

.section h2 {
  color: #ffffff;
  font-size: clamp(30px, 4.8vw, 56px);
  line-height: 1.04;
  max-width: 980px;
}

.product-band {
  background: #2b2b2b;
}

.terminal-preview {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  min-height: 620px;
  background: #242424;
  border: 1px solid #3a3a3a;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.preview-sidebar {
  padding: 28px 22px;
  background: #2a2a2a;
  border-right: 1px solid #3a3a3a;
}

.preview-sidebar img {
  width: 188px;
  display: block;
  margin: 0 auto 30px;
}

.search-pill {
  display: flex;
  align-items: center;
  min-height: 56px;
  margin-bottom: 24px;
  padding: 0 24px;
  border-radius: 28px;
  background: #303030;
  color: #e5e7eb;
  font-weight: 800;
  position: relative;
  overflow: hidden;
}

.search-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(79, 179, 124, 0.18), transparent);
  transform: translateX(-120%);
  animation: searchSweep 4.8s ease-in-out 1.2s infinite;
}

.control {
  margin-bottom: 18px;
}

.control span {
  display: block;
  margin-bottom: 8px;
  color: #c5ccd5;
  font-size: 13px;
  font-weight: 800;
}

.control strong {
  display: block;
  padding: 10px 12px;
  background: #34383c;
  border: 1px solid #5b636b;
  color: #e5e7eb;
  font-size: 15px;
}

.control strong:hover {
  border-color: #6f7a86;
  background: #3b4046;
}

.preview-main {
  padding: 28px 28px 38px;
}

.preview-tabs {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
  overflow: hidden;
}

.preview-tabs span {
  min-width: 126px;
  padding: 14px 18px;
  border: 1px solid #4a596a;
  background: #1f252c;
  color: #e5e7eb;
  font-weight: 800;
  text-align: center;
}

.preview-tabs span:hover {
  transform: translateY(-1px);
  border-color: #6b93c1;
}

.preview-tabs .active {
  background: #416b9d;
  border-color: #6b93c1;
  color: #ffffff;
}

.sheet {
  min-height: 472px;
  padding: clamp(22px, 3vw, 42px);
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid #d5d5d5;
  animation: sheetSettle 700ms ease-out both;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.sheet h3 {
  margin-bottom: 8px;
  font-size: clamp(28px, 3vw, 42px);
}

.sheet p {
  color: #4b5563;
  font-size: 16px;
  font-weight: 700;
}

.price-box {
  min-width: 210px;
  text-align: right;
}

.price-box strong {
  display: block;
  font-size: clamp(26px, 3vw, 38px);
}

.price-box span {
  color: #2f8b38;
  font-size: 20px;
  font-weight: 800;
}

.chart-surface {
  background: #ffffff;
  border: 1px solid #e1e1e1;
  overflow: hidden;
}

.chart-surface svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart-surface line {
  stroke: #e2e2e2;
  stroke-width: 2;
  animation: gridFade 720ms ease-out both;
}

.chart-surface path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 1100;
  stroke-dashoffset: 1100;
  animation: chartDraw 1.9s ease-out 380ms forwards;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.module-grid article,
.roadmap div {
  background: #f7f7f7;
  color: #111111;
  border: 1px solid var(--sheet-line);
  padding: 24px;
}

.module-grid article:hover,
.roadmap div:hover {
  transform: translateY(-3px);
  border-color: #b9c4d0;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.module-grid img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin-bottom: 18px;
}

.module-grid h3,
.roadmap h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.module-grid p,
.roadmap p,
.contact-band p {
  color: #4b5563;
  line-height: 1.55;
  font-size: 15px;
  font-weight: 700;
}

.roadmap-band {
  background: #242424;
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.roadmap span {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: #f7f7f7;
  color: #111111;
}

.contact-band h2 {
  color: #111111;
  margin-bottom: 14px;
}

.contact-band p {
  max-width: 740px;
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(22px, 6vw, 92px);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
}

.site-footer a {
  color: #e5e7eb;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes headerDrop {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes contentRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wireframeEntrance {
  from {
    opacity: 0;
    transform: translateY(-45%) translateX(30px) scale(0.98);
  }
  to {
    opacity: 0.72;
    transform: translateY(-48%) translateX(0) scale(1);
  }
}

@keyframes wireframeDrift {
  0%,
  100% {
    transform: translateY(-48%) translateX(0);
  }
  50% {
    transform: translateY(-50%) translateX(-12px);
  }
}

@keyframes statusIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes searchSweep {
  0%,
  62% {
    transform: translateX(-120%);
  }
  82%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes sheetSettle {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gridFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes chartDraw {
  to {
    stroke-dashoffset: 0;
  }
}

.legal-page {
  background: #f7f7f7;
  color: #111111;
}

.legal-page .site-header {
  position: sticky;
}

.legal {
  max-width: 920px;
  margin: 0 auto;
  padding: 120px 24px 72px;
}

.legal h1 {
  color: #111111;
  font-size: clamp(38px, 6vw, 76px);
}

.legal h2 {
  margin-top: 34px;
  color: #111111;
  font-size: 24px;
}

.legal p,
.legal li {
  color: #374151;
  line-height: 1.65;
  font-weight: 700;
}

@media (max-width: 980px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 86svh;
    padding-top: 72px;
  }

  .hero-media {
    right: -180px;
    width: 760px;
    opacity: 0.36;
  }

  .terminal-preview {
    grid-template-columns: 1fr;
  }

  .preview-sidebar {
    display: none;
  }

  .module-grid,
  .roadmap {
    grid-template-columns: 1fr;
  }

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

  .price-box {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .brand img {
    width: 112px;
  }

  .preview-tabs span {
    min-width: 118px;
    padding: 12px;
  }

  .terminal-preview {
    min-height: auto;
  }

  .preview-main {
    padding: 18px;
  }

  .sheet {
    padding: 18px;
  }

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

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

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