:root {
  --bg: #07110f;
  --bg-2: #0d1917;
  --panel: #101f1c;
  --paper: #f4f7ef;
  --ink: #eef7ef;
  --ink-dark: #101715;
  --muted: #9ab0aa;
  --line: rgba(226, 245, 234, .13);
  --line-strong: rgba(226, 245, 234, .25);
  --green: #35d38b;
  --lime: #d9f56f;
  --blue: #5ea1ff;
  --red: #ff7c63;
  --violet: #a78bfa;
  --shadow: 0 28px 80px rgba(0, 0, 0, .34);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(135deg, rgba(53, 211, 139, .12), transparent 38%),
    linear-gradient(315deg, rgba(94, 161, 255, .1), transparent 42%),
    var(--bg);
  background-size: 38px 38px, 38px 38px, auto, auto, auto;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 14px 32px;
  border-bottom: 1px solid transparent;
  background: rgba(7, 17, 15, .72);
  backdrop-filter: blur(18px);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(7, 17, 15, .92);
  box-shadow: 0 14px 40px rgba(0,0,0,.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #06110e;
  font-weight: 950;
  font-size: 14px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.22) inset, 0 12px 30px rgba(53,211,139,.22);
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-size: 15px;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.nav a,
.text-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 740;
}

.nav a:hover,
.text-link:hover {
  color: var(--green);
}

.header-cta,
.btn {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--ink);
  background: rgba(255,255,255,.06);
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.header-cta:hover,
.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(217,245,111,.58);
}

.btn.primary {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink-dark);
}

.btn.ghost {
  background: rgba(255,255,255,.07);
}

.dark-text {
  color: var(--ink-dark) !important;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 860px;
  padding-top: 1px;
}

.hero-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-field::before,
.hero-field::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(217,245,111,.14);
  transform: rotate(-12deg);
}

.hero-field::before {
  width: 620px;
  height: 620px;
  right: -160px;
  top: 118px;
}

.hero-field::after {
  width: 420px;
  height: 420px;
  left: -120px;
  bottom: 70px;
}

.pulse {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 12px rgba(53,211,139,.1);
  animation: pulse 2.8s ease-in-out infinite;
}

.p1 { top: 25%; right: 22%; }
.p2 { top: 62%; right: 8%; animation-delay: .5s; background: var(--blue); }
.p3 { bottom: 24%; left: 16%; animation-delay: 1s; background: var(--lime); }

.hero-grid {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  min-height: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .86fr);
  gap: 64px;
  align-items: center;
  padding: 94px 0 88px;
}

.hero-copy {
  max-width: 705px;
}

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

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

h1 {
  margin-bottom: 22px;
  font-size: 82px;
  line-height: .93;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 52px;
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.18;
}

.hero-lede,
.systems-copy p,
.product-copy p,
.contact-card p {
  color: var(--muted);
  font-size: 18px;
}

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

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 32px;
}

.hero-tags span {
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: color-mix(in srgb, var(--ink) 80%, var(--muted));
  background: rgba(255,255,255,.045);
  font-size: 12px;
  font-weight: 760;
}

.system-lab,
.product-ui,
.contact-card,
.contact-details {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.04));
  box-shadow: var(--shadow);
}

.system-lab {
  border-radius: 26px;
  overflow: hidden;
}

.lab-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.045);
}

.lab-top span,
.stack-label,
.lab-status span,
.ui-head span,
.ui-metrics small,
.contact-details span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.lab-canvas {
  position: relative;
  min-height: 430px;
  display: grid;
  grid-template-columns: 1fr 150px 1fr;
  align-items: center;
  gap: 12px;
  padding: 30px;
}

.problem-stack,
.solution-stack {
  display: grid;
  gap: 10px;
}

.problem-stack i,
.solution-stack i {
  display: block;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: color-mix(in srgb, var(--ink) 82%, var(--muted));
  background: rgba(0,0,0,.18);
  font-style: normal;
  font-size: 13px;
  font-weight: 760;
}

.solution-stack i {
  border-color: rgba(53,211,139,.28);
  background: rgba(53,211,139,.08);
}

.solver-core {
  position: relative;
  width: 138px;
  height: 138px;
  display: grid;
  place-items: center;
  justify-self: center;
  border: 1px solid rgba(217,245,111,.55);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 38%, rgba(217,245,111,.34), transparent 46%),
    linear-gradient(145deg, rgba(53,211,139,.34), rgba(94,161,255,.18));
  box-shadow: 0 0 70px rgba(53,211,139,.18);
}

.solver-core span {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 24px;
  animation: rotate 8s linear infinite;
}

.solver-core b {
  position: relative;
  z-index: 1;
  color: #06110e;
  background: var(--lime);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  text-transform: uppercase;
}

.flow-line {
  position: absolute;
  height: 2px;
  width: 120px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: .74;
  animation: scan 2.4s ease-in-out infinite;
}

.f1 { left: 31%; top: 38%; }
.f2 { right: 31%; top: 48%; animation-delay: .5s; }
.f3 { right: 31%; top: 62%; animation-delay: .9s; }

.lab-status {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.lab-status span {
  padding: 16px;
  border-right: 1px solid var(--line);
}

.lab-status span:last-child {
  border-right: 0;
}

.lab-status b {
  display: block;
  color: var(--ink);
  font-size: 20px;
}

.proof-strip {
  width: min(1180px, calc(100% - 48px));
  margin: -58px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(16,31,28,.86);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.proof-strip div {
  padding: 26px 28px;
  border-right: 1px solid var(--line);
}

.proof-strip div:last-child {
  border-right: 0;
}

.proof-strip b,
.proof-strip span {
  display: block;
}

.proof-strip b {
  font-size: 17px;
}

.proof-strip span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}

.section,
.guidelines,
.contact-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 104px 0;
}

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

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

.problem-card,
.board-cell,
.guideline-list article {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
}

.problem-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 20px;
}

.problem-card span {
  color: var(--lime);
  font-weight: 900;
}

.problem-card p,
.board-cell p,
.guideline-list p {
  color: var(--muted);
}

.systems-section {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 58px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.systems-board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.board-cell {
  min-height: 220px;
  padding: 24px;
  border-radius: 18px;
}

.board-cell.large {
  grid-row: span 2;
  min-height: 454px;
  background:
    linear-gradient(135deg, rgba(53,211,139,.16), rgba(94,161,255,.08)),
    rgba(255,255,255,.045);
}

.board-cell.wide {
  grid-column: span 2;
  min-height: 170px;
}

.board-cell small {
  color: var(--green);
  font-weight: 920;
}

.product-section {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(280px, .75fr) minmax(420px, 1fr);
  gap: 58px;
  align-items: center;
  padding: 96px max(32px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(217,245,111,.1), transparent 38%),
    linear-gradient(315deg, rgba(94,161,255,.11), transparent 42%),
    var(--bg-2);
}

.product-ui {
  min-height: 420px;
  display: grid;
  grid-template-columns: 156px 1fr;
  overflow: hidden;
  border-radius: 24px;
}

.ui-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: rgba(0,0,0,.18);
}

.ui-sidebar b {
  margin-bottom: 24px;
}

.ui-sidebar span {
  height: 32px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
}

.ui-sidebar span.active {
  background: linear-gradient(90deg, var(--green), var(--lime));
}

.ui-main {
  padding: 24px;
}

.ui-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.ui-head b {
  color: var(--green);
}

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

.ui-metrics div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.05);
}

.ui-metrics b {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.ui-flow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 28px 0;
  color: var(--lime);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ui-flow i {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--green), transparent);
}

.ui-table {
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.ui-table span,
.ui-table b {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}

.ui-table span:nth-last-child(2),
.ui-table b:last-child {
  border-bottom: 0;
}

.ui-table span {
  color: var(--muted);
}

.ui-table b {
  color: var(--green);
}

.guidelines {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 58px;
}

.guideline-list {
  display: grid;
  gap: 14px;
}

.guideline-list article {
  padding: 22px 24px;
  border-radius: 18px;
}

.guideline-list b {
  font-size: 19px;
}

.guideline-list p {
  margin: 8px 0 0;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 390px);
  gap: 22px;
  padding-top: 34px;
}

.contact-card,
.contact-details {
  border-radius: 24px;
  padding: 34px;
}

.contact-card {
  background:
    linear-gradient(135deg, rgba(53,211,139,.18), rgba(94,161,255,.08)),
    rgba(255,255,255,.045);
}

.contact-details {
  display: grid;
  align-content: center;
  gap: 10px;
}

.contact-details a,
.contact-details b {
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
}

.footer {
  width: min(1180px, calc(100% - 48px));
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 26px;
  margin: 0 auto;
  padding: 32px 0 42px;
  border-top: 1px solid var(--line);
}

.footer strong,
.footer span {
  display: block;
}

.footer span,
.footer small,
.footer a {
  color: var(--muted);
  font-size: 13px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer a {
  text-decoration: none;
  font-weight: 760;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}

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

@keyframes pulse {
  0%, 100% { transform: scale(.85); opacity: .65; }
  50% { transform: scale(1.15); opacity: 1; }
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

@keyframes scan {
  0%, 100% { transform: translateX(-14px); opacity: .2; }
  50% { transform: translateX(14px); opacity: .88; }
}

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

  .nav {
    display: none;
  }

  h1 {
    font-size: 62px;
  }

  h2 {
    font-size: 42px;
  }

  .hero,
  .hero-grid {
    min-height: auto;
  }

  .hero-grid,
  .systems-section,
  .product-section,
  .guidelines,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-top: 90px;
  }

  .proof-strip,
  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .problem-card {
    min-height: 230px;
  }
}

@media (max-width: 700px) {
  .brand small {
    display: none;
  }

  .brand strong {
    white-space: normal;
  }

  .header-cta {
    padding: 9px 12px;
    font-size: 12px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-grid,
  .section,
  .guidelines,
  .contact-section,
  .footer,
  .proof-strip {
    width: calc(100% - 28px);
  }

  .hero-grid {
    gap: 34px;
    padding: 74px 0 70px;
  }

  .hero-actions,
  .product-actions,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .lab-canvas {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .solver-core {
    width: 112px;
    height: 112px;
    border-radius: 28px;
  }

  .flow-line {
    display: none;
  }

  .lab-status,
  .proof-strip,
  .problem-grid,
  .systems-board,
  .ui-metrics {
    grid-template-columns: 1fr;
  }

  .proof-strip {
    margin-top: -30px;
  }

  .proof-strip div,
  .lab-status span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-strip div:last-child,
  .lab-status span:last-child {
    border-bottom: 0;
  }

  .section,
  .guidelines {
    padding: 70px 0;
  }

  .product-section {
    padding: 70px 14px;
  }

  .product-ui {
    grid-template-columns: 1fr;
  }

  .ui-sidebar {
    grid-template-columns: repeat(4, 1fr);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ui-sidebar b {
    grid-column: 1 / -1;
    margin-bottom: 6px;
  }

  .ui-flow {
    flex-wrap: wrap;
  }

  .ui-flow i {
    min-width: 28px;
  }

  .board-cell.large,
  .board-cell.wide {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 220px;
  }

  .contact-card,
  .contact-details {
    padding: 24px;
  }

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

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

  .reveal,
  .pulse,
  .solver-core span,
  .flow-line {
    animation: none;
    transition: none;
  }
}
