/* Tanocrix — TIAL Design System */

:root {
  color-scheme: dark;
  --bg: #151515;
  --bg-raised: #1a1a1e;
  --bg-card: #1e1e22;
  --graphite: #0a0a0a;
  --border: rgba(255,255,255,0.06);
  --border-mid: rgba(255,255,255,0.10);
  --border-hover: rgba(255,255,255,0.16);
  --text: #f0f0f2;
  --text-2: #8b939e;
  --text-3: #505868;
  --silver: #b8c2cc;
  --silver-bright: #dce2e8;
  --metal: linear-gradient(135deg, #ffffff 0%, #d0d8e0 28%, #8a96a3 56%, #eef2f6 100%);
  --blue: #0014FF;
  --blue-glow: rgba(0, 20, 255, 0.15);
  --blue-soft: rgba(0, 20, 255, 0.08);
  --gold: #c9a84e;
  --shadow: 0 4px 24px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.16, 0.7, 0.2, 1);
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f0f2f5;
  --bg-raised: #ffffff;
  --bg-card: #ffffff;
  --graphite: #e8eaed;
  --border: rgba(0,0,0,0.07);
  --border-mid: rgba(0,0,0,0.10);
  --border-hover: rgba(0,0,0,0.16);
  --text: #0a0c10;
  --text-2: #4a5060;
  --text-3: #7a8294;
  --silver: #5a6270;
  --silver-bright: #3a4250;
  --blue: #0014FF;
  --blue-glow: rgba(0, 20, 255, 0.08);
  --blue-soft: rgba(0, 20, 255, 0.04);
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--silver); outline-offset: 3px; }


/* === Layout === */
.wrap {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* === Loader === */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity .8s var(--ease), visibility .8s var(--ease);
}
.loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-mark {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: 0.3em;
  color: transparent;
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  animation: loaderPulse 1.8s ease-in-out infinite;
}
html[data-theme="light"] .loader-mark {
  background: linear-gradient(135deg, #1a1e28, #4a5268, #1a1e28);
  -webkit-background-clip: text;
  background-clip: text;
}
@keyframes loaderPulse {
  0%, 100% { opacity: .3; }
  50% { opacity: 1; }
}

/* === Navigation === */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(28px, 4vw, 56px);
  background: color-mix(in srgb, var(--bg) 65%, transparent);
  backdrop-filter: blur(28px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo-img { height: 20px; width: auto; }
.brand-wordmark {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: transparent;
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
}
html[data-theme="light"] .brand-wordmark {
  background: linear-gradient(135deg, #1a1e28, #4a5268, #1a1e28);
  -webkit-background-clip: text;
  background-clip: text;
}
.nav-center { display: flex; gap: 4px; }
.nav-center a {
  padding: 8px 14px;
  border-radius: var(--radius);
  color: var(--text-2);
  font-size: 0.86rem;
  font-weight: 600;
  transition: color .2s, background .2s;
}
.nav-center a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}
html[data-theme="light"] .nav-center a:hover {
  background: rgba(0,0,0,0.04);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
}
html[data-theme="light"] .lang-toggle {
  background: rgba(0,0,0,0.02);
}
.lang-toggle button {
  min-width: 36px;
  min-height: 30px;
  border-radius: 7px;
  color: var(--text-3);
  font-size: 0.7rem;
  font-weight: 800;
  transition: color .2s, background .2s;
}
.lang-toggle button.active {
  color: #fff;
  background: var(--graphite);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}
html[data-theme="light"] .lang-toggle button.active {
  color: #fff;
  background: #1a1e28;
}

/* Theme toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, color .2s;
}
.theme-toggle:hover {
  border-color: var(--border-hover);
  color: var(--text);
}
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .sun-icon { display: none; }
html[data-theme="dark"] .theme-toggle .moon-icon { display: none; }
html[data-theme="dark"] .theme-toggle .sun-icon { display: block; }

/* Nav CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 20px;
  border-radius: 8px;
  border: none;
  color: #fff;
  background: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform .2s var(--ease), box-shadow .3s, background .2s;
}
html[data-theme="light"] .nav-cta {
  color: #fff;
  background: var(--blue);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--blue-glow);
}
.nav-cta::after {
  content: "→";
  font-size: 0.9em;
  transition: transform .2s var(--ease);
}
.nav-cta:hover::after {
  transform: translateX(3px);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform .25s var(--ease), box-shadow .25s, background .2s, border-color .2s;
}
.btn-primary {
  color: #fff;
  background: var(--blue);
  border: none;
  border-radius: 8px;
  box-shadow: 0 12px 36px var(--blue-glow);
}
html[data-theme="light"] .btn-primary {
  color: #fff;
  background: var(--blue);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(0, 20, 255, 0.25);
}
.btn-ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-hover);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.03);
  border-color: var(--silver);
  transform: translateY(-1px);
}
html[data-theme="light"] .btn-ghost:hover {
  background: rgba(0,0,0,0.03);
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  padding: 0;
  background: var(--bg);
}
.hero-frame {
  position: relative;
  flex: 1;
  border-radius: 0;
  overflow: hidden;
  background: var(--graphite);
}
html[data-theme="light"] .hero-frame {
  background: var(--bg-raised);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.45) 35%, transparent 60%),
    linear-gradient(180deg, rgba(10,10,10,0.5) 0%, transparent 20%);
}
html[data-theme="light"] .hero-shade {
  background:
    linear-gradient(0deg, rgba(240,242,245,0.92) 0%, rgba(240,242,245,0.45) 35%, transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 20%);
}
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: end;
  gap: 40px;
  padding: 0 clamp(28px, 4vw, 56px) clamp(48px, 6vh, 80px);
}
.hero-text {
  display: grid;
  gap: 18px;
}
.hero-title {
  font-size: clamp(1.8rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 14ch;
}
.hero-title em {
  font-style: italic;
  color: var(--blue);
}
html[data-theme="light"] .hero-title {
  color: var(--text);
}
.hero-right {
  display: grid;
  gap: 16px;
  align-self: end;
  justify-items: start;
}
.hero-film-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  transition: background .25s, border-color .25s, transform .25s var(--ease);
}
html[data-theme="light"] .hero-film-btn {
  border-color: rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.5);
  color: var(--text);
}
.hero-film-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-1px);
}
.hero-film-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}
.hero-film-icon svg {
  width: 22px;
  height: 22px;
}
.hero-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.62);
  max-width: 58ch;
  line-height: 1.65;
}
html[data-theme="light"] .hero-desc {
  color: var(--text-2);
}
.hero-scroll-dot {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: transparent;
  animation: dotPulse 2.4s ease-in-out infinite;
}
html[data-theme="light"] .hero-scroll-dot {
  border-color: rgba(0,0,0,0.2);
}
@keyframes dotPulse {
  0%, 100% { opacity: .4; transform: translateX(-50%) scale(0.8); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.2); }
}

/* === BELIEFS SECTION === */
.beliefs {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  padding: 0 12px 12px;
  background: var(--bg);
}
.beliefs-frame {
  position: relative;
  flex: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--graphite);
  display: flex;
  align-items: center;
  justify-content: center;
}
html[data-theme="light"] .beliefs-frame {
  background: var(--bg-raised);
}
.beliefs-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.beliefs-bg-active {
  opacity: 1;
}
.beliefs-bg[data-belief-bg="0"] {
  background: radial-gradient(ellipse 120% 100% at 30% 60%, rgba(0,20,255,0.08), transparent),
              radial-gradient(ellipse 80% 80% at 70% 40%, rgba(169,198,207,0.06), transparent);
}
.beliefs-bg[data-belief-bg="1"] {
  background: radial-gradient(ellipse 100% 100% at 50% 50%, rgba(231,236,239,0.06), transparent),
              radial-gradient(ellipse 80% 80% at 30% 70%, rgba(0,20,255,0.05), transparent);
}
.beliefs-bg[data-belief-bg="2"] {
  background: radial-gradient(ellipse 100% 100% at 60% 40%, rgba(214,177,95,0.08), transparent),
              radial-gradient(ellipse 80% 80% at 40% 60%, rgba(0,20,255,0.04), transparent);
}
.beliefs-bg[data-belief-bg="3"] {
  background: radial-gradient(ellipse 100% 100% at 40% 50%, rgba(143,191,155,0.07), transparent),
              radial-gradient(ellipse 80% 80% at 60% 50%, rgba(0,20,255,0.04), transparent);
}
.beliefs-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, transparent, rgba(10,10,10,0.4));
}
html[data-theme="light"] .beliefs-shade {
  background: radial-gradient(ellipse 60% 50% at 50% 50%, transparent, rgba(240,242,245,0.3));
}
.beliefs-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  padding: 0 24px;
  max-width: 680px;
}
.beliefs-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
}
.beliefs-text-wrap {
  position: relative;
  min-height: 4.8em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.beliefs-heading {
  position: absolute;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: #fff;
  width: max-content;
  max-width: 90vw;
}
html[data-theme="light"] .beliefs-heading {
  color: var(--text);
}
.beliefs-heading em {
  font-style: italic;
  color: var(--blue);
}
.beliefs-heading-active {
  opacity: 1;
  transform: none;
}
.beliefs-sub-wrap {
  position: relative;
  min-height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.beliefs-sub {
  position: absolute;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s var(--ease) .1s, transform .6s var(--ease) .1s;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: 48ch;
}
html[data-theme="light"] .beliefs-sub {
  color: var(--text-2);
}
.beliefs-sub-active {
  opacity: 1;
  transform: none;
}
.beliefs-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  transition: background .25s, border-color .25s, gap .25s var(--ease), transform .25s var(--ease);
}
html[data-theme="light"] .beliefs-cta {
  border-color: rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.5);
  color: var(--text);
}
.beliefs-cta:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.26);
  gap: 14px;
  transform: translateY(-1px);
}
.beliefs-cta-arrow {
  transition: transform .25s var(--ease);
}
.beliefs-cta:hover .beliefs-cta-arrow {
  transform: translateX(3px);
}

/* === Sections === */
.sect {
  position: relative;
  padding: clamp(100px, 16vw, 180px) 0;
}
.doc-article-section {
  padding: 72px 0 96px;
}
.sect-bordered { border-top: 1px solid var(--border); }
.sect-raised {
  background: var(--bg-raised);
}
.label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 20px;
}
.sect h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
.lead {
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  color: var(--text-2);
  line-height: 1.78;
  max-width: 52ch;
  margin-top: 20px;
}

/* === MOBILE MENU === */
.nav-burger {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  color: var(--text-2);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  transition: border-color .2s;
}
.nav-burger:hover {
  border-color: var(--border-hover);
}
.nav-burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.nav-burger.active span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}
.nav-burger.active span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
html[data-theme="light"] .mobile-menu {
  background: rgba(255,255,255,0.97);
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  width: 100%;
  max-width: 400px;
  padding: 0 24px;
}
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.mobile-menu-nav a {
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  padding: 12px 0;
  transition: color .2s;
}
html[data-theme="light"] .mobile-menu-nav a {
  color: var(--text);
}
.mobile-menu-nav a:hover {
  color: var(--blue);
}
.mobile-menu-footer {
  display: flex;
  gap: 20px;
}
.mobile-menu-footer a {
  font-size: 0.82rem;
  color: var(--text-3);
  transition: color .2s;
}
.mobile-menu-footer a:hover {
  color: var(--text);
}
/* Language toggle inside the mobile menu must stay visible (overrides the <480px hide) */
.mobile-menu .lang-toggle { display: inline-flex; }

/* Sequence */
.process-visual {
  height: clamp(150px, 16vw, 220px);
  margin: 34px 0 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: 0 20px 60px rgba(0,0,0,0.24);
}
html[data-theme="light"] .process-visual {
  border-color: var(--border-mid);
  box-shadow: 0 18px 48px rgba(20,20,30,0.08);
}
.process-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.process-visual + .sequence-grid {
  margin-top: 30px;
}
.sequence-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 56px;
}
.step-card {
  padding: 32px 24px;
  min-height: 270px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.015);
  backdrop-filter: blur(6px);
  transition: transform .35s var(--ease), border-color .3s, background .3s;
}
html[data-theme="light"] .step-card {
  background: rgba(255,255,255,0.6);
  border-color: var(--border-mid);
}
.step-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.035);
}
html[data-theme="light"] .step-card:hover {
  background: #fff;
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.step-num {
  display: block;
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--blue);
  margin-bottom: 36px;
}
html[data-theme="light"] .step-num {
  color: var(--blue);
}
.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.step-card p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.68;
}

/* Schema section */
.schema-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.schema-diagram {
  padding: 20px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.015);
  box-shadow: var(--shadow);
}
html[data-theme="light"] .schema-diagram {
  background: #fff;
  box-shadow: 0 24px 64px rgba(0,0,0,0.06);
}
.schema-core-block {
  padding: 28px;
  border: 1px solid rgba(0, 20, 255, 0.12);
  border-radius: var(--radius);
  background: linear-gradient(140deg, #0a0a14, #080818 55%);
  color: #fff;
  margin-bottom: 12px;
}
html[data-theme="light"] .schema-core-block {
  background: linear-gradient(140deg, #1a1e28, #1a1e3a);
  border-color: rgba(0, 20, 255, 0.15);
}
.schema-core-block .label-sm {
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}
.schema-core-block strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.schema-core-block p {
  color: rgba(255,255,255,0.5);
  font-size: 0.86rem;
}
.schema-modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.schema-module {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  transition: background .2s, border-color .2s;
}
html[data-theme="light"] .schema-module {
  background: var(--bg);
}
.schema-module:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--border-mid);
}
.schema-module span {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.schema-module p {
  font-size: 0.76rem;
  color: var(--text-3);
  line-height: 1.4;
}
.schema-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--blue);
  transition: gap .25s var(--ease), color .2s;
}
.schema-link:hover { gap: 14px; color: #3348ff; }

/* Protocol bridge */
.sect-center .wrap { text-align: center; }
.sect-center h2 { margin: 0 auto; }
.sect-center .lead { margin: 20px auto 0; text-align: center; }
.protocol-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
  justify-content: center;
}
.protocol-tag {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  background: rgba(255,255,255,0.02);
  transition: background .2s, transform .25s var(--ease);
}
html[data-theme="light"] .protocol-tag {
  background: rgba(0,0,0,0.02);
}
.protocol-tag:hover {
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

/* Product section */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 56px;
}
.product-card {
  padding: 36px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.012);
  transition: transform .35s var(--ease), border-color .3s, background .3s;
}
html[data-theme="light"] .product-card {
  background: rgba(255,255,255,0.6);
  border-color: var(--border-mid);
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.03);
}
html[data-theme="light"] .product-card:hover {
  background: #fff;
  box-shadow: 0 16px 44px rgba(0,0,0,0.05);
}
.product-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--blue-soft);
  border: 1px solid rgba(0, 20, 255, 0.15);
  margin-bottom: 24px;
}
html[data-theme="light"] .product-icon {
  background: var(--blue-soft);
  border-color: rgba(0, 20, 255, 0.1);
}
.product-icon svg {
  width: 22px;
  height: 22px;
  color: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.product-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.product-card p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.72;
}

/* CTA block */
.cta-block {
  padding: clamp(56px, 8vw, 96px);
  border-radius: var(--radius-xl);
  background: linear-gradient(140deg, #0a0a12, #08081a 40%, #0a0a0f 80%);
  border: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  display: grid;
  gap: 24px;
  justify-items: center;
}
html[data-theme="light"] .cta-block {
  background: linear-gradient(140deg, #1a1e28, #1a1e3a);
  border-color: rgba(0, 20, 255, 0.15);
}
.cta-block h2 {
  color: #fff;
  text-align: center;
}
.cta-block p {
  color: rgba(255,255,255,0.58);
  max-width: 48ch;
  font-size: 0.95rem;
  line-height: 1.72;
}
.cta-block .btn-primary {
  color: #0a0a0f;
  background: #fff;
  box-shadow: 0 14px 36px rgba(0,0,0,0.3);
}
.cta-block .btn-primary:hover {
  box-shadow: 0 18px 48px rgba(255,255,255,0.15);
}
html[data-theme="light"] .cta-block .btn-primary {
  color: #0a0a0f;
}

/* Lead form (lives inside the always-dark .cta-block) */
.lead-form {
  width: min(640px, 100%);
  display: grid;
  gap: 18px;
  text-align: left;
  margin-top: 4px;
}
.lead-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.lead-form .field { display: grid; gap: 7px; }
.lead-form label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.72);
}
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.lead-form textarea { resize: vertical; min-height: 96px; }
.lead-form select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.lead-form select option { color: #0a0a0f; }
.lead-form input::placeholder,
.lead-form textarea::placeholder { color: rgba(255,255,255,0.4); }
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px var(--blue-glow);
}
.lead-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  text-align: left;
}
.lead-consent input {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--blue);
  cursor: pointer;
}
.lead-consent a { color: #fff; text-decoration: underline; }
.lead-form .btn-primary { justify-self: start; }
.lead-status {
  margin: 0;
  padding: 11px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.lead-status.is-success {
  color: #b9f5cf;
  background: rgba(40,200,110,0.12);
  border: 1px solid rgba(40,200,110,0.30);
}
.lead-status.is-error {
  color: #ffd4d4;
  background: rgba(255,80,80,0.12);
  border: 1px solid rgba(255,80,80,0.30);
}
@media (max-width: 560px) {
  .lead-form-grid { grid-template-columns: 1fr; }
}

/* === Legal Pages === */
.legal-main {
  width: min(780px, calc(100% - 48px));
  margin: 0 auto;
  padding: 130px 0 72px;
}
.legal-main .page-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
}
.legal-main h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
  margin: 10px 0 6px;
  letter-spacing: -0.01em;
}
.legal-subtitle {
  color: var(--text-3);
  font-size: 0.92rem;
  margin-bottom: 32px;
}
.note-box {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.72;
  margin-bottom: 32px;
}
html[data-theme="light"] .note-box {
  background: var(--bg);
}
.legal-section {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.legal-section h2 {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}
.legal-section p,
.legal-section li,
.legal-section address {
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.78;
}
.legal-section ul { padding-left: 20px; }
.legal-section li { margin-bottom: 8px; }
.legal-section address { font-style: normal; }
.legal-section a,
.note-box a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-section strong { color: var(--text); }
.doc-sources ul {
  padding-left: 20px;
}
.doc-sources li {
  margin-bottom: 8px;
}
.doc-return {
  display: flex;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.doc-return .btn {
  min-height: 44px;
}

.doc-article {
  width: min(100%, 860px);
  margin: 0 auto;
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.82;
}
.doc-article > * + * {
  margin-top: 18px;
}
.doc-article h2 {
  color: var(--text);
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  line-height: 1.16;
  font-weight: 800;
  margin: 54px 0 14px;
}
.doc-article h2:first-child {
  margin-top: 0;
}
.doc-article h3 {
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 800;
  margin: 34px 0 10px;
}
.doc-article p {
  max-width: 78ch;
}
.doc-article ul {
  margin: 14px 0 20px;
  padding-left: 22px;
}
.doc-article li {
  margin: 8px 0;
  padding-left: 4px;
}
.doc-article strong {
  color: var(--text);
}
.doc-article table {
  width: 100%;
  margin: 18px 0 28px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.012);
}
.doc-article th,
.doc-article td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.doc-article th {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
  background: rgba(255,255,255,0.025);
}
.doc-article tr:last-child td {
  border-bottom: 0;
}
.doc-article .doc-sources {
  margin-top: 54px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.doc-article .doc-sources h2 {
  font-size: 1.02rem;
  margin: 0 0 12px;
}
.doc-article .doc-return {
  margin-top: 28px;
}

.doc-article-section .doc-article {
  max-width: 860px;
}
.doc-article-section .doc-article > h2 {
  margin-top: 60px;
  margin-bottom: 16px;
}
.doc-article-section .doc-article > h2:first-child {
  margin-top: 0;
}
.doc-article-section .doc-article > p {
  margin: 0 0 26px;
}
.doc-article-section .doc-article > h3 {
  margin-top: 36px;
  margin-bottom: 12px;
}
.doc-article-section .doc-article > ul {
  margin: 14px 0 30px;
}
.doc-article-section .doc-article > table {
  margin: 18px 0 34px;
}

/* === Schema Page === */
.page-hero {
  padding: 140px 0 72px;
  background: linear-gradient(180deg, var(--bg-raised), var(--bg));
  border-bottom: 1px solid var(--border);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 0.8fr;
  gap: 56px;
  align-items: end;
}
.page-hero .page-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 16px 0 18px;
}
.page-hero p {
  color: var(--text-2);
  font-size: 1.02rem;
  line-height: 1.72;
  max-width: 52ch;
}
.page-visual {
  width: 100%;
  min-height: 320px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: 0 24px 70px rgba(0,0,0,0.28);
}
html[data-theme="light"] .page-visual {
  border-color: var(--border-mid);
  box-shadow: 0 24px 60px rgba(20,20,30,0.08);
}
.page-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}
.schema-visual,
.tialq-visual {
  align-self: stretch;
}
.schema-board-hero .schema-core {
  padding: 24px;
}
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.card {
  padding: 28px 22px;
  min-height: 200px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.012);
  transition: transform .35s var(--ease), border-color .3s, background .3s;
}
html[data-theme="light"] .card {
  background: rgba(255,255,255,0.6);
  border-color: var(--border-mid);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.03);
}
.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.card p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.68;
}
.sect-soft {
  background: var(--bg-raised);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.split-list { display: grid; gap: 0; }
.list-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.list-row:last-child { border-bottom: 0; }
.list-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--graphite);
  font-size: 0.76rem;
  font-weight: 800;
}
html[data-theme="light"] .list-row span {
  background: #1a1e28;
}
.list-row strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.list-row p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.68;
}
.schema-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.01);
}
html[data-theme="light"] .schema-flow {
  background: var(--bg-raised);
}
.schema-flow-step {
  min-height: 220px;
  padding: 28px;
  border-right: 1px solid var(--border);
}
.schema-flow-step:last-child { border-right: 0; }
.schema-flow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--graphite);
  font-size: 0.74rem;
  font-weight: 800;
  margin-bottom: 32px;
}
html[data-theme="light"] .schema-flow-step span {
  background: #1a1e28;
}
.schema-flow-step strong {
  display: block;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.schema-flow-step p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.65;
}
.eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
}
.section-heading {
  display: grid;
  gap: 18px;
  max-width: 760px;
}
.section-heading h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
.section-heading p {
  color: var(--text-2);
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 52ch;
}
.inline-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

/* === Documents Page === */
.docs-main {
  padding: calc(var(--nav-h) + 48px) 0 96px;
  background: linear-gradient(180deg, var(--bg-raised), var(--bg) 420px);
}
.docs-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.docs-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  max-height: calc(100vh - var(--nav-h) - 48px);
  overflow: auto;
  padding: 4px 22px 4px 0;
  border-right: 1px solid var(--border);
}
.docs-sidebar-title {
  display: block;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}
.docs-sidebar-nav {
  display: grid;
  gap: 3px;
  margin-top: 20px;
}
.docs-sidebar-nav a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--text-2);
  font-size: 0.86rem;
  font-weight: 600;
  transition: color .2s, background .2s;
}
.docs-sidebar-nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}
html[data-theme="light"] .docs-sidebar-nav a:hover {
  background: rgba(0,0,0,0.04);
}
.docs-content {
  min-width: 0;
}
.docs-hero,
.docs-section {
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.docs-hero {
  padding: 8px 0 48px;
  border-bottom: 1px solid var(--border);
}
.docs-hero .page-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
}
.docs-hero h1 {
  margin: 16px 0 18px;
  color: var(--text);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.05;
}
.docs-hero p {
  max-width: 62ch;
  color: var(--text-2);
  font-size: 1.02rem;
  line-height: 1.72;
}
.docs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.docs-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.docs-section:last-child {
  border-bottom: 0;
}
.docs-section-head {
  display: grid;
  gap: 12px;
  max-width: 700px;
}
.docs-section-head h2 {
  color: var(--text);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.2;
}
.docs-section-head p {
  color: var(--text-2);
  font-size: 0.96rem;
  line-height: 1.72;
}
.docs-link-list {
  margin-top: 26px;
  border-top: 1px solid var(--border);
}
.docs-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 82px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: color .2s, padding-left .2s var(--ease);
}
.docs-link:hover {
  color: var(--blue);
  padding-left: 8px;
}
.docs-link strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}
.docs-link em {
  display: block;
  margin-top: 3px;
  color: var(--text-2);
  font-size: 0.88rem;
  font-style: normal;
  line-height: 1.55;
}
.docs-link-grid,
.docs-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}
.docs-mini-link,
.docs-topic-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.012);
  transition: transform .25s var(--ease), border-color .2s, background .2s;
}
html[data-theme="light"] .docs-mini-link,
html[data-theme="light"] .docs-topic-card {
  background: rgba(255,255,255,0.65);
  border-color: var(--border-mid);
}
.docs-mini-link:hover,
.docs-topic-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.035);
}
html[data-theme="light"] .docs-mini-link:hover,
html[data-theme="light"] .docs-topic-card:hover {
  background: #fff;
}
.docs-mini-link {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 18px;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 700;
}
.docs-mini-link span {
  color: var(--text-2);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.45;
}
.docs-topic-card {
  display: block;
  min-height: 140px;
  padding: 20px;
}
.docs-topic-card h3 {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.docs-topic-card p {
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.62;
}

/* === Footer === */
.site-footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--border);
  background: #0a0a0a;
}
html[data-theme="light"] .site-footer {
  background: var(--bg-raised);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: start;
  margin-bottom: 36px;
}
.footer-wordmark { margin-bottom: 16px; }
.footer-brand p {
  color: var(--text-2);
  font-size: 0.86rem;
  max-width: 320px;
  line-height: 1.65;
}
.footer-links {
  display: flex;
  gap: 52px;
  flex-wrap: wrap;
}
.footer-col h4 {
  color: var(--text-3);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: var(--text-2);
  font-size: 0.86rem;
  margin-bottom: 10px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.8rem;
}
.footer-bottom a { transition: color .2s; }
.footer-bottom a:hover { color: var(--text); }

/* === Animations === */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

/* Hero entrance */
.hero-text {
  animation: heroFadeIn 1.2s var(--ease) .6s both;
}
.hero-right {
  animation: heroFadeIn 1s var(--ease) 1s both;
}
.hero-scroll-dot {
  animation: heroFadeIn 1s var(--ease) 1.4s both;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* === Responsive === */
@media (max-width: 1024px) {
  .sequence-grid { grid-template-columns: repeat(2, 1fr); }
  .schema-split { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .schema-flow { grid-template-columns: repeat(2, 1fr); }
  .schema-flow-step:nth-child(2) { border-right: 0; }
  .schema-flow-step:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .docs-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 36px;
  }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .wrap { width: min(100% - 32px, 1200px); }
  .nav-center { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
  .hero { padding: 0; }
  .hero-content {
    grid-template-columns: 1fr;
    padding: 0 24px 36px;
    align-items: end;
    gap: 20px;
  }
  .hero-text { text-align: center; }
  .hero-title {
    font-size: clamp(1.4rem, 5.5vw, 2.4rem);
    max-width: none;
    text-align: center;
  }
  .hero-right {
    justify-items: center;
    text-align: center;
  }
  .hero-desc { max-width: none; }
  .doc-article-section { padding: 48px 0 72px; }
  .beliefs { padding: 0 8px 8px; }
  .beliefs-heading {
    font-size: clamp(1.4rem, 5.5vw, 2.2rem);
    width: auto;
    max-width: 100%;
  }
  .beliefs-text-wrap { min-height: 5.5em; }
  .sequence-grid { grid-template-columns: 1fr; }
  .schema-modules { grid-template-columns: 1fr; }
  .sect h2 { font-size: clamp(1.4rem, 5vw, 2.2rem); }
  .cta-block { padding: 32px 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 28px; }
  .card-grid-4 { grid-template-columns: 1fr; }
  .schema-flow { grid-template-columns: 1fr; }
  .schema-flow-step,
  .schema-flow-step:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .schema-flow-step:last-child { border-bottom: 0; }
  .legal-main { width: min(100% - 32px, 780px); }
  .page-visual { min-height: 220px; }
  .doc-article {
    font-size: 0.94rem;
    line-height: 1.76;
  }
  .doc-article h2 {
    margin-top: 42px;
  }
  .doc-article h3 {
    margin-top: 28px;
  }
  .doc-article table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .docs-main { padding: calc(var(--nav-h) + 28px) 0 64px; }
  .docs-layout { grid-template-columns: 1fr; gap: 30px; }
  .docs-sidebar {
    position: static;
    max-height: none;
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .docs-sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .docs-sidebar-nav a {
    border: 1px solid var(--border);
  }
  .docs-hero h1 { font-size: 2.35rem; }
  .docs-link-grid,
  .docs-topic-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .lang-toggle { display: none; }
  .hero-scroll-dot { bottom: 16px; }
  .step-card { padding: 24px 20px; min-height: auto; }
  .step-num { font-size: 2.4rem; margin-bottom: 24px; }
}

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