:root {
  --bg: #07090d;
  --bg-soft: #0c0d10;
  --panel: #111214;
  --panel-strong: #181a1d;
  --text: #f5f7fb;
  --muted: #a5a7ad;
  --line: rgba(245, 247, 251, 0.12);
  --line-strong: rgba(245, 247, 251, 0.22);
  --accent: #38bdf8;
  --danger: #fb7185;
  --radius: 8px;
  --header: 72px;
  --container: 1184px;
  color-scheme: dark;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.3;
  margin: 0;
  text-rendering: geometricPrecision;
}
html {
  scrollbar-color: #5f6268 #090a0d;
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #090a0d;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
::-webkit-scrollbar-thumb {
  background: #5f6268;
  border: 2px solid #090a0d;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7a7d84;
}
body.nav-open { overflow: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.skip-link {
  background: var(--text);
  color: var(--bg);
  font-weight: 800;
  left: 16px;
  padding: 12px 16px;
  position: fixed;
  top: 16px;
  transform: translateY(-160%);
  z-index: 50;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  backdrop-filter: blur(18px);
  background: rgba(8, 11, 18, 0.78);
  border-bottom: 1px solid var(--line);
  min-height: var(--header);
  position: sticky;
  top: 0;
  z-index: 40;
}
.nav-shell {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--container);
  min-height: var(--header);
  padding: 0 32px;
}
.brand {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand-mark {
  align-items: center;
  background: var(--text);
  border-radius: 8px;
  color: var(--bg);
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}
.brand-logo {
  display: block;
  height: 32px;
  object-fit: contain;
  width: 32px;
}
.nav-menu {
  align-items: center;
  display: flex;
  gap: 4px;
}
.nav-menu a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
  text-decoration: none;
}
.nav-menu a.active { color: var(--text); }
.nav-menu a:hover { color: var(--text); }
.nav-menu .nav-cta { background: var(--text); color: var(--bg); margin-left: 8px; }
.nav-menu .nav-cta:hover { background: var(--accent); color: #03101a; }
.nav-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: none;
  height: 40px;
  justify-content: center;
  position: relative;
  width: 40px;
}
.nav-toggle span {
  background: var(--text);
  height: 2px;
  position: absolute;
  transition: transform 180ms ease;
  width: 18px;
}
.nav-toggle span:first-child { transform: translateY(-4px); }
.nav-toggle span:last-child { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.messages {
  left: 50%;
  max-width: min(720px, calc(100vw - 32px));
  position: fixed;
  top: 88px;
  transform: translateX(-50%);
  width: 100%;
  z-index: 60;
}
.message {
  background: var(--panel-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,0.32);
  color: var(--text);
  font-weight: 700;
  margin: 0 0 8px;
  padding: 16px;
}
.message-error { border-color: rgba(251,113,133,0.55); }

.section-grid,
.metrics,
.section,
.cta,
.page-hero,
.contact-layout,
.legal-content,
.site-footer {
  margin: 0 auto;
  max-width: var(--container);
  padding-left: 32px;
  padding-right: 32px;
}
.hero {
  display: grid;
  gap: 48px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  min-height: min(820px, calc(100svh - var(--header)));
  padding-bottom: 80px;
  padding-top: 56px;
  position: relative;
}
.hero::before {
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(180deg, black, transparent 76%);
  opacity: 0.22;
  pointer-events: none;
  position: absolute;
}
.hero-copy { align-self: center; grid-column: 1 / span 6; position: relative; }
.product-preview {
  align-self: center;
  grid-column: 8 / span 5;
  display: grid;
  gap: 16px;
  min-height: 0;
  perspective: 1000px;
  position: relative;
}
.eyebrow,
.status,
.metrics span,
.principles span,
.footer-grid h2,
label span {
  color: var(--accent);
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.03em;
}
h1 {
  font-size: clamp(56px, 7vw, 88px);
  font-weight: 900;
  line-height: 0.96;
  margin-bottom: 24px;
  max-width: 9.8ch;
}
h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 16px;
  max-width: 12ch;
}
h3 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
}
p { color: var(--muted); line-height: 1.3; }
.hero-text { font-size: clamp(18px, 2vw, 22px); max-width: 520px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--text); color: var(--bg); }
.button.primary:hover { background: var(--accent); }
.button.secondary { border-color: var(--line-strong); color: var(--text); }
.button.small { min-height: 40px; padding: 0 14px; }

.preview-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.035));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 32px 110px rgba(0,0,0,0.42);
  min-height: 248px;
  padding: 20px;
  position: relative;
  transition: transform 220ms ease;
  width: min(360px, 100%);
}
.toxly-card { justify-self: end; }
.mathingo-card { justify-self: start; margin-top: -32px; }
.mini-window { display: flex; gap: 8px; margin-bottom: 32px; }
.mini-window span { background: rgba(255,255,255,0.24); border-radius: 999px; height: 8px; width: 8px; }
.preview-topline {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
}
.shield-mark {
  border: 2px solid var(--accent);
  border-radius: 14px 14px 20px 20px;
  height: 52px;
  margin: 0;
  width: 44px;
}
.preview-card h2 {
  font-size: 48px;
  margin-bottom: 8px;
}
.preview-card p {
  margin-bottom: 0;
}
.preview-status,
.preview-topline span,
.compact-list span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.compact-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.compact-list span {
  background: rgba(56,189,248,0.12);
  border: 1px solid rgba(56,189,248,0.28);
  border-radius: 999px;
  color: #dff7ff;
  padding: 8px 10px;
}
.progress-lines { display: grid; gap: 8px; margin-top: 28px; }
.progress-lines span { background: rgba(255,255,255,0.16); border-radius: 999px; height: 10px; }
.progress-lines span:nth-child(1) { width: 90%; }
.progress-lines span:nth-child(2) { width: 68%; }
.progress-lines span:nth-child(3) { width: 40%; background: var(--accent); }

.metrics {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: 96px;
}
.metrics article {
  background: var(--panel);
  border: 1px solid var(--line);
  min-height: 180px;
  padding: 24px;
}
.metrics strong {
  display: block;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 44px;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 32px 0 16px;
}
.section { padding-bottom: 104px; scroll-margin-top: 96px; }
.section-header { margin-bottom: 32px; }
.design-rules {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.design-rules .section-header {
  grid-column: 1 / span 5;
}
.rule-grid {
  display: grid;
  gap: 8px;
  grid-column: 7 / span 6;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.rule-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 192px;
  padding: 24px;
}
.rule-grid span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 48px;
  text-transform: uppercase;
}
.rule-grid p {
  margin-bottom: 0;
}
.product-grid { display: grid; gap: 16px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-column: span 6;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  min-height: 420px;
  overflow: hidden;
}
.product-card.coming-soon { grid-column: span 12; min-height: 240px; }
.product-visual {
  align-items: center;
  background: var(--panel-strong);
  display: flex;
  justify-content: center;
  padding: 24px;
}
.api-panel,
.math-panel,
.dialog-preview {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 24px;
  width: 100%;
}
.api-panel span,
.math-panel span { color: var(--accent); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.api-panel strong,
.math-panel strong { display: block; font-size: 28px; margin: 48px 0 12px; }
.product-content { padding: 24px; }
.product-content ul,
#dialog-features { display: grid; gap: 10px; margin: 20px 0; padding: 0; }
.product-content li,
#dialog-features li {
  color: var(--muted);
  list-style: none;
  padding-left: 20px;
  position: relative;
}
.product-content li::before,
#dialog-features li::before {
  background: var(--accent);
  border-radius: 999px;
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  top: 9px;
  width: 6px;
}
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.split { display: grid; gap: 32px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.split .section-header { grid-column: 1 / span 5; }
.body-copy { grid-column: 7 / span 6; }
.principles { display: grid; gap: 12px; margin-top: 32px; }
.principles article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.status-board { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.status-board article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.status-board strong { display: block; font-size: 32px; margin: 24px 0; }
.status-track { background: rgba(255,255,255,0.08); border-radius: 999px; height: 8px; overflow: hidden; }
.status-track span { background: var(--accent); display: block; height: 100%; width: 64%; }
.cta {
  align-items: end;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr auto;
  margin-bottom: 104px;
  padding-bottom: 32px;
  padding-top: 32px;
}
.product-dialog {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  max-width: min(920px, calc(100vw - 32px));
  padding: 0;
  width: 100%;
}
.product-dialog::backdrop { background: rgba(0,0,0,0.72); backdrop-filter: blur(8px); }
.dialog-close {
  background: var(--text);
  border: 0;
  border-radius: 6px;
  color: var(--bg);
  font-size: 28px;
  height: 40px;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 40px;
}
.dialog-grid { display: grid; gap: 24px; grid-template-columns: 1fr 0.8fr; padding: 32px; }

.page-hero { padding-bottom: 64px; padding-top: 112px; }
.page-hero h1 { max-width: 12ch; }
.contact-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 360px;
  padding-bottom: 120px;
}
.contact-form,
.contact-card,
.legal-content {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-form {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 24px;
}
.contact-form .wide { grid-column: 1 / -1; }
label { min-width: 0; }
label span { color: var(--muted); margin-bottom: 8px; }
input, select, textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  min-height: 48px;
  padding: 12px 14px;
  width: 100%;
}
textarea { min-height: 160px; resize: vertical; }
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] { border-color: var(--danger); }
.privacy {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: 20px minmax(0, 1fr);
}
.privacy input { min-height: 20px; margin: 0; width: 20px; }
.website-field { display: none; }
.form-status { font-weight: 800; margin: 0; }
.contact-card { padding: 24px; }
.contact-card h2 { font-size: 32px; overflow-wrap: anywhere; }
.contact-card a,
.site-footer a { color: var(--muted); display: block; margin-top: 12px; text-decoration: none; }
.contact-card a:hover,
.site-footer a:hover { color: var(--text); }
.legal-content { margin-bottom: 120px; padding-bottom: 32px; padding-top: 32px; }
.legal-content h2,
.legal-content p,
.legal-content ul { max-width: 760px; }
.legal-hero {
  padding-bottom: 32px;
  padding-top: 48px;
}
.legal-hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  max-width: 12ch;
}
.legal-content {
  font-size: 16px;
  line-height: 1.5;
}
.legal-content h2 {
  border-top: 1px solid var(--line);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 32px 0 16px;
  max-width: none;
  padding-top: 32px;
}
.legal-content h2:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}
.legal-content p {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 24px;
}
.legal-content ul {
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 24px;
  padding-left: 24px;
}
.legal-content li {
  margin-bottom: 8px;
}

.blog-hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  max-width: 920px;
}
.blog-hero {
  padding-bottom: 48px;
  padding-top: 72px;
}
.blog-editorial,
.blog-notes {
  display: grid;
  gap: 16px;
}
.blog-feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  padding: 32px;
}
.blog-feature-meta {
  color: var(--muted);
  display: grid;
  gap: 12px;
  align-content: start;
}
.blog-feature-meta span,
.blog-feature-meta time,
.blog-rule-list span {
  color: var(--accent);
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}
.blog-feature-copy h2,
.blog-note-heading h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin-bottom: 24px;
  max-width: 13ch;
}
.blog-feature-copy p {
  font-size: 18px;
  line-height: 1.35;
  max-width: 720px;
}
.blog-rule-list,
.blog-note-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.blog-rule-list article,
.blog-note-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 232px;
  padding: 24px;
}
.blog-rule-list span {
  margin-bottom: 56px;
}
.blog-rule-list h3,
.blog-note-grid h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.blog-rule-list p,
.blog-note-grid p {
  line-height: 1.35;
  margin-bottom: 0;
}
.blog-note-heading {
  margin-bottom: 16px;
}
.blog-list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.blog-card,
.blog-empty {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.blog-card {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  min-height: 280px;
  overflow: hidden;
}
.blog-card-link {
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}
.blog-card-link:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.blog-card:not(:has(img)) {
  grid-template-columns: 1fr;
}
.blog-card:not(:has(img)) .blog-card-body {
  max-width: 720px;
}
.blog-card img,
.blog-article img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.blog-card-body,
.blog-empty {
  padding: 24px;
}
.blog-card-body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.blog-card time,
.blog-detail-hero time,
.blog-empty span {
  color: var(--accent);
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.blog-card h2,
.blog-empty h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 16px;
  max-width: none;
}
.blog-card p,
.blog-empty p {
  margin-bottom: 24px;
}
.blog-card-body .button {
  align-self: flex-start;
  margin-top: auto;
}
.blog-empty {
  grid-column: 1 / span 7;
  min-height: 280px;
}
.blog-article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 auto 104px;
  max-width: 880px;
  padding: 32px;
}
.blog-article > img {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  height: auto;
  margin-bottom: 32px;
}
.blog-article-content {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 32px;
}
.blog-detail-hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  max-width: 920px;
}
.blog-article-content p {
  line-height: 1.55;
  margin-bottom: 24px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-bottom: 40px;
  padding-top: 40px;
}
.footer-grid {
  align-items: start;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(320px, 1fr) minmax(140px, auto) minmax(240px, auto) minmax(260px, auto);
}
.footer-brand {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  gap: 8px;
  margin-bottom: 16px;
  text-decoration: none;
  white-space: nowrap;
}
.footer-brand .brand-logo {
  flex: 0 0 32px;
}
.footer-brand span {
  line-height: 1;
}
.social-row {
  display: grid;
  gap: 12px;
}
.social-row a {
  margin-top: 0;
}
.footer-grid h2 {
  color: var(--text);
  margin-bottom: 20px;
  white-space: nowrap;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    background: rgba(8,11,18,0.98);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    left: 0;
    padding: 16px 24px 24px;
    position: absolute;
    right: 0;
    top: var(--header);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { width: 100%; }
  .nav-menu .nav-cta { margin-left: 0; }
  .hero-copy,
  .product-preview,
  .split .section-header,
  .body-copy,
  .design-rules .section-header,
  .rule-grid { grid-column: 1 / -1; }
  .product-preview { min-height: 0; }
  .metrics,
  .rule-grid,
  .blog-rule-list,
  .blog-note-grid,
  .status-board,
  .contact-layout,
  .footer-grid,
  .dialog-grid { grid-template-columns: 1fr; }
  .product-card { grid-column: span 12; }
}

@media (max-width: 700px) {
  .nav-shell,
  .section-grid,
  .metrics,
  .section,
  .cta,
  .page-hero,
  .contact-layout,
  .legal-content,
  .site-footer { padding-left: 20px; padding-right: 20px; }
  h1 { font-size: 52px; }
  h2 { font-size: 40px; }
  .legal-hero h1 { font-size: 40px; }
  .legal-content h2 { font-size: 24px; }
  .hero { min-height: auto; padding-top: 40px; }
  .preview-card { min-height: 220px; position: relative; width: 100%; }
  .toxly-card,
  .mathingo-card { left: auto; right: auto; top: auto; bottom: auto; margin: 0; }
  .product-preview { min-height: auto; }
  .metrics,
  .rule-grid,
  .blog-feature,
  .blog-rule-list,
  .blog-note-grid,
  .blog-card,
  .product-card,
  .contact-form,
  .cta { grid-template-columns: 1fr; }
  .contact-form .wide { grid-column: auto; }
  .product-card { min-height: auto; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
