/* =========================================================
   ForgeScan — website styles
   ========================================================= */
:root {
  --bg: #070b16;
  --bg-2: #0b1121;
  --surface: #111829;
  --surface-2: #161f33;
  --border: rgba(148, 170, 220, 0.12);
  --border-strong: rgba(148, 170, 220, 0.22);
  --text: #eef2fb;
  --text-2: #a7b2c9;
  --text-3: #6f7b94;
  --blue: #3b6cf6;
  --blue-2: #5b8cff;
  --blue-glow: rgba(59, 108, 246, 0.45);
  --cyan: #4fd1ff;
  --green: #34d399;
  --purple: #a78bfa;
  --teal: #2dd4bf;
  --pink: #f472b6;
  --amber: #fbbf24;
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Plus Jakarta Sans", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

/* ---------- Background ambience ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(148,170,220,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,170,220,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-glow {
  position: absolute; z-index: -1; pointer-events: none; border-radius: 50%;
  filter: blur(90px); opacity: .55;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
.grad-text {
  background: linear-gradient(100deg, #7fa6ff 0%, var(--blue) 45%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  color: #b9cbff; background: rgba(59,108,246,.12); border: 1px solid rgba(91,140,255,.28);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 { margin: 18px 0 14px; }
.section-head p { color: var(--text-2); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 14px;
  font-weight: 600; font-size: .98rem; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary {
  background: linear-gradient(135deg, #4c7dff, #2f5ce6);
  color: #fff;
  box-shadow: 0 10px 30px -8px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-ghost { border: 1px solid var(--border-strong); background: rgba(255,255,255,.03); }
.btn-ghost:hover { background: rgba(255,255,255,.07); border-color: rgba(148,170,220,.35); }
.btn-sm { height: 42px; padding: 0 18px; border-radius: 12px; font-size: .9rem; }

.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  height: 58px; padding: 0 22px 0 18px; border-radius: 14px;
  background: #fff; color: #0b1121;
  box-shadow: 0 12px 34px -10px rgba(255,255,255,.25);
  transition: transform .2s ease, box-shadow .2s;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(255,255,255,.3); }
.store-badge svg { width: 28px; height: 28px; }
.store-badge small { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .65; line-height: 1.2; }
.store-badge strong { display: block; font-size: 1.12rem; line-height: 1.2; font-family: var(--display); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 11, 22, .72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 6px 20px -4px var(--blue-glow); }
.brand span b { color: var(--blue-2); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a:not(.btn) { padding: 8px 14px; border-radius: 10px; color: var(--text-2); font-size: .93rem; font-weight: 500; transition: color .2s, background .2s; }
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,.05); }
.nav-links .btn { margin-left: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-strong); align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 72px; left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px;
    background: rgba(13, 19, 36, .97); backdrop-filter: blur(18px);
    border: 1px solid var(--border-strong); border-radius: 18px;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .25s, transform .25s;
  }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a:not(.btn) { padding: 12px 14px; }
  .nav-links .btn { margin: 8px 0 0; }
  .nav.open { background: rgba(7, 11, 22, .9); backdrop-filter: blur(18px); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero .bg-glow.g1 { width: 620px; height: 620px; background: var(--blue); top: -220px; right: -120px; }
.hero .bg-glow.g2 { width: 420px; height: 420px; background: #1d4ed8; bottom: -160px; left: -160px; opacity: .35; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin: 22px 0 22px; }
.hero-lead { color: var(--text-2); font-size: 1.17rem; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 36px; color: var(--text-2); font-size: .9rem; }
.hero-meta div { display: flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--green); }

@media (max-width: 980px) {
  .hero { padding: 120px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 64px; text-align: center; }
  .hero-lead { margin: 0 auto; }
  .hero-cta, .hero-meta { justify-content: center; }
}

/* ---------- Phone mockup ---------- */
.device-stage { text-align: left; position: relative; display: flex; justify-content: center; perspective: 1400px; }
.device-stage::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,108,246,.55), transparent 65%);
  top: 50%; left: 50%; transform: translate(-50%, -50%); filter: blur(30px);
}
.phone {
  position: relative; width: 300px; height: 620px; border-radius: 46px; padding: 12px;
  background: linear-gradient(145deg, #2a3348, #0d1220 40%, #1c2436);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 50px 100px -30px rgba(0,0,0,.8),
    0 30px 80px -20px rgba(59,108,246,.35),
    inset 0 0 0 1px rgba(255,255,255,.05);
  transform: rotateY(-10deg) rotateX(4deg);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
  animation: float 7s ease-in-out infinite;
}
.device-stage:hover .phone { transform: rotateY(0) rotateX(0); }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.phone-screen {
  position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden;
  background: #0b1020; font-size: 11px; line-height: 1.4;
}
.phone-notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 82px; height: 22px; border-radius: 20px; background: #000; z-index: 3; }
.ps-status { display: flex; justify-content: space-between; padding: 12px 22px 0; font-size: 10px; font-weight: 600; color: #cfd6e6; }
.ps-head { display: flex; align-items: center; gap: 9px; padding: 18px 16px 12px; }
.ps-logo { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg,#4c7dff,#2f5ce6); display: grid; place-items: center; }
.ps-logo svg { width: 16px; height: 16px; color: #fff; }
.ps-head small { display: block; color: #8a95ad; font-size: 9px; }
.ps-head strong { font-family: var(--display); font-size: 15px; }
.ps-card {
  margin: 4px 14px 14px; padding: 14px; border-radius: 16px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #3d6ef5, #2a54d6);
  box-shadow: 0 14px 30px -10px rgba(59,108,246,.6);
}
.ps-card h4 { font-size: 14px; font-weight: 700; }
.ps-card p { font-size: 9.5px; color: rgba(255,255,255,.82); margin-top: 3px; }
.ps-card-row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 12px; }
.ps-btn { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #2142b5; font-weight: 700; font-size: 10px; padding: 8px 12px; border-radius: 10px; }
.ps-btn svg { width: 12px; height: 12px; }
.ps-count { text-align: right; } .ps-count b { font-size: 18px; display: block; line-height: 1; } .ps-count span { font-size: 8.5px; opacity: .8; }
.ps-card::after { content: ""; position: absolute; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.08); right: -30px; top: -40px; }
.ps-actions { display: grid; grid-template-columns: repeat(4,1fr); padding: 0 14px; gap: 6px; text-align: center; }
.ps-actions i { display: grid; place-items: center; width: 38px; height: 38px; margin: 0 auto 5px; border-radius: 12px; }
.ps-actions i svg { width: 17px; height: 17px; }
.ps-actions span { font-size: 8.5px; color: #c5cde0; }
.ps-recent { display: flex; justify-content: space-between; padding: 16px 16px 8px; font-weight: 700; font-size: 12px; }
.ps-search { margin: 0 14px 10px; padding: 8px 10px; border-radius: 10px; background: #171f33; border: 1px solid #222c44; color: #6c7790; font-size: 9px; }
.ps-docs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 14px; }
.ps-doc { border-radius: 12px; background: #121a2c; border: 1px solid #222c44; padding: 6px; }
.ps-doc-thumb { height: 92px; border-radius: 8px; background: #1a2338; position: relative; overflow: hidden; padding: 12px 10px; }
.ps-doc-thumb i { display: block; height: 4px; border-radius: 2px; background: #2c3854; margin-bottom: 5px; }
.ps-doc-thumb i:nth-child(2) { width: 70%; } .ps-doc-thumb i:nth-child(4) { width: 50%; }
.ps-doc-thumb .scanline {
  position: absolute; left: 0; right: 0; height: 2px; top: 10%;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 12px var(--cyan); animation: scan 2.8s ease-in-out infinite;
}
@keyframes scan { 0%,100% { top: 8%; } 50% { top: 90%; } }
.ps-doc b { display: block; font-size: 9px; margin-top: 5px; }
.ps-doc span { font-size: 8px; color: #6c7790; }
.ps-fab { position: absolute; right: 14px; bottom: 64px; display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 14px; background: #8fb0ff; color: #0f1d4a; font-weight: 700; font-size: 11px; box-shadow: 0 10px 24px -6px rgba(91,140,255,.6); }
.ps-fab svg { width: 14px; height: 14px; }
.ps-nav { position: absolute; left: 0; right: 0; bottom: 0; height: 54px; background: #0e1424; border-top: 1px solid #1c2540; display: flex; justify-content: space-around; align-items: center; font-size: 8.5px; color: #7d88a1; }
.ps-nav div { display: grid; justify-items: center; gap: 2px; }
.ps-nav svg { width: 15px; height: 15px; }
.ps-nav .on { color: #fff; } .ps-nav .on svg { background: #1e3268; padding: 3px 12px; border-radius: 10px; width: 40px; height: 22px; box-sizing: border-box; }

.float-chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 11px 15px; border-radius: 16px;
  background: rgba(17, 24, 41, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong); box-shadow: 0 20px 40px -14px rgba(0,0,0,.6);
  font-size: .82rem; font-weight: 600; text-align: left;
  animation: float 6s ease-in-out infinite;
}
.float-chip small { display: block; color: var(--text-3); font-weight: 500; font-size: .72rem; }
.float-chip i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.float-chip i svg { width: 18px; height: 18px; }
.chip-1 { top: 70px; left: calc(50% - 290px); animation-delay: -2s; }
.chip-2 { bottom: 110px; right: calc(50% - 300px); animation-delay: -4s; }
.chip-3 { bottom: 30px; left: calc(50% - 250px); animation-delay: -1s; }
@media (max-width: 600px) {
  .phone { width: 260px; height: 540px; transform: none; }
  .chip-1 { left: 0; top: 30px; } .chip-2 { right: 0; bottom: 120px; } .chip-3 { display: none; }
  .float-chip { padding: 8px 11px; font-size: .74rem; }
  .float-chip i { width: 28px; height: 28px; }
  .ps-doc-thumb { height: 70px; }
}

/* ---------- Icon tints ---------- */
.tint-blue { background: rgba(59,108,246,.16); color: #7fa2ff; }
.tint-green { background: rgba(52,211,153,.14); color: var(--green); }
.tint-purple { background: rgba(167,139,250,.15); color: var(--purple); }
.tint-teal { background: rgba(45,212,191,.14); color: var(--teal); }
.tint-pink { background: rgba(244,114,182,.14); color: var(--pink); }
.tint-amber { background: rgba(251,191,36,.14); color: var(--amber); }

/* ---------- Logos / stats strip ---------- */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,.012); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 20px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat b { display: block; font-family: var(--display); font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; }
.stat span { color: var(--text-2); font-size: .92rem; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 120px 0; }
@media (max-width: 700px) { .section { padding: 84px 0; } }

/* Bento features */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card {
  position: relative; overflow: hidden;
  padding: 30px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22,31,51,.9), rgba(14,20,36,.9));
  border: 1px solid var(--border);
  transition: border-color .3s, transform .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(91,140,255,.12), transparent 40%);
  opacity: 0; transition: opacity .3s;
}
.card:hover { border-color: var(--border-strong); }
.card:hover::before { opacity: 1; }
.card .ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: .97rem; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; }
@media (max-width: 980px) { .bento { grid-template-columns: 1fr 1fr; } .span-2, .span-3, .span-4 { grid-column: span 1; } .bento .wide { grid-column: span 2; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .bento .wide { grid-column: span 1; } }

.card-visual { margin-top: 26px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid var(--border); padding: 18px; }
.ocr-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: center; }
.ocr-paper { aspect-ratio: 3/4; border-radius: 10px; background: #e9edf6; position: relative; padding: 16px 14px; overflow: hidden; }
.ocr-paper i { display: block; height: 6px; border-radius: 3px; background: #b7c0d4; margin-bottom: 8px; }
.ocr-paper i:nth-child(1) { width: 60%; height: 9px; background: #8793ad; margin-bottom: 14px; }
.ocr-paper i:nth-child(3) { width: 85%; } .ocr-paper i:nth-child(5) { width: 70%; } .ocr-paper i:nth-child(7) { width: 40%; }
.ocr-paper .scanline { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--blue), transparent); box-shadow: 0 0 16px 2px var(--blue); animation: scan 3s ease-in-out infinite; }
.corner { position: absolute; width: 16px; height: 16px; border: 2.5px solid var(--blue); }
.corner.tl { top: 6px; left: 6px; border-right: 0; border-bottom: 0; border-radius: 5px 0 0 0; }
.corner.tr { top: 6px; right: 6px; border-left: 0; border-bottom: 0; border-radius: 0 5px 0 0; }
.corner.bl { bottom: 6px; left: 6px; border-right: 0; border-top: 0; border-radius: 0 0 0 5px; }
.corner.br { bottom: 6px; right: 6px; border-left: 0; border-top: 0; border-radius: 0 0 5px 0; }
.ocr-text { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: .78rem; color: #b9c6e4; line-height: 1.7; }
.ocr-text .typed::after { content: "▍"; color: var(--blue-2); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ocr-text small { display: block; color: var(--green); font-size: .7rem; margin-bottom: 6px; letter-spacing: .05em; }

.lang-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.lang-cloud span { padding: 6px 12px; border-radius: 999px; font-size: .8rem; border: 1px solid var(--border-strong); color: var(--text-2); background: rgba(255,255,255,.02); }
.lang-cloud span.hl { color: #cfe0ff; border-color: rgba(91,140,255,.4); background: rgba(59,108,246,.12); }

.translate-demo { display: grid; gap: 10px; }
.tr-bubble { padding: 12px 14px; border-radius: 12px; font-size: .9rem; }
.tr-bubble small { display: block; font-size: .7rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.tr-src { background: rgba(255,255,255,.04); }
.tr-dst { background: rgba(45,212,191,.1); border: 1px solid rgba(45,212,191,.25); }

.qr-demo { display: flex; gap: 18px; align-items: center; }
.qr-box { width: 104px; height: 104px; flex: none; border-radius: 14px; background: #fff; padding: 10px; }
.qr-box svg { width: 100%; height: 100%; }
.qr-list { display: grid; gap: 8px; font-size: .85rem; color: var(--text-2); }
.qr-list div { display: flex; gap: 8px; align-items: center; }
.qr-list svg { width: 16px; height: 16px; color: var(--pink); flex: none; }

.filters { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.filters div { text-align: center; font-size: .72rem; color: var(--text-2); }
.filters i { display: block; aspect-ratio: 3/4; border-radius: 8px; margin-bottom: 6px; border: 1px solid var(--border); background: linear-gradient(160deg, #d9c9a8, #b8a27a); }
.filters div:nth-child(2) i { background: linear-gradient(160deg, #cfcfcf, #8d8d8d); }
.filters div:nth-child(3) i { background: repeating-linear-gradient(180deg, #fff 0 6px, #111 6px 8px, #fff 8px 14px); }
.filters div:nth-child(4) i { background: linear-gradient(160deg, #ffffff, #e6edff); box-shadow: 0 0 0 2px var(--blue); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; position: relative; }
.step { position: relative; padding: 34px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; margin-bottom: 22px;
  background: linear-gradient(135deg, #4c7dff, #2f5ce6); box-shadow: 0 8px 24px -6px var(--blue-glow);
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--text-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Privacy band ---------- */
.privacy-band {
  position: relative; overflow: hidden; border-radius: 28px; padding: 64px;
  background: linear-gradient(135deg, #0f1d44 0%, #0b1430 60%, #0a1024 100%);
  border: 1px solid rgba(91,140,255,.22);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.privacy-band .bg-glow { width: 420px; height: 420px; background: var(--blue); right: -120px; top: -160px; opacity: .4; }
.privacy-band h2 { margin: 18px 0 16px; }
.privacy-band p { color: var(--text-2); font-size: 1.05rem; }
.check-list { display: grid; gap: 14px; margin-top: 28px; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.check-list svg { width: 22px; height: 22px; flex: none; color: var(--green); margin-top: 1px; }
.shield {
  position: relative; aspect-ratio: 1; max-width: 340px; margin: 0 auto; width: 100%;
  display: grid; place-items: center;
}
.shield-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(91,140,255,.25); animation: pulse 4s ease-out infinite; }
.shield-ring:nth-child(1) { inset: 0; }
.shield-ring:nth-child(2) { inset: 14%; animation-delay: -1.3s; }
.shield-ring:nth-child(3) { inset: 28%; animation-delay: -2.6s; }
@keyframes pulse { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.15); } }
.shield-core { width: 46%; aspect-ratio: 1; border-radius: 30%; display: grid; place-items: center; background: linear-gradient(135deg, #4c7dff, #2547c4); box-shadow: 0 20px 60px -10px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,.25); }
.shield-core svg { width: 48%; height: 48%; color: #fff; }
@media (max-width: 900px) { .privacy-band { grid-template-columns: 1fr; padding: 44px 26px; text-align: center; } .check-list { text-align: left; max-width: 420px; margin-left: auto; margin-right: auto; } .shield { max-width: 240px; } }

/* ---------- Tools list ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tool {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  transition: transform .25s, border-color .25s, background .25s;
}
.tool:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-2); }
.tool i { width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center; }
.tool i svg { width: 22px; height: 22px; }
.tool h3 { font-size: 1.02rem; margin-bottom: 4px; }
.tool p { color: var(--text-2); font-size: .9rem; line-height: 1.5; }
@media (max-width: 900px) { .tools-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tools-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border-radius: 16px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: border-color .25s; }
.faq-item.open { border-color: rgba(91,140,255,.35); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; text-align: left; font-weight: 600; font-size: 1.02rem; }
.faq-q .pm { width: 28px; height: 28px; flex: none; border-radius: 50%; background: rgba(255,255,255,.05); position: relative; transition: transform .3s, background .3s; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; background: var(--text); border-radius: 2px; transform: translate(-50%, -50%); }
.faq-q .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s; }
.faq-item.open .pm { background: var(--blue); }
.faq-item.open .pm::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 22px 22px; color: var(--text-2); }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center; border-radius: 32px; padding: 80px 32px;
  background: radial-gradient(ellipse at top, #2a56e0 0%, #1a3aa8 45%, #0f1f5c 100%);
  box-shadow: 0 40px 100px -40px var(--blue-glow);
}
.cta::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse at center, #000, transparent 75%); }
.cta > * { position: relative; }
.cta img { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto 26px; box-shadow: 0 20px 50px -10px rgba(0,0,0,.5); }
.cta h2 { margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 520px; margin: 0 auto 34px; }
.cta .store-badge { margin: 0 auto; }
@media (max-width: 600px) { .cta { padding: 56px 20px; border-radius: 24px; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 70px 0 34px; margin-top: 120px; background: linear-gradient(180deg, transparent, rgba(59,108,246,.04)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer p.about { color: var(--text-2); font-size: .93rem; margin-top: 16px; max-width: 320px; }
.footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: 16px; font-family: var(--font); font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--text-2); font-size: .94rem; transition: color .2s; }
.footer ul a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--border); color: var(--text-3); font-size: .87rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: span 2; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } .footer-grid > :first-child { grid-column: span 1; } }
.page-legal .footer { margin-top: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Legal / content pages
   ========================================================= */
.page-hero { position: relative; overflow: hidden; padding: 150px 0 60px; text-align: center; border-bottom: 1px solid var(--border); }
.page-hero .bg-glow { width: 560px; height: 560px; background: var(--blue); top: -320px; left: 50%; transform: translateX(-50%); opacity: .45; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 18px 0 14px; }
.page-hero p { color: var(--text-2); max-width: 620px; margin: 0 auto; }
.page-hero .meta { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 22px; font-size: .88rem; color: var(--text-3); }
.page-hero .meta b { color: var(--text-2); font-weight: 600; }

.legal-wrap { display: grid; grid-template-columns: 250px 1fr; gap: 64px; padding: 64px 0 120px; align-items: start; }
.toc { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow: auto; }
.toc h4 { font-family: var(--font); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: 14px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-left: 1px solid var(--border); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-3); font-size: .88rem; line-height: 1.4; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--text); border-left-color: var(--blue-2); }

.prose { max-width: 760px; min-width: 0; }
.prose h2 { font-size: 1.5rem; margin: 56px 0 16px; padding-top: 8px; scroll-margin-top: 100px; display: flex; align-items: baseline; gap: 12px; }
.prose h2 .n { font-size: .85rem; color: var(--blue-2); font-family: var(--font); font-weight: 600; }
.prose > section:first-child h2 { margin-top: 0; }
.prose h3 { font-size: 1.08rem; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 14px 0; }
.prose li { margin: 8px 0; }
.prose li::marker { color: var(--blue-2); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: #8fb0ff; text-decoration: underline; text-decoration-color: rgba(143,176,255,.35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: #8fb0ff; }
.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: 14px; margin: 22px 0; background: rgba(59,108,246,.08); border: 1px solid rgba(91,140,255,.25); }
.callout svg { width: 22px; height: 22px; flex: none; color: var(--blue-2); margin-top: 2px; }
.callout p { color: #c8d4ee; margin: 0; }
.callout.warn { background: rgba(251,191,36,.07); border-color: rgba(251,191,36,.25); }
.callout.warn svg { color: var(--amber); }
.table-wrap { overflow-x: auto; margin: 20px 0; border-radius: 14px; border: 1px solid var(--border); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
.prose th, .prose td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { background: var(--surface); color: var(--text); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.prose td { color: var(--text-2); }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: var(--text); font-weight: 500; }
@media (max-width: 920px) {
  .legal-wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
  .toc { position: static; max-height: none; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
  .toc ol { border: 0; }
  .toc a { padding-left: 0; border: 0; }
}

/* Contact page */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 64px 0 40px; }
.contact-card { padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .25s, transform .25s; }
.contact-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.contact-card i { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; }
.contact-card i svg { width: 24px; height: 24px; }
.contact-card h3 { margin-bottom: 8px; }
.contact-card p { color: var(--text-2); font-size: .95rem; margin-bottom: 18px; }
.contact-card a.link { color: #8fb0ff; font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: 6px; word-break: break-all; }
.contact-card a.link svg { width: 16px; height: 16px; transition: transform .2s; }
.contact-card a.link:hover svg { transform: translateX(3px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card { max-width: 760px; margin: 0 auto 120px; padding: 40px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.form-card h2 { font-size: 1.6rem; margin-bottom: 8px; }
.form-card > p { color: var(--text-2); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--text-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg-2);
  border: 1px solid var(--border-strong); border-radius: 12px; padding: 13px 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(59,108,246,.18); }
.form-note { font-size: .82rem; color: var(--text-3); margin-top: 14px; }
@media (max-width: 600px) { .form-card { padding: 26px 18px; } .form-row { grid-template-columns: 1fr; gap: 0; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 100; padding: 13px 20px; border-radius: 14px; background: #16203a; border: 1px solid var(--border-strong); box-shadow: 0 20px 50px -10px rgba(0,0,0,.6); font-size: .92rem; transition: opacity .3s, transform .3s; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Back to top */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(22,31,51,.9); border: 1px solid var(--border-strong); backdrop-filter: blur(10px); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s, background .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue); }
.to-top svg { width: 20px; height: 20px; }
