:root {
  color-scheme: dark;
  --bg: #07101f;
  --bg-raised: #0c1729;
  --surface: #101c30;
  --text: #f4f7ff;
  --muted: #a8b4c9;
  --subtle: #728098;
  --border: rgba(181, 199, 232, 0.16);
  --blue: #496cf3;
  --blue-bright: #7c96ff;
  --cyan: #78d7ff;
  --green: #54d9a2;
  --shell: min(1160px, calc(100vw - 48px));
  --display: "Avenir Next", "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
  --body: "SF Pro Text", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 72% 13%, rgba(61, 95, 230, 0.14), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 4px;
}

.shell { width: var(--shell); margin-inline: auto; }

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

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

.brand img { display: block; }

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

nav a,
.site-footer > a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 160ms ease;
}

nav a:hover,
.site-footer > a:hover { color: var(--text); }

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.88fr);
  align-items: center;
  gap: clamp(54px, 8vw, 112px);
  padding-block: 92px 110px;
}

.kicker {
  margin: 0 0 22px;
  color: var(--blue-bright);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 { font-family: var(--display); }

.hero h1 {
  max-width: 700px;
  margin-bottom: 30px;
  font-size: clamp(48px, 6.2vw, 82px);
  font-weight: 680;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.lede {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.8;
}

.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 42px; }

.primary-action {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  padding: 0 24px;
  border: 1px solid rgba(133, 157, 255, 0.55);
  border-radius: 10px;
  background: var(--blue);
  box-shadow: 0 16px 44px rgba(43, 76, 207, 0.26);
  color: white;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.primary-action:hover { background: #5a7af5; transform: translateY(-2px); }

.text-action {
  color: var(--muted);
  font-size: 14px;
  text-underline-offset: 5px;
}

.connection-figure {
  position: relative;
  min-width: 0;
  min-height: 410px;
  display: grid;
  grid-template-columns: 1fr 0.92fr 1fr;
  align-items: center;
  padding: 46px 34px 128px;
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(rgba(124, 150, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 150, 255, 0.05) 1px, transparent 1px),
    linear-gradient(145deg, rgba(23, 40, 70, 0.98), rgba(8, 17, 33, 0.96));
  background-size: 28px 28px, 28px 28px, auto;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.28);
}

.connection-figure::after {
  content: "";
  position: absolute;
  inset: auto -12% -65% 24%;
  height: 320px;
  border-radius: 50%;
  background: rgba(50, 88, 231, 0.2);
  filter: blur(65px);
}

.device { position: relative; z-index: 1; min-width: 0; text-align: center; font-weight: 700; }

.device small { display: block; color: var(--subtle); font-size: 12px; font-weight: 500; }

.device-screen {
  position: relative;
  display: block;
  width: 88px;
  height: 64px;
  margin: 0 auto 15px;
  border: 3px solid #bcc9dc;
  border-radius: 9px;
  background: linear-gradient(145deg, #1c2f50, #101b2e);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 13px 28px rgba(0,0,0,.32);
}

.device-screen::after {
  content: "";
  position: absolute;
  width: 36px;
  height: 4px;
  left: 50%;
  bottom: -11px;
  border-radius: 4px;
  background: #9eacc1;
  transform: translateX(-50%);
}

.route { position: relative; z-index: 1; text-align: center; }
.route-label { color: var(--cyan); font-size: 11px; font-weight: 750; letter-spacing: .08em; }
.route-line { display: block; height: 1px; margin: 10px -8px; background: linear-gradient(90deg, var(--blue), var(--cyan), var(--blue)); }
.route-line::after { content: ""; display: block; width: 7px; height: 7px; margin: -3px auto 0; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 16px var(--cyan); }
.route-note { color: var(--subtle); font-size: 11px; }

.discovery-note {
  position: absolute;
  z-index: 1;
  right: 26px;
  bottom: 26px;
  left: 26px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 19px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(6, 14, 28, 0.82);
  backdrop-filter: blur(16px);
}

.discovery-note p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.discovery-note strong { color: var(--text); font-size: 13px; }
.google-dot { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 50%; background: conic-gradient(#4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0); color: white; font-weight: 800; }

.principles { border-block: 1px solid var(--border); background: rgba(10, 21, 39, 0.72); }
.principle-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.principle-row article { min-height: 240px; padding: 48px 44px; border-right: 1px solid var(--border); }
.principle-row article:first-child { border-left: 1px solid var(--border); }
.index { color: var(--blue-bright); font-family: ui-monospace, monospace; font-size: 11px; }
.principle-row h2 { margin: 30px 0 13px; font-size: 21px; }
.principle-row p { margin: 0; color: var(--muted); font-size: 14px; }

.explainer { padding-block: 130px; }
.section-heading { display: grid; grid-template-columns: .45fr 1fr; align-items: end; margin-bottom: 60px; }
.section-heading .kicker { margin-bottom: 11px; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.16; letter-spacing: -.04em; }
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.steps li { display: grid; grid-template-columns: 80px 1fr; padding: 32px 0; border-bottom: 1px solid var(--border); }
.steps > li > span { color: var(--blue-bright); font-family: ui-monospace, monospace; }
.steps h3 { margin-bottom: 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); }
.honesty-note { display: grid; grid-template-columns: 150px 1fr; gap: 34px; margin-top: 40px; padding: 24px 28px; border-left: 3px solid var(--green); background: rgba(84, 217, 162, .07); }
.honesty-note strong { color: var(--green); }
.honesty-note p { margin: 0; color: var(--muted); }

.data-boundary { padding-block: 110px; background: #edf2ff; color: #0b1424; }
.boundary-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; }
.data-boundary .kicker { color: #3154d1; }
.data-boundary h2 { max-width: 520px; margin: 0; font-size: clamp(34px, 4vw, 54px); line-height: 1.15; letter-spacing: -.04em; }
.boundary-list { border-top: 1px solid rgba(11,20,36,.18); }
.boundary-list p { display: grid; grid-template-columns: 92px 1fr; gap: 18px; margin: 0; padding: 22px 0; border-bottom: 1px solid rgba(11,20,36,.18); color: #48556b; }
.boundary-list span { color: #13203a; font-weight: 750; }

.site-footer { min-height: 118px; display: flex; align-items: center; gap: 34px; }
.footer-brand { font-size: 16px; }
.site-footer p { margin: 0 auto 0 0; color: var(--subtle); font-size: 13px; }

.policy-shell { padding-block: 90px 130px; }
.policy-header { max-width: 800px; margin-bottom: 74px; }
.policy-header h1 { margin-bottom: 18px; font-size: clamp(44px, 5.5vw, 70px); letter-spacing: -.045em; }
.policy-header > p:last-child { color: var(--subtle); }
.policy-layout { display: grid; grid-template-columns: 290px minmax(0, 720px); gap: clamp(50px, 9vw, 120px); align-items: start; }
.policy-summary { position: sticky; top: 32px; padding: 24px; border: 1px solid var(--border); border-radius: 15px; background: var(--bg-raised); }
.policy-summary strong { color: var(--blue-bright); font-size: 13px; }
.policy-summary p { margin: 15px 0 0; color: var(--muted); font-size: 13px; }
.policy-content { min-width: 0; }
.policy-content section { min-width: 0; padding: 0 0 42px; }
.policy-content h2 { margin-bottom: 16px; font-size: 24px; letter-spacing: -.02em; }
.policy-content h3 { margin: 26px 0 8px; color: #dce5f8; font-size: 16px; }
.policy-content p, .policy-content li { color: var(--muted); }
.policy-content ul { padding-left: 20px; }
.policy-content code { padding: 2px 6px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); color: #dfe7ff; }
.policy-content a { color: var(--cyan); overflow-wrap: anywhere; text-underline-offset: 4px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-block: 72px 90px; }
  .connection-figure { min-height: 390px; }
  .principle-row { grid-template-columns: 1fr; }
  .principle-row article { min-height: 0; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .principle-row article:last-child { border-bottom: 0; }
  .section-heading, .boundary-grid, .policy-layout { grid-template-columns: minmax(0, 1fr); }
  .section-heading { gap: 10px; }
  .boundary-grid { gap: 54px; }
  .policy-summary { position: static; }
}

@media (max-width: 600px) {
  :root { --shell: min(calc(100% - 32px), 1160px); }
  .site-header { min-height: 70px; }
  nav { gap: 17px; }
  nav a { font-size: 13px; }
  nav a:first-child { display: none; }
  .hero { min-height: auto; gap: 55px; padding-block: 62px 74px; }
  .hero h1 { font-size: clamp(43px, 13vw, 62px); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .connection-figure { min-height: 360px; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr) minmax(0, 1fr); padding-inline: 14px; border-radius: 20px; }
  .device-screen { width: 68px; height: 50px; }
  .route-label { font-size: 9px; white-space: nowrap; }
  .principle-row article { padding: 38px 28px; }
  .explainer, .data-boundary, .policy-shell { padding-block: 82px; }
  .steps li { grid-template-columns: 46px 1fr; }
  .honesty-note { grid-template-columns: 1fr; gap: 8px; }
  .boundary-list p { grid-template-columns: 1fr; gap: 4px; }
  .site-footer { min-height: 145px; flex-wrap: wrap; align-content: center; gap: 12px 24px; }
  .site-footer p { flex-basis: calc(100% - 60px); }
  .policy-header { margin-bottom: 48px; }
}

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