:root {
  color-scheme: dark;
  --bg: #050711;
  --bg-deep: #030510;
  --bg-soft: #080d1a;
  --surface: rgba(12, 18, 34, 0.72);
  --surface-strong: rgba(17, 25, 46, 0.88);
  --surface-soft: rgba(95, 122, 178, 0.08);
  --text: #f7f9ff;
  --text-soft: #dce5f8;
  --muted: #a8b4cd;
  --quiet: #75839e;
  --line: rgba(173, 198, 255, 0.16);
  --line-strong: rgba(185, 209, 255, 0.3);
  --blue: #4f8cff;
  --blue-bright: #1fb7ff;
  --cyan: #38e8ff;
  --purple: #9a5cff;
  --violet: #5f3df4;
  --silver: #d8e4ff;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --shadow-glow: 0 18px 48px rgba(0, 0, 0, 0.28);
  --radius: 8px;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(79, 140, 255, 0.1), transparent 26%),
    linear-gradient(240deg, rgba(154, 92, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #080d1a 0%, #050711 42%, #030510 100%);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    linear-gradient(115deg, transparent 0%, rgba(42, 117, 255, 0.1) 32%, transparent 54%),
    linear-gradient(72deg, transparent 24%, rgba(117, 78, 255, 0.12) 50%, transparent 72%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 110px);
  background-size: 140% 140%, 160% 160%, auto;
  animation: auroraDrift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 74%);
  pointer-events: none;
}

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

img,
svg {
  display: block;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 12px;
  z-index: 30;
  transform: translateY(-150%);
  background: var(--text);
  color: #07101d;
  padding: 10px 14px;
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 18, 0.74);
  backdrop-filter: blur(22px) saturate(135%);
}

.header-inner {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 760;
  font-size: 1.04rem;
  letter-spacing: 0;
}

.brand-mark {
  width: 31px;
  height: 31px;
  border: 1px solid rgba(91, 145, 255, 0.62);
  border-radius: 7px;
  background:
    linear-gradient(145deg, rgba(73, 117, 255, 0.35), rgba(137, 82, 255, 0.26)),
    rgba(5, 10, 24, 0.9);
  position: relative;
  box-shadow: 0 0 32px rgba(79, 140, 255, 0.28), inset 0 0 18px rgba(56, 232, 255, 0.1);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid var(--cyan);
  border-left-color: transparent;
  border-radius: 50%;
}

.brand-mark::after {
  inset: 10px;
  border-color: var(--purple);
  border-top-color: transparent;
  animation: markSpin 8s linear infinite;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 610;
  padding: 9px 13px;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: rgba(79, 140, 255, 0.1);
  border-color: rgba(126, 166, 255, 0.22);
  color: var(--text);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(13, 20, 38, 0.8);
  color: var(--text);
  border-radius: 7px;
  width: 42px;
  height: 38px;
  align-items: center;
  justify-content: center;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.menu-toggle span {
  margin: 4px 0;
}

.shell {
  min-height: 100vh;
}

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  width: min(1480px, calc(100% - 24px));
  margin: 16px auto 0;
  min-height: min(650px, calc(100vh - 92px));
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  background:
    linear-gradient(90deg, rgba(5, 8, 18, 0.98) 0%, rgba(5, 8, 18, 0.92) 42%, rgba(5, 8, 18, 0.34) 68%, rgba(5, 8, 18, 0.06) 100%),
    var(--bg-deep);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent, rgba(79, 140, 255, 0.16), transparent),
    linear-gradient(70deg, transparent 20%, rgba(154, 92, 255, 0.11) 50%, transparent 78%);
  background-size: 180% 180%;
  animation: auroraDrift 16s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--purple), transparent);
  animation: lineSweep 5s ease-in-out infinite;
}

.hero-copy {
  align-self: center;
  padding: clamp(38px, 6vw, 76px);
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 800;
  text-wrap: balance;
}

.hero p {
  margin: 28px 0 0;
  max-width: 600px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.38rem);
  line-height: 1.58;
}

.hero-actions,
.action-row {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  position: relative;
  border: 1px solid transparent;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  color: var(--text);
  background:
    linear-gradient(rgba(10, 16, 31, 0.95), rgba(10, 16, 31, 0.95)) padding-box,
    linear-gradient(135deg, rgba(116, 154, 255, 0.42), rgba(56, 232, 255, 0.28)) border-box;
  font-size: 0.95rem;
  font-weight: 680;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 32px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button.primary {
  background:
    linear-gradient(135deg, #2f67ff, #6f45ff 52%, #20c8ff);
  border-color: rgba(190, 211, 255, 0.44);
  box-shadow: 0 14px 34px rgba(49, 100, 255, 0.24), 0 20px 40px rgba(0, 0, 0, 0.26);
  background-size: 180% 180%;
  animation: buttonGlow 7s ease-in-out infinite alternate;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.button svg {
  width: 17px;
  height: 17px;
  margin-left: 8px;
}

.hero-media {
  min-height: 100%;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 8, 18, 0.78), rgba(5, 8, 18, 0.08) 48%, rgba(5, 8, 18, 0)),
    linear-gradient(180deg, rgba(5, 8, 18, 0.16), rgba(5, 8, 18, 0.38));
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.apps-preview {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(9, 15, 30, 0.82), rgba(5, 8, 18, 0.92)),
    var(--bg-soft);
  padding: 76px 0 84px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 790;
}

.section-heading p {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 600px;
}

.app-list {
  display: grid;
  gap: 12px;
}

.app-row {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 114px;
  padding: 14px 20px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(16, 24, 45, 0.78), rgba(8, 13, 26, 0.72)) padding-box,
    linear-gradient(135deg, rgba(94, 134, 255, 0.26), rgba(56, 232, 255, 0.12)) border-box;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.app-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(79, 140, 255, 0.08) 44%, rgba(154, 92, 255, 0.1) 58%, transparent 100%);
  transform: translateX(-120%);
  transition: transform 620ms ease;
  pointer-events: none;
}

.app-row:hover {
  border-color: rgba(150, 184, 255, 0.42);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.app-row:hover::before {
  transform: translateX(120%);
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.app-icon.teal {
  background: rgba(255, 255, 255, 0.04);
}

.app-icon.sage {
  background: rgba(255, 255, 255, 0.04);
}

.app-icon.blue {
  background: rgba(255, 255, 255, 0.04);
}

.app-icon.amber {
  background: rgba(255, 255, 255, 0.04);
}

.app-title h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.12;
  font-weight: 760;
}

.app-title p {
  margin: 6px 0 0;
  color: var(--muted);
}

.arrow {
  color: var(--muted);
}

.arrow svg {
  width: 23px;
  height: 23px;
}

.studio-band {
  padding: 84px 0;
}

.band-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 92px);
  align-items: start;
}

.statement {
  font-size: clamp(2rem, 4.6vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 790;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}

.principles {
  display: grid;
  gap: 18px;
}

.principle {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.principle h3 {
  margin: 0;
  font-size: 1.06rem;
  color: var(--text-soft);
}

.principle p {
  margin: 8px 0 0;
  color: var(--muted);
}

.page-hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(100deg, rgba(79, 140, 255, 0.13), transparent 34%),
    linear-gradient(225deg, rgba(154, 92, 255, 0.12), transparent 35%),
    rgba(5, 8, 18, 0.56);
  padding: 82px 0 62px;
}

.page-hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(2.8rem, 7vw, 6.2rem);
  line-height: 0.96;
  letter-spacing: 0;
  font-weight: 800;
  text-wrap: balance;
}

.page-hero p {
  margin: 22px 0 0;
  color: var(--muted);
  max-width: 720px;
  font-size: 1.1rem;
}

.crumb {
  display: inline-flex;
  margin-bottom: 34px;
  color: #8ab5ff;
  font-weight: 700;
  font-size: 0.92rem;
}

.app-detail {
  padding: 64px 0 92px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: clamp(32px, 6vw, 84px);
}

.app-profile {
  position: sticky;
  top: 106px;
  align-self: start;
}

.profile-head {
  display: flex;
  gap: 20px;
  align-items: center;
}

.profile-head .app-icon {
  width: 92px;
  height: 92px;
}

.profile-head h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.85rem);
  line-height: 0.94;
  font-weight: 800;
}

.profile-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.meta-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--text-soft);
  background: rgba(13, 20, 38, 0.72);
  font-size: 0.88rem;
  font-weight: 660;
}

.profile-summary {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 580px;
}

.doc-grid {
  display: grid;
  gap: 12px;
}

.doc-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(18, 28, 54, 0.78), rgba(7, 12, 25, 0.76));
  min-height: 112px;
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.doc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent, rgba(56, 232, 255, 0.08), transparent);
  transform: translateX(-110%);
  transition: transform 700ms ease;
  pointer-events: none;
}

.doc-card:hover {
  border-color: rgba(150, 184, 255, 0.46);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.doc-card:hover::before {
  transform: translateX(110%);
}

.doc-card h2,
.doc-card h3 {
  margin: 0;
  font-size: 1.18rem;
}

.doc-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.doc-card .doc-state {
  color: var(--quiet);
  font-size: 0.84rem;
  font-weight: 680;
  text-align: right;
}

.legal-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 790px) 270px;
  gap: 38px;
  width: min(1440px, calc(100% - 36px));
  margin: 0 auto;
  padding: 52px 0 96px;
}

.legal-nav,
.legal-context {
  position: sticky;
  top: 106px;
  align-self: start;
}

.legal-nav {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(17, 25, 46, 0.82), rgba(8, 13, 26, 0.72));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.legal-context {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(17, 25, 46, 0.82), rgba(8, 13, 26, 0.72));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.back-link {
  color: #8ab5ff;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  margin-bottom: 28px;
}

.mini-app {
  display: grid;
  gap: 14px;
}

.mini-app .app-icon {
  width: 56px;
  height: 56px;
}

.mini-app .app-icon svg {
  width: 34px;
  height: 34px;
}

.mini-app h2,
.legal-context h2 {
  margin: 0;
  font-size: 1.1rem;
}

.mini-app p,
.legal-context p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.doc-tabs {
  margin-top: 28px;
  display: grid;
  gap: 5px;
}

.doc-tabs a {
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px;
  font-size: 0.9rem;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.doc-tabs a:hover,
.doc-tabs a[aria-current="page"] {
  background: rgba(79, 140, 255, 0.12);
  border-color: rgba(126, 166, 255, 0.22);
  color: var(--text);
}

.doc-tabs a[aria-current="page"] {
  box-shadow: inset 3px 0 0 var(--blue-bright);
}

.legal-article {
  max-width: 790px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 13, 26, 0.68);
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.25);
  padding: clamp(26px, 4vw, 46px);
}

.legal-article header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 26px;
  margin-bottom: 30px;
}

.legal-article h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5.4vw, 4.65rem);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 800;
  text-wrap: balance;
}

.doc-meta {
  margin-top: 16px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.doc-meta span {
  display: inline-flex;
  align-items: center;
}

.legal-body {
  color: var(--text-soft);
}

.legal-body h2 {
  margin: 40px 0 12px;
  font-size: 1.72rem;
  line-height: 1.15;
  color: var(--text);
}

.legal-body h3 {
  margin: 30px 0 10px;
  font-size: 1.28rem;
  color: var(--text);
}

.legal-body p,
.legal-body li,
.legal-body blockquote {
  font-size: 1rem;
  line-height: 1.78;
}

.legal-body p {
  margin: 0 0 16px;
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 18px 1.25rem;
  padding: 0;
}

.legal-body li + li {
  margin-top: 6px;
}

.legal-body a {
  color: #8ab5ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--blue-bright);
  border-radius: 0 7px 7px 0;
  background: rgba(79, 140, 255, 0.1);
  color: var(--text-soft);
}

.doc-actions {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.context-link {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: #8ab5ff;
  font-weight: 700;
  font-size: 0.9rem;
}

.missing-doc {
  border: 1px solid var(--line);
  background: rgba(79, 140, 255, 0.07);
  border-radius: 8px;
  padding: 26px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  background: rgba(3, 5, 16, 0.74);
}

.footer-inner {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer strong {
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--text-soft);
  font-weight: 620;
}

.reveal {
  opacity: 1;
  transform: none;
  animation: revealUp 760ms ease both;
}

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

@keyframes auroraDrift {
  from {
    background-position: 0% 40%, 100% 50%, 0 0;
  }
  to {
    background-position: 100% 60%, 0% 45%, 0 0;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-18px, 10px, 0);
  }
}

@keyframes buttonGlow {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}

@keyframes lineSweep {
  0%,
  100% {
    opacity: 0.25;
    transform: translateX(-20%);
  }
  50% {
    opacity: 0.9;
    transform: translateX(20%);
  }
}

@keyframes markSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 1080px) {
  .hero,
  .band-grid,
  .app-detail,
  .legal-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    padding-bottom: 34px;
  }

  .hero-media {
    min-height: 390px;
    order: -1;
  }

  .legal-nav,
  .legal-context,
  .app-profile {
    position: static;
  }

  .legal-context {
    order: 3;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 64px;
  }

  .menu-toggle {
    display: grid;
  }

  .nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 72px;
    display: none;
    grid-template-columns: 1fr;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(7, 12, 25, 0.96);
    padding: 8px;
    box-shadow: var(--shadow);
  }

  .nav[data-open] {
    display: grid;
  }

  .nav a {
    padding: 12px;
  }

  .hero {
    width: min(100% - 18px, 1480px);
    margin-top: 9px;
  }

  .hero-copy {
    padding: 32px 24px 38px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.6rem, 15vw, 4.12rem);
  }

  .hero-media {
    min-height: 290px;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .app-row {
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 14px;
    min-height: 94px;
  }

  .app-row .arrow {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
  }

  .app-icon {
    width: 58px;
    height: 58px;
  }

  .app-icon svg {
    width: 34px;
    height: 34px;
  }

  .page-hero {
    padding: 54px 0 44px;
  }

  .legal-shell {
    width: min(100% - 28px, 1440px);
    padding-top: 30px;
  }

  .legal-article h1 {
    font-size: clamp(2.25rem, 12vw, 3.5rem);
  }

  .doc-card {
    grid-template-columns: 1fr;
  }

  .doc-card .doc-state {
    text-align: left;
  }

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