:root {
  color-scheme: light dark;
  --bg: #FAFAFC;
  --bg-elevated: rgba(255, 255, 255, 0.6);
  --text: #0B0F19;
  --text-secondary: #5B6472;
  --border: rgba(11, 15, 25, 0.08);
  --accent-a: #6366F1;
  --accent-b: #22D3EE;
  --accent-solid: #4F46E5;
  --shadow: 0 20px 60px rgba(20, 24, 40, 0.08);
  --orb-1: rgba(99, 102, 241, 0.22);
  --orb-2: rgba(34, 211, 238, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #05070C;
    --bg-elevated: rgba(255, 255, 255, 0.06);
    --text: #F5F7FA;
    --text-secondary: #94A0B2;
    --border: rgba(255, 255, 255, 0.10);
    --accent-a: #818CF8;
    --accent-b: #67E8F9;
    --accent-solid: #818CF8;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    --orb-1: rgba(129, 140, 248, 0.28);
    --orb-2: rgba(103, 232, 249, 0.20);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Noto Sans SC", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR", "Noto Sans Arabic",
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

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

.container {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* Background orbs */
.orb-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}
.orb-a {
  width: 480px;
  height: 480px;
  background: var(--orb-1);
  top: -160px;
  inset-inline-end: -120px;
}
.orb-b {
  width: 420px;
  height: 420px;
  background: var(--orb-2);
  bottom: -180px;
  inset-inline-start: -140px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand svg { width: 26px; height: 26px; }

.lang-select {
  appearance: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 30px 7px 14px;
  border-radius: 999px;
  cursor: pointer;
}
[dir="rtl"] .lang-select { padding: 7px 14px 7px 30px; }

/* Hero */
.hero {
  padding-block: 88px 64px;
  text-align: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  margin-bottom: 28px;
}
.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(32px, 5.4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 20px;
  max-width: 780px;
  margin-inline: auto;
}
.hero .gradient-text {
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-visual {
  max-width: 640px;
  margin: 0 auto 8px;
  padding: 28px 20px;
}
.hero-visual svg { width: 100%; height: auto; display: block; }
.pulse-line {
  fill: none;
  stroke: url(#pulseGradient);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw-line 2.6s ease-out forwards 0.3s;
}
@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

.cta-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: default;
}
.cta.primary {
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  color: #ffffff;
  border: none;
  box-shadow: var(--shadow);
}

/* Section shared */
section { padding-block: 72px; }
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-solid);
  margin: 0 0 12px;
  text-align: center;
}
.section-title {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 16px;
}
.section-sub {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  padding: 28px 24px;
  border-radius: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  margin-bottom: 18px;
}
.step h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em; }
.step p { font-size: 14.5px; color: var(--text-secondary); margin: 0; }

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 26px 24px;
  border-radius: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent-a) 14%, transparent);
  margin-bottom: 16px;
}
.icon-wrap svg { width: 22px; height: 22px; stroke: var(--accent-solid); }
.feature-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em; }
.feature-card p { font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.55; }

/* Privacy band */
.privacy-band {
  border-radius: 24px;
  padding: 44px 36px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.privacy-band .icon-wrap { flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px; }
.privacy-band .icon-wrap svg { width: 28px; height: 28px; }
.privacy-band-text { flex: 1; min-width: 260px; }
.privacy-band h3 { font-size: 19px; font-weight: 700; margin: 0 0 8px; }
.privacy-band p { font-size: 14.5px; color: var(--text-secondary); margin: 0 0 6px; max-width: 620px; }
.privacy-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-solid);
  white-space: nowrap;
}
.privacy-link .arrow { display: inline-block; transition: transform 0.2s ease; }
.privacy-link:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .privacy-link:hover .arrow { transform: translateX(-4px); }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding-block: 32px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--text); }

/* Privacy policy page */
.policy {
  padding-block: 56px 80px;
  max-width: 720px;
  margin-inline: auto;
}
.policy h1 { font-size: 28px; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.02em; }
.policy .updated { font-size: 13px; color: var(--text-secondary); margin: 0 0 36px; }
.policy h2 { font-size: 18px; font-weight: 700; margin: 32px 0 10px; }
.policy p { font-size: 15px; margin: 0 0 14px; color: var(--text); }
.policy ul { margin: 0 0 14px; padding-inline-start: 20px; }
.policy li { font-size: 15px; margin-bottom: 8px; }
.policy a { color: var(--accent-solid); font-weight: 600; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 28px; }
.back-link:hover { color: var(--text); }
[dir="rtl"] .back-link svg { transform: scaleX(-1); }

@media (max-width: 800px) {
  .steps, .features { grid-template-columns: 1fr; }
  .hero { padding-block: 64px 44px; }
  section { padding-block: 52px; }
}
