/* ==========================================================================
   GeA Software — folha de estilo
   Identidade: brand/Manual_tecnico_GeA.pdf
     Azul tecnológico #1769E0 · Azul profundo #0B1220 · Branco #FFFFFF
   Organização: fontes → tokens → base → layout → componentes → seções → páginas
   Sem dependências externas: fonte servida pelo próprio site.
   ========================================================================== */

/* --- Fontes ------------------------------------------------------------- */
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens ------------------------------------------------------------- */
:root {
  /* Paleta oficial */
  --blue: #1769e0;
  --navy: #0b1220;
  --white: #ffffff;

  /* Derivadas (tons da paleta oficial) */
  --blue-hover: #1257c0;
  --blue-soft: #e8f0fd;
  --blue-light: #5c9cf5;
  --navy-2: #121b2e;
  --navy-line: rgba(255, 255, 255, .1);

  --ink: var(--navy);
  --ink-soft: #3b4456;
  --muted: #687086;
  --paper: var(--white);
  --surface: #f5f7fb;
  --line: #e3e8f1;

  --font-display: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --header-h: 72px;
  --shadow: 0 1px 2px rgba(11, 18, 32, .04), 0 12px 32px -12px rgba(11, 18, 32, .14);
}

/* --- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
  font-weight: 700;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
p  { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 20;
  background: var(--navy); color: var(--white); padding: .6rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* --- Layout ------------------------------------------------------------- */
.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--navy); color: var(--white); }

.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section--dark .section-head p { color: rgba(255, 255, 255, .7); }

/* --- Cabeçalho ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(11, 18, 32, .5); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1.5rem;
}

.brand { display: inline-flex; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: 2rem; font-size: .95rem; font-weight: 500; }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover { color: var(--blue); }
.nav .btn { color: var(--white); }

/* --- Componentes -------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--blue-light); }

.lead { font-size: clamp(1.1rem, 1.7vw, 1.25rem); color: var(--ink-soft); max-width: 46ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer;
  background: var(--blue); color: var(--white);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--blue-hover); color: var(--white); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(23, 105, 224, .7); }
.btn--sm { padding: .6rem 1.05rem; font-size: .88rem; }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .28); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); box-shadow: none; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { background: var(--surface); color: var(--ink); border-color: var(--ink-soft); box-shadow: none; }
.btn svg { width: 18px; height: 18px; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; }
.actions--center { justify-content: center; }

.card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.9rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 1.3rem;
  display: grid; place-items: center; color: var(--white);
  background: linear-gradient(135deg, var(--blue-light), var(--blue) 55%, #0b3fa0);
  box-shadow: 0 10px 20px -10px rgba(23, 105, 224, .8);
}
.card-icon svg { width: 22px; height: 22px; }

.grid-3 { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy); color: var(--white);
  padding-block: clamp(4.5rem, 10vw, 8rem);
}
/* grade técnica + brilho azul */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(var(--navy-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--navy-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
  opacity: .55;
}
.hero::after {
  content: ""; position: absolute; z-index: -1;
  width: 720px; height: 720px; right: -160px; top: -200px;
  background: radial-gradient(circle, rgba(23, 105, 224, .45), transparent 62%);
  filter: blur(10px);
}
.hero .container {
  display: grid; gap: 3rem; align-items: center;
  grid-template-columns: 1.2fr .8fr;
}
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--blue-light); }
.hero .lead { color: rgba(255, 255, 255, .74); }
.hero-mark { position: relative; justify-self: center; width: min(380px, 100%); }
.hero-mark img { width: 100%; filter: drop-shadow(0 30px 60px rgba(23, 105, 224, .35)); }

.stats {
  display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--navy-line);
}
.stats div { font-size: .9rem; color: rgba(255, 255, 255, .6); }
.stats strong { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--white); font-weight: 700; }

/* --- Como trabalhamos --------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.step {
  padding: 1.6rem; border-radius: var(--radius);
  background: var(--navy-2); border: 1px solid var(--navy-line);
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--font-mono); font-size: .85rem; color: var(--blue-light); margin-bottom: .9rem;
}
.step h3 { color: var(--white); }
.step p { color: rgba(255, 255, 255, .65); margin: 0; font-size: .96rem; }

/* --- Produtos (Retro 99) ------------------------------------------------ */
.product {
  display: grid; gap: 3rem; align-items: center; grid-template-columns: .8fr 1.2fr;
  background: var(--white); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(1.75rem, 4vw, 3.25rem); box-shadow: var(--shadow);
}
.device {
  width: min(250px, 100%); margin-inline: auto; aspect-ratio: 5 / 8;
  border-radius: 26px 26px 64px 26px; padding: 20px;
  background: linear-gradient(160deg, var(--blue-light), var(--blue) 45%, #0c3e9a);
  box-shadow: 0 30px 60px -25px rgba(23, 105, 224, .6), inset 0 2px 0 rgba(255, 255, 255, .25);
  display: flex; flex-direction: column; gap: 16px;
}
.device-screen {
  flex: 0 0 56%; border-radius: 10px; background: #c4cfa1;
  box-shadow: inset 0 0 0 6px #22262d, inset 0 0 0 7px #0f1114;
  display: grid; place-items: center; padding: 14px;
}
.device-screen svg { width: 76%; }
.device-pad { flex: 1; display: flex; justify-content: space-between; align-items: center; padding-inline: 6px; }
.dpad { width: 66px; height: 66px; position: relative; }
.dpad::before, .dpad::after { content: ""; position: absolute; background: var(--navy); border-radius: 6px; }
.dpad::before { inset: 23px 0; }
.dpad::after  { inset: 0 23px; }
.ab { display: flex; gap: 10px; transform: rotate(-20deg); }
.ab span { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); box-shadow: inset 0 -3px 0 rgba(255, 255, 255, .12); }

.product-title { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.muted { color: var(--muted); }

.badge {
  display: inline-block; font-family: var(--font-display); font-size: .75rem; font-weight: 600;
  padding: .3rem .75rem; border-radius: 999px; margin-bottom: 1rem;
  background: var(--blue-soft); color: var(--blue);
}
.tags { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 1.5rem 0 0; list-style: none; }
.tags li {
  font-size: .85rem; padding: .3rem .75rem; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
}

/* --- Contato ------------------------------------------------------------ */
.contact { display: grid; gap: 2.5rem; grid-template-columns: 1.1fr .9fr; align-items: start; }
.contact-card { background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: var(--radius); padding: 1.9rem; }
.contact-card h3 { color: var(--white); margin-bottom: 1.2rem; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: .7rem 1.5rem; margin: 0; }
dl.facts dt { color: rgba(255, 255, 255, .55); font-size: .92rem; }
dl.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
dl.facts a { color: var(--white); }
.section--dark h2 { color: var(--white); }
.section--dark .lead { color: rgba(255, 255, 255, .72); }

/* --- Rodapé ------------------------------------------------------------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .6); font-size: .9rem; border-top: 1px solid var(--navy-line); }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; padding-block: 2.25rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--white); text-decoration: none; font-family: var(--font-display); font-weight: 700; }
.footer-brand img { width: 34px; height: auto; }
.footer-brand span { display: block; font-weight: 400; font-family: var(--font-body); font-size: .82rem; color: rgba(255, 255, 255, .55); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.4rem; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: var(--white); }

/* --- Páginas legais ----------------------------------------------------- */
.page-hero { background: var(--navy); color: var(--white); padding-block: clamp(3rem, 7vw, 4.5rem); }
.page-hero .container { max-width: 800px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); color: var(--white); }
.page-hero .meta { color: rgba(255, 255, 255, .6); margin: 0; }

.legal { padding-block: clamp(2.5rem, 6vw, 4rem); }
.legal .container { max-width: 800px; }
.legal h2 { font-size: 1.35rem; margin-top: 2.6rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .45rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1rem 0 1.5rem; }
.legal th, .legal td { text-align: left; padding: .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: var(--ink-soft); background: var(--surface); }
.table-wrap { overflow-x: auto; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.5rem; font-size: .95rem; }
.toc ol { margin: .5rem 0 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }

/* --- 404 ---------------------------------------------------------------- */
.not-found { min-height: 100vh; display: grid; place-items: center; text-align: center; background: var(--navy); color: var(--white); padding: 2rem; }
.not-found img { width: 120px; margin: 0 auto 1.5rem; }
.not-found h1 { font-size: 2rem; color: var(--white); }
.not-found p { color: rgba(255, 255, 255, .65); }

/* --- Responsivo --------------------------------------------------------- */
.hero .container > *, .product > *, .contact > *, .grid-3 > * { min-width: 0; }

@media (max-width: 860px) {
  .hero .container, .product, .contact { grid-template-columns: 1fr; }
  .hero-mark { width: min(240px, 70%); order: -1; justify-self: start; }
  .toc ol { columns: 1; }
}
@media (max-width: 600px) {
  .nav a:not(.btn) { display: none; }
  .brand img { height: 34px; }
  dl.facts { grid-template-columns: 1fr; gap: .1rem; }
  dl.facts dd { margin-bottom: .7rem; }
}

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