@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("./assets/fonts/sora-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("./assets/fonts/sora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("./assets/fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("./assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root,
[data-theme="light"] {
  --bg: #f4f5f8;
  --bg-elevated: #ffffff;
  --bg-subtle: #eceef3;
  --bg-device: #ffffff;
  --line: rgba(17, 24, 39, 0.085);
  --line-strong: rgba(17, 24, 39, 0.16);
  --text: #111827;
  --text-secondary: #4b5563;
  --text-muted: #5b6472;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-text: #2563eb;
  --accent-ink: #ffffff;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --offline: #0f766e;
  --offline-soft: rgba(13, 148, 136, 0.1);
  --amber: #d97706;
  --shadow-stage: 0 28px 70px -24px rgba(17, 24, 39, 0.16);
  --shadow-btn: 0 12px 24px -10px rgba(17, 24, 39, 0.22);
  --nav-bg: rgba(255, 255, 255, 0.94);
  --selection-bg: rgba(37, 99, 235, 0.2);
  --selection-fg: #111827;
  --canvas-dot: rgba(37, 99, 235, 0.18);
  --canvas-active: rgba(37, 99, 235, 0.72);
  --canvas-link: rgba(13, 148, 136, 0.18);
}

[data-theme="dark"] {
  --bg: #0e1117;
  --bg-elevated: #161b22;
  --bg-subtle: #21262d;
  --bg-device: #161b22;
  --line: rgba(240, 246, 252, 0.09);
  --line-strong: rgba(240, 246, 252, 0.18);
  --text: #e6edf3;
  --text-secondary: #9ca3af;
  --text-muted: #8b949e;
  --accent: #60a5fa;
  --accent-strong: #93c5fd;
  --accent-text: #60a5fa;
  --accent-ink: #09101d;
  --accent-soft: rgba(96, 165, 250, 0.15);
  --offline: #2dd4bf;
  --offline-soft: rgba(45, 212, 191, 0.14);
  --amber: #fbbf24;
  --shadow-stage: 0 30px 80px -24px rgba(0, 0, 0, 0.65);
  --shadow-btn: 0 12px 26px -10px rgba(0, 0, 0, 0.45);
  --nav-bg: rgba(22, 27, 34, 0.94);
  --selection-bg: rgba(96, 165, 250, 0.3);
  --selection-fg: #e6edf3;
  --canvas-dot: rgba(148, 179, 230, 0.24);
  --canvas-active: rgba(96, 165, 250, 0.85);
  --canvas-link: rgba(45, 212, 191, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark light;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: "Sora", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--selection-bg);
  color: var(--selection-fg);
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

/* Top Navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}

.brand-sub {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 13px;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a {
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--text);
}

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

.icon-pill {
  height: 36px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.icon-pill:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.icon-pill:active {
  transform: scale(0.97);
}

.nav-dl-btn {
  height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.18s ease, transform 0.15s ease;
}

.nav-dl-btn:hover {
  background: var(--accent-strong);
}

.nav-dl-btn:active {
  transform: scale(0.97);
}

/* Hero Section + Interactive Magnetic Optical Canvas */
.hero {
  position: relative;
  padding: 64px 0 84px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.optical-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 52px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--offline-soft);
  color: var(--offline);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 22px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  flex-shrink: 0;
}

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(36px, 4.9vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
  color: var(--text);
}

.hero-lead {
  margin: 0 0 32px;
  max-width: 50ch;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 700;
  border: none;
  box-shadow: var(--shadow-btn);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.18s ease;
}

.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary-meta {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(9, 12, 18, 0.34);
  color: #ffffff;
  white-space: nowrap;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  transform: translateY(-1px);
}

.checksum-bar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 11px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-muted);
  max-width: 100%;
}

.checksum-code {
  color: var(--text-secondary);
  font-size: 11.5px;
  word-break: break-all;
}

.copy-mini {
  border: none;
  background: var(--bg-subtle);
  color: var(--text);
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
  transition: background 0.15s ease;
}

.copy-mini:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

/* Hero Interactive 3D Sandbox Stage */
.stage-wrap {
  perspective: 1200px;
  display: flex;
  justify-content: center;
}

.sandbox-device {
  width: 100%;
  max-width: 470px;
  background: var(--bg-device);
  border-radius: 24px;
  box-shadow: var(--shadow-stage);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.device-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
}

.device-title-group {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
}

.device-offline-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--offline-soft);
  color: var(--offline);
  font-size: 11px;
  font-weight: 600;
}

.demo-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px 10px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
}

.demo-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 8px 6px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}

.demo-tab:hover {
  color: var(--text);
}

.demo-tab.is-active {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.demo-viewport {
  padding: 16px;
  min-height: 368px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

/* Demo 1: ID Photo Live Matting */
.id-stage-frame {
  position: relative;
  height: 230px;
  border-radius: 14px;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.id-photo-canvas {
  height: 204px;
  width: 146px;
  border-radius: 8px;
  display: block;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.45);
}

.id-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--offline);
  opacity: 0;
  pointer-events: none;
}

.id-scanline.is-sweeping {
  animation: sweep-scan 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes sweep-scan {
  0% { top: 8%; opacity: 0.95; }
  100% { top: 92%; opacity: 0; }
}

.id-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.swatch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.swatches {
  display: flex;
  align-items: center;
  gap: 8px;
}

.swatch-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  padding: 0;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.swatch-btn.is-active {
  border-color: var(--text);
  transform: scale(1.1);
}

.zoom-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

.zoom-row input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
}

/* Demo 2: Interactive PDF Signature */
.sign-paper {
  position: relative;
  height: 238px;
  border-radius: 12px;
  background: #ffffff;
  color: #1e293b;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

.sign-doc-lines {
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sign-doc-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.sign-doc-bar {
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
}

.sign-doc-footer {
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 11px;
  color: #64748b;
  border-top: 1px dashed #cbd5e1;
  padding-top: 8px;
}

.sign-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.sign-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Demo 3: Offline OCR Redact */
.redact-card {
  height: 238px;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.lan-stage {
  height: 238px;
  padding: 8px 4px;
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.redact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid transparent;
  text-align: left;
  width: 100%;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.redact-row:hover {
  border-color: var(--line-strong);
}

.redact-label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.redact-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding: 2px 8px;
  border-radius: 6px;
  transition: background 0.18s ease, color 0.18s ease;
}

.redact-row.is-masked .redact-val {
  background-color: var(--text);
  background-image:
    linear-gradient(45deg, rgba(128, 128, 128, 0.35) 25%, transparent 25%, transparent 75%, rgba(128, 128, 128, 0.35) 75%),
    linear-gradient(45deg, rgba(128, 128, 128, 0.35) 25%, transparent 25%, transparent 75%, rgba(128, 128, 128, 0.35) 75%);
  background-size: 8px 8px;
  background-position: 0 0, 4px 4px;
  color: transparent;
  user-select: none;
}

/* Demo 4: LAN AirDrop */
.lan-qr-box {
  width: 122px;
  height: 122px;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  padding: 6px;
}

.lan-qr-box svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lan-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.lan-pin {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text);
  line-height: 1.1;
}

.lan-url {
  font-size: 12px;
  color: var(--accent-text);
  word-break: break-all;
}

.lan-progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-subtle);
  overflow: hidden;
}

.lan-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--offline);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.demo-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Section Rhythm */
.section {
  padding: 92px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

.section-desc {
  margin: 0;
  max-width: 58ch;
  font-size: 15px;
  color: var(--text-secondary);
}

/* Curated Mainstream Tool Bento */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.filter-pill:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.filter-pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.tool-tile {
  grid-column: span 4;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.18s ease, background 0.18s ease;
}

.tool-tile:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.tool-tile.is-featured {
  grid-column: span 6;
  padding: 24px;
  background: linear-gradient(155deg, var(--bg-elevated) 0%, var(--bg-subtle) 100%);
}

.tool-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-icon.tone-teal {
  background: var(--offline-soft);
  color: var(--offline);
}

.tool-icon.tone-amber {
  background: rgba(217, 119, 6, 0.14);
  color: var(--amber);
}

.tool-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg);
}

.tool-name {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tool-tile.is-featured .tool-name {
  font-size: 20px;
}

.tool-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.tool-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
}

.tool-spec-chip {
  font-size: 11.5px;
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--bg);
}

/* Interactive 3-Layer Security Architecture */
.arch-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: stretch;
}

.arch-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.arch-item {
  width: 100%;
  text-align: left;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.arch-item:hover {
  border-color: var(--line-strong);
}

.arch-item.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.arch-item-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.arch-item-sub {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.arch-inspector {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.arch-code {
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--offline);
  overflow-x: auto;
  white-space: pre-wrap;
}

.arch-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.arch-fact {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  padding: 5px 11px;
  border-radius: 999px;
}

/* Download Section */
.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 34px;
  align-items: center;
}

.dl-title {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.dl-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.dl-meta-chip {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  padding: 5px 11px;
  border-radius: 8px;
}

.dl-notes {
  margin: 0 0 24px;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.dl-notes li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.dl-notes-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--offline);
  margin-top: 8px;
  flex-shrink: 0;
}

.dl-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.dl-ios-note {
  font-size: 13px;
  color: var(--text-muted);
}

.dl-qr-card {
  border-left: 1px solid var(--line);
  padding: 8px 0 8px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.dl-qr-frame {
  width: 196px;
  height: 196px;
  border-radius: 14px;
  background: #ffffff;
  padding: 10px;
}

.dl-qr-frame svg {
  width: 100%;
  height: 100%;
  display: block;
}

.dl-qr-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.dl-qr-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
}

/* Footer */
.footer {
  padding: 36px 0 48px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

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

/* Toast */
.toast-host {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  pointer-events: none;
}

.toast-pill {
  background: var(--text);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .arch-layout,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .dl-qr-card {
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 24px 0 4px;
  }

  .hero {
    padding: 40px 0 56px;
  }

  .tool-tile,
  .tool-tile.is-featured {
    grid-column: span 6;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 28px);
  }

  .topbar-inner {
    height: 54px;
  }

  .hero {
    padding: 20px 0 40px;
  }

  .hero-grid {
    gap: 24px;
  }

  .live-status-pill {
    margin-bottom: 12px;
    font-size: 12px;
    padding: 5px 11px;
  }

  .hero-title {
    font-size: 31px;
    margin-bottom: 12px;
  }

  .hero-lead {
    font-size: 14.5px;
    line-height: 1.55;
    margin-bottom: 18px;
  }

  .hero-cta-row {
    width: 100%;
    gap: 10px;
    margin-bottom: 14px;
  }

  .btn-primary {
    min-height: 46px;
    padding: 0 16px;
    font-size: 14px;
    gap: 8px;
    white-space: nowrap;
  }

  .btn-secondary {
    min-height: 46px;
    padding: 0 14px;
    font-size: 13.5px;
    white-space: nowrap;
  }

  .checksum-bar {
    display: none;
  }

  .section {
    padding: 56px 0;
  }

  .tool-tile,
  .tool-tile.is-featured {
    grid-column: span 12;
  }

  .download-panel {
    padding: 22px;
  }

  .lan-stage {
    grid-template-columns: 1fr;
    height: auto;
    justify-items: center;
    text-align: center;
  }

  .brand-sub,
  .nav-dl-btn {
    display: none;
  }

  .demo-tab {
    font-size: 11.5px;
    padding: 7px 4px;
  }
}

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

  .sandbox-device,
  .tool-tile,
  .btn-primary,
  .btn-secondary {
    transition: none;
  }

  .id-scanline.is-sweeping {
    animation: none;
  }
}
