:root {
  --bg: #f3ecdc;
  --bg-strong: #0d1d29;
  --surface: rgba(255, 250, 242, 0.74);
  --surface-strong: rgba(13, 29, 41, 0.94);
  --surface-muted: rgba(255, 255, 255, 0.56);
  --card-border: rgba(19, 53, 75, 0.1);
  --card-shadow: 0 28px 70px rgba(22, 41, 53, 0.12);
  --text: #152634;
  --text-soft: #4b6070;
  --text-on-dark: #f8f3ea;
  --accent: #d86c32;
  --accent-strong: #b74d1d;
  --accent-soft: rgba(216, 108, 50, 0.12);
  --line: rgba(19, 53, 75, 0.12);
  --teal: #1e6c74;
  --teal-soft: rgba(30, 108, 116, 0.12);
  --warning: #d9892f;
  --danger: #8d2e20;
  --success: #2f7464;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --site-width: min(1160px, calc(100vw - 40px));
  --section-gap: clamp(72px, 10vw, 112px);
  --header-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(216, 108, 50, 0.14), transparent 26%),
    radial-gradient(circle at top right, rgba(30, 108, 116, 0.12), transparent 24%),
    linear-gradient(180deg, #f7f0e2 0%, #f4ebdb 42%, #efe5d4 100%);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", "PingFang SC", "Noto Sans SC", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(247, 240, 226, 0.82);
  border-bottom: 1px solid rgba(21, 38, 52, 0.08);
}

.site-header__inner,
.site-footer__inner,
.section__inner,
.page-banner__inner,
.policy-page__inner,
.download-page__inner {
  width: var(--site-width);
  margin: 0 auto;
}

.site-header__inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, #122736 0%, #1b4257 48%, #d86c32 100%);
  box-shadow: 0 18px 36px rgba(18, 39, 54, 0.2);
  position: relative;
  overflow: hidden;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.brand-mark::before {
  inset: 9px 14px 9px 11px;
  border: 2px solid rgba(255, 245, 232, 0.82);
}

.brand-mark::after {
  width: 11px;
  height: 11px;
  right: 8px;
  top: 8px;
  background: #ffddc4;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong,
.hero-copy h1,
.section h2,
.page-banner h1,
.policy-page h1,
.policy-page h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  letter-spacing: -0.03em;
}

.brand-text strong {
  font-size: 1.15rem;
}

.brand-text span {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav__links a,
.site-nav__links button,
.lang-switch a {
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav__links a:hover,
.lang-switch a:hover,
.site-nav__links a:focus-visible,
.lang-switch a:focus-visible {
  color: var(--text);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(19, 53, 75, 0.1);
  border-radius: var(--radius-pill);
}

.lang-switch a {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
}

.lang-switch a.is-active {
  background: var(--text);
  color: var(--text-on-dark);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(19, 53, 75, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
}

.page-banner {
  padding: 58px 0 12px;
}

.page-banner__inner {
  padding: 44px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(16, 35, 50, 0.96), rgba(27, 69, 87, 0.94)),
    linear-gradient(135deg, #102332, #1b4557);
  color: var(--text-on-dark);
  box-shadow: 0 28px 80px rgba(10, 25, 36, 0.16);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.page-banner h1,
.policy-page h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 0.95;
  margin: 18px 0 12px;
}

.page-banner p {
  margin: 0;
  max-width: 720px;
  font-size: 1.1rem;
  color: rgba(248, 243, 234, 0.82);
}

.section {
  padding: var(--section-gap) 0;
  position: relative;
}

.section__inner {
  display: grid;
  gap: 26px;
}

.section h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 0.98;
}

.section-copy {
  max-width: 690px;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.hero {
  padding: 34px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 36px;
  align-items: center;
}

.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(3.2rem, 6vw, 6.1rem);
  line-height: 0.9;
}

.hero-copy p {
  margin: 0;
  max-width: 620px;
  font-size: 1.12rem;
  color: var(--text-soft);
}

.hero-actions,
.stacked-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff7ef;
  box-shadow: 0 20px 46px rgba(183, 77, 29, 0.28);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(19, 53, 75, 0.12);
  color: var(--text);
}

.button--disabled {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(248, 243, 234, 0.64);
  cursor: not-allowed;
  pointer-events: none;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-badges span,
.status-pill {
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(19, 53, 75, 0.1);
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 600;
}

.hero-visual {
  position: relative;
  padding: 28px;
  border-radius: 32px;
  background:
    linear-gradient(160deg, rgba(13, 29, 41, 0.95), rgba(27, 69, 87, 0.92)),
    linear-gradient(160deg, #102332, #1b4557);
  box-shadow: 0 34px 88px rgba(10, 25, 36, 0.22);
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -60px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 108, 50, 0.32), transparent 70%);
}

.visual-stack {
  position: relative;
  display: grid;
  gap: 18px;
}

.visual-card {
  position: relative;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-on-dark);
}

.visual-card h3,
.download-card h2,
.card h3,
.mini-metric strong,
.highlight-quote strong,
.policy-callout strong {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
}

.visual-card p,
.visual-card small {
  color: rgba(248, 243, 234, 0.72);
}

.visual-card__row,
.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.metric-row {
  margin-top: 16px;
}

.mini-metric {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  min-width: 0;
}

.mini-metric span,
.mini-metric small {
  color: rgba(248, 243, 234, 0.7);
}

.mini-metric strong {
  font-size: 1.55rem;
}

.grid-3,
.grid-2,
.feature-grid,
.download-grid,
.policy-grid {
  display: grid;
  gap: 20px;
}

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

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

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

.download-grid,
.policy-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.download-card,
.policy-card,
.highlight-quote,
.workflow-step,
.risk-panel {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}

.card,
.policy-card,
.workflow-step,
.risk-panel,
.download-card {
  padding: 24px;
}

.card h3,
.download-card h2,
.policy-card h2 {
  font-size: 1.45rem;
}

.card p,
.card li,
.download-card p,
.download-card li,
.policy-card p,
.policy-card li,
.workflow-step p,
.risk-panel p,
.risk-panel li {
  color: var(--text-soft);
}

.card ul,
.download-card ul,
.risk-panel ul,
.policy-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.card--accent {
  background:
    linear-gradient(180deg, rgba(216, 108, 50, 0.08), rgba(255, 250, 242, 0.78));
}

.card--teal {
  background:
    linear-gradient(180deg, rgba(30, 108, 116, 0.08), rgba(255, 250, 242, 0.78));
}

.workflow-step {
  position: relative;
  overflow: hidden;
}

.workflow-step__number {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
}

.section--dark {
  color: var(--text-on-dark);
}

.section--dark .section-copy,
.section--dark .card p,
.section--dark .card li,
.section--dark .risk-panel p,
.section--dark .risk-panel li {
  color: rgba(248, 243, 234, 0.74);
}

.section--dark .card,
.section--dark .risk-panel,
.section--dark .highlight-quote {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 22, 31, 0.98), rgba(16, 35, 50, 0.98)),
    linear-gradient(180deg, #102332, #0c1c27);
  z-index: -2;
}

.section--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(216, 108, 50, 0.18), transparent 24%),
    radial-gradient(circle at 85% 12%, rgba(30, 108, 116, 0.16), transparent 20%);
  z-index: -1;
}

.feature-grid .card {
  min-height: 220px;
}

.feature-label {
  display: inline-flex;
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.84rem;
  font-weight: 700;
}

.safety-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.safety-grid .card {
  min-height: 208px;
}

.risk-list {
  display: grid;
  gap: 14px;
}

.risk-point {
  padding: 18px 18px 18px 20px;
  border-left: 4px solid var(--warning);
  border-radius: 18px;
  background: rgba(255, 244, 230, 0.72);
}

.risk-point strong {
  display: block;
  margin-bottom: 6px;
}

.download-page {
  padding: 18px 0 var(--section-gap);
}

.download-page__inner {
  display: grid;
  gap: 28px;
}

.download-card--android {
  background:
    linear-gradient(180deg, rgba(30, 108, 116, 0.08), rgba(255, 250, 242, 0.84));
}

.download-card--ios {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 250, 242, 0.58));
}

.download-meta {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.download-meta__item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
}

.download-meta__item span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.download-meta__item code {
  font-size: 0.9rem;
  word-break: break-all;
}

.fine-print {
  display: grid;
  gap: 14px;
}

.fine-print li {
  margin-left: 18px;
}

.site-footer {
  padding: 28px 0 46px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid rgba(19, 53, 75, 0.1);
}

.footer-note {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.policy-page {
  padding: 18px 0 var(--section-gap);
}

.policy-page__inner {
  display: grid;
  gap: 24px;
}

.policy-prose {
  display: grid;
  gap: 22px;
}

.policy-card {
  background: rgba(255, 252, 248, 0.76);
}

.policy-card p:last-child,
.policy-card ul:last-child {
  margin-bottom: 0;
}

.policy-callout {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(216, 108, 50, 0.1);
  border: 1px solid rgba(216, 108, 50, 0.16);
}

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

@media (max-width: 1100px) {
  .hero-grid,
  .grid-3,
  .feature-grid,
  .download-grid,
  .policy-grid,
  .safety-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy h1 {
    max-width: 720px;
  }
}

@media (max-width: 860px) {
  :root {
    --site-width: min(100vw - 28px, 1160px);
  }

  .site-header__inner {
    min-height: 74px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: relative;
  }

  .site-nav__links {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: min(320px, calc(100vw - 28px));
    padding: 18px;
    border-radius: 22px;
    background: rgba(247, 240, 226, 0.96);
    border: 1px solid rgba(19, 53, 75, 0.1);
    box-shadow: 0 26px 60px rgba(12, 24, 32, 0.16);
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav[data-open="true"] .site-nav__links {
    display: flex;
  }

  .hero-grid,
  .grid-2,
  .grid-3,
  .feature-grid,
  .download-grid,
  .policy-grid,
  .safety-grid {
    grid-template-columns: 1fr;
  }

  .page-banner__inner,
  .hero-visual,
  .card,
  .download-card,
  .policy-card,
  .workflow-step {
    padding: 22px;
  }
}

@media (max-width: 560px) {
  .hero-copy h1,
  .page-banner h1,
  .policy-page h1 {
    font-size: clamp(2.4rem, 14vw, 4rem);
  }

  .hero-actions,
  .stacked-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .brand-text span {
    font-size: 0.78rem;
  }
}
