:root {
  --bg: #f8fafc;
  --bg-elevated: rgba(255, 255, 255, 0.9);
  --panel: rgba(255, 255, 255, 0.95);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(14, 116, 144, 0.22);
  --text: #0f172a;
  --muted: #475569;
  --accent: #0f766e;
  --accent-strong: #0f766e;
  --accent-soft: rgba(15, 118, 110, 0.08);
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
  --glow: 0 0 0 1px rgba(15, 118, 110, 0.12), 0 0 24px rgba(20, 184, 166, 0.12);
  --max-width: 1180px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Mono", monospace;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.08), transparent 24%),
    radial-gradient(circle at 80% 20%, rgba(15, 118, 110, 0.07), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 48%, #eef6f5 100%);
}

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

code {
  font-family: inherit;
  color: var(--accent);
}

ul {
  margin: 0;
  padding: 0;
}

.site-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px 20px;
  margin-bottom: 40px;
  background: rgba(5, 8, 22, 0.72);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand,
.nav a,
.button,
.eyebrow,
.engine-tag,
.panel-label {
  letter-spacing: 0.04em;
}

.brand {
  font-size: 0.95rem;
  font-weight: 600;
}

.brand-symbol {
  display: inline-block;
  margin-right: 0.35rem;
  color: var(--accent-strong);
}

.title-symbol {
  display: inline-block;
  margin-right: 0.4rem;
  color: var(--accent-strong);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.nav a {
  font-size: 0.82rem;
  color: var(--muted);
  transition: color 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.hero,
.section,
.footer {
  scroll-margin-top: 110px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 28px;
  align-items: stretch;
  min-height: calc(100vh - 180px);
  padding: 24px 0 40px;
}

.hero-copy,
.panel-card,
.card,
.engine-card,
.table-card,
.footer-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 36px;
  border-radius: var(--radius-lg);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.76rem;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1.02;
}

h2 {
  max-width: 16ch;
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3.3vw, 3.1rem);
  line-height: 1.08;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.08rem;
}

.hero-text,
.hero-subtitle,
.card p,
.engine-card p,
.footer p,
th,
td,
.panel-note,
.list-clean li {
  color: var(--muted);
  line-height: 1.75;
}

.hero-subtitle,
.engine-subtitle,
.explanation-line {
  color: var(--text);
}

.muted {
  max-width: 62ch;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.42);
  box-shadow: 0 12px 28px rgba(2, 8, 23, 0.32);
}

.button-primary {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.16), rgba(15, 118, 110, 0.18));
}

.button-secondary {
  background: rgba(255, 255, 255, 0.9);
}

.hero-panel {
  display: flex;
}

.panel-card {
  width: 100%;
  padding: 28px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 249, 0.98)),
    rgba(255, 255, 255, 0.92);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.panel-label {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.panel-card code,
.address-card code {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(15, 118, 110, 0.14);
  overflow-wrap: anywhere;
}

.semantic-glow {
  border-color: var(--border-strong) !important;
  box-shadow: var(--glow);
}

.panel-note {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.section {
  padding: 56px 0 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(96px, 160px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 24px;
}

.grid-two,
.feature-grid,
.engine-grid,
.address-grid {
  display: grid;
  gap: 18px;
}

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

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

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

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

.card,
.engine-card,
.table-card,
.footer-card {
  padding: 24px;
  border-radius: var(--radius-md);
}

.engine-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 249, 0.98));
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.engine-card:hover,
.engine-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12), var(--glow);
}

.engine-tag {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.engine-subtitle {
  margin-bottom: 14px;
}

.address-card,
.explanation-card,
.callout,
.contact-card,
.footer-card {
  background: var(--panel-strong);
}

.list-clean {
  margin-bottom: 18px;
  list-style: none;
}

.explanation-card {
  margin-top: 18px;
}

.explanation-line {
  margin-bottom: 8px;
  font-size: 1rem;
}

.table-card {
  overflow-x: auto;
}

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

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  vertical-align: top;
}

.comparison-table th {
  color: var(--text);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.comparison-table tbody tr:hover {
  background: rgba(15, 118, 110, 0.04);
}

.footer {
  padding-top: 56px;
}

.footer-card {
  text-align: center;
}

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

.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.js-enabled .fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.js-enabled .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .button,
  .engine-card,
  .js-enabled .fade-in {
    transition: none;
  }
}

@media (max-width: 1120px) {
  .engine-grid-four,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .topbar,
  .section-heading,
  .hero,
  .grid-two,
  .engine-grid,
  .feature-grid,
  .address-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    border-radius: 24px;
  }

  .topbar,
  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 12px;
  }

  .topbar {
    top: 10px;
    padding: 14px 16px;
    margin-bottom: 28px;
  }

  .hero-copy,
  .panel-card,
  .card,
  .engine-card,
  .table-card,
  .footer-card {
    padding: 20px;
  }

  h1 {
    font-size: clamp(2.2rem, 12vw, 3.6rem);
  }

  .comparison-table th,
  .comparison-table td {
    min-width: 160px;
    padding: 12px;
  }

  h1 {
    font-size: clamp(1.85rem, 9vw, 3rem);
  }
}
