/* =========================================================
   Robotera — main.css
   Tokens · base · layout · components · pages
   ========================================================= */

/* ---------- Fonte (hospedada localmente — sem chamadas ao Google, melhor para LGPD/RODO) ---------- */
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --brand: #17a3b8;          /* teal da marca (decoração, ícones) */
  --brand-strong: #0b7f90;   /* teal com contraste AA p/ texto e botões */
  --brand-soft: #e3f5f8;
  --ink: #0b1b2b;

  --g: #17a3b8;  /* Gestão */
  --i: #6366f1;  /* Inovação */
  --t: #0ea5e9;  /* Tecnologia */
  --s: #22a06b;  /* Sustentabilidade */

  --bg: #ffffff;
  --bg-alt: #f3f7f9;
  --surface: #ffffff;
  --surface-2: #f7fafb;
  --text: #0f2233;
  --muted: #55687a;
  --border: #e1e8ee;
  --shadow: 0 1px 2px rgba(11, 27, 43, .04), 0 8px 24px rgba(11, 27, 43, .06);
  --shadow-lg: 0 2px 4px rgba(11, 27, 43, .04), 0 24px 48px rgba(11, 27, 43, .10);

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --header-h: 72px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #2ec4d6;
    --brand-strong: #4fd1e0;
    --brand-soft: #0f2f3a;
    --bg: #07121c;
    --bg-alt: #0b1824;
    --surface: #0f1f2e;
    --surface-2: #132638;
    --text: #e6eef4;
    --muted: #93a7b8;
    --border: #1c3245;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --brand: #2ec4d6;
  --brand-strong: #4fd1e0;
  --brand-soft: #0f2f3a;
  --bg: #07121c;
  --bg-alt: #0b1824;
  --surface: #0f1f2e;
  --surface-2: #132638;
  --text: #e6eef4;
  --muted: #93a7b8;
  --border: #1c3245;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

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

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

a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-strong); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--brand); border-radius: 2px; }
.center .eyebrow::before { display: none; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); line-height: 1.6; }
.muted { color: var(--muted); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 600; font-size: 1rem;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  text-decoration: none !important; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: #0b7f90; color: #fff; box-shadow: 0 6px 20px rgba(23, 163, 184, .28); }
.btn-primary:hover { background: #096d7c; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-strong); }
.btn-light { background: #fff; color: #0b1b2b; }
.btn-light:hover { background: #e9f7f9; }
.btn-sm { padding: 9px 18px; font-size: .92rem; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s ease; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }

.nav { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand {
  display: inline-flex; align-items: baseline; font-weight: 800; font-size: 1.55rem;
  letter-spacing: -0.04em; color: var(--text); text-decoration: none !important;
}
.brand span { color: var(--brand); }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--muted); font-weight: 500; font-size: .97rem;
  padding: 8px 14px; border-radius: 999px; text-decoration: none;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--text); background: var(--bg-alt); }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--bg-alt); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 999px; border: 1px solid var(--border); background: transparent;
  color: var(--text); cursor: pointer; transition: border-color .15s ease;
}
.icon-btn:hover { border-color: var(--brand); }
.icon-btn svg { width: 18px; height: 18px; }

.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border);
  font-weight: 600; font-size: .9rem; user-select: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary .chev { width: 14px; height: 14px; transition: transform .2s ease; }
.lang[open] summary .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 6px; display: grid;
}
.lang-menu a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 8px; color: var(--text); font-size: .95rem; text-decoration: none;
}
.lang-menu a:hover { background: var(--bg-alt); }
.lang-name { display: inline-flex; align-items: center; gap: 10px; }
.flag {
  display: inline-block; flex: none; width: 20px; height: 14px; border-radius: 3px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(11, 27, 43, .12);
}
.flag svg { width: 100%; height: 100%; display: block; }
.lang-menu a[aria-current="true"] { background: var(--brand-soft); }

.menu-toggle { display: none; }

@media (max-width: 1120px) {
  .nav-cta { display: none; }
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-grid; }
  .nav-actions { margin-left: auto; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    flex-direction: column; gap: 2px; padding: 12px 16px 24px;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-links a { font-size: 1.1rem; padding: 14px 12px; border-radius: 10px; }
  .nav-open .nav-links { transform: none; opacity: 1; visibility: visible; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 120px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%);
  pointer-events: none; z-index: -1;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 65%);
  opacity: .55;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--g), var(--t) 45%, var(--i) 70%, var(--s));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { max-width: 560px; margin: 24px 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.page-hero { padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; right: -10%; top: -40%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%);
  z-index: -1;
}
.page-hero .lead { max-width: 680px; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 8px; opacity: .5; }

/* ---------- GITS orbit ---------- */
.orbit { width: 100%; max-width: 480px; margin: 0 auto; overflow: visible; }
.orbit .ring { fill: none; stroke: var(--border); stroke-width: 2; }
.orbit .ring-dash { fill: none; stroke: var(--brand); stroke-width: 2; stroke-dasharray: 2 10; stroke-linecap: round; opacity: .55; }
.orbit .spinner { transform-origin: 200px 200px; animation: spin 16s linear infinite; }
.orbit .spark { fill: var(--brand); filter: drop-shadow(0 0 8px var(--brand)); }
.orbit .node circle { fill: var(--surface); stroke-width: 2.5; transition: fill .3s ease; }
.orbit .node text.letter { font-weight: 800; font-size: 30px; text-anchor: middle; dominant-baseline: central; }
.orbit .node text.label { font-weight: 600; font-size: 14px; text-anchor: middle; fill: var(--muted); }
.orbit .node-g circle { stroke: var(--g); } .orbit .node-g .letter { fill: var(--g); }
.orbit .node-i circle { stroke: var(--i); } .orbit .node-i .letter { fill: var(--i); }
.orbit .node-t circle { stroke: var(--t); } .orbit .node-t .letter { fill: var(--t); }
.orbit .node-s circle { stroke: var(--s); } .orbit .node-s .letter { fill: var(--s); }
.orbit .node .halo { fill: none; stroke-width: 10; opacity: 0; animation: halo 16s ease-in-out infinite; }
.orbit .node-g .halo { stroke: var(--g); }
.orbit .node-i .halo { stroke: var(--i); animation-delay: 4s; }
.orbit .node-t .halo { stroke: var(--t); animation-delay: 8s; }
.orbit .node-s .halo { stroke: var(--s); animation-delay: 12s; }
.orbit .core-title { font-weight: 800; font-size: 44px; letter-spacing: -1px; text-anchor: middle; fill: var(--text); }
.orbit .core-sub { font-weight: 600; font-size: 12px; letter-spacing: 3px; text-anchor: middle; fill: var(--muted); text-transform: uppercase; }
.orbit .core { fill: var(--surface); stroke: var(--border); stroke-width: 1.5; filter: drop-shadow(0 12px 30px rgba(11, 27, 43, .10)); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes halo { 0% { opacity: .28; } 18% { opacity: 0; } 100% { opacity: 0; } }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
a.card { color: inherit; text-decoration: none; display: block; }
.card-hover:hover, a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin-bottom: 0; }
.card .link-arrow { margin-top: 20px; }

.icon-box {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-strong); margin-bottom: 20px;
}
.icon-box svg { width: 24px; height: 24px; }

/* GITS letter cards */
.gits-card { overflow: hidden; }
.gits-card .letter {
  font-size: 3.4rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; margin-bottom: 18px;
  color: var(--c);
}
.gits-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c);
}
.gits-card .tag { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.c-g { --c: var(--g); } .c-i { --c: var(--i); } .c-t { --c: var(--t); } .c-s { --c: var(--s); }

/* Bento services */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.bento > :nth-child(1) { grid-column: span 4; }
.bento > :nth-child(2) { grid-column: span 2; }
.bento > :nth-child(3) { grid-column: span 2; }
.bento > :nth-child(4) { grid-column: span 4; }
@media (max-width: 900px) { .bento > * { grid-column: span 6 !important; } }
.bento .card { display: flex; flex-direction: column; padding: 32px; }
.bento .card .link-arrow { margin-top: auto; padding-top: 20px; }
.bento .feature {
  background: linear-gradient(135deg, #0b1b2b, #0f3442 60%, #0b7f90);
  color: #e8f4f7; border-color: transparent;
}
.bento .feature p { color: #b8d3db; }
.bento .feature .icon-box { background: rgba(255, 255, 255, .1); color: #7fe3ef; }
.bento .feature .link-arrow { color: #7fe3ef; }
.bento .feature ul { color: #cfe4ea; }

.check-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.check-list li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7f90' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.check-list.two-col { grid-template-columns: repeat(2, 1fr); column-gap: 24px; }
@media (max-width: 640px) { .check-list.two-col { grid-template-columns: 1fr; } }

/* ---------- Pain points ---------- */
.pain { display: flex; gap: 16px; align-items: flex-start; }
.pain .num {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; color: var(--brand-strong); border: 1.5px solid color-mix(in srgb, var(--brand) 50%, var(--border));
}
.pain h3 { font-size: 1.1rem; margin-bottom: 4px; }
.pain p { color: var(--muted); margin: 0; }

/* ---------- Steps / timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: 23px; height: 2px;
  background: linear-gradient(90deg, var(--g), var(--i), var(--t), var(--s));
  opacity: .5;
}
.step { position: relative; counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--brand); color: var(--brand-strong);
  font-weight: 800; font-size: .95rem; margin-bottom: 20px; position: relative;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { left: 23px; right: auto; top: 24px; bottom: 24px; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--g), var(--i), var(--t), var(--s)); }
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 20px; }
  .step::before { grid-row: span 2; margin: 0; }
}

/* ---------- Solutions ---------- */
.product { display: flex; flex-direction: column; }
.product-logo {
  width: 56px; height: 56px; border-radius: 14px; overflow: hidden; margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(11, 27, 43, .12); background: #fff;
}
.product-logo img { width: 100%; height: 100%; object-fit: cover; }
.product .kind { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-strong); margin-bottom: 6px; }
.product .link-arrow { margin-top: auto; padding-top: 20px; }

.logo-strip { display: flex; flex-wrap: wrap; gap: 14px; }
.logo-pill {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  color: var(--text); font-weight: 600; text-decoration: none !important;
  transition: border-color .2s ease, transform .2s ease;
}
.logo-pill:hover { border-color: var(--brand); transform: translateY(-2px); }
.logo-pill img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.logo-pill small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; line-height: 1.2; }


/* Produto em destaque (YGEIA) */
.featured {
  position: relative; overflow: hidden; border-radius: 28px; color: #fff;
  padding: clamp(28px, 5vw, 56px);
  background: radial-gradient(120% 140% at 100% 0%, #7c3aed 0%, #4c1d95 32%, #1e0b4b 68%, #0b1b2b 100%);
  box-shadow: 0 30px 80px rgba(76, 29, 149, .25);
}
.featured .kind { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #c4b5fd; margin-bottom: 10px; }
.featured h2 { color: #fff; font-size: clamp(2.6rem, 6vw, 4rem); letter-spacing: -0.04em; margin-bottom: 12px; }
.featured .lead { color: #ddd6fe; max-width: 620px; margin: 0; }
.fp-top { display: grid; grid-template-columns: 1.5fr .5fr; gap: 40px; align-items: center; }
.fp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.featured .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.featured .btn-ghost:hover { border-color: #fff; color: #fff; }
.fp-visual { display: grid; place-items: center; }
.fp-visual .tile {
  width: 220px; height: 220px; border-radius: 48px; background: #fff; display: grid; place-items: center;
  box-shadow: 0 30px 80px rgba(124, 58, 237, .5), 0 0 0 12px rgba(255, 255, 255, .06);
}
.fp-visual img { width: 78%; height: auto; }
.fp-modules { margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .12); }
.fp-modules h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #c4b5fd; margin-bottom: 16px; }
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.module { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 16px 18px; }
.module b { display: block; color: #fff; }
.module span { display: block; margin-top: 4px; color: #cbbdf7; font-size: .92rem; line-height: 1.45; }
@media (max-width: 900px) {
  .fp-top { grid-template-columns: 1fr; gap: 24px; }
  .fp-visual { order: -1; justify-items: start; }
  .fp-visual .tile { width: 112px; height: 112px; border-radius: 28px; box-shadow: 0 16px 40px rgba(124, 58, 237, .5); }
  .modules { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .modules { grid-template-columns: 1fr; } }

/* Produtos secundários (compactos) */
.product-compact { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.product-compact .product-logo { width: 44px; height: 44px; border-radius: 11px; margin: 0; flex: none; }
.product-compact .kind { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-strong); margin-bottom: 2px; }
.product-compact h3 { font-size: 1.05rem; margin-bottom: 4px; }
.product-compact p { font-size: .93rem; }
.product-compact .link-arrow { margin-top: 12px; font-size: .92rem; }
.custom-note { margin: 32px 0 0; color: var(--muted); }
.custom-note .link-arrow { margin-left: 4px; }


/* Home: soluções com YGEIA em destaque */
.home-solutions { display: grid; gap: 16px; }
.home-solutions .logo-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .home-solutions .logo-strip { grid-template-columns: 1fr; } }
.mini-featured {
  display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: 20px; color: #fff;
  text-decoration: none !important;
  background: radial-gradient(120% 140% at 100% 0%, #7c3aed 0%, #4c1d95 40%, #1e0b4b 80%, #0b1b2b 100%);
  box-shadow: 0 20px 50px rgba(76, 29, 149, .25); transition: transform .2s ease, box-shadow .2s ease;
}
.mini-featured:hover { transform: translateY(-3px); box-shadow: 0 26px 60px rgba(76, 29, 149, .35); }
.mini-featured .tile { width: 72px; height: 72px; border-radius: 18px; background: #fff; display: grid; place-items: center; flex: none; }
.mini-featured .tile img { width: 80%; height: auto; }
.mini-featured .kind { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #c4b5fd; }
.mini-featured b { display: block; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.2; }
.mini-featured .desc { display: block; margin-top: 2px; color: #ddd6fe; font-size: .95rem; line-height: 1.45; }
.mini-featured > svg { width: 22px; height: 22px; flex: none; margin-left: auto; color: #c4b5fd; transition: transform .2s ease; }
.mini-featured:hover > svg { transform: translateX(3px); }
.logo-pill img.contain, .product-logo.contain img { object-fit: contain; padding: 4px; background: #fff; }

/* ---------- GITS detail page ---------- */
.gits-nav {
  position: sticky; top: var(--header-h); z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.gits-nav ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.gits-nav a {
  display: flex; align-items: center; gap: 10px; padding: 14px 8px; color: var(--muted);
  font-weight: 600; font-size: .95rem; text-decoration: none; border-bottom: 3px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.gits-nav a b { font-size: 1.3rem; color: var(--c); }
.gits-nav a.active, .gits-nav a:hover { color: var(--text); border-bottom-color: var(--c); }
@media (max-width: 640px) { .gits-nav a { justify-content: center; } .gits-nav a span { display: none; } }

.gits-nav ~ section[id] { scroll-margin-top: calc(var(--header-h) + 56px); }
.phase { display: grid; grid-template-columns: 280px 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .phase { grid-template-columns: 1fr; } }
.phase-letter {
  font-size: clamp(7rem, 16vw, 12rem); font-weight: 800; line-height: .85; letter-spacing: -0.06em;
  color: var(--c);
  background: linear-gradient(160deg, var(--c), color-mix(in srgb, var(--c) 30%, transparent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.phase-aside { position: sticky; top: calc(var(--header-h) + 80px); }
.phase-aside .tag { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--c); letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; }
.phase h2 { margin-bottom: 16px; }
.phase .boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
@media (max-width: 640px) { .phase .boxes { grid-template-columns: 1fr; } }
.phase .box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.phase .box h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.phase .box .check-list li::before { background-color: color-mix(in srgb, var(--c) 14%, transparent); }
.question { border-left: 3px solid var(--c); padding: 4px 0 4px 18px; font-size: 1.15rem; font-weight: 600; margin: 24px 0 0; }

/* ---------- Service detail ---------- */
.service { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); padding: 48px 0; border-top: 1px solid var(--border); }
.service:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 900px) { .service { grid-template-columns: 1fr; } }
.service .gits-tags { display: flex; gap: 6px; margin-bottom: 16px; }
.gits-tag {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  font-weight: 800; font-size: .9rem; color: #fff; background: var(--c);
}
.gits-tag.off { background: transparent; color: var(--muted); border: 1px solid var(--border); opacity: .6; }
.service .panel { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.service .panel h3 { font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.service .panel + .panel { margin-top: 16px; }

.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .tech-grid { grid-template-columns: 1fr; } }
.tech { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.tech .icon-box { margin: 0; width: 40px; height: 40px; flex: none; }
.tech .icon-box svg { width: 20px; height: 20px; }
.tech h3 { font-size: 1rem; margin-bottom: 2px; }
.tech p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------- About ---------- */
.mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .mvv { grid-template-columns: 1fr; } }
.mvv .card h3 { color: var(--brand-strong); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.mvv .card p { color: var(--text); font-size: 1.12rem; font-weight: 500; line-height: 1.5; }

.values { display: flex; flex-wrap: wrap; gap: 12px; }
.value {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-weight: 600;
}
.value::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 700px) { .stat-row { grid-template-columns: 1fr; } }
.stat b { display: block; font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; color: var(--brand-strong); line-height: 1.1; }
.stat span { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px;
  padding: clamp(40px, 6vw, 72px);
  background: radial-gradient(120% 140% at 100% 0%, #11707f 0%, #0d3a4a 40%, #0b1b2b 100%);
  color: #fff; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
}
.cta-band::after {
  content: "GITS"; position: absolute; right: -20px; bottom: -60px; font-size: 14rem; font-weight: 800;
  letter-spacing: -0.06em; color: rgba(255, 255, 255, .05); pointer-events: none; line-height: 1;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #bcd6dd; margin: 0; max-width: 560px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.cta-band .btn-ghost:hover { border-color: #fff; color: #fff; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .92rem; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); margin: 4px 0 24px; }
.consent input { margin-top: 4px; accent-color: var(--brand-strong); width: 18px; height: 18px; flex: none; }
.hp { position: absolute !important; left: -9999px !important; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-weight: 500; display: none; }
.form-status.ok { display: block; background: color-mix(in srgb, var(--s) 14%, transparent); color: var(--text); }
.form-status.err { display: block; background: color-mix(in srgb, #e5484d 14%, transparent); color: var(--text); }

.channel { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none !important; }
.channel:last-child { border-bottom: 0; }
.channel .icon-box { margin: 0; width: 44px; height: 44px; flex: none; }
.channel small { display: block; color: var(--muted); font-size: .85rem; }
.channel b { font-weight: 600; }
a.channel:hover b { color: var(--brand-strong); }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 48px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.prose th { color: var(--muted); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: #07121c; color: #a9bccb; padding: 72px 0 32px; margin-top: 0; }
.site-footer a { color: #d6e3ec; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; max-width: 760px; }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; }
.site-footer .brand span { color: #2ec4d6; }
.site-footer .footer-title { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-about p { margin: 16px 0 20px; max-width: 340px; font-size: .95rem; }
.footer-contact { display: grid; gap: 6px; font-size: .95rem; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid #1f3446; color: #d6e3ec; transition: border-color .2s ease, background .2s ease;
}
.socials a:hover { border-color: #2ec4d6; background: #0f2a38; }
.socials svg { width: 17px; height: 17px; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid #16293a;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem;
}
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: #d6e3ec; cursor: pointer; }
.link-btn:hover { color: #fff; text-decoration: underline; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; margin: 0 auto; max-width: 720px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 20px 24px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
.cookie p { margin: 0; flex: 1 1 320px; font-size: .95rem; color: var(--muted); }
.cookie p a { text-decoration: underline; text-underline-offset: 2px; }
.cookie .actions { display: flex; gap: 8px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s !important; }
.reveal-d2 { transition-delay: .16s !important; }
.reveal-d3 { transition-delay: .24s !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Voltar ao topo ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 140;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, border-color .2s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--brand-strong); color: var(--brand-strong); }
.to-top:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 3px; }
.to-top svg { width: 20px; height: 20px; }
/* No celular o aviso de cookies ocupa a largura toda: esconde o botão enquanto ele estiver aberto */
@media (max-width: 860px) { .cookie-open .to-top { opacity: 0; visibility: hidden; } }
