:root {
  color-scheme: light;
  --navy: #0e253b;
  --ink: #122a40;
  --muted: #486174;
  --sky: #9ad4ff;
  --blue: #205995;
  --line: #d8e3ed;
  --paper: #f2f7fb;
  font-family: "Inter", "Avenir Next", Avenir, system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
button { font: inherit; }
a { color: inherit; text-underline-offset: .22em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #448fe0; outline-offset: 4px; }
section[id], #demo { scroll-margin-top: 2rem; }
.frame { width: min(1184px, calc(100% - 96px)); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 2;
  inset: 1rem auto auto 1rem;
  transform: translateY(-200%);
  padding: .75rem 1rem;
  background: white;
  color: var(--ink);
}
.skip-link:focus { transform: none; }
.header-shell, .hero-shell { color: white; background: var(--navy); }
.header-shell { border-bottom: 1px solid #2c4358; }
.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: 1.075rem;
  font-weight: 750;
  letter-spacing: -.035em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  position: relative;
  display: inline-block;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--sky);
  color: var(--navy);
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 9px 9px 11px;
  border: 2px solid currentColor;
  border-radius: 12px 12px 2px 2px;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 23px 7px auto;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.site-header nav { display: flex; align-items: center; gap: clamp(.65rem, 2vw, 1.7rem); }
.site-header nav a { color: #d4e3ef; text-decoration: none; font-size: .9375rem; font-weight: 600; }
.site-header nav a:hover { color: white; }
.site-header .nav-button {
  padding: .65rem .9rem;
  border: 1px solid #526a80;
  border-radius: 8px;
  color: white;
}
.site-header .nav-button:hover { background: #203b53; }
.site-header .language-select {
  --language-text: var(--sky);
  --language-border: #526a80;
  --language-background: var(--navy);
  --language-hover: #203b53;
}

.hero {
  display: grid;
  grid-template-columns: 1fr .97fr;
  align-items: center;
  column-gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3rem, 6vw, 5.5rem);
}
.eyebrow {
  font-size: .875rem;
  font-weight: 750;
  line-height: 1.45;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--blue);
}
.hero .eyebrow, .owner .eyebrow { color: var(--sky); }
.hero h1 {
  margin-top: 1.1rem;
  font-size: clamp(3.15rem, 5.5vw, 5.1rem);
  line-height: 1.035;
  font-weight: 750;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.hero h1 em { color: var(--sky); font-style: normal; }
:root[lang="zh-Hant"] .hero h1 {
  max-width: none;
  font-size: clamp(2.45rem, 4.7vw, 4.6rem);
  line-height: 1.22;
  letter-spacing: .015em;
}
:root[lang="zh-Hant"] .hero h1 em { display: block; }
:root[lang="zh-Hant"] h2 { line-height: 1.25; letter-spacing: -.025em; }
.hero-description {
  max-width: 33ch;
  margin-top: 1.35rem;
  color: #cfdfec;
  font-size: clamp(1.0625rem, 1.65vw, 1.25rem);
  line-height: 1.65;
}
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.15rem;
  border-radius: 8px;
  font-weight: 750;
  text-decoration: none;
}
.button-light { margin-top: 1.6rem; background: var(--sky); color: var(--navy); }
.button-light:hover { background: #c0e6ff; }
.hero-visual {
  position: relative;
  min-width: 0;
  aspect-ratio: 1.15;
  isolation: isolate;
  border: 1px solid #48627a;
  border-radius: 22px;
  background: #18364d;
}
.hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  border-radius: inherit;
}
.snapshot {
  position: absolute;
  left: -1.3rem;
  bottom: 1.4rem;
  display: flex;
  gap: 1.25rem;
  align-items: end;
  padding: 1rem 1.1rem;
  border: 1px solid #d2e3f1;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 32px #020d1d40;
}
.snapshot-copy { display: grid; gap: .18rem; }
.snapshot span { font-size: .875rem; color: var(--muted); }
.snapshot strong { font-size: 1.65rem; line-height: 1.1; letter-spacing: -.045em; }
.snapshot small { font-size: .75rem; color: var(--muted); }
.spark { display: flex; align-items: end; gap: 4px; height: 36px; }
.spark i { width: 6px; border-radius: 2px; background: #73aee4; }
.spark i:nth-child(1) { height: 42%; }
.spark i:nth-child(2) { height: 53%; }
.spark i:nth-child(3) { height: 48%; }
.spark i:nth-child(4) { height: 64%; }
.spark i:nth-child(5) { height: 87%; }
.spark i:nth-child(6) { height: 100%; }
.spark i:nth-child(7) { height: 78%; background: var(--blue); }

.overview { background: var(--paper); padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-intro { max-width: 700px; margin: 0 auto 2.7rem; text-align: center; }
h2 {
  margin-top: .55rem;
  font-size: clamp(2.1rem, 4.25vw, 3.55rem);
  font-weight: 750;
  letter-spacing: -.055em;
  line-height: 1.1;
  text-wrap: balance;
}
.section-intro > p:last-child {
  max-width: 57ch;
  margin: 1rem auto 0;
  font-size: 1.075rem;
  line-height: 1.7;
  color: var(--muted);
}
.demo.is-interactive { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 1.5rem; }
.demo-rail { padding-top: .8rem; }
.demo-rail .eyebrow { margin: 0 0 .7rem .85rem; }
.demo-tabs { display: grid; gap: .35rem; }
.demo-tabs button {
  min-height: 46px;
  padding: .65rem .85rem;
  text-align: left;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 650;
  cursor: pointer;
}
.demo-tabs button:hover { background: #e7eff8; color: var(--ink); }
.demo-tabs button.is-selected { color: #163b64; background: #dcecff; border-color: #b7d1ed; }
.demo-window {
  min-width: 0;
  background: white;
  border: 1px solid #c5d4e3;
  border-radius: 14px;
  box-shadow: 0 12px 36px #1d3d5f0d;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 50px;
  padding: .55rem 1.2rem;
  border-radius: 13px 13px 0 0;
  background: #17334d;
  color: white;
  font-size: .875rem;
  font-weight: 700;
}
.window-mark { width: 11px; height: 11px; border: 2px solid var(--sky); border-radius: 3px; }
.data-label {
  margin-left: auto;
  padding: .3rem .5rem;
  border: 1px solid #59768e;
  border-radius: 5px;
  color: #d6e7f7;
  font-size: .8125rem;
  font-weight: 600;
}
.demo-panel { padding: clamp(1rem, 2.9vw, 1.75rem); }
.demo-panel + .demo-panel:not([hidden]) { border-top: 1px solid var(--line); }
.is-interactive .demo-panel { min-height: 362px; border-top: 0; }
.panel-heading h3 { font-size: 1.5rem; letter-spacing: -.035em; }
.panel-heading p, .panel-note { margin-top: .4rem; color: var(--muted); line-height: 1.55; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; margin-block: 1.25rem .95rem; }
.metrics > div { display: grid; align-content: space-between; gap: .4rem; padding: .65rem; border: 1px solid var(--line); border-radius: 8px; }
.metrics > div:last-child { background: #eaf3fd; }
.metrics dt { color: var(--muted); font-size: .875rem; line-height: 1.25; }
.metrics dd { font-size: clamp(1rem, 1.6vw, 1.375rem); font-weight: 750; letter-spacing: -.04em; white-space: nowrap; }
.chart { padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 8px; }
.chart h4 { font-size: .875rem; }
.chart-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; padding: 0; margin: .6rem 0 0; list-style: none; }
.chart-bars li {
  display: grid;
  grid-template-rows: 75px auto;
  justify-items: center;
  align-items: end;
  gap: .3rem;
  color: var(--muted);
  font-size: .75rem;
}
.chart-bars li span { width: min(65%, 48px); height: var(--bar); border-radius: 4px 4px 0 0; background: #9ec8ec; }
.chart-bars li:last-child span { background: #3475b9; }
.sample-table { width: 100%; margin-block: 1.25rem; border: 1px solid var(--line); border-spacing: 0; border-radius: 8px; }
.sample-table th, .sample-table td { padding: .75rem .65rem; text-align: left; border-bottom: 1px solid var(--line); }
.sample-table thead th { background: var(--paper); font-size: .875rem; color: var(--muted); }
.sample-table thead th:first-child { border-radius: 7px 0 0; }
.sample-table thead th:last-child { border-radius: 0 7px 0 0; }
.sample-table tbody tr:last-child > * { border-bottom: 0; }
.sample-table tbody th { font-weight: 650; }
.status { display: inline-block; border-radius: 5px; background: #e8f0fe; color: #234f81; padding: .25rem .4rem; font-size: .875rem; font-weight: 650; }
.status-low { background: #fff0d9; color: #734900; }

.plans { padding-block: clamp(3.5rem, 7vw, 6rem); }
.plan-region {
  width: fit-content;
  max-width: 100%;
  padding: 0;
  margin: 0 auto 1.75rem;
  border: 0;
  text-align: center;
}
.plan-region legend { padding: 0; margin: 0 auto .55rem; font-size: .875rem; font-weight: 700; }
.plan-region-options { display: flex; padding: .25rem; gap: .25rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.plan-region-options label { position: relative; cursor: pointer; }
.plan-region-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.plan-region-options span { display: block; min-width: 7rem; padding: .55rem .85rem; border-radius: 6px; font-weight: 650; }
.plan-region-options input:checked + span { color: #fff; background: var(--navy); }
.plan-region-options input:focus-visible + span { outline: 3px solid #448fe0; outline-offset: 2px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.plan-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.plan-card h3 { font-size: 1.35rem; letter-spacing: -.025em; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .45rem; margin-block: .35rem .75rem; }
.plan-price strong { font-size: clamp(1.85rem, 3.9vw, 2.75rem); letter-spacing: -.05em; }
.plan-price span, .plan-card > p:not(.plan-price), .plan-card li { color: var(--muted); line-height: 1.5; }
.plan-card ul { margin: 1rem 0 1.35rem; padding-inline-start: 1.15rem; }
.plan-card li + li { margin-top: .45rem; }
.plan-card li::marker { color: var(--blue); }
.plan-action { margin-top: auto; background: var(--navy); color: white; }
.plan-action:hover { background: var(--blue); }
.workflow { padding-block: clamp(3.5rem, 7vw, 6rem); border-top: 1px solid var(--line); }
.workflow-heading { margin-bottom: 2rem; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.7rem; }
.workflow-grid article { border-top: 2px solid #abc9e6; padding: 1rem 0 0; }
.step-label { color: var(--blue); font-size: .875rem; font-weight: 750; }
.workflow-grid h3 { margin: .5rem 0; font-size: 1.32rem; letter-spacing: -.025em; }
.workflow-grid article > p:last-child { max-width: 32ch; color: var(--muted); line-height: 1.65; }
.owner-panel {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.5rem, 5vw, 3.8rem);
  border-radius: 18px;
  color: white;
  background: var(--navy);
}
.owner-panel h2 { font-size: clamp(1.9rem, 3.7vw, 3.1rem); text-wrap: pretty; }
.owner-copy { display: grid; gap: .8rem; color: #d6e4f0; line-height: 1.65; }
.site-footer { margin-block: .85rem; }
.site-footer > a:last-child { font-size: .9375rem; color: var(--muted); }

@media (max-width: 950px) {
  .frame { width: calc(100% - 64px); }
  .demo.is-interactive { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  .demo-rail { padding-top: 0; }
  .demo-rail .eyebrow { margin-left: 0; }
  .demo-tabs { display: flex; flex-wrap: wrap; }
}

@media (max-width: 720px) {
  .frame { width: calc(100% - 40px); }
  .site-header { flex-wrap: wrap; padding-block: .95rem; }
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .hero h1 { max-width: 12ch; text-wrap: initial; }
  .hero-visual { aspect-ratio: 1.38; }
  .snapshot { left: .85rem; bottom: .85rem; }
  .section-intro { text-align: left; margin-bottom: 1.7rem; }
  .section-intro > p:last-child { margin-left: 0; }
  .plan-grid, .workflow-grid, .owner-panel { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: .75rem; padding-block: .95rem; }
  .site-header nav { gap: .6rem 1rem; flex-wrap: wrap; }
  .site-header nav a { font-size: .875rem; }
  .site-header .nav-button { padding: .45rem .55rem; }
  .hero h1 { font-size: clamp(2.55rem, 11vw, 3.6rem); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics dd { font-size: 1.15rem; }
  .demo-tabs { gap: .2rem; }
  .demo-tabs button { font-size: .875rem; padding-inline: .46rem; }
  .sample-table tbody th, .sample-table td { font-size: .875rem; }
  .sample-table th, .sample-table td { padding-inline: .45rem; }
}

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