/* UCash official website — shared styles
   Brand palette mirrors the iOS app (Theme.swift). */

:root {
  --primary: #2355f5;
  --primary-dk: #1740d6;
  --primary-bg: rgba(35, 85, 245, 0.08);
  --green: #00c07a;
  --green-dk: #009a60;
  --green-bg: rgba(0, 192, 122, 0.09);
  --gold: #f59e0b;
  --gold-bg: rgba(245, 158, 11, 0.10);
  --bg: #f4f7ff;
  --surface: #ffffff;
  --surface-2: #f5f8ff;
  --border: #dde6fa;
  --text: #111827;
  --text-2: #4b5563;
  --text-3: #9ca3af;
  --radius: 16px;
  --radius-sm: 12px;
  --maxw: 1080px;
  --shadow: 0 18px 40px rgba(23, 64, 214, 0.10);
  --shadow-sm: 0 6px 18px rgba(23, 64, 214, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dk); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
}
.brand { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 154, 96, 0.22);
  flex: none;
}
.logo-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.brand-name { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: .2px; }
.brand-name span { color: var(--text-3); font-weight: 600; font-size: 12px; margin-left: 6px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}
.nav a:hover { color: var(--primary); }

.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  color: #fff;
  box-shadow: 0 10px 22px rgba(35, 85, 245, 0.28);
}
.btn-primary:hover { color: #fff; }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn .tag {
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.22);
  padding: 2px 6px;
  border-radius: 6px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(109, 59, 255, 0.16), transparent 60%),
    radial-gradient(700px 360px at 5% 10%, rgba(35, 85, 245, 0.12), transparent 55%),
    linear-gradient(180deg, #eef3ff, var(--bg));
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.18;
  margin: 14px 0 16px;
  letter-spacing: 0;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--primary), #6d3bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dk);
  background: var(--primary-bg);
  padding: 6px 12px;
  border-radius: 999px;
}
.hero p.lead {
  font-size: 17px;
  color: var(--text-2);
  margin: 0 0 26px;
  max-width: 540px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badges {
  display: flex;
  gap: 22px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-badge { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(0, 192, 122, 0.14); }

/* Phone mock */
.hero-art { display: grid; place-items: center; }
.phone {
  width: min(304px, 82vw);
  aspect-ratio: 393 / 852;
  border-radius: 46px;
  background: #0b1220;
  border: 1px solid rgba(17, 24, 39, 0.16);
  box-shadow: 0 24px 54px rgba(23, 64, 214, 0.20);
  padding: 10px;
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  z-index: 5;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 24px;
  border-radius: 999px;
  background: #0b1220;
}
.phone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 36px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}
.phone-screen button {
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  border: 0;
  margin: 0;
  cursor: default;
}
.app-statusbar {
  height: 28px;
  padding: 11px 16px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 7px;
  font-weight: 800;
  line-height: 1;
}
.status-icons { display: inline-flex; align-items: center; gap: 7px; }
.battery {
  width: 15px;
  height: 7px;
  border: 1px solid rgba(17, 24, 39, .74);
  border-radius: 2px;
  position: relative;
}
.battery::before {
  content: "";
  position: absolute;
  inset: 1px 3px 1px 1px;
  border-radius: 1px;
  background: rgba(17, 24, 39, .82);
}
.battery::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 2px;
  width: 2px;
  height: 3px;
  border-radius: 0 1px 1px 0;
  background: rgba(17, 24, 39, .74);
}
.app-home-body {
  height: calc(100% - 88px);
  overflow: hidden;
  padding: 8px 14px 0;
}
.app-top-row {
  height: 46px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.app-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 23px;
}
.app-title-row strong {
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}
.app-location {
  margin-top: 5px;
  font-size: 8px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--text-3);
}
.app-logo-pulse {
  width: 23px;
  height: 23px;
  border-radius: 8px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--primary);
  background: var(--primary-bg);
  box-shadow: 0 4px 9px rgba(35, 85, 245, .14);
  animation: appLogoPulse 2.4s ease-in-out infinite;
}
.app-logo-pulse::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--green);
  border-right-color: var(--gold);
  border-bottom-color: var(--primary);
  animation: logoRing 3.8s linear infinite;
}
.app-logo-pulse span {
  width: 13px;
  height: 11px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, .94);
  font-size: 7px;
  font-weight: 900;
}
.app-logo-pulse i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  position: absolute;
  z-index: 3;
  top: 5px;
  right: 5px;
  background: var(--gold);
  border: 1px solid rgba(255,255,255,.86);
  animation: logoCoin 2.8s ease-in-out infinite;
}
.app-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--green));
  border: 1px solid var(--border);
  font-size: 18px;
  font-weight: 900;
  position: relative;
  overflow: hidden;
}
.app-avatar span {
  position: relative;
  z-index: 1;
  line-height: 1;
}
.app-avatar::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1px solid rgba(35, 85, 245, .15);
  animation: avatarRing 2s ease-in-out infinite;
}
.generated-avatar {
  background: linear-gradient(135deg, rgb(245, 158, 11), rgb(249, 115, 22));
}
.balance-card {
  min-height: 128px;
  border-radius: 19px;
  position: relative;
  overflow: hidden;
  padding: 16px;
  color: #fff;
  background: linear-gradient(135deg, #111827 0%, #1f2937 52%, var(--primary) 100%);
  box-shadow: 0 8px 20px rgba(17, 24, 39, .23);
}
.balance-flow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.balance-flow::before {
  content: "";
  position: absolute;
  top: -35%;
  left: -42%;
  width: 36%;
  height: 170%;
  transform: rotate(23deg);
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.13), transparent);
  animation: balanceSweep 4.6s ease-in-out infinite;
}
.balance-flow::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .38;
  background:
    repeating-linear-gradient(160deg,
      transparent 0 24px,
      rgba(255,255,255,.08) 25px 26px,
      transparent 27px 42px);
  animation: balanceDrift 5s ease-in-out infinite;
}
.balance-head,
.balance-mini,
.trade-actions,
.section-mini-head,
.service-metrics,
.currency-chips,
.trust-grid,
.app-tabbar {
  display: flex;
}
.balance-head {
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}
.balance-head span {
  font-size: 8px;
  font-weight: 900;
  color: rgba(255,255,255,.62);
  text-transform: uppercase;
}
.balance-head button {
  height: 19px;
  padding: 0 8px;
  border-radius: 999px;
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.12);
  font-size: 8px;
  font-weight: 800;
}
.balance-amount {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  font-size: 27px;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.balance-amount span {
  margin-left: 2px;
  font-size: 14px;
  color: rgba(255,255,255,.84);
}
.balance-fiat {
  position: relative;
  z-index: 1;
  margin-top: 7px;
  margin-bottom: 12px;
  font-size: 8px;
  line-height: 1.15;
  color: rgba(255,255,255,.62);
}
.balance-mini {
  position: relative;
  z-index: 1;
  height: 32px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.10);
}
.balance-mini div {
  flex: 1;
  padding: 7px 9px;
  background: rgba(255,255,255,.08);
}
.balance-mini div + div { border-left: 1px solid rgba(255,255,255,.10); }
.balance-mini strong {
  display: block;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.balance-mini span {
  display: block;
  margin-top: 3px;
  font-size: 7px;
  font-weight: 800;
  color: rgba(255,255,255,.56);
}
.trade-actions {
  gap: 9px;
  margin-top: 10px;
}
.trade-card {
  width: 50%;
  min-height: 91px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  padding: 13px;
  text-align: left;
  border: 1px solid transparent;
  box-shadow: 0 5px 10px rgba(35, 85, 245, .10);
}
.trade-sell {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-color: rgba(0, 192, 122, .24);
}
.trade-buy {
  background: linear-gradient(135deg, #eef4ff, #dbeafe);
  border-color: rgba(35, 85, 245, .22);
}
.trade-emoji {
  display: block;
  margin-bottom: 7px;
  font-size: 20px;
  line-height: 1;
}
.trade-card strong {
  display: block;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  color: var(--text);
}
.trade-card > span:last-of-type {
  display: block;
  margin-top: 4px;
  font-size: 8px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text-2);
}
.trade-card i {
  width: 21px;
  height: 21px;
  border-radius: 8px;
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}
.trade-sell i { color: var(--green-dk); background: var(--green-bg); }
.trade-buy i { color: var(--primary); background: var(--primary-bg); }
.trade-sell::before,
.trade-buy::before {
  content: "";
  position: absolute;
  pointer-events: none;
}
.trade-sell::before {
  right: 18px;
  top: 12px;
  width: 54px;
  height: 34px;
  opacity: .75;
  background:
    linear-gradient(90deg, rgba(0,192,122,.20), rgba(0,192,122,.42)) 0 5px / 32px 3px no-repeat,
    linear-gradient(90deg, rgba(0,192,122,.16), rgba(0,192,122,.34)) 12px 19px / 25px 3px no-repeat;
  animation: sellSpeed 1.7s ease-in-out infinite;
}
.trade-buy::before {
  right: 21px;
  bottom: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(35,85,245,.20);
  box-shadow: 0 0 0 10px rgba(35,85,245,.06);
  animation: buyRipple 2s ease-in-out infinite;
}
.rate-strip {
  min-height: 31px;
  margin-top: 10px;
  padding: 7px 9px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(35, 85, 245, .08);
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 192, 122, .12);
  animation: liveDot 1.2s ease-in-out infinite;
}
.rate-title {
  flex: none;
  font-size: 8px;
  line-height: 1;
  font-weight: 900;
  color: var(--text-3);
}
.rate-marquee {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.rate-track {
  width: max-content;
  display: flex;
  gap: 12px;
  align-items: center;
  animation: rateTicker 13s linear infinite;
}
.rate-track span {
  white-space: nowrap;
  font-size: 8px;
  line-height: 1;
  font-weight: 900;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.area-card {
  min-height: 105px;
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(35, 85, 245, .08);
}
.section-mini-head {
  justify-content: space-between;
  align-items: flex-start;
}
.section-mini-head strong {
  display: block;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 900;
}
.section-mini-head span {
  display: block;
  margin-top: 3px;
  font-size: 8px;
  line-height: 1.1;
  color: var(--text-3);
}
.section-mini-head button {
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-bg);
  font-size: 8px;
  font-weight: 900;
}
.service-metrics {
  gap: 7px;
  margin-top: 10px;
}
.metric {
  flex: 1;
  height: 43px;
  border-radius: 10px;
  padding: 8px;
}
.metric strong {
  display: block;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
}
.metric span {
  display: block;
  margin-top: 6px;
  font-size: 7px;
  line-height: 1;
  font-weight: 800;
  color: var(--text-3);
}
.metric.green { background: rgba(0,192,122,.08); }
.metric.green strong { color: var(--green); }
.metric.blue { background: rgba(35,85,245,.08); }
.metric.blue strong { color: var(--primary); }
.metric.gold { background: rgba(245,158,11,.10); }
.metric.gold strong { color: var(--gold); }
.currency-chips {
  gap: 5px;
  margin-top: 9px;
}
.currency-chips span {
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 8px;
  font-weight: 900;
}
.trust-panel {
  margin-top: 10px;
}
.trust-panel h3 {
  margin: 0 0 7px;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 900;
}
.trust-grid {
  gap: 6px;
}
.trust-grid div {
  flex: 1;
  min-height: 59px;
  border-radius: 12px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.trust-grid span {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 900;
}
.trust-grid div:nth-child(1) span { color: var(--gold); background: var(--gold-bg); }
.trust-grid div:nth-child(2) span { color: var(--green-dk); background: var(--green-bg); }
.trust-grid div:nth-child(3) span { color: var(--primary); background: var(--primary-bg); }
.trust-grid strong {
  max-width: 58px;
  color: var(--text-2);
  font-size: 8px;
  line-height: 1.1;
  font-weight: 800;
  text-align: center;
}
.app-tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  padding-top: 8px;
  align-items: flex-start;
  justify-content: space-around;
  border-top: 1px solid var(--border);
  background: #fff;
}
.app-tabbar span {
  width: 48px;
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--text-3);
}
.app-tabbar i {
  height: 18px;
  font-style: normal;
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
}
.app-tabbar b {
  font-size: 8px;
  line-height: 1;
  font-weight: 800;
}
.app-tabbar .active { color: var(--primary); }

@keyframes appLogoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}
@keyframes logoRing {
  to { transform: rotate(360deg); }
}
@keyframes logoCoin {
  0%, 100% { transform: translate(-2px, 1px); }
  50% { transform: translate(3px, -1px); }
}
@keyframes avatarRing {
  0%, 100% { transform: scale(.92); opacity: .25; }
  50% { transform: scale(1.08); opacity: .95; }
}
@keyframes balanceSweep {
  0%, 100% { transform: translateX(0) rotate(23deg); opacity: .28; }
  50% { transform: translateX(360%) rotate(23deg); opacity: .95; }
}
@keyframes balanceDrift {
  0%, 100% { transform: translateX(-10px); }
  50% { transform: translateX(12px); }
}
@keyframes sellSpeed {
  0%, 100% { transform: translateX(-2px); opacity: .52; }
  50% { transform: translateX(8px); opacity: .95; }
}
@keyframes buyRipple {
  0%, 100% { transform: scale(.86); opacity: .55; }
  50% { transform: scale(1.06); opacity: .95; }
}
@keyframes liveDot {
  0%, 100% { transform: scale(.92); box-shadow: 0 0 0 3px rgba(0, 192, 122, .11); }
  50% { transform: scale(1.12); box-shadow: 0 0 0 5px rgba(0, 192, 122, .18); }
}
@keyframes rateTicker {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .app-logo-pulse,
  .app-logo-pulse::before,
  .app-logo-pulse i,
  .app-avatar::after,
  .balance-flow::before,
  .balance-flow::after,
  .trade-sell::before,
  .trade-buy::before,
  .live-dot,
  .rate-track {
    animation: none;
  }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: 30px; margin: 0 0 12px; letter-spacing: 0; }
.section-head p { color: var(--text-2); font-size: 16px; margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.section.alt .feature-card { background: var(--surface-2); }
.feature-ico {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--primary-bg); color: var(--primary);
  display: grid; place-items: center; font-size: 22px; margin-bottom: 14px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 17px; }
.feature-card p { margin: 0; color: var(--text-2); font-size: 14px; }

/* Safety list */
.safety-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.safety-item { display: flex; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.safety-item .check { flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,192,122,.12); color: var(--green-dk); display: grid; place-items: center; font-weight: 900; }
.safety-item h4 { margin: 0 0 4px; font-size: 15px; }
.safety-item p { margin: 0; font-size: 13px; color: var(--text-2); }

/* Legal cards */
.legal-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.legal-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--text);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.legal-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--primary); color: var(--text); }
.legal-card .ico { font-size: 24px; }
.legal-card h3 { margin: 10px 0 4px; font-size: 16px; }
.legal-card p { margin: 0; font-size: 13px; color: var(--text-3); }
.legal-card .arrow { margin-top: 12px; color: var(--primary); font-size: 13px; font-weight: 700; }

/* ---------- Legal document page ---------- */
.doc-wrap { padding: 40px 0 64px; }
.breadcrumb { font-size: 13px; color: var(--text-3); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--primary); }
.doc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.doc h1 { font-size: 28px; margin: 0 0 6px; }
.doc-meta { color: var(--text-3); font-size: 13px; margin-bottom: 22px; }
.doc-intro { color: var(--text-2); font-size: 15px; margin-bottom: 28px; }
.doc-section { margin-bottom: 24px; }
.doc-section h2 { font-size: 17px; margin: 0 0 8px; color: var(--text); }
.doc-section p { margin: 0; font-size: 14.5px; color: var(--text-2); }
.doc-contact {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-3);
}
.doc-copyright { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0d1530;
  color: #c8d2f0;
  padding: 52px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-footer .brand-name { color: #fff; }
.site-footer .foot-about { font-size: 13px; color: #97a4cc; margin-top: 14px; max-width: 280px; }
.foot-col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: #7f8db8; margin: 0 0 14px; }
.foot-col a, .foot-col span { display: block; color: #c8d2f0; font-size: 14px; margin-bottom: 10px; }
.foot-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #8593bf;
}
.footer-bottom .links a { color: #8593bf; margin-left: 16px; }
.footer-bottom .links a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 42px;
    padding-bottom: 52px;
  }
  .hero-copy {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
  }
  .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions,
  .hero-badges {
    justify-content: center;
  }
  .hero-art {
    display: grid;
    order: -1;
  }
  .phone {
    width: min(280px, 72vw);
  }
  .hero h1 { font-size: 34px; }
  .features { grid-template-columns: 1fr 1fr; }
  .legal-cards { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav { display: none; }
  .nav.open {
    display: grid;
    position: absolute;
    top: 58px;
    right: 20px;
    left: auto;
    width: min(216px, calc(100vw - 40px));
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(17, 24, 39, 0.14);
    padding: 10px;
  }
  .nav.open a {
    padding: 9px 8px;
    border: 0;
    border-radius: 10px;
    text-align: center;
    background: var(--surface-2);
    font-size: 13px;
  }
  .nav-toggle { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; font-size: 17px; }
  .site-header .container { height: 58px; }
  .logo-mark { width: 34px; height: 34px; border-radius: 9px; }
  .brand-name { font-size: 16px; }
  .brand-name span { display: none; }
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 24px; }
  .features, .safety-grid, .legal-cards { grid-template-columns: 1fr; }
  .site-footer { padding: 28px 0 18px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
  .site-footer .foot-about {
    display: none;
  }
  .foot-col h5 {
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: 0;
  }
  .foot-col a,
  .foot-col span {
    margin-bottom: 6px;
    font-size: 12px;
    line-height: 1.35;
  }
  .footer-bottom {
    margin-top: 18px;
    padding-top: 14px;
    display: block;
    text-align: center;
    font-size: 11px;
    line-height: 1.45;
  }
  .footer-bottom .links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
  }
  .footer-bottom .links a {
    margin-left: 0;
  }
  .doc { padding: 24px; }
  .hero {
    background:
      radial-gradient(520px 280px at 50% -8%, rgba(35, 85, 245, 0.16), transparent 62%),
      linear-gradient(180deg, #eef3ff, var(--bg));
  }
  .hero .container {
    gap: 22px;
    padding-top: 22px;
    padding-bottom: 42px;
  }
  .hero h1 {
    font-size: 29px;
    line-height: 1.2;
    margin: 12px 0 12px;
  }
  .hero p.lead {
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 18px;
  }
  .eyebrow {
    font-size: 11px;
    padding: 5px 10px;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .hero-actions .btn {
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    font-size: 13px;
  }
  .btn .tag {
    font-size: 9px;
    padding: 2px 5px;
  }
  .hero-badges {
    gap: 8px 12px;
    margin-top: 18px;
  }
  .hero-badge {
    font-size: 12px;
  }
  .phone {
    width: min(258px, 72vw);
    padding: 8px;
    border-radius: 42px;
    box-shadow: 0 18px 38px rgba(23, 64, 214, 0.18);
  }
  .phone::before {
    top: 15px;
    width: 70px;
    height: 20px;
  }
  .phone-screen {
    border-radius: 33px;
  }
}
@media (max-width: 380px) {
  .hero-actions {
    grid-template-columns: 1fr;
  }
  .phone {
    width: min(238px, 74vw);
  }
}
