/* Identidade do Orbita — mesma paleta do aplicativo (src/renderer/shared/theme.css) */
:root {
  --bg: #101014;
  --bg-elevated: #17171d;
  --border: #2a2a34;
  --text: #ececf1;
  --text-dim: #9a9aa8;
  --accent: #6c8cff;
  --accent-2: #9b6cff;
  --radius: 14px;
  --font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Brilho difuso ao fundo, ecoando o anel do icone. */
body::before {
  content: "";
  position: fixed;
  inset: -30% 0 auto;
  height: 70vh;
  background: radial-gradient(ellipse at 50% 0%, rgba(108, 140, 255, 0.16), transparent 65%);
  pointer-events: none;
  z-index: -1;
}

.wrap { max-width: 62rem; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 44rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- topo ---------- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; }
.brand:hover { text-decoration: none; }
/* Logotipo horizontal do app. A altura fixa evita o pulo de layout ao carregar. */
.brand img { height: 44px; width: auto; display: block; }

nav { display: flex; gap: 1.4rem; font-size: 0.93rem; }
nav a { color: var(--text-dim); }
nav a:hover { color: var(--text); text-decoration: none; }

/* ---------- hero ---------- */
.hero { padding: 3.5rem 0 4rem; text-align: center; }
.hero .mark {
  width: 160px;
  height: 160px;
  margin-bottom: 1.4rem;
  /* O icone ja tem brilho proprio; a sombra so o assenta no fundo. */
  filter: drop-shadow(0 12px 32px rgba(108, 140, 255, 0.28));
}

h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--text-dim);
  max-width: 34rem;
  margin: 0 auto 2rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0d1020;
  font-weight: 650;
  font-size: 1rem;
  padding: 0.85rem 1.7rem;
  border-radius: 10px;
}
.cta:hover { filter: brightness(1.08); text-decoration: none; }

.req { color: var(--text-dim); font-size: 0.85rem; margin-top: 0.9rem; }

/* ---------- area de download ---------- */
.downloads {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.5rem 0 1.2rem;
}

/* Acao secundaria: mesma forma do botao principal, sem o preenchimento. */
.cta--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 550;
}
.cta--ghost:hover { background: var(--bg-elevated); filter: none; }

.dl-note {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 34rem;
  margin: 0 auto;
}

/* ---------- recursos ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1rem;
  padding: 1rem 0 3rem;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.card h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.card p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }

/* ---------- faixa de destaque ---------- */
.highlight {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(108, 140, 255, 0.1), rgba(155, 108, 255, 0.06));
  padding: 2rem;
  margin: 0 0 3.5rem;
  text-align: center;
}
.highlight h2 { margin-top: 0; }
.highlight p { color: var(--text-dim); max-width: 40rem; margin: 0 auto; }

/* ---------- texto corrido (privacidade e termos) ---------- */
main.doc { padding: 1.5rem 0 4rem; }
main.doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); text-align: left; }

h2 { font-size: 1.25rem; margin: 2.5rem 0 0.6rem; letter-spacing: -0.01em; }

.updated { color: var(--text-dim); font-size: 0.9rem; margin-top: -0.4rem; }

table { border-collapse: collapse; width: 100%; margin: 1.2rem 0; font-size: 0.94rem; }
th, td { border: 1px solid var(--border); padding: 0.6rem 0.75rem; text-align: left; vertical-align: top; }
th { font-weight: 600; background: var(--bg-elevated); }

code {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 0.08rem 0.35rem;
  border-radius: 5px;
  font-size: 0.88em;
}

ul { padding-left: 1.25rem; }
li { margin: 0.35rem 0; }

/* Tabelas largas rolam sozinhas em vez de esticar a pagina. */
.scroll-x { overflow-x: auto; }

/* ---------- rodape ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 3rem;
  color: var(--text-dim);
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
footer nav { gap: 1.2rem; }
