/* ==========================================================================
   Remoting — site comercial  |  Arquétipo C (SaaS / Dark Premium)
   Paleta: 1 base navy profunda + 1 acento sky funcional. WCAG AA.
   ========================================================================== */

:root {
  /* Base */
  --bg:        #0a111f;
  --bg-2:      #0d1626;
  --surface:   #111d32;
  --surface-2: #16243c;
  --border:    #26344f;
  --border-2:  #324468;

  /* Texto (contraste verificado sobre --bg/--surface) */
  --text:      #f2f6fc;
  --muted:     #aebbd2;   /* >= 7:1 sobre --bg */
  --faint:     #8695b0;   /* >= 4.5:1 sobre --bg */

  /* Acento */
  --sky:       #38bdf8;
  --sky-strong:#0ea5e9;
  --sky-ink:   #06283d;   /* texto escuro sobre botão sky */
  --green:     #22c55e;
  --amber:     #f0b44a;

  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1140px;
  --shadow:    0 18px 48px -24px rgba(2, 10, 24, 0.9);
  --font:      'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5rem; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; color: var(--muted); }
a  { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.eyebrow {
  display: inline-block; font-family: var(--font); font-weight: 700;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sky); margin-bottom: .75rem;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 54ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .2s, border-color .2s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--sky); color: var(--sky-ink); }
.btn-primary:hover { background: #5cccfb; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--sky); background: rgba(56,189,248,.08); }
.btn-block { width: 100%; justify-content: center; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,17,31,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; }
.brand svg, .brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.7rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-size: .96rem; font-weight: 600; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: .7rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% 40% auto -10%; height: 520px;
  background: radial-gradient(ellipse at top left, rgba(56,189,248,.16), transparent 62%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; position: relative; }
.hero h1 span { color: var(--sky); }
.hero .lead { margin-top: .5rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.4rem; }
.trust { display: flex; flex-wrap: wrap; gap: 1.1rem 1.6rem; list-style: none; padding: 0; margin: 0; }
.trust li { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .92rem; font-weight: 600; }
.trust svg { width: 18px; height: 18px; color: var(--green); flex: none; }

/* Mock de conexão no hero */
.hero-visual {
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.1rem; position: relative;
}
.mock-bar { display: flex; align-items: center; gap: .6rem; padding: .35rem .3rem .75rem; border-bottom: 1px solid var(--border); margin-bottom: .9rem; }
.mock-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-2); }
.mock-url { margin-left: auto; font-size: .78rem; color: var(--faint); font-family: var(--font-body); }
.mock-peer { display: flex; align-items: center; gap: .85rem; padding: .8rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); margin-bottom: .6rem; }
.mock-peer .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--sky); flex: none; }
.mock-peer .ico svg { width: 22px; height: 22px; }
.mock-peer b { font-family: var(--font); font-size: .98rem; }
.mock-peer small { color: var(--faint); font-size: .8rem; display: flex; align-items: center; gap: .35rem; }
.online { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.mock-peer .go { margin-left: auto; font-family: var(--font); font-weight: 700; color: var(--sky); font-size: .85rem; }

/* ---------- Faixa de confiança ---------- */
.strip { border-block: 1px solid var(--border); background: var(--bg-2); }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: center; padding-block: 1.1rem; }
.strip span { color: var(--faint); font-size: .88rem; font-weight: 600; display: flex; align-items: center; gap: .5rem; }
.strip svg { width: 16px; height: 16px; color: var(--sky); }

/* ---------- Cards de recursos ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2.2rem; }
.feat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; transition: border-color .2s, transform .2s;
}
.feat:hover { border-color: var(--border-2); transform: translateY(-3px); }
.feat .ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(56,189,248,.1); color: var(--sky); display: grid; place-items: center; margin-bottom: 1rem; }
.feat .ico svg { width: 24px; height: 24px; }
.feat h3 { margin-bottom: .35rem; }
.feat p { margin: 0; font-size: .95rem; }

/* ---------- Acesso Web (destaque) ---------- */
.webaccess { background: var(--bg-2); border-block: 1px solid var(--border); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.device-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.3rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border: 1px solid var(--border-2); border-radius: 999px; font-size: .86rem; font-weight: 600; color: var(--muted); }
.chip svg { width: 16px; height: 16px; color: var(--sky); }
.browser-frame { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.browser-top { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.browser-top .addr { margin-left: .4rem; flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 7px; padding: .3rem .7rem; font-size: .78rem; color: var(--muted); font-family: var(--font-body); }
.browser-body { padding: 1.3rem; display: grid; gap: .7rem; }
.browser-body .screen { aspect-ratio: 16/10; border-radius: var(--radius-sm); border: 1px solid var(--border); background:
  linear-gradient(135deg, rgba(56,189,248,.08), transparent 55%), var(--bg); display: grid; place-items: center; color: var(--faint); }
.browser-body .screen svg { width: 54px; height: 54px; color: var(--border-2); }

/* ---------- Planos ---------- */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; max-width: 880px; margin: 2.4rem auto 0; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.8rem; display: flex; flex-direction: column; }
.plan.pro { border-color: var(--sky); background: linear-gradient(180deg, rgba(56,189,248,.07), var(--surface) 40%); position: relative; }
.plan-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--sky); color: var(--sky-ink); font-family: var(--font); font-weight: 800; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .85rem; border-radius: 999px; }
.plan h3 { font-size: 1.4rem; }
.price { font-family: var(--font); margin: .6rem 0 .3rem; }
.price b { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.02em; }
.price .per { color: var(--faint); font-size: .95rem; font-weight: 600; }
.price .free { font-size: 2.6rem; font-weight: 800; }
.plan .sub { color: var(--faint); font-size: .9rem; margin-bottom: 1.2rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .65rem; }
.plan li { display: flex; align-items: flex-start; gap: .6rem; font-size: .95rem; color: var(--muted); }
.plan li svg { width: 19px; height: 19px; color: var(--green); flex: none; margin-top: 2px; }
.plan li.off { color: var(--faint); }
.plan li.off svg { color: var(--border-2); }
.plan .btn { margin-top: auto; }

/* ---------- Download ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2.2rem; }
.dl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; text-align: center; }
.dl-card .os { width: 52px; height: 52px; margin: 0 auto 1rem; color: var(--sky); }
.dl-card h3 { margin-bottom: .2rem; }
.dl-card p { font-size: .88rem; margin-bottom: 1.1rem; }
.steps { counter-reset: step; max-width: 620px; margin: 2.4rem auto 0; display: grid; gap: .9rem; }
.step { display: flex; gap: 1rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; }
.step::before { counter-increment: step; content: counter(step); font-family: var(--font); font-weight: 800; color: var(--sky-ink); background: var(--sky); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: .95rem; }
.step b { font-family: var(--font); }
.step p { margin: .15rem 0 0; font-size: .92rem; }

/* ---------- Gerador de embed ---------- */
.embed { background: var(--bg-2); border-block: 1px solid var(--border); }
.embed-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2.2rem; margin-top: 2rem; align-items: start; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-family: var(--font); font-weight: 700; font-size: .85rem; margin-bottom: .4rem; color: var(--text); }
.field input, .field select {
  width: 100%; background: var(--bg); border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  color: var(--text); padding: .75rem .9rem; font-family: var(--font-body); font-size: .95rem;
}
.field input:focus, .field select:focus { outline: 2px solid var(--sky); outline-offset: 1px; border-color: var(--sky); }
.field .hint { font-size: .8rem; color: var(--faint); margin-top: .3rem; }
.code-out { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: .7rem 1rem; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.code-head b { font-family: var(--font); font-size: .9rem; }
.code-tabs { display: flex; gap: .3rem; }
.code-tab { background: transparent; border: 1px solid var(--border-2); color: var(--muted); font-family: var(--font); font-weight: 700; font-size: .78rem; padding: .35rem .8rem; border-radius: 7px; cursor: pointer; }
.code-tab[aria-selected="true"] { background: var(--sky); color: var(--sky-ink); border-color: var(--sky); }
.code-out pre { margin: 0; padding: 1.1rem; overflow-x: auto; font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .82rem; color: #cfe6f7; line-height: 1.55; }
.copy-btn { display: inline-flex; align-items: center; gap: .4rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 2.2rem auto 0; display: grid; gap: .7rem; }
.qa { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qa summary { cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; font-family: var(--font); font-weight: 700; font-size: 1.02rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-size: 1.5rem; color: var(--sky); font-weight: 400; line-height: 1; flex: none; }
.qa[open] summary::after { content: "–"; }
.qa .a { padding: 0 1.3rem 1.2rem; color: var(--muted); font-size: .95rem; }

/* ---------- CTA final ---------- */
.cta-final { text-align: center; }
.cta-final .box { background: linear-gradient(160deg, var(--surface-2), var(--bg-2)); border: 1px solid var(--border-2); border-radius: var(--radius); padding: clamp(2.2rem, 5vw, 3.5rem); }
.cta-final .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 3rem 0 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.foot-grid h3 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.foot-grid a { color: var(--muted); font-size: .92rem; }
.foot-grid a:hover { color: var(--text); text-decoration: none; }
.foot-grid p { font-size: .9rem; }
.foot-bottom { border-top: 1px solid var(--border); margin-top: 2.2rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; color: var(--faint); font-size: .85rem; }

/* ---------- Modal (criar conta / login) ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(4,9,18,.72); backdrop-filter: blur(4px); }
.modal.open { display: flex; }
.modal-card { background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius); width: 100%; max-width: 440px; padding: 2rem; box-shadow: var(--shadow); position: relative; }
.modal-card h3 { font-size: 1.5rem; }
.modal-card .sub { color: var(--muted); font-size: .95rem; margin-bottom: 1.4rem; }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: 0; color: var(--faint); cursor: pointer; padding: 6px; }
.modal-close svg { width: 22px; height: 22px; }
.modal-close:hover { color: var(--text); }
.step-pane { display: none; }
.step-pane.active { display: block; }
.code-inputs { display: flex; gap: .5rem; justify-content: space-between; margin: .4rem 0 1rem; }
.code-inputs input { width: 100%; aspect-ratio: 1; text-align: center; font-family: var(--font); font-size: 1.5rem; font-weight: 800; background: var(--bg); border: 1px solid var(--border-2); border-radius: var(--radius-sm); color: var(--text); }
.code-inputs input:focus { outline: 2px solid var(--sky); border-color: var(--sky); }
.msg { font-size: .88rem; padding: .6rem .8rem; border-radius: var(--radius-sm); margin-bottom: 1rem; display: none; }
.msg.show { display: block; }
.msg.err { background: rgba(240,80,80,.12); color: #ffb4b4; border: 1px solid rgba(240,80,80,.3); }
.msg.ok { background: rgba(34,197,94,.12); color: #8ff0b4; border: 1px solid rgba(34,197,94,.3); }
.modal-foot { text-align: center; font-size: .9rem; color: var(--muted); margin-top: 1.1rem; }
.linkbtn { background: none; border: 0; color: var(--sky); font-weight: 700; cursor: pointer; font-family: var(--font-body); font-size: inherit; padding: 0; }
.linkbtn:hover { text-decoration: underline; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text); padding: .8rem 1.3rem; border-radius: var(--radius-sm); box-shadow: var(--shadow); font-weight: 600; font-size: .92rem; opacity: 0; pointer-events: none; transition: .25s; z-index: 200; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- Responsivo ---------- */
@media (max-width: 920px) {
  .hero-grid, .split, .embed-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { order: -1; }
  .feat-grid, .dl-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column;
    background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 1rem 20px; gap: 1rem;
  }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn-ghost { display: none; }
  .feat-grid, .dl-grid, .plans, .foot-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
