:root {
  color-scheme: light;
  --canvas: #f5f6fb;
  --paper: #ffffff;
  --tile: #edf2ff;
  --track: #dfeafd;
  --line: #e1e8f2;
  --ink: #0b1c30;
  --muted: #535f73;
  --slate: #132438;
  --slate-deep: #0b1c30;
  --slate-card: #1d3047;
  --on-slate: #f8fafc;
  --slate-muted: #b3c2d4;
  --tint: #006c49;
  --tint-hover: #00583b;
  --mint: #6ffbbe;
  --amber: #ffb95f;
  --amber-ink: #855300;
  --amber-tile: #f9edd6;
  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 1.75rem;
  --shadow-card: 0 1px 2px rgb(11 28 48 / 0.04), 0 12px 32px rgb(11 28 48 / 0.06);
  --shadow-float: 0 22px 54px rgb(11 28 48 / 0.16);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--tint);
  text-underline-offset: 0.22em;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--tint);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2rem, 70rem);
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 2rem, 48rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(245 246 251 / 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-block-end: 1px solid rgb(11 28 48 / 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

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

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgb(11 28 48 / 0.14);
}

.brand-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--tint);
  background: rgb(0 108 73 / 0.1);
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: rgb(11 28 48 / 0.05);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.nav-cta:hover {
  background: var(--tint);
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 4.75rem) clamp(3rem, 7vw, 5.25rem);
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -12rem -10% auto;
  height: 34rem;
  background:
    radial-gradient(45% 65% at 18% 40%, rgb(111 251 190 / 0.22), transparent 72%),
    radial-gradient(42% 65% at 84% 35%, rgb(0 108 73 / 0.12), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--tint);
  box-shadow: 0 2px 10px rgb(11 28 48 / 0.04);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tint);
  box-shadow: 0 0 0 4px rgb(111 251 190 / 0.45);
}

.hero h1 {
  margin: 1.15rem 0 1rem;
  font-size: clamp(2.25rem, 5.2vw, 3.65rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero h1 .accent {
  color: var(--tint);
}

.hero-lead {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.14rem);
  color: var(--muted);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-block-start: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary {
  background: var(--tint);
  color: #fff;
  box-shadow: 0 10px 24px rgb(0 108 73 / 0.24);
}

.btn-primary:hover {
  background: var(--tint-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  background: var(--tile);
  transform: translateY(-1px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.4rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-meta li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tint);
}

/* Interactive Live Ticker + Phone Showcase */
.hero-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 1.15rem;
  align-items: center;
}

@media (max-width: 580px) {
  .hero-visual {
    grid-template-columns: 1fr;
  }
}

.ticker-card {
  background: linear-gradient(155deg, var(--slate) 0%, var(--slate-deep) 100%);
  color: var(--on-slate);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-float);
  border: 1px solid rgb(255 255 255 / 0.08);
}

.ticker-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mint);
  background: rgb(111 251 190 / 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
}

@media (prefers-reduced-motion: no-preference) {
  .pulse-dot {
    animation: pulse 2s ease-in-out infinite;
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.privacy-toggle {
  appearance: none;
  border: 1px solid rgb(255 255 255 / 0.14);
  background: rgb(255 255 255 / 0.07);
  color: var(--on-slate);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.68rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.privacy-toggle:hover {
  background: rgb(255 255 255 / 0.14);
}

.ticker-label {
  margin: 1.25rem 0 0.25rem;
  font-size: 0.84rem;
  color: var(--slate-muted);
}

.ticker-amount {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.ticker-sub {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  color: var(--slate-muted);
  font-variant-numeric: tabular-nums;
}

.ticker-progress {
  margin-block-start: 1.15rem;
}

.progress-track {
  height: 7px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 64%;
  border-radius: 999px;
  background: linear-gradient(90deg, #27aa7c, var(--mint));
  transition: width 0.4s ease;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-block-start: 0.45rem;
  font-size: 0.76rem;
  color: var(--slate-muted);
  font-variant-numeric: tabular-nums;
}

.salary-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-block-start: 1.1rem;
  padding-block-start: 1rem;
  border-block-start: 1px solid rgb(255 255 255 / 0.09);
}

.preset-btn {
  appearance: none;
  border: 1px solid rgb(255 255 255 / 0.14);
  background: transparent;
  color: var(--slate-muted);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.preset-btn[aria-pressed="true"] {
  background: var(--mint);
  color: var(--ink);
  border-color: var(--mint);
}

.hero-phone {
  border-radius: 26px;
  padding: 6px;
  background: var(--ink);
  box-shadow: var(--shadow-float);
  max-width: 220px;
  margin-inline: auto;
}

.hero-phone img {
  border-radius: 21px;
  width: 100%;
}

/* Sections */
.section {
  padding-block: clamp(3rem, 7vw, 5.25rem);
}

.section-head {
  max-width: 40rem;
  margin-block-end: clamp(1.75rem, 4vw, 2.75rem);
}

.section-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--tint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3.6vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.section-head p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

/* Feature Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--tile);
  color: var(--tint);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin-block-end: 0.25rem;
}

.feature-card.highlight {
  background: linear-gradient(155deg, var(--slate) 0%, var(--slate-deep) 100%);
  color: var(--on-slate);
  border-color: transparent;
}

.feature-card.highlight .feature-icon {
  background: rgb(111 251 190 / 0.14);
  color: var(--mint);
}

.feature-card.highlight p {
  color: var(--slate-muted);
}

.feature-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
}

.feature-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--muted);
}

/* Showcase */
.showcase-mac {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-block-end: 1.25rem;
}

@media (max-width: 780px) {
  .showcase-mac {
    grid-template-columns: 1fr;
  }
}

.shot-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  box-shadow: var(--shadow-card);
}

.shot-card img {
  border-radius: var(--radius-sm);
  border: 1px solid rgb(11 28 48 / 0.06);
  width: 100%;
}

.shot-caption {
  margin-block-start: 0.85rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.shot-caption strong {
  font-size: 0.96rem;
}

.shot-caption span {
  font-size: 0.83rem;
  color: var(--muted);
}

.showcase-ios {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 880px) {
  .showcase-ios {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ios-shot {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.ios-shot img {
  border-radius: 16px;
  border: 1px solid rgb(11 28 48 / 0.06);
  margin-inline: auto;
}

.ios-shot p {
  margin: 0.7rem 0 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.25rem 1.35rem;
  box-shadow: var(--shadow-card);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.05rem;
  font-weight: 600;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--tint);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(145deg, var(--slate) 0%, var(--slate-deep) 100%);
  color: var(--on-slate);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.25rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-float);
}

.cta-banner h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  line-height: 1.22;
}

.cta-banner p {
  margin: 0.55rem 0 0;
  color: var(--slate-muted);
  max-width: 34rem;
}

.cta-banner .btn-primary {
  background: var(--mint);
  color: var(--ink);
  box-shadow: none;
}

.cta-banner .btn-primary:hover {
  background: #8dffcb;
}

/* Footer */
.site-footer {
  border-block-start: 1px solid var(--line);
  padding-block: 2rem 2.75rem;
  margin-block-start: 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--tint);
}

/* Document pages (Privacy / Support) */
.doc-main {
  padding-block: clamp(1.75rem, 5vw, 3.25rem);
}

.doc-article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 5vw, 2.75rem);
  box-shadow: var(--shadow-card);
}

.doc-article h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.65rem, 4.2vw, 2.15rem);
  line-height: 1.25;
}

.doc-article h2 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.35;
}

.doc-article section {
  margin-block-start: 1.5rem;
  padding-block-start: 1.3rem;
  border-block-start: 1px solid var(--line);
}

.doc-article p {
  margin: 0.55rem 0 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.doc-article .muted {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Progressive-enhancement scroll reveal (modern-web-guidance: scroll-entry-exit-effects) */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes card-reveal {
      from {
        opacity: 0.25;
        transform: translateY(18px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .reveal {
      animation: card-reveal auto linear backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}
