:root {
  color-scheme: light;
  --ink: #101313;
  --ink-2: #2d3433;
  --muted: #65706d;
  --line: rgba(20, 30, 27, 0.12);
  --paper: #f6f3ed;
  --paper-2: #ebe7dc;
  --surface: #fffdf8;
  --dark: #080b0b;
  --dark-2: #111817;
  --teal: #00b8a9;
  --teal-2: #75e7d8;
  --amber: #d79a35;
  --violet: #7d6bff;
  --green: #19c37d;
  --danger: #ff6b5c;
  --shadow: 0 24px 70px rgba(27, 24, 16, 0.12);
  --radius: 8px;
  --radius-lg: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(0, 184, 169, 0.22);
}

.svg-sprite {
  display: none;
}

.icon {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.92);
  transition:
    background 0.24s ease,
    border-color 0.24s ease,
    color 0.24s ease,
    backdrop-filter 0.24s ease;
}

.site-header.scrolled,
.site-header.menu-open {
  background: rgba(8, 11, 11, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(135deg, rgba(0, 184, 169, 0.95), rgba(215, 154, 53, 0.92)),
    #0a1110;
  color: #07100f;
  font-weight: 900;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 184, 169, 0.22);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

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

.brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 36px);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
}

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

.desktop-nav a:hover {
  color: #fff;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.ghost-link {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.ghost-link:hover {
  color: #fff;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 19px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.2;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-small {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--amber));
  color: #07100f;
  box-shadow: 0 18px 45px rgba(0, 184, 169, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 22px 60px rgba(215, 154, 53, 0.22);
}

.btn-dark {
  background: rgba(255, 255, 255, 0.92);
  color: #0b100f;
}

.btn-glass {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.btn-outline {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

.menu-toggle {
  display: none;
}

.menu-close {
  display: none;
}

.mobile-nav {
  position: fixed;
  top: 72px;
  left: 16px;
  right: 16px;
  display: none;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(8, 11, 11, 0.92);
  backdrop-filter: blur(20px);
}

.mobile-nav a {
  display: block;
  padding: 16px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 112px clamp(20px, 5vw, 72px) 80px;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 184, 169, 0.2), transparent 28%),
    radial-gradient(circle at 84% 24%, rgba(125, 107, 255, 0.18), transparent 24%),
    radial-gradient(circle at 65% 78%, rgba(215, 154, 53, 0.18), transparent 26%),
    linear-gradient(145deg, #07100f 0%, #0e1514 42%, #080b0b 100%);
  color: #fff;
}

.hero-canvas,
.hero-noise {
  position: absolute;
  inset: 0;
}

.hero-canvas {
  z-index: 0;
  opacity: 0.95;
}

.hero-noise {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.15));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  height: 22vh;
  background: linear-gradient(to bottom, transparent, rgba(8, 11, 11, 0.9));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: min(980px, 100%);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--teal-2);
}

.hero h1 {
  margin: 0;
  max-width: 940px;
  font-size: clamp(3.2rem, 10vw, 7.7rem);
  line-height: 0.95;
  font-weight: 950;
}

.hero h1 span {
  display: block;
}

.hero-kicker {
  margin: 18px 0 0;
  color: #f5d991;
  font-size: clamp(1.5rem, 4vw, 3.25rem);
  line-height: 1.08;
  font-weight: 900;
}

.hero-copy {
  max-width: 760px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(132px, 1fr));
  gap: 1px;
  max-width: 760px;
  margin-top: 54px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.hero-metrics div {
  min-height: 92px;
  padding: 18px;
  background: rgba(8, 11, 11, 0.55);
}

.hero-metrics strong {
  display: block;
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.1;
}

.hero-metrics span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
}

.signal-strip {
  overflow: hidden;
  background: #080b0b;
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.signal-track {
  display: flex;
  width: max-content;
  gap: 16px;
  padding: 18px 0;
  animation: marquee 28s linear infinite;
}

.signal-track span {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.section {
  padding: clamp(78px, 10vw, 132px) clamp(20px, 5vw, 72px);
}

.band-light {
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--surface) 100%),
    var(--paper);
}

.section-head {
  max-width: 780px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head.left {
  margin-left: 0;
  text-align: left;
}

.section-head h2,
.console-copy h2,
.final-inner h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.08;
  font-weight: 930;
}

.section-head p:not(.eyebrow),
.console-copy p:not(.eyebrow),
.final-inner p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.8;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1220px;
  margin: 0 auto;
}

.feature-card {
  min-height: 300px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 18px 45px rgba(42, 35, 20, 0.06);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 184, 169, 0.35);
  box-shadow: var(--shadow);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 34px;
  border: 1px solid rgba(0, 184, 169, 0.22);
  border-radius: var(--radius);
  background: rgba(0, 184, 169, 0.09);
  color: #058477;
}

.feature-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.feature-card p {
  min-height: 84px;
  margin: 14px 0 26px;
  color: var(--muted);
  line-height: 1.7;
}

.feature-card a {
  color: #027d72;
  font-weight: 850;
}

.model-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, rgba(0, 184, 169, 0.12), transparent 26%),
    radial-gradient(circle at 80% 70%, rgba(215, 154, 53, 0.1), transparent 22%),
    #101313;
  color: #fff;
}

.model-section .section-head h2 {
  color: #fff;
}

.model-section .section-head p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.64);
}

.model-board {
  position: relative;
  min-height: 520px;
  max-width: 1040px;
  margin: 0 auto;
}

.model-node {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 120px;
  height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.24);
  animation: float 6s ease-in-out infinite;
}

.model-node.core {
  top: 205px;
  left: 50%;
  width: 184px;
  height: 120px;
  transform: translateX(-50%);
  border-color: rgba(0, 184, 169, 0.45);
  background:
    linear-gradient(135deg, rgba(0, 184, 169, 0.24), rgba(215, 154, 53, 0.14)),
    rgba(255, 255, 255, 0.08);
}

.model-node.core span {
  color: var(--teal-2);
  font-size: 0.78rem;
  font-weight: 900;
}

.model-node.core strong {
  font-size: 1.7rem;
}

.n1 {
  top: 54px;
  left: 15%;
}

.n2 {
  top: 70px;
  right: 12%;
  animation-delay: -1s;
}

.n3 {
  top: 236px;
  right: 4%;
  animation-delay: -2s;
}

.n4 {
  bottom: 64px;
  right: 18%;
  animation-delay: -3s;
}

.n5 {
  bottom: 74px;
  left: 14%;
  animation-delay: -1.6s;
}

.n6 {
  top: 242px;
  left: 3%;
  animation-delay: -2.4s;
}

.model-line {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 263px;
  width: 330px;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(0, 184, 169, 0.65), rgba(215, 154, 53, 0.06));
}

.l1 {
  transform: rotate(-142deg);
}

.l2 {
  transform: rotate(-37deg);
}

.l3 {
  transform: rotate(-7deg);
  width: 430px;
}

.l4 {
  transform: rotate(39deg);
}

.l5 {
  transform: rotate(142deg);
}

.l6 {
  transform: rotate(187deg);
  width: 430px;
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

.model-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.model-tags span {
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
}

.console-section {
  background:
    linear-gradient(90deg, rgba(0, 184, 169, 0.08), transparent 40%),
    var(--paper-2);
}

.console-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
}

.endpoint-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  max-width: 600px;
  margin-top: 32px;
  padding: 12px 12px 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.68);
}

.endpoint-box span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.endpoint-box code {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.95rem;
}

.endpoint-box .icon-button {
  border-color: rgba(0, 0, 0, 0.08);
  background: #101313;
  color: #fff;
}

.dashboard-shell {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    #0d1211;
  color: #fff;
  box-shadow: 0 30px 90px rgba(20, 28, 26, 0.26);
}

.dash-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.62);
}

.dash-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.dash-topbar span:nth-child(1) {
  background: var(--danger);
}

.dash-topbar span:nth-child(2) {
  background: var(--amber);
}

.dash-topbar span:nth-child(3) {
  background: var(--green);
}

.dash-topbar strong {
  margin-left: auto;
  font-size: 0.86rem;
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.dash-kpis div {
  min-height: 100px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.dash-kpis span,
.route-row em {
  display: block;
  color: rgba(255, 255, 255, 0.48);
  font-style: normal;
  font-size: 0.84rem;
}

.dash-kpis strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.traffic-panel {
  height: 210px;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.traffic-line {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 10px;
  height: 100%;
}

.traffic-line span {
  display: block;
  min-height: 18px;
  border-radius: 999px 999px 3px 3px;
  background: linear-gradient(180deg, var(--teal-2), var(--teal));
  box-shadow: 0 0 22px rgba(0, 184, 169, 0.28);
}

.traffic-line span:nth-child(3n) {
  background: linear-gradient(180deg, #f7ca72, var(--amber));
}

.route-table {
  padding: 12px;
}

.route-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.route-row:last-child {
  border-bottom: 0;
}

.route-row span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-row strong {
  color: var(--teal-2);
  font-size: 0.84rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.green {
  background: var(--green);
}

.teal {
  background: var(--teal);
}

.amber {
  background: var(--amber);
}

.code-section {
  background: var(--surface);
}

.code-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 24px;
  max-width: 1220px;
  margin: 0 auto;
}

.code-window {
  min-height: 420px;
  margin: 0;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(0, 184, 169, 0.08), transparent 46%),
    #0a0f0e;
  color: #d7fff7;
  box-shadow: 0 26px 70px rgba(20, 28, 26, 0.18);
  overflow-x: auto;
}

.code-window code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.86rem, 2vw, 1rem);
  line-height: 1.8;
}

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

.integration-list article {
  min-height: 124px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(246, 243, 237, 0.74);
}

.integration-list .icon {
  color: #027d72;
}

.integration-list h3 {
  margin: 14px 0 8px;
}

.integration-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.pricing-section {
  background:
    radial-gradient(circle at 22% 8%, rgba(215, 154, 53, 0.12), transparent 24%),
    var(--paper);
}

.billing-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(340px, 100%);
  margin: 0 auto 26px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.78);
}

.billing-toggle button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.billing-toggle button.active {
  background: #111817;
  color: #fff;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.price-card {
  position: relative;
  display: flex;
  min-height: 500px;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.8);
  box-shadow: 0 18px 45px rgba(42, 35, 20, 0.06);
}

.price-card.highlighted {
  border-color: rgba(0, 184, 169, 0.42);
  background:
    linear-gradient(180deg, rgba(0, 184, 169, 0.12), rgba(255, 253, 248, 0.92)),
    var(--surface);
  box-shadow: var(--shadow);
}

.plan-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #111817;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
}

.plan-name {
  margin: 0;
  color: #027d72;
  font-weight: 950;
  text-transform: uppercase;
}

.price-card h3 {
  margin: 28px 0 12px;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
}

.price-card h3 small {
  margin-left: 8px;
  color: var(--muted);
  font-size: 1rem;
}

.price-card p:not(.plan-name) {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.price-card ul {
  display: grid;
  gap: 14px;
  margin: 30px 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  display: flex;
  gap: 10px;
  color: var(--ink-2);
  line-height: 1.5;
}

.price-card li .icon {
  color: #027d72;
  margin-top: 2px;
}

.price-card .btn {
  margin-top: auto;
}

.timeline-section {
  background: #111817;
  color: #fff;
}

.timeline-section .section-head h2 {
  color: #fff;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 1220px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
}

.timeline article {
  min-height: 300px;
  padding: 32px;
  background: #111817;
}

.timeline span {
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 900;
}

.timeline h3 {
  margin: 72px 0 14px;
  font-size: 1.5rem;
}

.timeline p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.75;
}

.faq-section {
  background: var(--surface);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(246, 243, 237, 0.75);
  overflow: hidden;
}

.faq-item button {
  display: flex;
  width: 100%;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  background: transparent;
  padding: 20px 24px;
  color: var(--ink);
  text-align: left;
  font-weight: 900;
}

.faq-item button span {
  overflow-wrap: anywhere;
}

.faq-item .icon {
  color: #027d72;
  transition: transform 0.2s ease;
}

.faq-item.open .icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.24s ease;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer p {
  min-height: 0;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.8;
}

.faq-item.open .faq-answer p {
  padding: 0 24px 24px;
}

.final-cta {
  padding: clamp(80px, 12vw, 148px) clamp(20px, 5vw, 72px);
  background:
    radial-gradient(circle at 8% 10%, rgba(0, 184, 169, 0.18), transparent 26%),
    radial-gradient(circle at 88% 52%, rgba(215, 154, 53, 0.14), transparent 28%),
    #080b0b;
  color: #fff;
}

.final-inner {
  max-width: 940px;
}

.final-inner h2,
.final-inner p:not(.eyebrow) {
  color: #fff;
}

.final-inner p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.68);
}

.final-inner .btn {
  margin-top: 30px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  background: #080b0b;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer strong {
  display: block;
  color: #fff;
}

.site-footer span,
.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: #111817;
  color: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .desktop-nav,
  .ghost-link {
    display: none;
  }

  .site-header {
    grid-template-columns: auto 1fr;
  }

  .header-actions {
    justify-self: end;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .site-header.menu-open .mobile-nav {
    display: block;
  }

  .site-header.menu-open .menu-open {
    display: none;
  }

  .site-header.menu-open .menu-close {
    display: block;
  }

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

  .console-layout,
  .code-layout {
    grid-template-columns: 1fr;
  }

  .model-board {
    min-height: 460px;
  }

  .model-node {
    min-width: 104px;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 66px;
    padding: 0 14px;
  }

  .brand span:last-child {
    display: none;
  }

  .header-actions .btn-small {
    display: none;
  }

  .mobile-nav {
    top: 66px;
  }

  .hero {
    min-height: 86svh;
    padding: 96px 18px 52px;
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

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

  .section {
    padding: 70px 18px;
  }

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

  .feature-card,
  .price-card {
    min-height: auto;
  }

  .feature-card p {
    min-height: 0;
  }

  .model-board {
    min-height: 560px;
    max-width: 360px;
  }

  .model-node.core {
    top: 220px;
    width: 156px;
    height: 104px;
  }

  .model-node {
    min-width: 96px;
    height: 48px;
    font-size: 0.86rem;
  }

  .n1 {
    top: 52px;
    left: 8px;
  }

  .n2 {
    top: 86px;
    right: 4px;
  }

  .n3 {
    top: 364px;
    right: 4px;
  }

  .n4 {
    bottom: 50px;
    right: 24px;
  }

  .n5 {
    bottom: 78px;
    left: 0;
  }

  .n6 {
    top: 348px;
    left: 0;
  }

  .model-line {
    width: 190px;
  }

  .l3,
  .l6 {
    width: 190px;
  }

  .endpoint-box {
    grid-template-columns: 1fr auto;
  }

  .endpoint-box span {
    grid-column: 1 / -1;
  }

  .dash-kpis {
    grid-template-columns: 1fr;
  }

  .route-row {
    grid-template-columns: 16px minmax(0, 1fr);
  }

  .route-row strong,
  .route-row em {
    display: none;
  }

  .code-window {
    min-height: 330px;
  }

  .timeline h3 {
    margin-top: 40px;
  }

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

body.app-mode {
  background: #eef0ea;
}

body.app-mode .site-header {
  background: rgba(8, 11, 11, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

[hidden] {
  display: none !important;
}

.app-root {
  min-height: 100svh;
  padding-top: 72px;
  background:
    radial-gradient(circle at 4% 8%, rgba(0, 184, 169, 0.12), transparent 24%),
    radial-gradient(circle at 94% 4%, rgba(215, 154, 53, 0.1), transparent 22%),
    #eef0ea;
}

.workspace {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: calc(100svh - 72px);
}

.app-sidebar {
  position: sticky;
  top: 72px;
  align-self: start;
  height: calc(100svh - 72px);
  padding: 22px 16px;
  border-right: 1px solid rgba(16, 19, 19, 0.1);
  background: rgba(255, 253, 248, 0.74);
  backdrop-filter: blur(18px);
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
}

.app-logo strong,
.app-logo small {
  display: block;
  line-height: 1.05;
}

.app-logo small {
  margin-top: 4px;
  color: var(--muted);
}

.app-nav,
.app-nav-group {
  display: grid;
  gap: 6px;
}

.app-nav {
  margin-top: 22px;
}

.app-nav-group {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.app-nav-group > span {
  padding: 0 12px 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.app-nav a {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 800;
}

.app-nav a:hover,
.app-nav a.active {
  background: #111817;
  color: #fff;
}

.app-panel {
  min-width: 0;
  padding: clamp(22px, 4vw, 42px);
}

.app-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.app-topline h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.app-topline p:not(.eyebrow) {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.app-user {
  display: grid;
  gap: 4px;
  min-width: 220px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.78);
  color: var(--ink);
  text-align: left;
}

.app-user span {
  color: var(--muted);
  font-size: 0.82rem;
}

.kpi-grid,
.app-grid,
.channel-grid,
.app-pricing,
.docs-grid {
  display: grid;
  gap: 16px;
}

.kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.app-kpi,
.app-card,
.channel-card,
.app-price,
.auth-card,
.auth-visual {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 18px 45px rgba(42, 35, 20, 0.06);
}

.app-kpi {
  min-height: 150px;
  padding: 22px;
}

.app-kpi span,
.app-kpi em {
  display: block;
  color: var(--muted);
  font-style: normal;
}

.app-kpi span {
  font-weight: 900;
}

.app-kpi strong {
  display: block;
  margin: 18px 0 8px;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1;
}

.app-card {
  min-width: 0;
  padding: 24px;
  overflow: hidden;
}

.app-card h2,
.app-price h2,
.channel-card h3 {
  margin: 0 0 18px;
  color: var(--ink);
}

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

.key-layout {
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.6fr);
}

.span-2 {
  grid-column: span 2;
}

.app-bars {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  align-items: end;
  gap: 10px;
  height: 260px;
  padding-top: 20px;
}

.app-bars span {
  position: relative;
  display: block;
  min-height: 18px;
  border-radius: 999px 999px 3px 3px;
  background: linear-gradient(180deg, var(--teal-2), var(--teal));
}

.app-bars em {
  position: absolute;
  left: 50%;
  bottom: -24px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-actions button,
.demo-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdf8;
  color: var(--ink);
  font-weight: 800;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0, 184, 169, 0.1);
  color: #027d72;
  font-size: 0.78rem;
  font-weight: 900;
}

.pill.paused,
.pill.failed {
  background: rgba(255, 107, 92, 0.12);
  color: #b84435;
}

.pill.success,
.pill.active {
  background: rgba(25, 195, 125, 0.12);
  color: #0b7c50;
}

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

.form-stack.compact {
  max-width: 420px;
}

.form-stack label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.form-stack input {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  color: var(--ink);
  padding: 0 14px;
  outline: none;
}

.form-stack input:focus {
  border-color: rgba(0, 184, 169, 0.5);
  box-shadow: 0 0 0 4px rgba(0, 184, 169, 0.1);
}

.secret-box {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  border: 1px dashed rgba(0, 184, 169, 0.45);
  border-radius: var(--radius);
  background: rgba(0, 184, 169, 0.08);
}

.secret-box code,
.mini-code {
  overflow-x: auto;
  white-space: pre;
}

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

.channel-card {
  padding: 22px;
}

.channel-card > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.channel-card em {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.channel-card dl,
.profile-list {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin: 0;
}

.channel-card dt,
.profile-list dt {
  color: var(--muted);
}

.channel-card dd,
.profile-list dd {
  margin: 0;
  font-weight: 850;
}

.app-pricing {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.app-price {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: 24px;
}

.app-price.featured {
  border-color: rgba(0, 184, 169, 0.42);
  background:
    linear-gradient(180deg, rgba(0, 184, 169, 0.12), rgba(255, 253, 248, 0.92)),
    var(--surface);
}

.app-price p {
  margin: 0;
  color: #027d72;
  font-weight: 950;
  text-transform: uppercase;
}

.app-price h2 {
  margin: 24px 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.app-price h2 small {
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.app-price span {
  color: var(--muted);
  line-height: 1.7;
}

.app-price ul {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding-left: 18px;
}

.app-price .btn {
  margin-top: auto;
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: 18px;
  min-height: calc(100svh - 72px);
  padding: clamp(18px, 4vw, 42px);
}

.auth-visual {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 6vw, 56px);
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 184, 169, 0.24), transparent 28%),
    radial-gradient(circle at 82% 30%, rgba(215, 154, 53, 0.16), transparent 26%),
    #101313;
  color: #fff;
}

.auth-visual h1 {
  max-width: 640px;
  margin: auto 0 18px;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 1.02;
}

.auth-visual p {
  max-width: 580px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.75;
}

.auth-card {
  align-self: center;
  padding: clamp(24px, 4vw, 34px);
}

.auth-card h2 {
  margin: 0 0 24px;
  font-size: 2rem;
}

.muted-link {
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.demo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.mini-code {
  margin: 0;
  padding: 18px;
  border-radius: var(--radius);
  background: #0a0f0e;
  color: #d7fff7;
  line-height: 1.7;
}

.endpoint-box.app-copy {
  max-width: none;
  background: #fffdf8;
}

.empty-state {
  display: grid;
  place-items: start;
  gap: 14px;
  min-height: 360px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.82);
}

.empty-state h2 {
  margin: 0;
  font-size: 3rem;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.ops-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ops-list span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink-2);
  font-weight: 800;
}

@media (max-width: 1040px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

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

@media (max-width: 760px) {
  .app-root {
    padding-top: 66px;
  }

  .app-panel {
    padding: 18px;
  }

  .app-topline,
  .auth-page {
    grid-template-columns: 1fr;
  }

  .app-topline {
    display: grid;
  }

  .app-user {
    width: 100%;
  }

  .app-nav,
  .kpi-grid,
  .app-grid.two,
  .key-layout,
  .channel-grid,
  .app-pricing,
  .docs-grid,
  .demo-actions {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .auth-visual {
    min-height: 360px;
  }

  th:nth-child(n + 4),
  td:nth-child(n + 4) {
    display: none;
  }
}

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