:root {
  color-scheme: light;
  --bg: #f6f8f7;
  --paper: #ffffff;
  --ink: #101418;
  --muted: #5a646e;
  --line: #dce3e6;
  --cyan: #00a7c2;
  --green: #0d8c67;
  --amber: #b06e00;
  --rose: #b2446d;
  --navy: #162234;
  --shadow: 0 18px 44px rgba(16, 20, 24, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(0, 167, 194, 0.08), transparent 28rem),
    linear-gradient(180deg, #f7faf9 0%, var(--bg) 34rem);
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img,
canvas {
  max-width: 100%;
  display: block;
}

p,
li {
  color: var(--muted);
  line-height: 1.65;
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 227, 230, 0.82);
  background: rgba(246, 248, 247, 0.92);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
  color: var(--navy);
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 167, 194, 0.42);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 167, 194, 0.16), rgba(13, 140, 103, 0.14));
  color: var(--green);
  font-weight: 950;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #33404a;
  font-weight: 700;
  font-size: 0.94rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: #eaf3f1;
  color: var(--green);
}

.button,
button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary,
button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--navy);
}

.button.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.34);
}

.hero {
  position: relative;
  min-height: 610px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #0e141d;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 12, 18, 0.92) 0%, rgba(6, 12, 18, 0.72) 42%, rgba(6, 12, 18, 0.24) 100%),
    linear-gradient(0deg, rgba(6, 12, 18, 0.86) 0%, transparent 34%);
  z-index: 1;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 92px 0 54px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.hero .eyebrow {
  color: #78e0c5;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 890px;
  color: #fff;
  font-size: 5.35rem;
}

h2 {
  font-size: 3.2rem;
}

h3 {
  font-size: 1.45rem;
}

.lead {
  max-width: 760px;
  color: #d9e4e5;
  font-size: clamp(1.06rem, 1.4vw, 1.25rem);
}

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

.hero-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.12);
}

.hero-strip div {
  padding: 18px;
  background: rgba(8, 14, 22, 0.76);
}

.hero-strip strong {
  display: block;
  color: #fff;
  font-size: 1.35rem;
}

.hero-strip span {
  color: #bdd0d4;
  line-height: 1.45;
}

section {
  padding: 58px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-head p {
  max-width: 650px;
  margin: 8px 0 0;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 16px;
}

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

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

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

.card,
.panel,
.tool-panel,
.lab-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(16, 20, 24, 0.05);
}

.card {
  padding: 22px;
}

.card h3,
.panel h3 {
  margin-bottom: 10px;
}

.card p:last-child,
.panel p:last-child {
  margin-bottom: 0;
}

.stat {
  display: block;
  color: var(--cyan);
  font-weight: 950;
  font-size: 2rem;
  line-height: 1;
}

.band {
  background: #101820;
  color: #fff;
}

.band h2,
.band h3 {
  color: #fff;
}

.band p,
.band li {
  color: #c9d6d7;
}

.topic-list {
  display: grid;
  gap: 12px;
}

.topic-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.topic-row strong {
  color: var(--navy);
}

.page-hero {
  padding: 72px 0 46px;
  background:
    linear-gradient(135deg, rgba(0, 167, 194, 0.1), transparent 30rem),
    linear-gradient(180deg, #ffffff, #f3f7f6);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  color: var(--ink);
  max-width: 980px;
  font-size: 4.35rem;
}

.page-hero .lead {
  color: var(--muted);
}

.lab-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.lab-panel {
  overflow: hidden;
}

.lab-canvas {
  width: 100%;
  min-height: 360px;
  background: #0e151d;
}

.lab-copy {
  padding: 18px;
  border-top: 1px solid var(--line);
}

.control-stack {
  display: grid;
  gap: 14px;
}

.control {
  display: grid;
  gap: 7px;
}

.control label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #23313c;
  font-weight: 800;
}

input[type="range"],
input[type="number"],
select,
textarea,
input[type="text"],
input[type="email"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  font: inherit;
}

input[type="range"] {
  padding: 0;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tabs button {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}

.tabs button[aria-selected="true"] {
  background: var(--navy);
  color: #fff;
}

.news-list {
  display: grid;
  gap: 12px;
}

.news-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.news-item a {
  color: var(--navy);
  font-weight: 900;
  text-decoration: none;
}

.meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #6b747d;
  font-size: 0.9rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  background: #fff;
  color: #31404b;
  font-weight: 750;
  font-size: 0.86rem;
}

.formula {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
  padding: 14px;
  color: #22303a;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.agent-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(13, 140, 103, 0.12);
}

.agent-row {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.small {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
  }

  .hero {
    min-height: 720px;
  }

  .hero-strip,
  .grid-2,
  .grid-3,
  .grid-4,
  .lab-layout {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .topic-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  h1,
  .page-hero h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.35rem;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100vw - 22px, 1180px);
  }

  .nav-links a {
    padding: 9px 6px;
    font-size: 0.86rem;
    text-align: center;
  }

  .hero-content {
    padding-top: 56px;
  }

  h1,
  .page-hero h1 {
    font-size: 2.6rem;
    line-height: 1.08;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  section {
    padding: 42px 0;
  }
}
