@font-face { font-family: Geist; src: url(/fonts/Geist-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: Geist; src: url(/fonts/Geist-Medium.ttf); font-weight: 500; font-display: swap; }
@font-face { font-family: Geist; src: url(/fonts/Geist-SemiBold.ttf); font-weight: 600; font-display: swap; }
@font-face { font-family: Geist; src: url(/fonts/Geist-Bold.ttf); font-weight: 700; font-display: swap; }
@font-face { font-family: GeistMono; src: url(/fonts/GeistMono-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: GeistMono; src: url(/fonts/GeistMono-Medium.ttf); font-weight: 500; font-display: swap; }

:root {
  --bg: #0e0e10;
  --card: #18181b;
  --line: #2a2a2f;
  --text: #f4f4f5;
  --muted: #8a8a93;
  --orange: #ff7a1a;
  --on-orange: #140a02;
  --green: #34d399;
  --radius: 22px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 Geist, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mono {
  font-family: GeistMono, ui-monospace, monospace;
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.accent { color: var(--orange); }

/* Header */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
header.top.scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav .links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav .links a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .2s; }
.nav .links a:hover { color: var(--text); }
.nav .lang { font-family: GeistMono, monospace; font-size: 12.5px; border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 22px; border-radius: 16px;
  font: 600 16px Geist, sans-serif; text-decoration: none;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  transition: transform .25s cubic-bezier(.05,.7,.1,1), background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); border-color: #3a3a40; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--orange); border-color: var(--orange); color: var(--on-orange); box-shadow: 0 10px 40px -10px color-mix(in srgb, var(--orange) 70%, transparent); }
.btn.primary:hover { background: #ff8a33; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* Hero */
.hero { position: relative; padding: 72px 0 40px; }
.hero .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 {
  font-size: clamp(44px, 6.4vw, 78px); line-height: 1.02; letter-spacing: -.045em;
  font-weight: 700; margin: 18px 0 22px;
}
.hero p.lead { font-size: 20px; color: #c4c4cb; max-width: 30em; margin: 0 0 32px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { margin-top: 18px; }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px 6px 10px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 60%, transparent); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.stage { position: relative; display: flex; justify-content: center; }
.stage::before {
  content: ""; position: absolute; inset: 8% -10% 0; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--orange) 32%, transparent), transparent);
  filter: blur(20px);
}
.phone {
  width: min(320px, 78vw); aspect-ratio: 1080 / 2400;
  border-radius: 44px; padding: 10px; background: #050506;
  border: 1px solid #2c2c31;
  box-shadow: 0 40px 80px -30px #000, inset 0 0 0 1px #000;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.chip {
  position: absolute; left: -6%; bottom: 18%;
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 9px 12px; color: var(--text);
  box-shadow: 0 18px 40px -16px #000;
  animation: float 6s ease-in-out -3s infinite;
}
.chip .dot { background: var(--orange); }

/* Sections */
section { padding: 96px 0; }
section h2 { font-size: clamp(32px, 4.4vw, 50px); letter-spacing: -.035em; line-height: 1.08; margin: 12px 0 18px; font-weight: 700; }
section .sub { color: var(--muted); font-size: 19px; max-width: 34em; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.step, .card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.step .n { font-family: GeistMono, monospace; color: var(--orange); font-size: 14px; }
.step h3, .card h3 { font-size: 20px; letter-spacing: -.02em; margin: 14px 0 8px; }
.step p, .card p { color: var(--muted); margin: 0; font-size: 16px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.card .icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--orange) 14%, transparent); color: var(--orange);
}
.card .icon svg { width: 22px; height: 22px; }

.private { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.flow { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.flow .row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.flow .row:last-child { border: 0; }
.flow .row b { font-weight: 600; }
.flow .row .mono { margin-left: auto; }
.flow .ok { color: var(--green); }
.flow .no { color: #f87171; }

.gallery { display: flex; gap: 20px; overflow-x: auto; padding: 48px 24px 20px; margin: 0 -24px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; flex: none; scroll-snap-align: center; }
.gallery .phone { width: 250px; border-radius: 36px; padding: 8px; }
.gallery .phone img { border-radius: 28px; }
.gallery figcaption { text-align: center; margin-top: 14px; }

.download { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.download .card { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.download .card .btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.download h3 { font-size: 26px; margin: 0; }

.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; font-size: 19px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-family: GeistMono, monospace; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 12px 0 0; max-width: 46em; }

footer { border-top: 1px solid var(--line); padding: 36px 0 48px; }
footer .wrap { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .links { margin-left: auto; display: flex; gap: 22px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.05,.7,.1,1), transform .8s cubic-bezier(.05,.7,.1,1); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { animation: rise .9s cubic-bezier(.05,.7,.1,1) both; opacity: 1; transform: none; transition: none; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

/* Legal pages */
.doc { max-width: 760px; padding-top: 56px; padding-bottom: 80px; }
.doc h1 { overflow-wrap: break-word; hyphens: auto; font-size: clamp(30px, 5vw, 52px); letter-spacing: -.04em; line-height: 1.05; margin: 0 0 10px; }
.doc h2 { font-size: 24px; letter-spacing: -.02em; margin: 40px 0 10px; }
.doc p, .doc li { color: #c4c4cb; }
.doc em { color: var(--muted); font-style: normal; font-family: GeistMono, monospace; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15.5px; }
.doc th, .doc td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-family: GeistMono, monospace; font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.doc td:first-child { color: var(--text); white-space: nowrap; }
.doc a { color: var(--orange); }

@media (max-width: 900px) {
  .hero .grid, .private { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; text-align: left; }
  .stage { margin-top: 24px; }
  .steps, .features, .download { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .nav .links a:not(.lang):not(.cta-link) { display: none; }
  .doc td:first-child { white-space: normal; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .gallery { padding-left: 16px; padding-right: 16px; margin: 0 -16px; }
  .hero .cta .btn { flex: 1 1 100%; justify-content: center; }
  .chip { left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
