:root {
  color-scheme: light;
  --ink: #101820;
  --ink-soft: #25323c;
  --paper: #f2f6f8;
  --white: #ffffff;
  --muted: #657581;
  --line: #d8e2e8;
  --blue: #315efb;
  --mint: #64d6bf;
  --amber: #f2b24b;
  --display: "Avenir Next Condensed", "Arial Narrow", "PingFang SC", sans-serif;
  --body: Inter, "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  margin: 0;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible,
button:focus-visible { outline: 3px solid rgba(49, 94, 251, 0.28); outline-offset: 3px; }

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(242, 246, 248, 0.9);
  border-bottom: 1px solid rgba(216, 226, 232, 0.9);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: 72px;
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
  position: sticky;
  top: 0;
  z-index: 30;
}
.brand { align-items: center; display: flex; gap: 10px; justify-self: start; text-decoration: none; }
.brand img { border-radius: 9px; }
.brand small { color: var(--muted); display: block; font: 700 10px/1.1 var(--mono); letter-spacing: 0.14em; margin-bottom: 3px; }
.brand strong { display: block; font-size: 16px; line-height: 1; }
.site-header nav { display: flex; gap: 30px; }
.site-header nav a { color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
.site-header nav a:hover { color: var(--ink); }
.header-actions { align-items: center; display: flex; gap: 9px; justify-self: end; }
.language-link {
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  font: 750 12px/1 var(--mono);
  padding: 11px 10px;
  text-decoration: none;
}
.language-link:hover { background: white; color: var(--ink); }
.header-download {
  background: var(--ink);
  border-radius: 9px;
  color: white;
  font-size: 14px;
  font-weight: 720;
  padding: 10px 15px;
  text-decoration: none;
}

main { overflow: hidden; }
.hero {
  display: grid;
  gap: 52px;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  margin: 0 auto;
  max-width: 1248px;
  min-height: 690px;
  padding: 96px 24px 80px;
}
.hero-copy { align-self: center; }
.eyebrow {
  color: var(--blue);
  font: 760 12px/1.3 var(--mono);
  letter-spacing: 0.11em;
  margin: 0 0 18px;
}
.hero .eyebrow span { background: var(--mint); border-radius: 50%; display: inline-block; height: 8px; margin-right: 8px; width: 8px; }
.hero h1,
.section-heading h2,
.install-copy h2,
.privacy-copy h2,
.final-cta h2,
.legal-shell h1 {
  font-family: var(--display);
  letter-spacing: -0.055em;
}
.hero h1 { font-size: clamp(54px, 5.2vw, 78px); line-height: 0.98; margin: 0; }
.hero-lead { color: var(--muted); font-size: 18px; line-height: 1.75; margin: 28px 0 0; max-width: 600px; }
.hero-actions { align-items: center; display: flex; gap: 22px; margin-top: 34px; }
.primary-button {
  align-items: center;
  background: var(--blue);
  border-radius: 12px;
  color: white;
  display: inline-flex;
  font-size: 16px;
  font-weight: 750;
  justify-content: space-between;
  min-width: 250px;
  padding: 15px 17px;
  text-decoration: none;
  transition: background-color 140ms ease, transform 140ms ease;
}
.primary-button:hover { background: #214ee9; transform: translateY(-2px); }
.primary-button i { font: normal 22px/1 var(--mono); }
.secondary-link { border-bottom: 1px solid var(--ink); font-size: 15px; font-weight: 680; padding-bottom: 3px; text-decoration: none; }
.release-note { color: var(--muted); font: 650 12px/1.5 var(--mono); margin: 18px 0 0; }

.hero-product {
  align-self: center;
  background: var(--ink);
  border-radius: 22px;
  box-shadow: 0 28px 72px rgba(16, 24, 32, 0.2);
  min-height: 500px;
  overflow: hidden;
  padding: 18px;
  position: relative;
}
.hero-product::before {
  background: linear-gradient(90deg, var(--blue) 0 62%, var(--amber) 62% 79%, var(--mint) 79% 90%, #33414c 90%);
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}
.product-caption { align-items: center; color: white; display: flex; justify-content: space-between; padding: 12px 3px 16px; }
.product-caption span { color: var(--mint); font: 720 11px/1 var(--mono); letter-spacing: 0.12em; }
.product-caption strong { font-size: 14px; }
.console-shot { border: 1px solid #394752; border-radius: 12px; width: 100%; }
.popup-shot {
  border: 1px solid #cbd5dc;
  border-radius: 13px;
  bottom: 26px;
  box-shadow: 0 18px 40px rgba(16, 24, 32, 0.28);
  position: absolute;
  right: 28px;
  width: 34%;
}

.proof-strip {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
  max-width: 1200px;
}
.proof-strip article { border-left: 1px solid var(--line); min-height: 148px; padding: 28px 30px; }
.proof-strip article:first-child { border-left: 0; }
.proof-strip span { color: var(--blue); font: 760 12px/1 var(--mono); }
.proof-strip strong { display: block; font-family: var(--display); font-size: 25px; margin: 16px 0 8px; }
.proof-strip p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }

.section { margin: 0 auto; max-width: 1200px; padding: 118px 24px; }
.section-heading h2,
.install-copy h2,
.privacy-copy h2 { font-size: clamp(44px, 4.5vw, 64px); line-height: 1.02; margin: 0; }
.architecture-section { padding-bottom: 96px; }
.architecture { align-items: stretch; display: grid; grid-template-columns: 1fr 104px 1.1fr 120px 1fr; margin-top: 54px; }
.architecture-node { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.architecture-node--core { background: var(--ink); border-color: var(--ink); color: white; }
.node-code { color: var(--blue); display: block; font: 750 11px/1 var(--mono); letter-spacing: 0.08em; margin-bottom: 28px; }
.architecture-node--core .node-code { color: var(--mint); }
.architecture-node strong { display: block; font-family: var(--display); font-size: 28px; }
.architecture-node p { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 13px 0 0; }
.architecture-node--core p { color: #aab7c1; }
.flow-arrow { align-items: center; color: var(--muted); display: flex; flex-direction: column; justify-content: center; text-align: center; }
.flow-arrow span { font-size: 12px; line-height: 1.4; }
.flow-arrow i { color: var(--blue); font: normal 28px/1 var(--mono); margin-top: 9px; }
.architecture-note { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 20px; padding: 22px 3px 0; }
.architecture-note strong { font-size: 15px; }
.architecture-note span { color: var(--muted); font-size: 14px; }

.experience-section { padding-top: 84px; }
.section-heading--wide { align-items: end; display: grid; gap: 60px; grid-template-columns: 1fr 0.7fr; }
.section-heading--wide > p { color: var(--muted); font-size: 16px; line-height: 1.75; margin: 0 0 5px; }
.feed-demo { background: white; border: 1px solid var(--line); border-radius: 18px; margin-top: 48px; overflow: hidden; padding: 25px; }
.feed-demo img { width: 100%; }

.install-section { display: grid; gap: 60px; grid-template-columns: 0.8fr 1.2fr; }
.install-copy > p:not(.eyebrow) { color: var(--muted); font-size: 16px; line-height: 1.75; margin: 24px 0 16px; }
.install-copy > a { color: var(--blue); font-size: 14px; font-weight: 700; text-decoration: none; }
.install-steps { list-style: none; margin: 0; padding: 0; }
.install-steps li { border-top: 1px solid var(--line); display: grid; gap: 20px; grid-template-columns: 42px 1fr; padding: 20px 0; }
.install-steps li:last-child { border-bottom: 1px solid var(--line); }
.install-steps li > span { align-items: center; background: var(--ink); border-radius: 9px; color: var(--mint); display: flex; font: 760 13px/1 var(--mono); height: 34px; justify-content: center; width: 34px; }
.install-steps strong { font-size: 16px; }
.install-steps p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 6px 0 0; }
code { background: white; border: 1px solid var(--line); border-radius: 5px; font: 12px/1.4 var(--mono); padding: 2px 5px; }
.wide-download { align-items: center; background: var(--blue); border-radius: 12px; color: white; display: flex; font-size: 16px; font-weight: 750; grid-column: 1 / -1; justify-content: space-between; padding: 17px 19px; text-decoration: none; }
.wide-download i { color: #dfe6ff; font: normal 13px/1 var(--mono); }
.store-note { color: var(--muted); font-size: 13px; grid-column: 1 / -1; line-height: 1.6; margin: -42px 0 0; padding-top: 56px; }

.privacy-section { border-top: 1px solid var(--line); display: grid; gap: 62px; grid-template-columns: 0.75fr 1.25fr; }
.privacy-list { display: grid; gap: 0; grid-template-columns: 1fr 1fr; }
.privacy-list article { border-left: 1px solid var(--line); border-top: 1px solid var(--line); min-height: 145px; padding: 20px; }
.privacy-list article:nth-child(-n+2) { border-top: 0; }
.privacy-list span { color: var(--blue); display: block; font: 760 12px/1 var(--mono); margin-bottom: 22px; }
.privacy-list p { font-size: 14px; line-height: 1.65; margin: 0; }
.privacy-link { color: var(--blue); font-size: 14px; font-weight: 700; grid-column: 2; justify-self: start; margin-top: -40px; text-decoration: none; }

.final-cta { background: var(--ink); color: white; margin-top: 50px; padding: 96px max(24px, calc((100vw - 1152px) / 2)); text-align: center; }
.final-cta .eyebrow { color: var(--mint); }
.final-cta h2 { font-size: clamp(52px, 6vw, 82px); line-height: 0.98; margin: 0 auto 34px; }
.primary-button--light { background: white; color: var(--ink); }
.primary-button--light:hover { background: #edf2f5; }

footer { align-items: center; display: grid; font-size: 13px; grid-template-columns: 1fr auto 1fr; margin: 0 auto; max-width: 1200px; min-height: 100px; padding: 20px 24px; }
.footer-brand { align-items: center; display: flex; gap: 9px; }
.footer-brand img { border-radius: 8px; }
footer > p { color: var(--muted); }
footer > div:last-child { display: flex; gap: 20px; justify-self: end; }
footer a { text-decoration: none; }
footer span { color: var(--muted); }

.legal-page { background: var(--paper); }
.legal-page .site-header { grid-template-columns: 1fr 1fr; }
.legal-shell { margin: 0 auto; max-width: 800px; padding: 90px 24px 120px; }
.legal-shell h1 { font-size: clamp(48px, 6vw, 72px); line-height: 1; margin: 0; }
.legal-date { color: var(--muted); font: 13px/1.5 var(--mono); margin: 20px 0 54px; }
.legal-shell section { border-top: 1px solid var(--line); padding: 25px 0; }
.legal-shell h2 { font-size: 19px; margin: 0 0 10px; }
.legal-shell section p { color: var(--muted); font-size: 16px; line-height: 1.8; margin: 0; }
.legal-back { color: var(--blue); display: inline-block; font-size: 15px; font-weight: 700; margin-top: 30px; text-decoration: none; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-product { min-height: 520px; }
  .architecture { gap: 12px; grid-template-columns: 1fr; }
  .flow-arrow { flex-direction: row; gap: 12px; padding: 8px 0; }
  .flow-arrow i { margin: 0; transform: rotate(90deg); }
  .install-section { grid-template-columns: 1fr; }
  .wide-download,
  .store-note { grid-column: auto; }
  .store-note { margin: -44px 0 0; }
}

@media (max-width: 700px) {
  .site-header { height: 64px; padding: 0 15px; }
  .header-download { font-size: 13px; padding: 9px 11px; }
  .language-link { padding: 10px 9px; }
  .hero { gap: 38px; min-height: 0; padding: 60px 18px 58px; }
  .hero h1 { font-size: 48px; }
  .hero-lead { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .primary-button { width: 100%; }
  .secondary-link { align-self: flex-start; }
  .hero-product { min-height: 330px; padding: 13px; }
  .product-caption { padding-top: 9px; }
  .popup-shot { bottom: 18px; right: 18px; width: 40%; }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip article { border-left: 0; border-top: 1px solid var(--line); min-height: 0; }
  .proof-strip article:first-child { border-top: 0; }
  .section { padding: 84px 18px; }
  .section-heading h2,
  .install-copy h2,
  .privacy-copy h2 { font-size: 44px; }
  .section-heading--wide,
  .privacy-section { gap: 30px; grid-template-columns: 1fr; }
  .feed-demo { margin-top: 30px; padding: 10px; }
  .architecture { margin-top: 34px; }
  .architecture-note { align-items: flex-start; flex-direction: column; gap: 7px; }
  .privacy-list { grid-template-columns: 1fr; }
  .privacy-list article { border-left: 0; border-top: 1px solid var(--line) !important; min-height: 0; padding: 18px 0; }
  .privacy-list article:first-child { border-top: 0 !important; }
  .privacy-link { grid-column: 1; margin: 0; }
  .final-cta { padding: 78px 18px; }
  .final-cta h2 { font-size: 52px; }
  footer { gap: 14px; grid-template-columns: 1fr; padding: 28px 18px; }
  footer > p { margin: 0; }
  footer > div:last-child { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .primary-button { transition: none; }
}
