:root {
  color-scheme: dark;
  --ink: #f4f7fb;
  --muted: #9aa7b8;
  --soft: #c8d2df;
  --bg: #06080a;
  --panel: rgba(14, 18, 24, 0.72);
  --panel-solid: #0d1218;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --teal: #29e6c3;
  --cyan: #48b8ff;
  --lime: #b8f267;
  --amber: #ffb84d;
  --rose: #ff5e8a;
  --violet: #9b7cff;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

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

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(41, 230, 195, 0.14), transparent 24rem),
    radial-gradient(circle at 82% 16%, rgba(255, 184, 77, 0.09), transparent 22rem),
    linear-gradient(180deg, #080b0e 0%, #06080a 42%, #090b0d 100%);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  isolation: isolate;
  letter-spacing: 0;
}

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

#mesh-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  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: 58px 58px;
  mask-image: linear-gradient(to bottom, black, black 58%, transparent);
  pointer-events: none;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(6, 8, 10, 0.86), rgba(6, 8, 10, 0.28));
  backdrop-filter: blur(16px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: transparent;
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-text {
  font-size: 0.98rem;
}

.nav-links {
  gap: 6px;
}

.nav-links a {
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--soft);
  font-size: 0.9rem;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.nav-links .nav-cta {
  margin-left: 8px;
  border: 1px solid rgba(41, 230, 195, 0.34);
  background: rgba(41, 230, 195, 0.08);
  color: var(--teal);
}

.hero {
  position: relative;
  display: grid;
  min-height: 86vh;
  align-items: center;
  padding: 110px clamp(18px, 5vw, 76px) 70px;
}

.hero::after {
  position: absolute;
  left: clamp(18px, 5vw, 76px);
  right: clamp(18px, 5vw, 76px);
  bottom: 18px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(41, 230, 195, 0.42), transparent);
}

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

.eyebrow,
.section-label,
.product-type {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--teal);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 18px rgba(184, 242, 103, 0.7);
}

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

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(4.6rem, 15vw, 12.5rem);
  line-height: 0.82;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-kicker {
  max-width: 720px;
  margin-bottom: 34px;
  color: var(--soft);
  font-size: clamp(1.1rem, 2.3vw, 1.65rem);
  line-height: 1.45;
}

.hero-actions,
.cta-section,
.console-bar,
.console-grid,
.proof-strip,
.section-heading,
.product-card,
.experience-section {
  display: flex;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--teal), var(--lime));
  color: #06100e;
  box-shadow: 0 0 34px rgba(41, 230, 195, 0.18);
}

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

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.hero-console {
  position: absolute;
  right: clamp(18px, 5vw, 76px);
  top: 150px;
  width: min(510px, calc(100vw - 36px));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(15, 21, 29, 0.82), rgba(8, 11, 15, 0.72)),
    rgba(8, 10, 12, 0.76);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.36),
    0 0 60px rgba(41, 230, 195, 0.06);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.console-bar {
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
}

.console-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.console-bar span:nth-child(1) {
  background: var(--rose);
}

.console-bar span:nth-child(2) {
  background: var(--amber);
}

.console-bar span:nth-child(3) {
  background: var(--lime);
}

.console-bar strong {
  margin-left: 8px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 500;
}

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

.console-grid div {
  min-width: 0;
  padding: 14px;
}

.console-grid div + div {
  border-left: 1px solid var(--line);
}

small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.console-grid strong,
.experience-board strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.88rem;
}

#terminal-feed {
  min-height: 162px;
  margin: 0;
  padding: 16px;
  color: var(--soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.8;
  white-space: pre-wrap;
}

.proof-strip {
  width: min(var(--max), calc(100% - 36px));
  margin: -28px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 15, 19, 0.76);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.proof-strip div {
  flex: 1;
  min-width: 0;
  padding: 22px;
}

.proof-strip div + div {
  border-left: 1px solid var(--line);
}

.proof-strip strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.proof-strip span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

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

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.intro-layout h2,
.section-heading h2,
.experience-copy h2,
.cta-section h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.intro-layout p,
.section-heading p,
.experience-copy p,
.product-content p,
.method-grid p {
  color: var(--muted);
  line-height: 1.7;
}

.intro-layout p,
.section-heading p {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.section-heading {
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 36px;
}

.section-heading > p {
  max-width: 460px;
}

.product-stack {
  display: grid;
  gap: 16px;
}

.product-card {
  position: relative;
  min-height: 210px;
  align-items: stretch;
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(13, 18, 24, 0.76);
  overflow: hidden;
}

.product-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(41, 230, 195, 0.08), transparent 32%);
  opacity: 0;
  transition: opacity 200ms ease;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card-featured {
  min-height: 280px;
  background:
    linear-gradient(135deg, rgba(41, 230, 195, 0.13), transparent 42%),
    linear-gradient(315deg, rgba(255, 184, 77, 0.12), transparent 36%),
    rgba(13, 18, 24, 0.82);
}

.product-index {
  position: relative;
  z-index: 1;
  flex: 0 0 52px;
  color: var(--teal);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
}

.product-content {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 650px;
}

.product-content h3 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 4vw, 3.5rem);
  line-height: 1;
}

.product-content a {
  display: inline-flex;
  margin-top: 4px;
  color: var(--teal);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.86rem;
}

.signal-panel,
.code-chip,
.mini-canvas {
  position: relative;
  z-index: 1;
  align-self: center;
  flex: 0 0 260px;
}

.signal-panel {
  display: grid;
  gap: 9px;
}

.signal-panel span,
.code-chip {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(5, 8, 10, 0.5);
  color: var(--soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
}

.signal-panel span {
  padding: 11px 12px;
}

.signal-panel span:nth-child(2) {
  color: var(--cyan);
}

.signal-panel span:nth-child(3) {
  color: var(--amber);
}

.signal-panel span:nth-child(4) {
  color: var(--violet);
}

.signal-panel span:nth-child(5) {
  color: var(--lime);
}

.code-chip {
  padding: 18px;
  color: var(--teal);
}

.mini-canvas {
  height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 49%, rgba(41, 230, 195, 0.22) 50%, transparent 51%),
    linear-gradient(transparent 49%, rgba(255, 184, 77, 0.18) 50%, transparent 51%),
    rgba(6, 8, 10, 0.42);
  background-size: 42px 42px;
}

.mini-canvas span {
  position: absolute;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

.mini-canvas span:nth-child(1) {
  left: 28px;
  top: 24px;
  width: 86px;
  height: 42px;
  border: 1px solid rgba(41, 230, 195, 0.42);
}

.mini-canvas span:nth-child(2) {
  right: 30px;
  top: 56px;
  width: 104px;
  height: 54px;
  border: 1px solid rgba(255, 184, 77, 0.38);
}

.mini-canvas span:nth-child(3) {
  left: 86px;
  bottom: 24px;
  width: 82px;
  height: 32px;
  border: 1px solid rgba(155, 124, 255, 0.42);
}

.experience-section {
  gap: clamp(28px, 6vw, 68px);
  align-items: stretch;
}

.experience-copy,
.experience-board {
  flex: 1;
}

.experience-copy p {
  margin-top: 22px;
  font-size: 1.03rem;
}

.experience-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.experience-board div {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(13, 18, 24, 0.66);
}

.experience-board div:nth-child(1) {
  border-color: rgba(41, 230, 195, 0.28);
}

.experience-board div:nth-child(2) {
  border-color: rgba(255, 184, 77, 0.28);
}

.experience-board div:nth-child(3) {
  border-color: rgba(155, 124, 255, 0.28);
}

.experience-board div:nth-child(4) {
  border-color: rgba(184, 242, 103, 0.28);
}

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

.method-grid div {
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: rgba(13, 18, 24, 0.62);
}

.method-grid strong {
  display: block;
  margin-bottom: 42px;
  color: var(--teal);
  font-family: "JetBrains Mono", monospace;
}

.method-grid h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.cta-section {
  width: min(var(--max), calc(100% - 36px));
  margin: 112px auto 0;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(41, 230, 195, 0.25);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 46px);
  background:
    linear-gradient(135deg, rgba(41, 230, 195, 0.13), rgba(255, 184, 77, 0.08)),
    rgba(13, 18, 24, 0.8);
}

.cta-section .primary-button {
  flex: 0 0 auto;
}

.site-footer {
  display: flex;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  gap: 14px;
  justify-content: space-between;
  padding: 34px 0 42px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--soft);
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--teal);
}

.legal-main {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: 112px 0 20px;
}

.legal-page {
  --ink: #111827;
  --muted: #4b5563;
  --soft: #374151;
  --bg: #f8fafc;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --teal: #0f766e;
  --cyan: #2563eb;
  --lime: #4d7c0f;
  --amber: #b45309;
  --rose: #be123c;
  --violet: #6d28d9;
  color-scheme: light;
  background: #f8fafc;
  color: var(--ink);
}

.legal-page #mesh-canvas {
  display: none;
}

.legal-page::before {
  display: none;
}

.legal-page .site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.legal-page .nav-links a {
  color: var(--muted);
}

.legal-page .nav-links a:hover {
  background: #f3f4f6;
  color: var(--ink);
}

.legal-page .nav-links .nav-cta {
  border-color: #d1d5db;
  background: #111827;
  color: #ffffff;
}

.legal-page .brand {
  color: var(--ink);
}

.legal-hero {
  max-width: 760px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}

.legal-page .eyebrow {
  margin-bottom: 12px;
  color: #6b7280;
  font-size: 0.72rem;
}

.legal-page .eyebrow span {
  display: none;
}

.legal-hero h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.08;
  font-weight: 700;
}

.legal-hero p {
  max-width: 700px;
  color: var(--soft);
  font-size: 1.02rem;
  line-height: 1.55;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.legal-meta span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #ffffff;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
}

.legal-layout {
  display: block;
  max-width: 760px;
  margin-top: 34px;
}

.legal-sidebar {
  display: none;
}

.legal-sidebar div,
.support-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.legal-sidebar div {
  padding: 16px;
}

.legal-sidebar a,
.legal-sidebar span {
  display: block;
  color: var(--soft);
  line-height: 1.5;
}

.legal-sidebar a,
.legal-content a,
.support-card a {
  color: var(--teal);
}

.legal-content {
  display: grid;
  gap: 16px;
}

.legal-content section {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.legal-content h2 {
  margin-bottom: 12px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.2;
  font-weight: 700;
}

.legal-content p,
.legal-content li,
.support-card p {
  color: var(--muted);
  line-height: 1.72;
}

.legal-content ul {
  margin: 0;
  padding-left: 1.2rem;
}

.legal-content li + li {
  margin-top: 10px;
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 14px;
  max-width: 760px;
  margin: 34px 0 0;
}

.support-card {
  padding: clamp(18px, 3vw, 24px);
}

.support-card-primary {
  border-color: var(--line-strong);
  background: #ffffff;
}

.support-card h2 {
  margin-bottom: 12px;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  line-height: 1.16;
  overflow-wrap: anywhere;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    min-height: auto;
    padding-top: 126px;
    padding-bottom: 34px;
  }

  .hero-console {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 38px;
  }

  .proof-strip,
  .experience-section,
  .product-card,
  .section-heading,
  .cta-section {
    flex-direction: column;
  }

  .proof-strip div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .intro-layout,
  .method-grid,
  .legal-layout,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    position: static;
  }

  .signal-panel,
  .code-chip,
  .mini-canvas {
    align-self: stretch;
    flex-basis: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: absolute;
  }

  .brand-text {
    display: none;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    padding: 9px 8px;
    font-size: 0.78rem;
  }

  .nav-links a:not(.nav-cta):nth-child(2) {
    display: none;
  }

  .hero {
    padding-top: 118px;
  }

  h1 {
    font-size: clamp(4.1rem, 24vw, 7rem);
  }

  .console-grid,
  .experience-board {
    grid-template-columns: 1fr;
  }

  .console-grid div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
