:root {
  --ink: #17233d;
  --muted: #5f6d83;
  --soft: #f5f7fb;
  --surface: #ffffff;
  --line: #dfe5ef;
  --blue: #225fd6;
  --blue-dark: #1749ac;
  --blue-soft: #edf3ff;
  --green: #18775b;
  --green-soft: #e9f7f1;
  --amber: #9a5b13;
  --amber-soft: #fff7e8;
  --navy: #172644;
  --shadow: 0 24px 60px rgba(29, 47, 82, .12);
  --radius-lg: 24px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 10px 14px;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 0 5vw;
  background: rgba(245, 247, 251, .9);
  border-bottom: 1px solid rgba(214, 222, 235, .82);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--blue);
  border-radius: 10px;
  font-size: 15px;
}

.brand-mark svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; }

nav { display: flex; gap: 28px; }
nav a, .header-link { color: #47566d; font-size: 14px; font-weight: 600; text-decoration: none; }
nav a:hover, .header-link:hover { color: var(--blue); }
.header-link { justify-self: end; padding: 9px 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(470px, .98fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  min-height: calc(100vh - 72px);
  max-width: 1440px;
  margin: 0 auto;
  padding: 84px 5vw 96px;
  overflow: hidden;
}

.eyebrow, .kicker {
  margin: 0 0 16px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; background: var(--blue-soft); border-radius: 999px; }
.status-dot { width: 8px; height: 8px; background: #2ca67e; border-radius: 50%; box-shadow: 0 0 0 4px rgba(44, 166, 126, .12); }

h1, h2, h3, p { text-wrap: pretty; }
h1 { max-width: 760px; margin: 22px 0 24px; font-size: clamp(44px, 5.2vw, 76px); line-height: 1.04; letter-spacing: -.055em; }
h1 span { color: var(--blue); }
.hero-lead { max-width: 650px; margin: 0; color: var(--muted); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 11px; font-size: 15px; font-weight: 700; text-decoration: none; }
.button.primary { color: #fff; background: var(--blue); box-shadow: 0 10px 24px rgba(34, 95, 214, .24); }
.button.primary:hover { background: var(--blue-dark); }
.button.secondary { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.hero-note { max-width: 620px; margin: 0; padding-left: 14px; color: #647188; border-left: 3px solid #dfad5b; font-size: 14px; }

.app-preview {
  display: grid;
  grid-template-columns: 145px 1fr;
  min-height: 490px;
  background: #fff;
  border: 1px solid #d8e0ed;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transform: perspective(1400px) rotateY(-4deg) rotateX(1deg);
  overflow: hidden;
}

.preview-sidebar { display: flex; flex-direction: column; padding: 28px 16px 18px; color: #526077; background: #f8f9fc; border-right: 1px solid #e4e9f1; font-size: 11px; }
.preview-logo { margin: 0 8px 32px; color: var(--ink); font-size: 16px; font-weight: 750; }
.preview-sidebar > span { margin-bottom: 5px; padding: 9px 10px; border-radius: 6px; }
.preview-sidebar .active { color: var(--blue); background: #e9efff; font-weight: 700; }
.preview-sidebar small { margin: auto 8px 0; color: var(--green); }
.preview-main { padding: 38px 32px; }
.preview-heading { display: flex; align-items: start; justify-content: space-between; }
.preview-heading div { display: flex; flex-direction: column; gap: 4px; }
.preview-heading small { color: #6b788d; }
.preview-heading strong { font-size: 23px; }
.chip { display: inline-flex; align-items: center; width: fit-content; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 750; }
.chip.ready, .chip.green { color: var(--green); background: var(--green-soft); }
.chip.blue { color: var(--blue); background: var(--blue-soft); }
.preview-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0 22px; }
.preview-card { display: flex; flex-direction: column; min-height: 160px; padding: 20px; border: 1px solid #cbd8ed; border-radius: 12px; }
.preview-card.share { background: #f7f9ff; }
.preview-card.backup { background: #f3f7ff; }
.preview-card strong { margin-top: auto; font-size: 14px; }
.preview-card small { color: #6b788d; }
.preview-icon { display: grid; place-items: center; width: 35px; height: 35px; color: var(--blue); background: #e2eaff; border-radius: 9px; font-weight: 700; }
.preview-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.preview-summary div { display: flex; flex-direction: column; min-height: 82px; padding: 14px; border: 1px solid #e4e8ef; border-radius: 10px; }
.preview-summary b { font-size: 19px; }
.preview-summary small { margin-top: auto; color: #68758a; font-size: 9px; line-height: 1.3; }

.section, .status-section, .limits-section { padding: 110px max(5vw, calc((100vw - 1280px) / 2)); }
.section { background: #fff; }
.section-heading { max-width: 760px; margin-bottom: 50px; }
.section-heading.compact { margin-bottom: 34px; }
.section-heading h2, .limits-heading h2 { margin: 0 0 16px; font-size: clamp(32px, 3.8vw, 50px); line-height: 1.1; letter-spacing: -.04em; }
.section-heading > p:not(.kicker), .limits-heading p { color: var(--muted); font-size: 18px; }

.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mode-card { padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.mode-card.shared-mode { background: linear-gradient(145deg, #fff 0%, #f5f8ff 100%); }
.mode-card.backup-mode { background: linear-gradient(145deg, #fff 0%, #f2faf7 100%); }
.mode-top { display: flex; align-items: center; justify-content: space-between; }
.mode-icon { display: grid; place-items: center; width: 50px; height: 50px; color: var(--blue); background: var(--blue-soft); border-radius: 14px; font-size: 22px; }
.backup-mode .mode-icon { color: var(--green); background: var(--green-soft); }
.mode-card h3 { margin: 28px 0 10px; font-size: 29px; letter-spacing: -.03em; }
.mode-card > p { min-height: 52px; margin: 0 0 24px; color: var(--muted); }
.feature-list { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.feature-list li { position: relative; padding-left: 26px; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; color: var(--blue); font-weight: 800; }
.backup-mode .feature-list li::before { color: var(--green); }
.visibility { display: flex; gap: 13px; align-items: flex-start; margin-top: 32px; padding: 17px 18px; border-radius: 13px; }
.visibility.visible { color: #2352a0; background: #eaf1ff; }
.visibility.private { color: #17684f; background: #e5f5ef; }
.visibility div { display: flex; flex-direction: column; }
.visibility small { color: inherit; opacity: .75; }

.status-section { background: var(--navy); color: #fff; }
.status-section .kicker { color: #8db2ff; }
.status-section .section-heading > p:not(.kicker) { color: #aab6cc; }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.status-column { padding: 30px; border: 1px solid rgba(255,255,255,.11); border-radius: var(--radius-md); background: rgba(255,255,255,.055); }
.status-column h3 { display: flex; gap: 10px; align-items: center; margin: 0 0 22px; font-size: 18px; }
.status-column h3 span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.verified h3 span { color: #77d9b7; background: rgba(57, 179, 137, .16); }
.pending h3 span { color: #f0c681; background: rgba(229, 164, 65, .14); }
.status-column ul { display: grid; gap: 13px; margin: 0; padding-left: 20px; color: #c0cadc; }

.setup-section { background: #f7f9fc; }
.setup-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.requirements h3 { margin: 0 0 24px; font-size: 22px; }
.steps { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 15px; align-items: flex-start; }
.steps li > span { display: grid; place-items: center; flex: 0 0 34px; height: 34px; color: var(--blue); background: var(--blue-soft); border-radius: 10px; font-weight: 800; }
.steps li div { display: flex; flex-direction: column; }
.steps small { color: var(--muted); }
.command-panel { overflow: hidden; color: #dbe5f8; background: #15233f; border: 1px solid #243658; border-radius: 16px; box-shadow: 0 22px 46px rgba(25, 38, 67, .18); }
.command-title { display: flex; justify-content: space-between; padding: 12px 18px; color: #8fa2c3; background: #1c2d4d; border-bottom: 1px solid #2b3c5c; font-size: 12px; }
pre { margin: 0; padding: 24px; overflow-x: auto; }
code { font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace; font-size: 13px; line-height: 2; }
.prompt { color: #78d9b8; }
.command-panel p { margin: 0; padding: 0 24px 22px; color: #9eacc3; font-size: 13px; }
.install-panel { padding: clamp(28px, 4vw, 42px); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 42px rgba(29, 47, 82, .1); }
.install-panel h3 { margin: 20px 0 8px; font-size: 28px; letter-spacing: -.03em; }
.install-panel > p { margin: 0 0 24px; color: var(--muted); }
.install-button { width: 100%; }
.checksum-link { display: block; margin: 15px 0 0; color: var(--blue-dark); font-size: 13px; font-weight: 650; text-align: center; }
.trust-note { display: flex; flex-direction: column; gap: 5px; margin-top: 24px; padding: 16px; color: #6d5739; background: var(--amber-soft); border: 1px solid #ecd8b6; border-radius: 12px; font-size: 13px; }
.lifecycle-note { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.lifecycle-note > div { display: flex; flex-direction: column; gap: 7px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.lifecycle-note span { color: var(--muted); font-size: 14px; }
.lifecycle-note code { color: var(--ink); font-size: inherit; }

.limits-section { background: var(--amber-soft); border-top: 1px solid #efdfc3; border-bottom: 1px solid #efdfc3; }
.limits-heading { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; max-width: 920px; margin-bottom: 44px; }
.warning-mark { display: grid; place-items: center; width: 50px; height: 50px; color: #fff; background: var(--amber); border-radius: 15px; font-size: 23px; font-weight: 800; }
.limits-heading .kicker { color: var(--amber); }
.limits-heading p { margin: 0; }
.limits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.limits-grid article { padding: 23px; background: rgba(255,255,255,.68); border: 1px solid #ead8ba; border-radius: 14px; }
.limits-grid h3 { margin: 0 0 8px; font-size: 16px; }
.limits-grid p { margin: 0; color: #6f604b; font-size: 14px; }

.docs-section { background: #fff; }
.doc-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.doc-links a { display: flex; flex-direction: column; min-height: 130px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.doc-links a:hover { border-color: #afc3e8; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(31, 54, 94, .08); }
.doc-links span { font-weight: 750; }
.doc-links small { margin-top: auto; color: var(--muted); }

footer { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: 24px; padding: 32px 5vw; color: #9eabc0; background: #111c31; font-size: 13px; }
.footer-brand { color: #fff; }
.footer-brand .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
footer p { margin: 0; text-align: center; }
footer > a { justify-self: end; color: #cbd5e6; }

:focus-visible { outline: 3px solid #86aefb; outline-offset: 3px; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { max-width: 820px; }
  .app-preview { max-width: 720px; transform: none; }
  .limits-grid { grid-template-columns: repeat(2, 1fr); }
  .doc-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .site-header { min-height: 62px; padding: 0 20px; }
  .header-link { padding: 7px 11px; }
  .hero { padding: 62px 20px 72px; }
  h1 { font-size: clamp(39px, 12vw, 58px); }
  .app-preview { grid-template-columns: 1fr; min-height: auto; }
  .preview-sidebar { display: none; }
  .preview-main { padding: 28px 20px; }
  .preview-actions, .mode-grid, .status-grid, .setup-grid, .limits-grid, .doc-links, .lifecycle-note { grid-template-columns: 1fr; }
  .preview-summary { grid-template-columns: repeat(3, 1fr); }
  .section, .status-section, .limits-section { padding: 76px 20px; }
  .mode-card > p { min-height: 0; }
  .limits-heading { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; text-align: left; }
  footer p { text-align: left; }
  footer > a { justify-self: start; }
}

@media (max-width: 430px) {
  .brand { font-size: 16px; }
  .brand-mark { width: 31px; height: 31px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .preview-actions { grid-template-columns: 1fr; }
  .preview-summary { grid-template-columns: 1fr; }
  .preview-summary div { min-height: 58px; }
  pre { padding: 20px 16px; }
  code { font-size: 12px; }
}

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