:root {
  --cream: #f4efe6;
  --sand: #fbf7f0;
  --paper: rgba(255, 255, 255, 0.82);
  --paper-strong: rgba(255, 255, 255, 0.92);
  --paper-soft: rgba(255, 255, 255, 0.58);
  --line: rgba(12, 110, 106, 0.14);
  --line-strong: rgba(12, 110, 106, 0.22);
  --ink: #183346;
  --ink-soft: #5c6f7b;
  --teal-1: #7ac943;
  --teal-2: #00a99d;
  --teal-3: #54dcc1;
  --teal-4: #e4faf5;
  --warn: #f3b951;
  --danger: #dd6a7b;
  --shadow: 0 25px 70px rgba(21, 41, 54, 0.14);
  --shadow-2: 0 14px 40px rgba(19, 37, 48, 0.09);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
  --font: "Avenir Next", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

html[data-theme="night"] {
  --cream: #0b1620;
  --sand: #12202d;
  --paper: rgba(12, 22, 32, 0.84);
  --paper-strong: rgba(13, 25, 35, 0.92);
  --paper-soft: rgba(255, 255, 255, 0.06);
  --line: rgba(122, 201, 67, 0.14);
  --line-strong: rgba(122, 201, 67, 0.22);
  --ink: #eef6fb;
  --ink-soft: #a7bfcc;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --shadow-2: 0 16px 40px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(122, 201, 67, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(0, 169, 157, 0.16), transparent 32%),
    linear-gradient(180deg, var(--sand), var(--cream));
  min-height: 100vh;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(circle at 16% 18%, rgba(122, 201, 67, 0.16), transparent 26%),
    radial-gradient(circle at 84% 22%, rgba(0, 169, 157, 0.18), transparent 24%),
    radial-gradient(circle at 56% 88%, rgba(0, 169, 157, 0.1), transparent 24%);
}

body::after {
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 38%, transparent 90%);
  opacity: 0.3;
}

html[data-theme="night"] body::after {
  opacity: 0.12;
}

a {
  color: inherit;
}

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

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.topbar-wrap {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 16px 0 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.topbar-wrap.is-scrolled .topbar {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(21, 41, 54, 0.16);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  flex: 0 0 auto;
}

.brand-wordmark {
  height: 32px;
  width: auto;
}

.brand-wordmark.dark {
  display: block;
}

.brand-wordmark.light {
  display: none;
}

html[data-theme="night"] .brand-wordmark.dark {
  display: none;
}

html[data-theme="night"] .brand-wordmark.light {
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.22s ease, background 0.22s ease;
}

.nav a:hover,
.nav a.is-current {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.48);
}

html[data-theme="night"] .nav a:hover,
html[data-theme="night"] .nav a.is-current {
  background: rgba(255, 255, 255, 0.06);
}

.nav-actions,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.button,
.store-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.button:hover,
.store-button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #10323c;
  background: linear-gradient(90deg, var(--teal-1), var(--teal-3));
  border-color: transparent;
  box-shadow: 0 18px 42px rgba(0, 169, 157, 0.22);
}

.button-secondary,
.store-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
}

html[data-theme="night"] .button-secondary,
html[data-theme="night"] .store-button {
  background: rgba(255, 255, 255, 0.05);
}

.store-button {
  justify-content: flex-start;
  min-width: 220px;
}

.store-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.store-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.store-copy small {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
}

.store-copy strong {
  font-size: 16px;
}

.page-shell {
  padding: 22px 0 42px;
}

.hero-card,
.surface,
.footer-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at top right, rgba(0, 169, 157, 0.1), transparent 28%),
    radial-gradient(circle at top left, rgba(122, 201, 67, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.32)),
    var(--paper);
}

html[data-theme="night"] .hero-card,
html[data-theme="night"] .surface,
html[data-theme="night"] .footer-card {
  background:
    radial-gradient(circle at top right, rgba(0, 169, 157, 0.12), transparent 28%),
    radial-gradient(circle at top left, rgba(122, 201, 67, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    var(--paper);
}

.hero-card {
  padding: 34px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 24px;
  align-items: end;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.46);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

html[data-theme="night"] .eyebrow,
html[data-theme="night"] .section-label {
  background: rgba(255, 255, 255, 0.04);
}

.eyebrow-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal-2), var(--teal-3));
  box-shadow: 0 0 0 7px rgba(0, 169, 157, 0.1);
}

.hero-card h1 {
  margin: 18px 0 12px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  max-width: 760px;
}

.hero-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.7;
  max-width: 780px;
}

.hero-meta,
.pill-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.chip,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

html[data-theme="night"] .chip,
html[data-theme="night"] .pill {
  background: rgba(255, 255, 255, 0.04);
}

.hero-side {
  display: grid;
  gap: 14px;
}

.stat-card,
.mini-card,
.summary-card,
.info-card,
.quick-card,
.plan-card,
.faq-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: var(--shadow-2);
}

html[data-theme="night"] .stat-card,
html[data-theme="night"] .mini-card,
html[data-theme="night"] .summary-card,
html[data-theme="night"] .info-card,
html[data-theme="night"] .quick-card,
html[data-theme="night"] .plan-card,
html[data-theme="night"] .faq-card {
  background: rgba(255, 255, 255, 0.04);
}

.stat-card,
.summary-card,
.quick-card,
.plan-card,
.faq-card {
  padding: 22px;
}

.stat-card strong,
.summary-card strong,
.quick-card strong,
.plan-card strong,
.faq-card strong {
  display: block;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.stat-card p,
.summary-card p,
.quick-card p,
.plan-card p,
.faq-card p,
.mini-card p,
.info-card p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.summary-card ul,
.content-card ul,
.plan-list,
.detail-list,
.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  margin-top: 22px;
}

.content-stack {
  display: grid;
  gap: 18px;
}

.content-card,
.toc-card,
.support-panel,
.pricing-panel,
.download-panel {
  padding: 24px;
}

.content-card h2,
.pricing-panel h2,
.support-panel h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.content-card h3,
.support-panel h3,
.toc-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.content-card p,
.toc-card p,
.pricing-panel p,
.support-panel p,
.download-panel p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.content-section + .content-section {
  margin-top: 24px;
}

.content-section h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.content-section p + p {
  margin-top: 10px;
}

.detail-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.detail-list li,
.step-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  line-height: 1.7;
}

.detail-list li:last-child,
.step-list li:last-child {
  border-bottom: none;
}

.detail-dot,
.step-number {
  flex: 0 0 auto;
}

.detail-dot {
  width: 10px;
  height: 10px;
  margin-top: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal-2), var(--teal-3));
  box-shadow: 0 0 0 6px rgba(0, 169, 157, 0.09);
}

.step-number {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--teal-1), var(--teal-3));
  color: #10323c;
  font-size: 14px;
  font-weight: 900;
}

.note,
.callout {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: rgba(228, 250, 245, 0.72);
  color: var(--ink-soft);
  line-height: 1.7;
}

html[data-theme="night"] .note,
html[data-theme="night"] .callout {
  background: rgba(0, 169, 157, 0.08);
}

.note strong,
.callout strong {
  color: var(--ink);
}

.note.warn,
.callout.warn {
  background: rgba(243, 185, 81, 0.16);
  border-color: rgba(243, 185, 81, 0.36);
}

.note.danger,
.callout.danger {
  background: rgba(221, 106, 123, 0.12);
  border-color: rgba(221, 106, 123, 0.26);
}

.toc-card {
  position: sticky;
  top: 112px;
}

.toc-links {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.toc-links a {
  display: block;
  padding: 11px 12px;
  border-radius: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background 0.22s ease, color 0.22s ease;
}

.toc-links a:hover {
  background: rgba(255, 255, 255, 0.46);
  color: var(--ink);
}

html[data-theme="night"] .toc-links a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.link-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.link-list a {
  display: block;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
  text-decoration: none;
  font-weight: 700;
}

html[data-theme="night"] .link-list a {
  background: rgba(255, 255, 255, 0.04);
}

.pricing-grid,
.card-grid,
.steps-grid,
.faq-grid,
.download-grid {
  display: grid;
  gap: 18px;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.two,
.faq-grid,
.steps-grid,
.download-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan-card {
  position: relative;
  display: grid;
  gap: 16px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 60px rgba(21, 41, 54, 0.16);
}

.plan-card.featured {
  border-color: rgba(0, 169, 157, 0.38);
  box-shadow: 0 26px 70px rgba(0, 169, 157, 0.16);
}

.plan-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.plan-head h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-soft);
}

html[data-theme="night"] .tag {
  background: rgba(255, 255, 255, 0.05);
}

.price-value {
  font-size: 42px;
  line-height: 0.95;
  letter-spacing: -0.07em;
  font-weight: 900;
}

.price-cycle {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 700;
}

.plan-list {
  display: grid;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.plan-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-soft);
  line-height: 1.6;
}

.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 20px;
}

.download-actions,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.footer-card {
  margin: 26px 0 42px;
  padding: 26px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

html[data-theme="night"] .theme-pill {
  background: rgba(255, 255, 255, 0.04);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  color: var(--ink-soft);
  font-weight: 700;
  text-decoration: none;
}

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

.muted {
  color: var(--ink-soft);
}

.small {
  font-size: 13px;
}

.tiny {
  font-size: 12px;
}

.accent {
  color: var(--teal-2);
}

.strong {
  color: var(--ink);
  font-weight: 800;
}

html.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(0.988);
  filter: blur(10px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

html.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(0, 169, 157, 0.85);
  outline-offset: 4px;
  border-radius: 16px;
}

@media (max-width: 1120px) {
  .hero-layout,
  .layout-grid,
  .download-layout,
  .pricing-grid,
  .card-grid.two,
  .faq-grid,
  .steps-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .toc-card {
    position: static;
  }
}

@media (max-width: 920px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav {
    justify-content: center;
  }

  .nav-actions {
    width: 100%;
    justify-content: center;
  }

  .topbar-actions {
    width: 100%;
    justify-content: center;
  }

  .footer-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 22px, var(--container));
  }

  .topbar-wrap {
    padding-top: 10px;
  }

  .topbar,
  .hero-card,
  .content-card,
  .toc-card,
  .support-panel,
  .pricing-panel,
  .download-panel,
  .footer-card,
  .stat-card,
  .summary-card,
  .quick-card,
  .plan-card,
  .faq-card {
    border-radius: 24px;
  }

  .topbar {
    padding: 12px;
  }

  .brand-wordmark {
    height: 28px;
  }

  .hero-card {
    padding: 24px;
  }

  .hero-card h1 {
    font-size: clamp(32px, 11vw, 48px);
  }

  .hero-card p {
    font-size: 16px;
  }

  .button,
  .store-button {
    width: 100%;
  }

  .nav {
    display: none;
  }
}
