/* =========================================================
   TBD · Tecnologia, Business & Design
   CSS puro, sem frameworks.
   ========================================================= */

:root {
  --bg: #0b1020;
  --bg-2: #111832;
  --surface: #ffffff;
  --surface-2: #f4f6fb;
  --ink: #0f1830;
  --ink-2: #4a5572;
  --line: #e3e7f1;

  --brand: #2b4f9a;          /* azul original da TBD */
  --brand-2: #5b8cff;
  --c-tec: #5b8cff;
  --c-bus: #22b8ac;
  --c-des: #9a6bff;

  --radius: 16px;
  --nav-h: 68px;
  --max: 1180px;
  --shadow: 0 10px 30px -12px rgba(15, 24, 48, .25);
  --ease: cubic-bezier(.2, .7, .2, 1);

  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

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

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

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

.grad {
  background: linear-gradient(90deg, var(--c-tec), var(--c-bus) 50%, var(--c-des));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700;
  color: var(--brand-2); margin-bottom: .8rem;
}
.eyebrow--t { color: var(--c-tec); }
.eyebrow--b { color: var(--c-bus); }
.eyebrow--d { color: var(--c-des); }
.eyebrow--w { color: #c9c9c9; font-style: italic; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; box-shadow: 0 8px 24px -8px rgba(91, 140, 255, .7); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--lg { font-size: 1.15rem; padding: 1rem 2rem; }

/* ---------- Navegação ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  color: #fff; transition: background .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s;
}
.nav.is-scrolled, .nav.is-open {
  background: rgba(11, 16, 32, .85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav__brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 800; font-size: 1.4rem; letter-spacing: .02em; }
.nav__menu { display: flex; align-items: center; gap: .25rem; }
.nav__menu a {
  text-decoration: none; font-size: .95rem; font-weight: 500; color: rgba(255,255,255,.75);
  padding: .5rem .85rem; border-radius: 999px; transition: color .2s, background .2s;
}
.nav__menu a:hover, .nav__menu a.is-active { color: #fff; background: rgba(255,255,255,.08); }
.nav__menu .nav__cta { background: #fff; color: var(--ink); margin-left: .5rem; }
.nav__menu .nav__cta:hover, .nav__menu .nav__cta.is-active { background: #e6ecff; color: var(--ink); }

.nav__toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11, 16, 32, .97); padding: .5rem 1.25rem 1.25rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open .nav__menu { transform: none; opacity: 1; visibility: visible; }
  .nav__menu a { padding: .9rem 1rem; border-radius: 10px; }
  .nav__menu .nav__cta { margin: .5rem 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; background: var(--bg);
  min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 80% 30%, rgba(91,140,255,.25), transparent 60%),
    radial-gradient(50% 50% at 10% 90%, rgba(34,184,172,.18), transparent 60%),
    linear-gradient(90deg,
      rgba(11,16,32,.95) 0%,
      rgba(11,16,32,.85) 40%,
      rgba(11,16,32,.55) 70%,
      rgba(11,16,32,.45) 100%),
    url("../img/bg-masthead.jpg") center / cover no-repeat;
}
@media (max-width: 900px) {
  .hero__bg {
    background:
      linear-gradient(180deg, rgba(11,16,32,.92) 0%, rgba(11,16,32,.75) 100%),
      url("../img/bg-masthead.jpg") center / cover no-repeat;
  }
}

.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; margin-bottom: 1.2rem; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.78); max-width: 38rem; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.venn { margin: 0; }
.venn svg { width: 100%; max-width: 440px; margin-inline: auto; display: block; overflow: visible; }
.venn__circle circle {
  stroke: rgba(255,255,255,.35); stroke-width: 1.5; mix-blend-mode: screen;
  transition: transform .4s var(--ease), stroke .3s, opacity .3s; transform-box: fill-box; transform-origin: center;
}
.venn__circle text, .venn__center { fill: #fff; font-weight: 700; font-size: 20px; text-anchor: middle; pointer-events: none; }
.venn__center { font-size: 22px; font-weight: 800; letter-spacing: .08em; }
.venn__circle { cursor: pointer; }
.venn__circle:hover circle, .venn__circle:focus-visible circle, .venn__circle.is-hl circle { transform: scale(1.05); stroke: #fff; }
.venn svg:has(.venn__circle:hover) .venn__circle:not(:hover) circle { opacity: .55; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .venn svg { max-width: 320px; }
}

/* ---------- Seções genéricas ---------- */
section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto 3.5rem; }
.section-head p:last-child { color: var(--ink-2); font-size: 1.125rem; }

/* ---------- Pilares ---------- */
.pillars { background: var(--surface-2); }
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  position: relative; display: flex; flex-direction: column; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover, .card.is-hl { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--ink-2); flex: 1; }
.card__more { font-weight: 600; color: var(--brand); font-size: .95rem; }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.25rem;
}
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card__icon circle { fill: currentColor; stroke: none; }
.card__icon--t { background: rgba(91,140,255,.12); color: var(--c-tec); }
.card__icon--b { background: rgba(34,184,172,.12); color: var(--c-bus); }
.card__icon--d { background: rgba(154,107,255,.12); color: var(--c-des); }

@media (max-width: 900px) { .pillars__grid { grid-template-columns: 1fr; } }

/* ---------- Features (Tecnologia / Business / Design) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; padding: 0; min-height: 34rem; }
.feature__img { background-size: cover; background-position: center; min-height: 22rem; }
.feature__text { padding: clamp(2.5rem, 6vw, 6rem); align-self: center; max-width: 40rem; }
.feature__text > p { color: var(--ink-2); font-size: 1.125rem; }
.feature--reverse .feature__img { order: 2; }
.feature:nth-of-type(even) { background: var(--surface-2); }

.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .85rem; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--accent, var(--brand-2)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 70% no-repeat;
}
#tecnologia { --accent: var(--c-tec); }
#business { --accent: var(--c-bus); }
#design { --accent: var(--c-des); }

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature--reverse .feature__img { order: 0; }
  .feature__img { min-height: 16rem; }
}

/* ---------- Processo ---------- */
.process { background: var(--bg); color: #fff; }
.process .section-head p:last-child { color: rgba(255,255,255,.7); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: s; }
.step {
  background: var(--bg-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 1.75rem;
  transition: border-color .3s, transform .3s var(--ease);
}
.step:hover { border-color: rgba(91,140,255,.5); transform: translateY(-4px); }
.step__num { display: block; font-size: 2.25rem; font-weight: 800; margin-bottom: .75rem; }
.step:nth-child(1) .step__num { color: var(--c-tec); }
.step:nth-child(2) .step__num { color: var(--c-bus); }
.step:nth-child(3) .step__num { color: var(--c-des); }
.step:nth-child(4) .step__num { color: #fff; }
.step p { color: rgba(255,255,255,.7); margin: 0; }

@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Sobre ---------- */
.about__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; }
.about__text > p { color: var(--ink-2); font-size: 1.125rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0 0; }
.stats div { border-left: 3px solid var(--brand-2); padding-left: 1rem; }
.stats dt { font-size: 2.25rem; font-weight: 800; color: var(--brand); line-height: 1.1; }
.stats dd { margin: .25rem 0 0; color: var(--ink-2); font-size: .95rem; }

.person { background: var(--surface-2); border-radius: var(--radius); padding: 2rem; text-align: center; }
.person img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 1.25rem; box-shadow: var(--shadow); }
.person h3 { margin-bottom: .15rem; }
.person__role { color: var(--brand); font-weight: 600; font-size: .95rem; }
.person p { color: var(--ink-2); font-size: .98rem; margin: 0; text-align: left; padding: 10px 0  ;}

@media (max-width: 900px) {
  .about__inner { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }


/* Segmentos (pílulas) */
.segments { margin-top: 2rem; }

.segments__label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-2);
  margin-bottom: .75rem;
}

.pills {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}

/* bolinha colorida antes do texto */
.pill::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--pill-color, var(--brand-2));
}

.pill:hover {
  transform: translateY(-2px);
  border-color: var(--pill-color, var(--brand-2));
  box-shadow: 0 6px 16px -8px var(--pill-color, var(--brand-2));
}

.pill--t { --pill-color: var(--c-tec); }
.pill--b { --pill-color: var(--c-bus); }
.pill--d { --pill-color: var(--c-des); }

/* ---------- CTA ---------- */
.cta { position: relative; color: #fff; text-align: center; overflow: hidden; }
.cta__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(91,140,255,.35), transparent 70%),
    linear-gradient(rgba(11,16,32,.85), rgba(11,16,32,.92)),
    url("../img/bg-masthead.jpg") center / cover no-repeat;
}
.cta__inner { position: relative; max-width: 42rem; }
.cta p { color: rgba(255,255,255,.78); font-size: 1.15rem; margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.footer { background: var(--surface-2); padding: 3rem 0 2.5rem; text-align: center; }
.footer__tbd { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 0; color: var(--ink-2); font-size: .95rem; }
.footer__tbd span + span::before { content: "|"; margin: 0 .6rem; opacity: .4; }
.footer__slogan { font-weight: 700; color: var(--brand); font-size: 1.05rem; }
.footer__copy { color: #8a93a8; font-size: .85rem; margin: 1.5rem 0 0; }

/* ---------- Animações ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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