:root {
  color-scheme: dark;
  --bg: #050608;
  --bg-soft: #090b10;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --surface-legal: #f7f4ee;
  --ink: #f7f8f8;
  --ink-soft: #d3d9e4;
  --muted: #8e96a6;
  --legal-ink: #171d1c;
  --legal-muted: #5f6a67;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.045);
  --accent: #7a8cff;
  --accent-2: #56d7e8;
  --success: #48d29d;
  --warning: #d7a24c;
  --danger: #ff7a7a;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 34px;
  --shadow: 0 30px 120px rgba(0, 0, 0, 0.35);
  --container: 1180px;
  font-family: "Inter Variable", Inter, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "cv01", "ss03";
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -20%, rgba(122, 140, 255, 0.24), transparent 34rem),
    radial-gradient(circle at 92% 12%, rgba(86, 215, 232, 0.12), transparent 26rem),
    linear-gradient(180deg, #07080c 0%, var(--bg) 38%, #030405 100%);
  color: var(--ink);
}

a {
  color: inherit;
}

.site-shell {
  width: min(var(--container), calc(100vw - 36px));
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.brand-icon {
  display: block;
  width: 29px;
  height: 29px;
  filter: drop-shadow(0 0 24px rgba(86, 215, 232, 0.18));
}

.brand-wordmark {
  display: block;
  width: 78px;
  height: auto;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(122, 140, 255, 0.95), rgba(86, 215, 232, 0.95)),
    #0c0e12;
  box-shadow: 0 0 32px rgba(122, 140, 255, 0.32);
}

.nav-links,
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.nav-links a,
.footer-grid a,
.legal-toc a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 520;
}

.nav-links a:hover,
.footer-grid a:hover,
.legal-toc a:hover {
  color: var(--ink);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 620;
}

.nav-actions {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.language-menu {
  position: relative;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
}

.language-toggle strong {
  color: var(--ink);
  font-weight: 650;
}

.language-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 20;
  display: grid;
  min-width: 168px;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 10, 14, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
}

.language-menu[data-open="true"] .language-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.button-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #050608;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: clamp(54px, 8vw, 112px) 0 72px;
}

.hero h1,
.legal-hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
  font-weight: 560;
}

.hero p,
.section-lede,
.legal-hero p {
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.72;
}

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

.product-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), transparent),
    rgba(8, 10, 14, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.xora-device-frame {
  position: relative;
}

.xora-device-frame::before {
  content: "";
  position: absolute;
  inset: 14px 28% auto;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.78rem;
}

.product-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.xora-chat-preview {
  display: grid;
  gap: 12px;
}

.chat-line {
  display: grid;
  gap: 5px;
  width: min(82%, 310px);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
}

.chat-line span {
  color: var(--ink);
  font-weight: 650;
}

.chat-line small {
  color: var(--muted);
  font-size: 0.78rem;
}

.chat-line-out {
  justify-self: end;
  background: linear-gradient(135deg, rgba(122, 140, 255, 0.18), rgba(86, 215, 232, 0.07));
}

.muted-line {
  opacity: 0.72;
}

.message-row,
.summary-card,
.signal-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
}

.message-row strong,
.summary-card strong,
.signal-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.message-row p,
.summary-card p,
.signal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.summary-card {
  background: linear-gradient(135deg, rgba(122, 140, 255, 0.14), rgba(86, 215, 232, 0.06));
}

.xora-summary-card ul {
  display: grid;
  gap: 7px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.xora-summary-card li {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.xora-summary-card li::before {
  content: "•";
  margin-right: 8px;
  color: var(--accent-2);
}

.privacy-meter {
  display: grid;
  gap: 8px;
}

.privacy-meter span,
.xora-trust-badge,
.preview-label {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 650;
}

.section {
  padding: 86px 0;
  border-top: 1px solid var(--line-soft);
}

.section h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 540;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.feature-grid-expanded {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 12px;
}

.section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: end;
}

.section-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.mockup-ribbon,
.ai-preview-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.ai-preview-panel {
  align-items: stretch;
}

.ai-preview-card {
  flex: 1 1 260px;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 12%, rgba(86, 215, 232, 0.16), transparent 15rem),
    rgba(255, 255, 255, 0.036);
  padding: 22px;
}

.ai-preview-card strong {
  display: block;
  margin-top: 18px;
  color: var(--ink);
  font-size: 1.12rem;
  letter-spacing: -0.025em;
}

.ai-preview-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.feature-card,
.legal-card,
.legal-summary,
.trust-strip {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 22px;
}

.feature-card-refined {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 218px;
  gap: 12px;
  padding: 20px;
  border-color: rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.026);
}

.feature-card-refined::after {
  content: "Open";
  align-self: end;
  width: fit-content;
  margin-top: auto;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.feature-label {
  display: inline-flex;
  width: fit-content;
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-card h3,
.legal-card h2,
.legal-summary h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.feature-card p,
.legal-card p,
.legal-card li,
.legal-summary p,
.legal-summary li {
  color: var(--muted);
  line-height: 1.68;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
  background: rgba(255, 255, 255, 0.025);
}

.trust-strip a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 620;
}

.locale-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 16px 0 26px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.locale-status,
.locale-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.locale-picker {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.locale-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 620;
}

.locale-link[data-active="true"] {
  background: var(--ink);
  color: var(--bg);
}

.text-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 650;
}

.feature-hero {
  padding: clamp(52px, 8vw, 104px) 0 40px;
}

.feature-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
  font-weight: 560;
}

.feature-hero p {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.4vw, 1.24rem);
  line-height: 1.72;
}

.feature-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 0.62fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li,
.feature-status,
.compare-row {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  padding: 16px;
}

.feature-card[role="button"] {
  cursor: pointer;
}

.feature-card[role="button"]:focus-visible,
.language-toggle:focus-visible,
.feature-modal-close:focus-visible,
.feature-modal-link:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.feature-status {
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-status::before {
  content: none;
}

.feature-mockup {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 12% 0%, rgba(122, 140, 255, 0.18), transparent 18rem),
    rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
  padding: clamp(16px, 3vw, 24px);
  overflow: hidden;
}

.mock-phone {
  display: grid;
  gap: 12px;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  padding: 20px;
}

.feature-mockup-refined {
  position: relative;
  top: auto;
  min-height: 430px;
}

.feature-mockup-stage {
  display: grid;
  gap: 13px;
  min-height: 360px;
}

.mock-title {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.mock-chat-stack,
.mock-option,
.mock-status-row,
.mock-panel,
.mock-call-card,
.mock-model-row,
.mock-layer,
.mock-summary-line,
.mock-token {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink-soft);
}

.mock-chat-stack,
.mock-call-card {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.mock-message,
.mock-relay,
.mock-panel,
.mock-layer,
.mock-summary-line,
.mock-token {
  padding: 12px 13px;
  line-height: 1.45;
}

.mock-message {
  width: 84%;
  border-radius: 15px;
  background: rgba(122, 140, 255, 0.15);
  color: var(--ink-soft);
}

.mock-message.outbound {
  justify-self: end;
  background: rgba(86, 215, 232, 0.14);
}

.mock-message.inbound {
  justify-self: start;
}

.mock-lock {
  display: inline-flex;
  margin-right: 6px;
  color: var(--success);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.mock-relay {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.82rem;
}

.mock-note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.mock-option,
.mock-status-row,
.mock-model-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
}

.mock-option.active,
.mock-status-row.good {
  border-color: rgba(72, 210, 157, 0.28);
  background: rgba(72, 210, 157, 0.1);
}

.mock-status-row.warn {
  border-color: rgba(215, 162, 76, 0.28);
  background: rgba(215, 162, 76, 0.08);
}

.mock-status-row.hold,
.mock-model-row.locked {
  border-color: rgba(255, 122, 122, 0.25);
  background: rgba(255, 122, 122, 0.08);
}

.mock-option span,
.mock-status-row span,
.mock-model-row span,
.mock-call-card span,
.mock-split span {
  color: var(--muted);
  font-size: 0.82rem;
}

.mock-timer-row,
.mock-sequence,
.mock-mini-grid,
.mock-split {
  display: grid;
  gap: 10px;
}

.mock-timer-row,
.mock-sequence {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.mock-timer-row span,
.mock-sequence span,
.mock-mini-grid span,
.mock-split div {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-soft);
  font-size: 0.84rem;
  text-align: center;
}

.mock-mini-grid,
.mock-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mock-message.fading {
  opacity: 0.62;
  border: 1px dashed rgba(255, 255, 255, 0.18);
}

.mock-qr {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 148px;
  height: 148px;
  padding: 18px;
  border-radius: 24px;
  background: #f8fafc;
}

.mock-qr span {
  border-radius: 8px;
  background: #050608;
}

.mock-profile-ring {
  display: grid;
  place-items: center;
  width: 138px;
  height: 138px;
  border-radius: 38px;
  background:
    linear-gradient(#080a0e, #080a0e) padding-box,
    linear-gradient(135deg, rgba(86, 215, 232, 0.75), rgba(122, 140, 255, 0.65)) border-box;
  border: 2px solid transparent;
}

.mock-profile-ring span {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 2rem;
  font-weight: 760;
}

.mock-bar,
.mock-pill,
.mock-bubble {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.mock-bar {
  width: 42%;
  height: 5px;
  justify-self: center;
}

.mock-bubble {
  width: 78%;
  min-height: 46px;
  padding: 13px 15px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.mock-bubble:nth-child(odd) {
  justify-self: end;
  background: rgba(122, 140, 255, 0.18);
}

.mock-pill {
  display: inline-flex;
  width: fit-content;
  padding: 8px 11px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

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

.compare-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
}

.compare-row strong {
  color: var(--ink);
}

.compare-row p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

body[data-modal-open="true"] {
  overflow: hidden;
}

.feature-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 32px);
}

.feature-modal[aria-hidden="true"] {
  display: none;
}

.feature-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3, 4, 5, 0.72);
  cursor: pointer;
}

.feature-modal-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 14% 0%, rgba(122, 140, 255, 0.2), transparent 18rem),
    #080a0e;
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 34px);
}

.feature-modal-panel-refined {
  width: min(1040px, 100%);
  background:
    radial-gradient(circle at 86% 2%, rgba(86, 215, 232, 0.1), transparent 18rem),
    #080a0e;
}

.feature-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.feature-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 2rem;
  line-height: 1;
}

.feature-modal-close:hover {
  background: rgba(255, 255, 255, 0.055);
}

.feature-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  gap: clamp(18px, 4vw, 34px);
  margin-top: 24px;
}

.feature-modal-copy {
  display: grid;
  gap: 14px;
}

.modal-copy-block {
  display: grid;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.modal-copy-block h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feature-modal-copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.68;
}

.feature-modal-copy strong {
  color: var(--ink);
}

.feature-modal-link {
  display: inline-flex;
  width: fit-content;
  min-height: 40px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
}

@media (prefers-reduced-motion: no-preference) {
  .language-panel {
    transition: opacity 160ms ease, transform 160ms ease;
  }

  [data-animate-mockup] .mock-bubble,
  [data-animate-mockup] .mock-pill,
  [data-animate-mockup] .feature-mockup-stage > * {
    opacity: 0.36;
    transform: translateY(8px);
  }

  [data-animate-mockup][data-in-view="true"] .mock-bubble,
  [data-animate-mockup][data-in-view="true"] .mock-pill,
  [data-animate-mockup][data-in-view="true"] .feature-mockup-stage > * {
    animation: mockReveal 700ms ease forwards;
  }

  [data-animate-mockup][data-in-view="true"] .mock-bubble:nth-child(3) {
    animation-delay: 120ms;
  }

  [data-animate-mockup][data-in-view="true"] .mock-bubble:nth-child(4) {
    animation-delay: 240ms;
  }

  [data-animate-mockup][data-in-view="true"] .mock-pill {
    animation-delay: 340ms;
  }

  @keyframes mockReveal {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.legal-body {
  background:
    radial-gradient(circle at 18% -10%, rgba(122, 140, 255, 0.16), transparent 32rem),
    #06070a;
}

.legal-shell {
  width: min(960px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 32px 0 72px;
}

.legal-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(247, 248, 248, 0.96);
  color: var(--legal-ink);
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 54px);
}

.legal-panel a {
  color: #244f86;
  font-weight: 650;
}

.legal-hero h1 {
  color: var(--legal-ink);
  font-size: clamp(2.8rem, 7vw, 5.8rem);
}

.legal-hero p,
.legal-card p,
.legal-card li,
.legal-summary p,
.legal-summary li,
.legal-toc a {
  color: var(--legal-muted);
}

.legal-summary {
  margin: 24px 0;
  background: rgba(8, 10, 14, 0.045);
  border-color: rgba(23, 29, 28, 0.12);
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 22px 0;
}

.legal-grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.legal-card {
  border-color: rgba(23, 29, 28, 0.12);
  background: rgba(255, 255, 255, 0.74);
}

.notice {
  border-color: rgba(215, 162, 76, 0.3);
  background: rgba(215, 162, 76, 0.1);
}

.site-footer {
  padding: 48px 0 64px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
}

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

.footer-wordmark {
  width: 98px;
  height: auto;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, minmax(120px, 1fr));
  gap: 24px;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-column h2,
.footer-column h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 0.92rem;
}

.footer-column a,
.footer-column p {
  margin: 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.55;
}

.legal-site-footer {
  padding-top: 12px;
}

.legal-footer-links {
  width: min(960px, calc(100vw - 36px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.legal-footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 560;
}

.legal-footer-links a:hover {
  color: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  .feature-card,
  .product-frame,
  .legal-card {
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  }

  .feature-card:hover,
  .legal-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
  }
}

@media (max-width: 860px) {
  .hero,
  .feature-grid,
  .trust-strip,
  .footer-columns,
  .feature-detail-layout,
  .compare-row,
  .feature-modal-grid,
  .section-heading-row {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .feature-mockup {
    position: relative;
    top: auto;
  }

  .feature-mockup-refined {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .site-shell,
  .legal-shell {
    width: min(100vw - 24px, var(--container));
  }

  .hero {
    padding-top: 34px;
  }

  .hero h1,
  .legal-hero h1 {
    letter-spacing: -0.055em;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-cta {
    display: none;
  }

  .language-toggle {
    padding: 0 10px;
  }

  .feature-hero h1 {
    letter-spacing: -0.052em;
  }

  .feature-modal {
    align-items: end;
    padding: 0;
  }

  .feature-modal-panel {
    width: 100%;
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
  }

  .mock-timer-row,
  .mock-sequence,
  .mock-mini-grid,
  .mock-split {
    grid-template-columns: 1fr;
  }
}
