:root {
  --bg: #050505;
  --bg-warm: #0a0908;
  --text: #f7f2ea;
  --text-soft: #b7ada0;
  --muted: #81786e;
  --border: rgba(255, 255, 255, 0.12);
  --card: #11100f;
  --dark: #050505;
  --dark-card: #151210;
  --terminal-border: rgba(255, 77, 11, 0.28);
  --accent: #ff4d0b;
  --accent-hover: #ff7a3d;
  --accent-soft: rgba(255, 77, 11, 0.18);
  --green: #ff7a3d;
  --cyan: #ff4d0b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
  --radius: 22px;
  --container: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(17, 17, 17, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

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

button,
input,
textarea {
  font: inherit;
}

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

.container {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 max(24px, calc((100vw - var(--container)) / 2));
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(247, 247, 243, 0.82);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 500;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 10px;
  background: var(--text);
  color: #fff;
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 450;
}

.site-nav a {
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(17, 17, 17, 0.13);
  border-radius: 999px;
  background: #fff;
  color: var(--text) !important;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
}

.section {
  padding: 112px 0;
}

.section-tight {
  padding: 116px 0 84px;
}

.section-compact {
  padding: 42px 0 72px;
}

.hero-grid,
.split-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: center;
}

.hero-copy,
.split-grid > :first-child {
  grid-column: span 6;
}

.hero-visual,
.split-grid > :last-child {
  grid-column: span 6;
}

.wide-left > :first-child {
  grid-column: span 7;
}

.wide-left > :last-child {
  grid-column: span 5;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.06;
}

h2 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(28px, 4vw, 43px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.11;
}

h3 {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.18;
}

.lead {
  max-width: 720px;
  color: var(--text-soft);
  font-size: 19px;
  line-height: 1.56;
}

.muted-light {
  color: rgba(255, 255, 255, 0.66);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.btn svg {
  width: 17px;
  height: 17px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  border-color: rgba(17, 17, 17, 0.14);
  background: rgba(255, 255, 255, 0.66);
}

.btn-dark {
  background: var(--text);
  color: #fff;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-row span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--text-soft);
  font-size: 13px;
}

.system-frame {
  position: relative;
  min-height: 560px;
  padding: 18px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.38));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.system-frame::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 80% 0%, rgba(51, 102, 255, 0.16), transparent 34%);
  pointer-events: none;
}

.terminal {
  position: relative;
  border: 1px solid var(--terminal-border);
  border-radius: 20px;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.84);
  box-shadow: 0 20px 60px rgba(14, 17, 22, 0.22);
  overflow: hidden;
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--terminal-border);
  color: rgba(255, 255, 255, 0.48);
  font: 12px/1 IBM Plex Mono, ui-monospace, monospace;
}

.terminal-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
}

.terminal-top strong {
  margin-left: 8px;
  font-weight: 400;
}

pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  font: 13px/1.58 IBM Plex Mono, ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre;
}

.hero-terminal {
  width: min(100%, 520px);
}

.dashboard-stack {
  position: absolute;
  right: 18px;
  bottom: 92px;
  display: grid;
  width: min(58%, 340px);
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 77, 11, 0.26);
  border-radius: 22px;
  background: rgba(5, 5, 5, 0.9);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(18px);
}

.dashboard-stack article,
.recommendation-stack article,
.metric-card,
.pillar-card,
.feature-grid article,
.integration-grid article,
.tier-grid article,
.case-grid article,
.resource-card,
.subpage-card {
  border: 1px solid rgba(17, 17, 17, 0.09);
  background: var(--card);
}

.dashboard-stack article {
  min-height: 112px;
  padding: 18px;
  border-radius: 18px;
  border-color: rgba(255, 255, 255, 0.11);
  background: #11100f;
  box-shadow: none;
}

.dashboard-stack span,
.dashboard-stack small,
.metric-card span,
.recommendation-stack span,
.integration-grid span,
.tier-grid span,
.case-grid span,
.resource-card span,
.subpage-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.dashboard-stack strong {
  display: block;
  margin: 10px 0 4px;
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
}

.mini-flow {
  position: absolute;
  right: 18px;
  bottom: 22px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-soft);
  font-size: 12px;
  white-space: nowrap;
  overflow-x: auto;
}

.mini-flow i {
  width: 28px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--accent);
}

.proof-line {
  max-width: 860px;
  margin-bottom: 22px;
  color: var(--text-soft);
  font-size: 18px;
}

.proof-grid,
.pillar-grid,
.feature-grid,
.integration-grid,
.tier-grid,
.case-grid,
.resource-grid,
.subpage-grid {
  display: grid;
  gap: 18px;
}

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

.metric-card {
  min-height: 128px;
  padding: 22px;
  border-radius: var(--radius);
}

.metric-card strong {
  display: block;
  margin-top: 18px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 42px;
}

.section-heading p:not(.eyebrow) {
  color: var(--text-soft);
  font-size: 18px;
}

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

.pillar-card,
.feature-grid article,
.subpage-card,
.resource-card {
  padding: 26px;
  border-radius: var(--radius);
  transition: transform 180ms ease, border-color 180ms ease;
}

.pillar-card:hover,
.feature-grid article:hover,
.resource-card:hover,
.subpage-card:hover {
  border-color: rgba(51, 102, 255, 0.34);
  transform: translateY(-2px);
}

.pillar-card p,
.feature-grid p,
.subpage-card p,
.resource-card p,
.case-grid p,
.tier-grid p {
  color: var(--text-soft);
}

.card-icon,
.feature-grid svg {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}

.card-icon svg,
.feature-grid svg {
  width: 22px;
  height: 22px;
}

.check-list {
  display: grid;
  gap: 8px;
  margin: 22px 0;
  padding: 0;
  color: var(--text-soft);
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 22px;
}

.check-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.micro-visual,
.bar-visual,
.score-strip {
  margin-top: 26px;
  padding: 14px;
  border-radius: 16px;
  background: #f6f4ef;
}

.route-visual {
  display: grid;
  gap: 8px;
}

.route-visual span,
.score-strip span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 12px;
  background: #fff;
  color: var(--text-soft);
  font-size: 13px;
}

.bar-visual {
  display: flex;
  align-items: end;
  gap: 9px;
  height: 142px;
}

.bar-visual span {
  width: 100%;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(to top, var(--accent), var(--cyan));
}

.score-strip {
  display: grid;
  gap: 8px;
}

.dark-band {
  background: var(--dark);
  color: #fff;
}

.dark-band .eyebrow {
  color: var(--cyan);
}

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

.timeline article {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: var(--dark-card);
}

.timeline span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--cyan);
  font: 13px/1 IBM Plex Mono, monospace;
}

.timeline h3 {
  font-size: 22px;
}

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

.command-section {
  background: var(--bg-warm);
}

.large-terminal pre {
  max-height: 590px;
}

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

.recommendation-stack h2 {
  margin-bottom: 12px;
}

.recommendation-stack article {
  padding: 20px;
  border-radius: 18px;
}

.recommendation-stack strong {
  display: block;
  margin: 8px 0;
  font-size: 19px;
  font-weight: 500;
}

.recommendation-stack p {
  margin-bottom: 0;
  color: var(--text-soft);
}

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

.visibility-section {
  background: #fff;
}

.service-options {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.service-options article {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-radius: 16px;
  background: var(--bg);
}

.service-options strong {
  font-weight: 500;
}

.service-options span {
  color: var(--text-soft);
}

.ai-table {
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-radius: 20px;
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ai-table > div {
  display: grid;
  grid-template-columns: 1fr 0.7fr 0.7fr 1fr 1.6fr;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  color: var(--text-soft);
  font-size: 14px;
}

.ai-table > div:first-child {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.72);
  font: 12px/1.3 IBM Plex Mono, monospace;
}

.ai-table > div:last-child {
  border-bottom: 0;
}

.ai-table strong {
  color: var(--text);
  font-weight: 500;
}

.tabs {
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
}

.tab-buttons {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  overflow-x: auto;
}

.tab-buttons button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  white-space: nowrap;
}

.tab-buttons button.active {
  border-color: rgba(51, 102, 255, 0.22);
  background: var(--accent-soft);
  color: var(--accent);
}

.tab-panel {
  display: none;
  padding: 26px;
}

.tab-panel.active {
  display: block;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  counter-reset: item;
  list-style: none;
}

.process-list li {
  position: relative;
  min-height: 112px;
  padding: 42px 14px 14px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text-soft);
  font-size: 14px;
}

.process-list li::before {
  position: absolute;
  top: 14px;
  left: 14px;
  color: var(--accent);
  content: counter(item, decimal-leading-zero);
  counter-increment: item;
  font: 12px/1 IBM Plex Mono, monospace;
}

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

.integration-grid article {
  padding: 20px;
  border-radius: 18px;
}

.integration-grid strong {
  display: block;
  margin: 12px 0 8px;
  font-weight: 500;
}

.integration-grid small {
  color: var(--text-soft);
}

.autonomy-section {
  background: var(--dark);
  color: #fff;
}

.autonomy-section .eyebrow {
  color: var(--cyan);
}

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

.tier-grid article {
  min-height: 240px;
  padding: 26px;
  border-color: rgba(255, 255, 255, 0.1);
  background: var(--dark-card);
  border-radius: var(--radius);
}

.tier-grid h3,
.tier-grid p {
  color: #fff;
}

.tier-grid p {
  color: rgba(255, 255, 255, 0.62);
}

.cases-preview {
  background: var(--bg-warm);
}

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

.case-grid article {
  padding: 24px;
  border-radius: var(--radius);
}

.pricing-section {
  padding-top: 88px;
  background: var(--bg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pricing-card {
  display: flex;
  min-height: 560px;
  flex-direction: column;
  padding: 42px 32px;
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.018);
}

.pricing-card:first-child {
  border-left: 1px solid var(--border);
}

.pricing-card.is-featured {
  background:
    linear-gradient(135deg, rgba(255, 77, 11, 0.13), rgba(255, 255, 255, 0.018) 52%),
    rgba(255, 77, 11, 0.035);
}

.pricing-top {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 34px;
  font: 12px/1 IBM Plex Mono, ui-monospace, monospace;
}

.pricing-top span {
  color: var(--muted);
}

.pricing-top strong {
  padding: 7px 11px;
  border: 1px solid rgba(255, 77, 11, 0.28);
  border-radius: 999px;
  background: rgba(255, 77, 11, 0.12);
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.pricing-card:nth-child(2) .pricing-top strong {
  border-color: rgba(42, 211, 118, 0.4);
  background: rgba(42, 211, 118, 0.1);
  color: #48d985;
}

.pricing-card:nth-child(4) .pricing-top strong {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
}

.pricing-card h3 {
  max-width: 260px;
  margin-bottom: 18px;
  font-size: clamp(28px, 3.2vw, 36px);
  line-height: 1.06;
}

.pricing-card h3 em {
  color: var(--accent);
  font-style: normal;
}

.pricing-card p {
  min-height: 100px;
  margin-bottom: 26px;
  color: var(--text-soft);
  font-size: 15px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.price span,
.price small {
  color: var(--muted);
  font: 12px/1 IBM Plex Mono, ui-monospace, monospace;
  text-transform: uppercase;
}

.price strong {
  color: var(--text);
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
}

.pricing-card ul {
  display: grid;
  gap: 0;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-soft);
  font: 12px/1.35 IBM Plex Mono, ui-monospace, monospace;
}

.pricing-card li small {
  color: var(--muted);
  text-align: right;
}

.pricing-card > a {
  width: fit-content;
  margin-top: auto;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  font: 12px/1 IBM Plex Mono, ui-monospace, monospace;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list article {
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.faq-list button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.faq-list svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  transition: transform 180ms ease;
}

.faq-list p {
  display: none;
  margin: 0;
  padding: 0 20px 20px;
  color: var(--text-soft);
}

.faq-list article.open p {
  display: block;
}

.faq-list article.open svg {
  transform: rotate(180deg);
}

.final-cta {
  padding-top: 80px;
}

.cta-panel {
  padding: 48px;
  border-radius: 28px;
  background: var(--text);
  color: #fff;
  overflow: hidden;
}

.cta-panel .eyebrow {
  color: var(--cyan);
}

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

.cta-panel .btn-primary {
  background: #fff;
  color: var(--text);
}

.site-footer {
  padding: 44px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  color: var(--text-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 24px;
  align-items: center;
}

.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  font-size: 14px;
}

.subhero {
  padding: 116px 0 72px;
  background: var(--bg-warm);
}

.subhero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 40px;
  align-items: center;
}

.subhero .terminal,
.subhero .ai-table {
  box-shadow: var(--shadow);
}

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

.subpage-card {
  min-height: 250px;
}

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

.resource-card {
  min-height: 250px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-row button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(17, 17, 17, 0.11);
  border-radius: 999px;
  background: #fff;
  color: var(--text-soft);
  cursor: pointer;
}

.filter-row button.active {
  background: var(--text);
  color: #fff;
}

.case-card[data-hidden="true"] {
  display: none;
}

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

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

@media (max-width: 1080px) {
  .site-header {
    height: 68px;
    padding: 0 20px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    top: 68px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid rgba(17, 17, 17, 0.09);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 12px;
  }

  .nav-cta {
    justify-content: center;
    margin-top: 8px;
  }

  .language-switcher {
    margin: 8px 0;
    justify-content: center;
  }

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

  .hero-copy,
  .hero-visual {
    grid-column: auto;
  }

  .hero-copy h1,
  .hero-copy .lead {
    max-width: 820px;
  }

  .hero-visual {
    max-width: 720px;
  }

  .system-frame {
    min-height: auto;
    padding-bottom: 18px;
  }

  .dashboard-stack,
  .mini-flow {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    margin-top: 14px;
  }

  .dashboard-stack {
    max-width: 100%;
  }

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

  .pillar-grid,
  .case-grid,
  .pricing-grid,
  .tier-grid,
  .subpage-grid,
  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card:nth-child(2n) {
    border-right: 1px solid var(--border);
  }

  .pricing-card:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

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

@media (max-width: 860px) {
  .container {
    width: min(100% - 40px, var(--container));
  }

  .site-header {
    height: 68px;
    padding: 0 20px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    top: 68px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid rgba(17, 17, 17, 0.09);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 12px;
  }

  .nav-cta {
    justify-content: center;
    margin-top: 8px;
  }

  .section,
  .section-tight,
  .subhero {
    padding: 72px 0;
  }

  .hero-grid,
  .split-grid,
  .subhero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-visual,
  .split-grid > :first-child,
  .split-grid > :last-child,
  .wide-left > :first-child,
  .wide-left > :last-child {
    grid-column: auto;
  }

  .system-frame {
    min-height: auto;
    padding-bottom: 18px;
  }

  .dashboard-stack,
  .mini-flow {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    margin-top: 14px;
  }

  .feature-grid.compact,
  .timeline,
  .proof-grid,
  .pillar-grid,
  .integration-grid,
  .tier-grid,
  .case-grid,
  .pricing-grid,
  .subpage-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card,
  .pricing-card:first-child {
    min-height: auto;
    border-right: 1px solid var(--border);
    border-left: 1px solid var(--border);
  }

  .pricing-card + .pricing-card {
    border-top: 1px solid var(--border);
  }

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

  .process-list {
    grid-template-columns: 1fr;
  }

  .ai-table {
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .ai-table > div {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 10px;
    border: 1px solid rgba(17, 17, 17, 0.09);
    border-radius: 14px;
    background: #fff;
  }

  .ai-table > div:first-child {
    display: none;
  }

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

  .footer-grid nav {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 22px;
  }

  .lead {
    font-size: 16px;
  }

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

  .dashboard-stack {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    padding: 28px;
    border-radius: 22px;
  }

  .pricing-card {
    padding: 32px 22px;
  }

  .price strong {
    font-size: 28px;
  }

  pre {
    font-size: 11px;
  }
}

/* Dark adwiselly theme */
body {
  background:
    radial-gradient(circle at 14% 2%, rgba(255, 77, 11, 0.11), transparent 22%),
    radial-gradient(circle at 82% 0%, rgba(255, 176, 103, 0.06), transparent 20%),
    var(--bg);
  color: var(--text);
}

body::before {
  background:
    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: 56px 56px;
  mask-image: linear-gradient(to bottom, black, rgba(0, 0, 0, 0.55), transparent 82%);
}

.site-header {
  border-bottom-color: rgba(255, 255, 255, 0.10);
  background: rgba(5, 5, 5, 0.82);
}

.brand-mark {
  border-color: rgba(255, 77, 11, 0.42);
  background: var(--accent);
  color: #120905;
}

.site-nav,
.lead,
.proof-line,
.section-heading p:not(.eyebrow),
.pillar-card p,
.feature-grid p,
.subpage-card p,
.resource-card p,
.case-grid p,
.recommendation-stack p,
.service-options span,
.check-list,
.process-list li,
.faq-list p,
.site-footer {
  color: var(--text-soft);
}

.site-nav a:hover,
.faq-list button,
.ai-table strong,
.tab-buttons button.active,
.filter-row button.active {
  color: var(--text);
}

.nav-cta,
.nav-toggle,
.btn-secondary,
.pill-row span,
.tag,
.language-switcher,
.language-switcher button,
.filter-row button {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  border-color: rgba(255, 77, 11, 0.7);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.language-switcher button {
  min-width: 34px;
  min-height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
}

.language-switcher button.active {
  background: var(--accent);
  color: #fff;
}

.btn-primary,
.filter-row button.active {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-dark {
  border-color: rgba(255, 77, 11, 0.32);
  background: rgba(255, 77, 11, 0.10);
  color: var(--text);
}

.system-frame,
.metric-card,
.pillar-card,
.feature-grid article,
.integration-grid article,
.tier-grid article,
.case-grid article,
.resource-card,
.subpage-card,
.tabs,
.faq-list article,
.service-options article,
.recommendation-stack article,
.ai-table,
.cta-panel {
  border-color: var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.028));
  box-shadow: var(--shadow);
}

.system-frame {
  background:
    linear-gradient(135deg, rgba(255, 77, 11, 0.10), rgba(255, 255, 255, 0.028)),
    #080706;
}

.system-frame::before {
  background: radial-gradient(circle at 80% 0%, rgba(255, 77, 11, 0.28), transparent 36%);
}

.terminal {
  background: #070707;
  color: rgba(255, 246, 236, 0.86);
}

.terminal-top {
  border-bottom-color: rgba(255, 77, 11, 0.18);
}

.micro-visual,
.bar-visual,
.score-strip,
.process-list li,
.tab-panel,
.subhero,
.command-section,
.visibility-section,
.cases-preview,
.autonomy-section,
.dark-band {
  background: transparent;
}

.route-visual span,
.score-strip span,
.mini-flow,
.ai-table > div,
.ai-table > div:first-child,
.tab-buttons,
.tab-buttons button.active {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-soft);
}

.ai-table > div:first-child {
  background: rgba(255, 77, 11, 0.14);
  color: var(--accent-hover);
}

.tab-buttons {
  border-bottom-color: var(--border);
}

.tab-buttons button.active {
  border-color: rgba(255, 77, 11, 0.46);
  color: var(--accent-hover);
}

.pillar-card:hover,
.feature-grid article:hover,
.resource-card:hover,
.subpage-card:hover {
  border-color: rgba(255, 77, 11, 0.54);
}

.bar-visual span {
  background: linear-gradient(to top, var(--accent), var(--accent-hover));
}

.card-icon,
.feature-grid svg {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.dark-band .eyebrow,
.autonomy-section .eyebrow,
.cta-panel .eyebrow,
.timeline span {
  color: var(--accent-hover);
}

.timeline article,
.tier-grid article {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.045);
}

.timeline p,
.tier-grid p,
.cta-panel p:not(.eyebrow) {
  color: var(--text-soft);
}

.cta-panel .btn-primary {
  background: var(--accent);
  color: #fff;
}

.site-footer {
  border-top-color: var(--border);
}

@media (max-width: 1080px) {
  .site-nav {
    border-color: var(--border);
    background: rgba(8, 8, 8, 0.98);
  }

  .ai-table > div {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.045);
  }

  .language-switcher {
    margin: 8px 0;
    justify-content: center;
  }
}