/* ==========================================================================
   CLIC · estilos exclusivos da home
   Depende de css/clic.css (tokens e esqueleto de seção).
   ========================================================================== */

/* ===== Hero ===== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 740px;
  padding-top: var(--header-h);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 42%, rgba(41,119,120,.14), transparent 45%),
    #071018;
}

.hero-layout {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.07fr .93fr;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-copy { position: relative; z-index: 3; padding-block: 90px; }

.hero h1 {
  font: 800 clamp(52px,6.3vw,108px)/.99 var(--display);
  letter-spacing: -.078em;
  margin: 32px 0 25px;
  max-width: 900px;
}

.hero h1 span { display: block; }

.hero-description {
  color: #c9d3d9;
  font-size: clamp(16px,1.4vw,20px);
  line-height: 1.6;
  max-width: 510px;
  margin: 0 0 35px;
}

.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.hero-visual { position: absolute; inset: 0 -7% 0 43%; z-index: 1; pointer-events: none; }

#orb-canvas { width: 100%; height: 100%; display: block; }

.visual-label {
  position: absolute;
  bottom: 45px;
  right: 4%;
  font: 10px/1.7 var(--mono);
  letter-spacing: .1em;
  color: #a9b7c0;
  text-align: right;
}

/* ===== Números ===== */
.metrics { border-block: 1px solid var(--line); background: #08121a; }

.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); }

.metric { min-height: 155px; padding: 32px; border-right: 1px solid var(--line); }
.metric:first-child { padding-left: 0; }
.metric:last-child { border: 0; }

.metric strong {
  display: block;
  font: 700 clamp(36px,4vw,61px)/1 var(--display);
  letter-spacing: -.055em;
  margin-bottom: 18px;
}

.metric .eyebrow { color: #b5c3cc; }

.metrics-trail {
  border-top: 1px solid var(--line);
  padding: 22px 0 28px;
  font: 10px/2.1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #93a4b0;
}

.metrics-trail b { color: var(--mint); font-weight: 400; margin-right: 10px; }

/* ===== Manifesto ===== */
.manifesto {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(75px,10vw,155px) 0;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1.65fr .65fr;
  gap: 10%;
  align-items: end;
}

.manifesto h2 {
  font: 400 clamp(45px,5.3vw,86px)/1.1 "Playfair Display", Georgia, serif;
  letter-spacing: -.055em;
  margin: 0;
  max-width: 950px;
}

.manifesto h2 span { color: #2bbaa3; }

.manifesto-side {
  border-left: 1px solid #adb5b0;
  padding-left: 34px;
  font-size: 16px;
  line-height: 1.75;
}

.manifesto-side p { margin-top: 0; }

.manifesto-side a {
  display: inline-block;
  margin-top: 25px;
  border-bottom: 1px solid;
  padding-bottom: 5px;
  font-weight: 600;
}

/* ===== Pilares ===== */
/* Quatro cards, uma letra cada: C · L · I · C. */
.pillar-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

/* O card inteiro é o link; o padding-bottom maior puxa o conteúdo para cima. */
.pillar {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  border: 1px solid rgba(154,215,208,.25);
  background: linear-gradient(145deg,#142731,#08121a 72%);
  padding: 30px 32px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: inherit;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}

.pillar:hover {
  border-color: var(--mint);
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

/* Forma de fundo: traço de espessura variável, volume por gradiente interno e
   um halo discreto nas bordas — profundidade, não neon. */
.pillar::before {
  content: "";
  position: absolute;
  width: 270px;
  height: 270px;
  top: -80px;
  right: -90px;
  border: 1px solid rgba(89,234,203,.28);
  border-top-width: 2px;
  border-left-width: 1.5px;
  border-radius: 46% 54% 63% 37%;
  transform: rotate(-30deg);
  background: radial-gradient(125% 125% at 32% 18%,
    rgba(89,234,203,.085), rgba(89,234,203,.014) 52%, transparent 74%);
  box-shadow:
    0 0 0 26px rgba(89,234,203,.022),
    0 0 0 56px rgba(89,234,203,.015),
    0 0 36px rgba(89,234,203,.06),
    inset 0 0 70px rgba(89,234,203,.07);
  transition: transform .6s cubic-bezier(.2,.7,.2,1), border-color .4s;
}

.pillar:hover::before { border-color: rgba(89,234,203,.45); }

/* Luz suave acompanhando o cursor. */
.pillar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
  background: radial-gradient(260px circle at var(--mx,50%) var(--my,50%),
    rgba(89,234,203,.11), transparent 68%);
}

.pillar:hover::after { opacity: 1; }

/* Centro: anel aberto — lê como C, como ciclo e como ponto de convergência. */
.pillar:nth-child(1)::before {
  border-radius: 50%;
  border-right-color: transparent;
  transform: rotate(-35deg);
}

.pillar:nth-child(3)::before { border-radius: 14%; transform: rotate(35deg); }
.pillar:nth-child(4)::before { border-radius: 4%; transform: rotate(-20deg) skew(10deg); }

/* No hover cada forma se desloca um pouco, sem perder a própria identidade. */
.pillar:nth-child(1):hover::before { transform: rotate(-18deg) scale(1.06) translate(-10px,8px); }
.pillar:nth-child(2):hover::before { transform: rotate(-12deg) scale(1.06) translate(-10px,8px); }
.pillar:nth-child(3):hover::before { transform: rotate(48deg) scale(1.06) translate(-10px,8px); }
.pillar:nth-child(4):hover::before { transform: rotate(-8deg) skew(10deg) scale(1.06) translate(-10px,8px); }

.pillar-number {
  font: 12px var(--mono);
  color: #c4d8d7;
  position: relative;
  z-index: 2;
}

.pillar-content { position: relative; z-index: 2; }

.pillar h3 {
  font: 400 clamp(27px,2.5vw,36px) Georgia, serif;
  margin: 0 0 28px;
}

.pillar p {
  color: #b9c7d0;
  line-height: 1.65;
  font-size: 14px;
  max-width: 300px;
  margin: 0 0 30px;
}

.pillar .round-arrow {
  transition: background .3s, transform .3s;
}

.pillar:hover .round-arrow {
  background: rgba(89,234,203,.12);
  transform: translate(3px,-3px);
}

/* ===== Produtos =====
   Pilares e Produtos são duas seções escuras seguidas. A #0d1821 anterior
   ficava a 1,07:1 do fundo da página — nenhum corte visível. Este tom dá
   um degrau de 1,32:1 e, com o filete, separa as duas sem quebrar o ritmo
   claro/escuro da página: clarear qualquer uma delas colaria no manifesto
   ou no método, que são de papel. */
.formations {
  background: #1a2b36;
  border-top: 1px solid var(--line);
}

.course-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }

.course {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 295px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  transition: background .25s, border-color .25s;
}

.course:hover { background: rgba(89,234,203,.08); border-color: rgba(89,234,203,.5); }

.course h3 {
  font: 600 26px/1.2 var(--display);
  letter-spacing: -.04em;
  margin: 20px 0 10px;
}

.course p { font-size: 14px; color: var(--muted); line-height: 1.65; }

.course-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--mint);
  font-size: 12px;
}

.course-all { margin-top: 36px; display: flex; justify-content: center; }

/* ===== Método ===== */
.method { background: var(--paper); color: var(--ink); }

.method .section-intro p { color: #566166; }

/* A jornada é uma linha só, atravessando os quatro tempos: o trilho fica
   atrás e o preenchimento avança sozinho, em ciclo, parando em cada nó —
   --p (0 a 1) é a posição da linha e --vis a opacidade no recomeço.
   Sem JavaScript os valores padrão deixam a linha inteira e acesa. */
.method-grid {
  --p: 1;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  padding-right: 25px;
}

.method-grid::before,
.method-grid::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  height: 2px;
}

.method-grid::before { right: 0; background: #c9cfc8; }

.method-grid::after {
  width: calc(var(--p) * 100%);
  background: var(--mint-ink);
  opacity: var(--vis, 1);
}

.method-step {
  position: relative;
  padding: 0 25px 20px 0;
}

.step-node {
  position: relative;
  z-index: 1;
  display: block;
  width: 18px;
  height: 18px;
  margin-bottom: 26px;
  border: 2px solid #c9cfc8;
  border-radius: 50%;
  background: var(--paper);
  transition: border-color .45s ease, box-shadow .45s ease;
}

.step-node::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #c9cfc8;
  transition: background .45s ease, transform .45s ease;
}

.method-step.is-on .step-node {
  border-color: var(--mint-ink);
  box-shadow: 0 0 0 5px rgba(38,139,126,.11);
}

.method-step.is-on .step-node::after {
  background: var(--mint-ink);
  transform: scale(1.1);
}

.method-step .eyebrow { color: #268b7e; }

.method-step h3 { margin: 10px 0 14px; font-size: 20px; letter-spacing: -.04em; }

.method-step p { font-size: 14px; color: #546168; line-height: 1.75; }

/* ===== Contato ===== */
.contact {
  position: relative;
  background: radial-gradient(circle at 90% 70%, #133938, transparent 45%),#071018;
  overflow: hidden;
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12%; }

.contact h2 {
  font: 700 clamp(43px,5vw,78px)/1.05 var(--display);
  letter-spacing: -.07em;
  margin: 18px 0 25px;
}

.contact-copy { color: var(--muted); max-width: 430px; line-height: 1.7; }

.contact-alt { margin-top: 30px; font: 12px/1.8 var(--mono); color: var(--muted); }
.contact-alt a { color: var(--mint); border-bottom: 1px solid rgba(89,234,203,.4); }

.contact-form { display: grid; gap: 22px; }

.field label {
  display: block;
  margin-bottom: 8px;
  font: 11px var(--mono);
  letter-spacing: .05em;
  color: #b7c4cc;
}

.field input, .field textarea {
  background: transparent;
  color: #fff;
  border: 0;
  border-bottom: 1px solid #53646d;
  outline: 0;
  border-radius: 0;
  width: 100%;
  padding: 12px 0;
  font-size: 15px;
}

.field input:focus, .field textarea:focus { border-bottom-color: var(--mint); }

.field textarea { resize: vertical; min-height: 90px; }

.contact-form .button { justify-self: start; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  margin: 0;
  font: 12px/1.6 var(--mono);
  letter-spacing: .04em;
  color: var(--muted);
  min-height: 1.6em;
}

.form-status.ok { color: var(--mint); }
.form-status.err { color: #ff8f7a; }

/* ===== Responsivo ===== */
@media (max-width: 1100px) {
  .hero h1 { font-size: clamp(52px,7vw,82px); }
  .hero-visual { inset: 0 -18% 0 35%; opacity: .8; }
  .hero-copy { max-width: 690px; }
  /* As duas colunas do manifesto só funcionam largas. Apertadas, a coluna
     lateral fica muito mais alta que o título e o align-items:end empurra
     o título para o fundo — 298px de vazio acima dele a 900px de tela.
     Abaixo de 1100 o bloco empilha, como as outras seções. */
  .editorial-grid { grid-template-columns: 1fr; gap: 36px; align-items: start; }
  .course-grid, .pillar-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 760px) {
  .hero { padding-top: 70px; min-height: auto; }
  .hero-layout { display: block; min-height: 620px; }

  /* No celular o orbe não ganha faixa própria — ele passa a atmosfera por
     trás da coluna de texto. Reservar 320px abaixo do botão só criava um
     trecho escuro quase vazio de meia tela. */
  .hero-copy { padding-top: 85px; padding-bottom: 170px; }
  .hero h1 { font-size: clamp(48px,10vw,76px); margin-top: 25px; }
  .hero-description { font-size: 16px; max-width: 440px; }
  .hero-visual { inset: 22% -22% 0 -10%; opacity: .5; }
  .visual-label { display: none; }

  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .metric { min-height: 135px; padding: 25px 15px; }
  .metric:first-child { padding-left: 15px; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .editorial-grid, .contact-grid { grid-template-columns: 1fr; gap: 45px; }
  .manifesto h2 { font-size: clamp(40px,8vw,70px); }
  .manifesto-side { padding-left: 22px; }

  .pillar-grid { grid-template-columns: 1fr; }
  .pillar { min-height: 325px; }

  /* No celular a jornada vira vertical: a linha desce pela esquerda. */
  .method-grid {
    grid-template-columns: 1fr;
    padding: 0 0 0 36px;
  }

  .method-grid::before,
  .method-grid::after {
    top: 8px;
    bottom: 8px;
    left: 8px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .method-grid::after { height: calc(var(--p) * (100% - 16px)); bottom: auto; }

  .method-step { padding: 0 0 30px; }
  .method-step:last-child { padding-bottom: 0; }

  .step-node {
    position: absolute;
    top: 0;
    left: -36px;
    margin: 0;
  }

  .method-step h3 { margin-top: 2px; }
}

@media (max-width: 480px) {
  .hero-layout { min-height: 580px; }
  .hero h1 { font-size: clamp(45px,11vw,57px); }
  .hero-actions { align-items: start; gap: 20px; }
  .metric strong { font-size: 39px; }
  .course-grid { grid-template-columns: 1fr; }
}
