/* DialeDesk — site público.
   Conceito: o endereço de 9 dígitos é a estrela; tipografia de máquina
   (mono) para endereços e medidas, display arredondado para títulos, e as
   ondas do ícone como motivo gráfico. Petróleo da marca + menta das ondas. */
:root {
  --bg: #f3f7f7;
  --surface: #ffffff;
  --tint: #e6f1f1;
  --ink: #0f1b22;
  --muted: #55666e;
  --line: #d6e3e4;
  --brand: #0e7c86;
  --brand-strong: #0a5f67;
  --wave: #9fe1cb;
  --panel: #12202b;
  --panel-text: #e8f0f2;
  --panel-muted: #9fb3bb;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c151b; --surface: #121f27; --tint: #0f1c23; --ink: #e6eef1; --muted: #93a7af;
    --line: #22343d; --brand: #23a5b0; --brand-strong: #4cc3cc; --wave: #9fe1cb;
    --panel: #081016; --panel-text: #e8f0f2; --panel-muted: #8fa5ad;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c151b; --surface: #121f27; --tint: #0f1c23; --ink: #e6eef1; --muted: #93a7af;
  --line: #22343d; --brand: #23a5b0; --brand-strong: #4cc3cc; --wave: #9fe1cb;
  --panel: #081016; --panel-text: #e8f0f2; --panel-muted: #8fa5ad;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 1.12rem; font-weight: 500; }
p { margin: 0; }
code, .mono { font-family: var(--font-mono); font-size: 0.92em; }
code { background: var(--tint); padding: 0.1em 0.35em; border-radius: 5px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font: 500 0.78rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.fine { font-size: 0.86rem; color: var(--muted); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.05rem; border-radius: 10px;
  font: 600 0.95rem/1 var(--font-body); text-decoration: none;
  border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s;
}
.btn-lg { padding: 0.9rem 1.4rem; font-size: 1rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); }

/* ---------- topo ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 21; background: var(--bg);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.15rem var(--font-display); }
.brand img { border-radius: 8px; }
.beta {
  font: 500 0.66rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand); border: 1px solid var(--brand); border-radius: 999px; padding: 3px 7px;
}
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.94rem; }
.nav a:hover { color: var(--ink); }
.topbar-actions { margin-left: auto; display: flex; gap: 10px; }

/* ---------- abertura ---------- */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-demo { min-width: 0; position: relative; }
.hero-demo::before {
  /* ondas do ícone, em grande, atrás da janela */
  content: ""; position: absolute; inset: -18% -30% -18% 10%;
  background:
    radial-gradient(circle at 30% 50%, transparent 31%, color-mix(in srgb, var(--wave) 45%, transparent) 31.5%, transparent 33%),
    radial-gradient(circle at 30% 50%, transparent 43%, color-mix(in srgb, var(--wave) 30%, transparent) 43.5%, transparent 45%),
    radial-gradient(circle at 30% 50%, transparent 55%, color-mix(in srgb, var(--wave) 18%, transparent) 55.5%, transparent 57%);
  z-index: 0;
}
.window {
  position: relative; z-index: 1;
  background: var(--panel); color: var(--panel-text);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(9, 30, 38, .45), 0 0 0 1px rgba(255, 255, 255, .06);
}
.window-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-size: 0.82rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.window-bar img { border-radius: 5px; }
.window-title { font-weight: 600; }
.window-status { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--panel-muted); font-size: 0.75rem; }
.window-status i { width: 7px; height: 7px; border-radius: 50%; background: #3ccf8e; }
.window-address {
  display: flex; align-items: center; gap: 12px; margin: 14px; padding: 8px 8px 8px 14px;
  border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
}
.address-label { font-size: 0.72rem; color: var(--panel-muted); white-space: nowrap; }
.address-value { font: 500 1.3rem var(--font-mono); letter-spacing: 0.06em; flex: 1; min-width: 0; }
.address-value::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 3px; vertical-align: -0.15em; background: var(--wave); animation: blink 1s steps(1) infinite; }
.address-go { background: var(--brand); padding: 7px 12px; border-radius: 7px; font-size: 0.82rem; font-weight: 600; }
.window-body { display: grid; grid-template-columns: 1fr auto 1.25fr; gap: 14px; align-items: center; padding: 6px 14px 18px; }
.this-pc { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 10px; background: rgba(35, 165, 176, .12); }
.this-pc-label { font-size: 0.7rem; color: var(--panel-muted); }
.this-pc-id { font: 500 1.05rem var(--font-mono); color: var(--wave); letter-spacing: 0.04em; }
.this-pc-mode { font-size: 0.68rem; color: var(--panel-muted); }
.signal { display: flex; gap: 5px; }
.signal span { width: 7px; height: 7px; border-radius: 50%; background: var(--wave); opacity: .25; animation: pulse 1.2s ease-in-out infinite; }
.signal span:nth-child(2) { animation-delay: .15s; }
.signal span:nth-child(3) { animation-delay: .3s; }
.remote { display: flex; flex-direction: column; gap: 6px; }
.remote-screen {
  aspect-ratio: 16 / 9; border-radius: 8px; position: relative; overflow: hidden;
  background:
    linear-gradient(135deg, #1b4a55 0%, #0e7c86 55%, #3aa3a0 100%);
}
.remote-screen::before {
  content: ""; position: absolute; left: 12%; top: 16%; width: 46%; height: 52%;
  background: rgba(255,255,255,.92); border-radius: 4px;
  box-shadow: 18px 14px 0 -2px rgba(255,255,255,.55);
}
.remote-taskbar { position: absolute; inset: auto 0 0; height: 11%; background: rgba(8, 16, 22, .75); }
.remote-name { font-size: 0.78rem; font-weight: 600; }
.remote-meta { font: 0.7rem var(--font-mono); color: var(--panel-muted); }

@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 50% { opacity: 1; transform: scale(1.25); } }

/* ---------- seções ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-tint { background: var(--tint); }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; max-width: 760px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.step { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 2px solid var(--ink); }
.step-num { font: 700 2.6rem/1 var(--font-display); color: var(--brand); }
.step p { color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.feature p { color: var(--muted); font-size: 0.96rem; }
.feature-wide { grid-column: span 3; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 32px; align-items: center; }
.feature-wide h3 { grid-column: 1; font-size: 1.35rem; }
.feature-wide p { grid-column: 1; }
.ladder { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 6px; }
.ladder span {
  display: flex; justify-content: space-between; gap: 12px;
  font: 0.86rem var(--font-mono); color: var(--muted);
  padding: 8px 12px; border-radius: 8px; background: var(--tint);
}
.ladder span:first-child { background: color-mix(in srgb, var(--brand) 16%, var(--tint)); color: var(--ink); }
.ladder b { font-weight: 500; color: var(--ink); }

.security { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.security .section-head { margin-bottom: 0; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.checks li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.checks li:first-child { border-top: 1px solid var(--line); }
.checks b { color: var(--ink); font-weight: 600; }

/* ---------- download ---------- */
.section-ink { background: var(--panel); color: var(--panel-text); }
.section-ink .lead { color: var(--panel-muted); }
.section-ink .eyebrow { color: var(--wave); }
.download { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.download-main { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.download-main h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.specs { margin: 8px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; width: 100%; max-width: 520px; }
.specs div { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 10px; }
.specs dt { font: 0.72rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--panel-muted); }
.specs dd { margin: 0; font-variant-numeric: tabular-nums; }
.download-side { display: flex; flex-direction: column; gap: 12px; }
.download-side h3 { font-size: 1rem; color: var(--panel-muted); font-family: var(--font-body); font-weight: 500; }
.file {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.12); text-decoration: none; color: var(--panel-text);
}
.file:hover { border-color: var(--wave); }
.file b { font: 500 0.95rem var(--font-mono); }
.file span { font-size: 0.88rem; color: var(--panel-muted); }
.beta-note { font-size: 0.86rem; color: var(--panel-muted); padding: 14px 16px; border-left: 2px solid var(--wave); }

/* ---------- perguntas ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; }
.faq { display: flex; flex-direction: column; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; 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: "+"; font: 400 1.3rem/1 var(--font-mono); color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 18px; color: var(--muted); max-width: 62ch; }

/* ---------- rodapé ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 28px; }
.footer-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 0.9rem; color: var(--muted); }
.footer-inner p { margin-right: auto; }

/* ---------- telas menores ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .hero-grid, .security, .download, .faq-wrap { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .steps, .features { grid-template-columns: 1fr; }
  .feature-wide { grid-column: auto; grid-template-columns: 1fr; }
  .ladder { grid-column: 1; grid-row: auto; }
  .window-body { grid-template-columns: 1fr; }
  .signal { display: none; }
  .topbar-actions .btn-ghost { display: none; }
  .specs { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
