:root {
  color-scheme: light;
  --ink: #12223b;
  --muted: #526178;
  --line: #dce4ef;
  --paper: #f5f8fc;
  --white: #ffffff;
  --blue: #087bea;
  --blue-dark: #075fbd;
  --mint: #dff8ee;
  --mint-ink: #176448;
  --shadow: 0 16px 45px rgba(30, 55, 88, 0.09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--blue-dark); }

.site-header {
  border-bottom: 1px solid rgba(220, 228, 239, 0.9);
  background: rgba(255,255,255,0.92);
}

.nav {
  width: min(1100px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: -0.04em;
}

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--muted); font-size: 0.94rem; font-weight: 640; text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--blue-dark); }

main { min-height: calc(100vh - 220px); }

.hero,
.page-head,
.content-wrap {
  width: min(1100px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  padding: 96px 0 68px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 72px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 780;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.13; letter-spacing: -0.04em; }
h1 { max-width: 780px; margin: 0; font-size: clamp(2.6rem, 6.5vw, 5.4rem); }
h2 { margin: 0 0 14px; font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { margin: 0 0 8px; font-size: 1.12rem; }

.lede { max-width: 670px; margin: 24px 0 0; color: var(--muted); font-size: 1.18rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.button {
  min-height: 48px;
  padding: 11px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blue);
  border-radius: 13px;
  background: var(--blue);
  color: var(--white);
  font-weight: 720;
  text-decoration: none;
}

.button:hover, .button:focus-visible { background: var(--blue-dark); border-color: var(--blue-dark); }
.button.secondary { border-color: var(--line); background: var(--white); color: var(--ink); }

.ratio-board {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ratio-board::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--blue) 0 36%, #45b9ff 36% 63%, #33c695 63%);
}

.ratio-row { display: flex; justify-content: space-between; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ratio-row:last-child { border: 0; padding-bottom: 0; }
.ratio-row small { display: block; color: var(--muted); font-size: 0.78rem; }
.ratio-value { color: var(--blue); font-size: 1.45rem; font-weight: 820; letter-spacing: -0.04em; }
.status-pill { align-self: center; padding: 5px 10px; border-radius: 999px; background: var(--mint); color: var(--mint-ink); font-size: 0.8rem; font-weight: 760; }

.section { width: min(1100px, calc(100% - 40px)); margin: 0 auto; padding: 58px 0 80px; }
.section-intro { max-width: 650px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.cards-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: 0 8px 28px rgba(30,55,88,.05); }
.card p { margin: 8px 0 0; color: var(--muted); }
.card-link { display: inline-block; margin-top: 20px; font-weight: 720; text-decoration: none; }
.tag { display: inline-block; margin-bottom: 18px; padding: 5px 10px; border-radius: 999px; background: #e8f3ff; color: var(--blue-dark); font-size: 0.78rem; font-weight: 750; }
.section-action { margin: 28px 0 0; }

.page-head { padding: 78px 0 42px; }
.page-head h1 { max-width: 850px; font-size: clamp(2.5rem, 5vw, 4.5rem); }
.content-wrap { padding: 0 0 90px; display: grid; grid-template-columns: minmax(0, 720px); }
.product-layout { width: min(1100px, calc(100% - 40px)); margin: 0 auto; padding: 0 0 72px; display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 22px; align-items: start; }
.prose { padding: clamp(24px, 5vw, 46px); border: 1px solid var(--line); border-radius: 24px; background: var(--white); box-shadow: var(--shadow); }
.prose h2 { margin-top: 36px; font-size: 1.45rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { color: #34445b; }
.prose li + li { margin-top: 8px; }
.notice { margin: 28px 0 0; padding: 18px 20px; border-left: 4px solid var(--blue); border-radius: 4px 12px 12px 4px; background: #eef6ff; }
.contact { display: inline-block; margin-top: 8px; font-size: 1.12rem; font-weight: 760; }

.product-summary { position: sticky; top: 24px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: 0 8px 28px rgba(30,55,88,.05); }
.product-summary h2 { font-size: 1.4rem; }
.product-summary dl { margin: 20px 0 0; }
.product-summary dl div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.product-summary dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.product-summary dt { color: var(--muted); font-size: .82rem; }
.product-summary dd { margin: 2px 0 0; font-weight: 720; }

.screens-section { width: min(1100px, calc(100% - 40px)); margin: 0 auto; padding: 12px 0 96px; }
.section-heading { max-width: 700px; margin-bottom: 28px; }
.section-heading > p:last-child { color: var(--muted); }
.screens-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.app-screen { margin: 0; }
.screen-frame { padding: 10px; border: 1px solid var(--line); border-radius: 28px; background: #101826; box-shadow: var(--shadow); overflow: hidden; }
.screen-frame img { display: block; width: 100%; height: auto; border-radius: 19px; }
.app-screen figcaption { margin-top: 12px; color: var(--muted); font-size: .9rem; }

.site-footer { padding: 30px 0 44px; border-top: 1px solid var(--line); }
.footer-inner { width: min(1100px, calc(100% - 40px)); margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 0.88rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); }

@media (max-width: 760px) {
  .nav { padding: 14px 0; align-items: flex-start; }
  .nav-links { gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
  .nav-links a { font-size: 0.84rem; }
  .hero { padding-top: 60px; grid-template-columns: 1fr; gap: 40px; }
  .cards, .cards-three, .product-layout, .screens-grid { grid-template-columns: 1fr; }
  .product-summary { position: static; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .nav { width: min(100% - 28px, 1100px); }
  .brand span:last-child { display: none; }
  .hero, .section, .page-head, .content-wrap, .product-layout, .screens-section, .footer-inner { width: min(100% - 28px, 1100px); }
  .hero { padding-top: 46px; }
  .ratio-board { padding: 22px; }
  .prose { padding: 24px 20px; border-radius: 18px; }
}

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