/* VSPhoneX Gateway — landing. Sem inline (CSP style-src 'self'). */
:root {
  color-scheme: light;
  --bg: #fafafa;
  --bg-alt: #f4f4f5;
  --surface: #ffffff;
  --border: #e4e4e7;
  --text: #09090b;
  --muted: #52525b;
  --accent: #1d72d8;
  --accent-2: #06b6d4;
  --on-accent: #ffffff;
  --accent-soft: #e8f1fc;
  --ok: #15803d;
  --sig: #1d72d8;
  --media: #0e9f6e;
  --push: #c2410c;
  --sip: #7c3aed;
  --glow-a: rgba(29, 114, 216, 0.18);
  --glow-b: rgba(6, 182, 212, 0.14);
  --grid: rgba(9, 9, 11, 0.05);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0a0a0a;
    --bg-alt: #111111;
    --surface: #141414;
    --border: #262626;
    --text: #fafafa;
    --muted: #a6a6a6;
    --accent: #4c9bf5;
    --accent-2: #22d3ee;
    --on-accent: #0a0a0a;
    --accent-soft: #10223a;
    --ok: #4ade80;
    --sig: #4c9bf5;
    --media: #34d399;
    --push: #fb923c;
    --sip: #a78bfa;
    --glow-a: rgba(76, 155, 245, 0.22);
    --glow-b: rgba(34, 211, 238, 0.12);
    --grid: rgba(255, 255, 255, 0.045);
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 32px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* topo */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.top-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; text-decoration: none; letter-spacing: -0.01em; }
.brand b { color: var(--accent); font-weight: 750; }
.brand-sm { font-size: 14px; gap: 8px; }
.top-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.top-nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.top-nav a:not(.btn):hover { color: var(--text); }

/* botões */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 8px;
  background: var(--text); color: var(--bg);
  font-weight: 600; font-size: 14px; text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, opacity .15s ease, background .15s ease;
}
.btn:hover { opacity: .9; transform: translateY(-1px); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); }

/* hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px; border-bottom: 1px solid var(--border); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-glow {
  position: absolute; left: 50%; top: -220px; width: 900px; height: 520px; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow-a), transparent), radial-gradient(closest-side at 70% 60%, var(--glow-b), transparent);
  filter: blur(10px); pointer-events: none;
}
.hero-in { position: relative; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 500;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--ok) 0%, transparent); } }
.hero h1 { margin-top: 22px; font-size: clamp(34px, 6vw, 60px); font-weight: 750; }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 640px; margin: 20px auto 0; color: var(--muted); font-size: clamp(16px, 2vw, 18px); }
.cta { display: flex; justify-content: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.platforms { list-style: none; display: flex; justify-content: center; gap: 10px; margin: 36px 0 0; padding: 0; flex-wrap: wrap; }
.platforms li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 550; color: var(--muted); }
.platforms .android { color: #1a9150; }
@media (prefers-color-scheme: dark) { .platforms .android { color: #3ddc84; } }

/* seções */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.kicker { color: var(--accent); font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
.section-head h2, .cta-band h2 { margin-top: 10px; font-size: clamp(26px, 3.6vw, 38px); font-weight: 720; }
.sub { margin-top: 14px; color: var(--muted); font-size: 16px; }

/* diagrama */
.diagram { margin: 0; padding: 28px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); overflow-x: auto; }
.diagram svg { width: 100%; min-width: 760px; height: auto; font-family: var(--font); }
.d-card { fill: var(--bg-alt); stroke: var(--border); stroke-width: 1.5; }
.d-card-main { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }
.d-notch { fill: var(--border); }
.d-title { fill: var(--text); font-size: 17px; font-weight: 700; text-anchor: middle; }
.d-text { fill: var(--muted); font-size: 13px; text-anchor: middle; }
.d-tag { fill: var(--text); font-size: 13px; font-weight: 650; text-anchor: middle; }
.d-tag-sub { fill: var(--muted); font-size: 12px; text-anchor: middle; }
.d-accent-bg { fill: var(--accent); }
.d-accent-fg { fill: var(--on-accent); }
.d-chip rect { fill: var(--surface); stroke: var(--border); }
.d-chip text { fill: var(--text); font-size: 12.5px; font-weight: 550; text-anchor: middle; }
.d-chip-media rect { fill: color-mix(in srgb, var(--media) 14%, var(--surface)); stroke: var(--media); }
.d-rack { fill: var(--surface); stroke: var(--border); }
.d-led { fill: var(--ok); }
.d-arrow { fill: var(--muted); }
.d-link { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 7 7; animation: flow 1.2s linear infinite; }
.d-sig { stroke: var(--sig); }
.d-media { stroke: var(--media); }
.d-push { stroke: var(--push); animation-duration: 1.8s; }
.d-sip { stroke: var(--sip); }
@keyframes flow { to { stroke-dashoffset: -14; } }
.d-legend text { fill: var(--muted); font-size: 12.5px; }
.d-legend .d-link { animation: none; }

/* passos */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { padding: 22px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.step-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; }
.steps h3 { margin-top: 14px; font-size: 17px; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }

/* recursos */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); transition: border-color .15s ease, transform .15s ease; }
.feat:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); transform: translateY(-2px); }
.feat svg { width: 36px; height: 36px; padding: 7px; border-radius: 9px; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { margin-top: 16px; font-size: 16.5px; }
.feat p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }

/* faixa final */
.cta-band { padding: 72px 0; }
.cta-band-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 36px 40px; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(135deg, var(--accent-soft), var(--surface)); }
.cta-band h2 { margin-top: 0; }

/* rodapé */
.foot { border-top: 1px solid var(--border); padding: 28px 0; font-size: 13px; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

@media (max-width: 900px) {
  .steps, .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .top-nav a:not(.btn) { display: none; }
  .hero { padding: 64px 0 52px; }
  .section { padding: 64px 0; }
  .steps, .grid { grid-template-columns: 1fr; }
  .diagram { padding: 14px; }
  .cta-band-in { flex-direction: column; align-items: flex-start; padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* lojas */
.stores { display: flex; justify-content: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 18px 0 14px; border-radius: 12px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid #3a3a3a;
  transition: transform .15s ease, border-color .15s ease;
}
.store:hover { transform: translateY(-1px); border-color: #6b6b6b; }
.store span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store small { font-size: 11px; opacity: .85; }
.store b { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.stores-sm { margin-top: 0; justify-content: flex-end; }
.stores-sm .store { height: 46px; }
.stores-sm .store b { font-size: 16px; }
.cta-band-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) {
  .cta-band-actions, .stores-sm { justify-content: flex-start; }
}

/* logo do app no topo */
.hero-logo { width: 88px; height: 88px; margin: 0 auto 22px; border-radius: 50%; box-shadow: 0 10px 40px var(--glow-a); }
.brand img { border-radius: 50%; }
