/* ============================================================
   ITDS Brasil , Design System (identidade provisoria)
   Grafite + azul eletrico + acento ciano. Tech / infra / automacao.
   ============================================================ */

:root {
  /* superficie */
  --bg:        #0A0D13;
  --bg-2:      #0E1219;
  --surface:   #131926;
  --surface-2: #182031;
  --line:      rgba(255,255,255,.08);
  --line-2:    rgba(255,255,255,.14);

  /* texto */
  --text:      #EAF0F8;
  --muted:     #9AA6B6;
  --faint:     #6B7787;

  /* marca */
  --brand:     #2F7BFF;   /* azul eletrico */
  --brand-700: #1B5AD6;
  --accent:    #35E0D6;   /* ciano conectividade */
  --grad:      linear-gradient(120deg, #2F7BFF 0%, #35E0D6 100%);
  --grad-soft: linear-gradient(120deg, rgba(47,123,255,.18), rgba(53,224,214,.14));

  /* forma */
  --r-sm: 10px;  --r: 16px;  --r-lg: 24px;  --r-xl: 32px;
  --shadow: 0 20px 50px -20px rgba(0,0,0,.7);
  --ring: 0 0 0 1px var(--line);

  /* tipografia fluida */
  --f-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-body:    "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --step--1: clamp(.83rem, .8rem + .15vw, .92rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.1rem + .5vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4:  clamp(2.6rem, 1.9rem + 3.4vw, 4.8rem);

  /* ritmo */
  --pad: clamp(1.2rem, 5vw, 5rem);
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* G6: glow unico e contido no alto (uma fonte de luz so) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(70vw 60vw at 80% -20%, rgba(47,123,255,.12), transparent 60%),
    var(--bg);
}

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(53,224,214,.3); }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.eyebrow {
  font-family: var(--f-display); font-size: var(--step--1); font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); opacity: .7; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; } /* G4: palavra-destaque */
.muted { color: var(--muted); }
.section { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: var(--step-3); margin: .8rem 0 1rem; }
.section-head p { color: var(--muted); font-size: var(--step-1); }

/* ---------- botoes ---------- */
.btn {
  --_bg: var(--brand);
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--f-display); font-weight: 500; font-size: var(--step-0);
  padding: .85em 1.5em; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s; will-change: transform;
}
.btn-primary { background: var(--grad); color: #04121f; box-shadow: 0 10px 30px -10px rgba(47,123,255,.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(53,224,214,.6); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface); border-color: var(--brand); transform: translateY(-2px); }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- header ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--pad); transition: background .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(10,13,19,.72); backdrop-filter: blur(14px); border-bottom-color: var(--line); padding-block: .7rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; }
.brand .mark { flex: none; }
.brand small { color: var(--accent); font-weight: 500; letter-spacing: .12em; font-size: .62rem; text-transform: uppercase; align-self: flex-end; margin-bottom: .28em; }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav-links a { font-size: var(--step--1); color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: inline-flex; align-items: center; gap: 1rem; }
.burger { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .burger { display: inline-flex; }
}

/* ---------- hero (foto real + overlay) ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding-top: 6rem; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
#hero-3d { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; mix-blend-mode: screen; pointer-events: none; }
.hero-media::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,10,15,.94) 0%, rgba(8,10,15,.82) 42%, rgba(8,10,15,.35) 100%),
    linear-gradient(0deg, rgba(8,10,15,.85), transparent 55%); }
.hero-inner { max-width: 860px; }
.hero h1 { font-size: var(--step-4); margin: 1.2rem 0 1.4rem; }
.hero p.lead { font-size: var(--step-1); color: var(--muted); max-width: 620px; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-trust { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: .8rem 1.8rem; color: var(--muted); font-size: var(--step--1); }
.hero-trust span { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--f-display); }
.hero-trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- pilares (3 servicos) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  position: relative; border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line); overflow: hidden; transition: transform .35s, border-color .35s;
  display: flex; flex-direction: column;
}
.pillar::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); z-index: 1; } /* G5: filete */
.pillar:hover { transform: translateY(-6px); border-color: var(--line-2); }
.pillar-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.pillar-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .6s ease; }
.pillar-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--surface) 100%); }
.pillar:hover .pillar-media img { transform: scale(1.05); }
.pillar-body { padding: 1.6rem 1.8rem 2rem; display: flex; flex-direction: column; flex: 1; }
.pillar h3 { font-size: var(--step-1); margin-bottom: .6rem; }
.pillar p { color: var(--muted); font-size: var(--step-0); margin-bottom: 1.2rem; }
.pillar ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.4rem; }
.pillar li { display: flex; gap: .55rem; align-items: flex-start; font-size: var(--step--1); color: var(--muted); }
.pillar li::before { content: ""; width: 6px; height: 6px; margin-top: .5em; border-radius: 50%; background: var(--accent); flex: none; }
.pillar .more { margin-top: auto; align-self: flex-start; font-family: var(--f-display); font-size: var(--step--1); color: var(--brand); display: inline-flex; gap: .4rem; align-items: center; }
.pillar .more:hover { color: var(--accent); }

/* ---------- band full-bleed com foto ---------- */
.band { position: relative; min-height: 62vh; display: grid; align-items: center; overflow: hidden; margin-block: clamp(1rem, 3vw, 2rem); }
.band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8,10,15,.92) 0%, rgba(8,10,15,.7) 45%, rgba(8,10,15,.4) 100%); }
.band-inner { max-width: 620px; padding-block: clamp(3rem, 8vw, 6rem); }
.band-inner h2 { font-size: var(--step-3); margin-bottom: 1rem; }
.band-inner p { color: var(--muted); font-size: var(--step-1); }

/* ---------- bento diferenciais ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 1.2rem; }
.bento .cell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem; }
.bento .cell h4 { font-size: var(--step-1); margin-bottom: .5rem; }
.bento .cell p { color: var(--muted); font-size: var(--step--1); }
.bento .span-2 { grid-column: span 2; }
.bento .big { grid-column: span 2; grid-row: span 2; background: linear-gradient(160deg, var(--surface-2), var(--bg-2)); position: relative; overflow: hidden; }
.bento .big .num { font-family: var(--f-display); font-size: clamp(2.6rem, 6vw, 4.4rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } .bento .big { grid-column: span 2; grid-row: auto; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .bento .span-2, .bento .big { grid-column: auto; } }

/* ---------- processo ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: s; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 1.6rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-2); position: relative; }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--f-display); font-size: 1.4rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h4 { margin: .6rem 0 .4rem; font-size: var(--step-1); }
.step p { color: var(--muted); font-size: var(--step--1); }

/* ---------- CTA + contato ---------- */
.cta-band { background: linear-gradient(140deg, rgba(47,123,255,.14), rgba(53,224,214,.10)); border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: clamp(2rem, 5vw, 4rem); text-align: center; }
.cta-band h2 { font-size: var(--step-3); margin-bottom: 1rem; }
.cta-band p { color: var(--muted); max-width: 520px; margin: 0 auto 2rem; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 3.5rem 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h5 { font-family: var(--f-display); font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; }
.footer a { color: var(--muted); font-size: var(--step-0); display: block; padding: .25rem 0; }
.footer a:hover { color: var(--accent); }
.footer .todo { color: #ffb84d; font-size: var(--step--1); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--faint); font-size: var(--step--1); border-top: 1px solid var(--line); padding-top: 1.5rem; }

/* ---------- contato (funil) ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-copy h2 { font-size: var(--step-3); margin: .8rem 0 1rem; }

/* ---------- a11y: foco visivel ---------- */
a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible, input:focus-visible, .qf-opt:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px;
}

/* ---------- menu mobile ---------- */
.nav-panel { position: fixed; inset: 0; z-index: 60; background: rgba(9,12,18,.97); backdrop-filter: blur(12px);
  display: flex; flex-direction: column; gap: 1.6rem; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s; }
.nav-panel a { color: var(--text); font-family: var(--f-display); font-size: 1.5rem; }
.nav-panel a:hover { color: var(--accent); }
.nav-panel .nav-close { position: absolute; top: 1.4rem; right: 1.5rem; background: none; border: 0; color: var(--text); cursor: pointer; }
body.menu-open { overflow: hidden; }
body.menu-open .nav-panel { opacity: 1; pointer-events: auto; }
@media (min-width: 861px) { .nav-panel { display: none; } }

/* ---------- LP: paginas de servico ---------- */
.lp-hero { position: relative; min-height: 76vh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding-top: 8rem; }
.lp-hero .hero-media::after { background: linear-gradient(0deg, rgba(8,10,15,.96) 0%, rgba(8,10,15,.55) 55%, rgba(8,10,15,.7) 100%); }
.lp-hero-inner { padding-bottom: clamp(2rem, 5vw, 4rem); max-width: 820px; }
.lp-hero h1 { font-size: var(--step-4); margin: 1rem 0 1.2rem; }
.lp-hero p { font-size: var(--step-1); color: var(--muted); max-width: 640px; margin-bottom: 1.8rem; }
.crumb { font-size: var(--step--1); color: var(--faint); font-family: var(--f-display); }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--accent); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); position: relative; overflow: hidden; }
.feature::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); } /* G5 */
.feature .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-2); margin-bottom: 1rem; }
.feature .ico svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; }
.feature h3 { font-size: var(--step-1); margin-bottom: .5rem; }
.feature p { color: var(--muted); font-size: var(--step--1); }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split img { border-radius: var(--r-lg); border: 1px solid var(--line); width: 100%; }
.split h2 { font-size: var(--step-3); margin-bottom: 1rem; }
.split p { color: var(--muted); margin-bottom: 1rem; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; color: var(--text); }
.checklist li svg { width: 20px; height: 20px; flex: none; stroke: var(--accent); margin-top: .15em; }

/* FAQ (AEO) */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; list-style: none; font-family: var(--f-display); font-size: var(--step-1); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin-top: .8rem; }

/* ---------- reveal (progressive) ---------- */
[data-reveal] { opacity: 1; }
.js [data-reveal] { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1 !important; transform: none !important; } }
