/* ============================================================
   HACKER PRO AI — Landing Page
   Design system + components
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Base / surfaces */
  --bg:            #05070e;
  --bg-2:          #080b16;
  --surface:       #0b1020;
  --surface-2:     #0e1428;
  --line:          rgba(94, 156, 214, 0.14);
  --line-strong:   rgba(94, 156, 214, 0.28);

  /* Accents */
  --accent:        #17b6e6;   /* electric cyan */
  --accent-2:      #3ea0ff;   /* blue */
  --accent-soft:   #6fd6f5;
  --orange:        #ff7a00;   /* CTA orange */
  --orange-2:      #ff9838;

  /* Text */
  --text:          #eef4fb;
  --text-muted:    #9fb2c9;
  --text-dim:      #6d7f97;hero

  /* Glow */
  --glow-cyan:     0 0 22px rgba(23, 182, 230, 0.35);
  --glow-orange:   0 0 26px rgba(255, 122, 0, 0.45);

  /* Layout */
  --container:     1200px;
  --radius:        14px;
  --radius-sm:     10px;
  --ease:          cubic-bezier(.22, .61, .36, 1);

  --font-head: "Rajdhani", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* subtle grid + radial ambience over the whole page */
  background-image:
    radial-gradient(1100px 700px at 78% -8%, rgba(23, 182, 230, 0.12), transparent 60%),
    radial-gradient(900px 600px at 0% 40%, rgba(62, 160, 255, 0.07), transparent 55%),
    linear-gradient(var(--bg), var(--bg));
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

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

/* ---------- Typography helpers ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.08; letter-spacing: .01em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .82rem;
  color: var(--accent);
  margin-bottom: .9rem;
  position: relative;
  padding-left: 2.6rem;
}
.eyebrow::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 2rem; height: 2px; transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, var(--accent));
}

.text-accent { color: var(--orange); text-shadow: 0 0 30px rgba(255,122,0,.35); }

.section__title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.section__title--xl { font-size: clamp(2rem, 5vw, 3.4rem); text-transform: uppercase; letter-spacing: .02em; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  --pad: .85rem 1.6rem;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: var(--pad);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .9rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--sm { --pad: .6rem 1.1rem; font-size: .82rem; }

.btn--primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #fff;
  box-shadow: var(--glow-orange);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 34px rgba(255,122,0,.6); color: #fff; }

.btn--outline {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(23, 182, 230, 0.04);
}
.btn--outline:hover {
  border-color: var(--accent);
  box-shadow: var(--glow-cyan);
  color: #fff;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(10px);
  background: rgba(5, 7, 14, 0.55);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(5, 7, 14, 0.9);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex; align-items: center; gap: 1.5rem;
  height: 74px;
}

/* Brand / logo */
.brand { display: flex; align-items: center; gap: .7rem; }
.brand__logo {
  height: 71px; /* 42px + 40%, then +20% */
  width: auto;
  aspect-ratio: 468 / 178;
  filter: drop-shadow(0 0 8px rgba(23,182,230,.5));
}

/* Nav */
.nav { display: flex; gap: 1.7rem; margin-inline: auto; }
.nav a {
  position: relative;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .88rem;
  color: var(--text-muted);
  padding: .4rem 0;
  transition: color .2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; transform: scaleX(0); transform-origin: left;
  background: var(--accent); box-shadow: var(--glow-cyan);
  transition: transform .28s var(--ease);
}
.nav a:hover, .nav a.is-active { color: #fff; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 1rem; }

/* Mobile toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(700px 500px at 75% 30%, rgba(23,182,230,.16), transparent 65%),
    linear-gradient(180deg, rgba(5,7,14,0) 60%, var(--bg) 100%);
}
/* faint circuit grid */
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(94,156,214,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94,156,214,.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 70% 35%, #000 10%, transparent 70%);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: .5rem;
  min-height: 640px; padding: 3.5rem 0 4.5rem;
}
.hero__title {
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  text-transform: uppercase;
  letter-spacing: .005em;
  margin-bottom: 1.6rem;
}
.hero__lead {
  max-width: 42ch; color: var(--text-muted); font-size: 1.06rem; margin-bottom: 2.2rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Hero media — hero-1 is a composition element (not a background): it sits
   beside the copy, in its own grid column so it never overlaps the text, and
   bleeds to the section's full height via negative margins that cancel out
   .hero__inner's own top/bottom padding. hero-2 rotates centred on top of it. */
.hero__media {
  position: relative;
  align-self: stretch;
  /* margin-left (not transform) pulls this closer to the copy — .hero__media
     also carries the .reveal fade-in class, whose .is-visible state sets its
     own `transform: none` at higher specificity, which would silently wipe
     out a transform-based offset once the reveal animation finishes. */
  margin: -3.5rem 0 -4.5rem 40px;
  /* visible on purpose: the image keeps its natural width (no side cropping)
     and is free to spill past this column left/right — .hero's own
     overflow:hidden is what keeps it from ever breaking the page layout. */
  overflow: visible;
  display: grid; place-items: center;
}
.hero__media-img {
  position: absolute; top: 0; left: 50%;
  height: 100%; width: auto; max-width: none;
  /* Centred on the same point as the ring (.orbit) — hero-1 is simply wider
     than hero-2, so it naturally reaches further left on its own, and that
     extra reach is what fades into a soft fragment of the page background
     near the copy via the mask below. */
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0%, rgba(0,0,0,.3) 14%, rgba(0,0,0,.7) 28%, #000 46%);
          mask-image: linear-gradient(90deg,
    transparent 0%, rgba(0,0,0,.3) 14%, rgba(0,0,0,.7) 28%, #000 46%);
}
/* Soft top/bottom vignette so the section's edges don't read as a hard cut */
.hero__media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: .9;
}
.orbit {
  position: relative; z-index: 2;
  width: min(607px, 108%); aspect-ratio: 1; /* hero-2, +50% -20% +10% */
  display: grid; place-items: center;
}
.orbit__glow {
  position: absolute; inset: 18%; border-radius: 50%;
  background: radial-gradient(circle, rgba(23,182,230,.28), transparent 70%);
  filter: blur(6px);
  animation: pulse 4s ease-in-out infinite;
}
.orbit__ring-img {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 26px rgba(23,182,230,.35));
  animation: spin 58s linear infinite reverse;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }

/* ============================================================
   FEATURES BAR
   ============================================================ */
.features {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
}
.features__grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.feature {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.6rem 1.6rem;
  min-height: 160px;
  border-right: 1px solid var(--line);
}
.feature:last-child { border-right: 0; }
.feature__icon {
  flex: 0 0 25%; aspect-ratio: 1 / 1; color: var(--accent);
  display: grid; place-items: center;
}
.feature__icon svg { width: 140%; height: 140%; filter: drop-shadow(0 0 10px rgba(23,182,230,.45)); }
.feature > div { flex: 0 0 70%; min-width: 0; }
.feature h3 { font-size: 1rem; letter-spacing: .03em; margin-bottom: .25rem; color: #fff; }
.feature p { font-size: .84rem; color: var(--text-dim); line-height: 1.45; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 5rem 0; }
.section__head { margin-bottom: 2.8rem; }
.section--areas {
  background:
    radial-gradient(800px 500px at 20% 30%, rgba(62,160,255,.08), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  border-top: 1px solid var(--line);
}

/* ---------- Cursos em destaque (carrossel em loop automático) ---------- */
.courses-carousel {
  position: relative;
  overflow: hidden;
  padding-inline: 1.25rem;
  /* Same ambient glow recipe as the page background (not fixed-attachment
     this time, so it's predictable at this exact spot instead of shifting
     with scroll position) — keeps the pretty gradient look instead of a
     flat block, while still giving the edge shadows below a stable colour
     to blend into. */
  background:
    radial-gradient(1100px 700px at 78% -8%, rgba(23, 182, 230, 0.12), transparent 60%),
    radial-gradient(900px 600px at 0% 40%, rgba(62, 160, 255, 0.07), transparent 55%),
    var(--bg);
}
.courses {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  overflow-y: hidden;
  /* Edge fade via mask (true alpha transparency on the cards themselves)
     instead of an opaque overlay colour — this never needs to "match" the
     background, it just lets whatever is behind show through naturally, so
     there's no seam to get wrong. Wide enough to properly ease a whole
     partially-cut card out (not just nibble a thin sliver off it), but
     capped as a share of the viewport so it doesn't eat the whole card on
     narrow phones. */
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0, #000 min(140px, 30vw), #000 calc(100% - min(140px, 30vw)), transparent 100%);
          mask-image: linear-gradient(90deg,
    transparent 0, #000 min(140px, 30vw), #000 calc(100% - min(140px, 30vw)), transparent 100%);
  /* pan-x alone made ANY touch here dedicated to horizontal panning only —
     a vertical swipe starting on a card couldn't scroll the page at all.
     pan-x pan-y lets the browser pick the direction from the actual
     gesture, so vertical page scroll still works over the carousel. */
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  /* No horizontal padding here on purpose: this is the looping scroll content,
     and any side padding would create a one-off "empty" gap at the wrap point
     (it doesn't repeat like the cards do). Side breathing room lives on the
     wrapper above instead, which doesn't scroll. */
  padding: .5rem 0 1.75rem;
  scrollbar-width: none;
}
.courses::-webkit-scrollbar { display: none; }
.courses:active,
.courses.is-dragging { cursor: grabbing; }
.courses:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.courses-cta { display: flex; justify-content: center; margin-top: .5rem; }

.course {
  flex: 0 0 auto;
  width: 260px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.course:hover {
  transform: translateY(-6px);
  border-color: var(--orange);
  box-shadow: 0 18px 40px rgba(0,0,0,.5), var(--glow-cyan);
}
.course__media {
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  color: var(--accent-soft);
  background:
    radial-gradient(circle at 50% 40%, rgba(23,182,230,.14), transparent 65%),
    linear-gradient(160deg, #0c1428, #070b16);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.course__media::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(94,156,214,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94,156,214,.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5;
}
.course__media svg { width: 46px; height: 46px; position: relative; filter: drop-shadow(0 0 8px rgba(23,182,230,.5)); }
.course__body { padding: 1.2rem 1.15rem 1.4rem; }
.course__tag {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .5rem;
}
.course__body h3 { font-size: 1.12rem; color: #fff; margin-bottom: .3rem; }
.course__body p { font-size: .86rem; color: var(--text-muted); margin-bottom: 1rem; }
.course__link {
  font-family: var(--font-head); font-weight: 600; font-size: .85rem;
  letter-spacing: .05em; color: var(--accent-soft);
  display: inline-flex; align-items: center; gap: .4rem;
}
.course__link .arrow { transition: transform .25s var(--ease); }
.course:hover .course__link .arrow { transform: translateX(4px); }

/* ---------- Áreas de formação ---------- */
.areas {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
}
.area {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
  padding: 1.8rem 1.5rem;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.area:hover {
  transform: translateY(-6px);
  border-color: var(--orange);
  box-shadow: 0 18px 40px rgba(0,0,0,.5), var(--glow-cyan);
}
/* Icon only — no badge/box around it, just a bigger neon-glowing glyph */
.area__icon {
  flex: none; width: 88px; height: 88px; color: var(--accent);
  display: grid; place-items: center;
}
.area__icon svg {
  width: 80%; height: 80%;
  filter: drop-shadow(0 0 6px var(--accent)) drop-shadow(0 0 18px rgba(23,182,230,.75));
  transition: filter .3s var(--ease);
}
.area:hover .area__icon svg {
  filter: drop-shadow(0 0 9px var(--accent)) drop-shadow(0 0 26px rgba(23,182,230,.9));
}
.area h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .03em; color: #fff; margin-bottom: .3rem; }
.area p { color: var(--text-muted); font-size: .88rem; line-height: 1.5; }

/* ============================================================
   SOBRE NÓS
   ============================================================ */
.about { position: relative; padding: 6rem 0; overflow: hidden; }
.about__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 2rem;
}
.about__copy { max-width: 46ch; }
.about__copy p { color: var(--text-muted); font-size: 1.05rem; margin: 1.4rem 0 2rem; }

/* About media — same treatment as the hero image: a composition element
   beside the copy (not a background), bleeding to the section's full height
   via negative margins that cancel .about's own padding, natural width (no
   side cropping), fading into the copy side via mask. */
.about__media {
  position: relative;
  align-self: stretch;
  margin: -6rem 0 -6rem 40px;
  overflow: visible;
  display: grid; place-items: center;
}
.about__media-img {
  position: absolute; top: 0; left: 50%;
  height: 100%; width: auto; max-width: none;
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0%, rgba(0,0,0,.3) 14%, rgba(0,0,0,.7) 28%, #000 46%);
          mask-image: linear-gradient(90deg,
    transparent 0%, rgba(0,0,0,.3) 14%, rgba(0,0,0,.7) 28%, #000 46%);
}
.about__media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 16%, transparent 86%, var(--bg) 100%);
  opacity: .9;
}

/* ============================================================
   PAGE HERO (sobre-nos.html — compact intro banner)
   ============================================================ */
.page-hero {
  padding: 7rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(23,182,230,.14), transparent 60%),
    var(--bg);
}
.page-hero__inner { max-width: 760px; margin-inline: auto; }
.page-hero__lead { color: var(--text-muted); font-size: 1.1rem; margin-top: 1.2rem; }

/* ============================================================
   PILLARS (Missão / Visão — big statement blocks)
   ============================================================ */
.pillars { padding: 4.5rem 0; }
.pillar {
  display: flex; align-items: center; gap: 3rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}
.pillar:last-child { border-bottom: 0; }
.pillar--reverse { flex-direction: row-reverse; }
.pillar__badge {
  flex: none; position: relative;
  width: 160px; height: 160px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(23,182,230,.05);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 0 30px rgba(23,182,230,.12), 0 0 30px rgba(23,182,230,.1);
}
.pillar__icon { position: relative; width: 56px; height: 56px; color: var(--accent); }
.pillar__icon svg { width: 100%; height: 100%; filter: drop-shadow(0 0 8px rgba(23,182,230,.55)); }
.pillar__content { flex: 1; min-width: 0; }
.pillar--reverse .pillar__content { text-align: right; }
.pillar--reverse .eyebrow { padding-left: 0; padding-right: 2.6rem; }
.pillar--reverse .eyebrow::before {
  left: auto; right: 0;
  background: linear-gradient(270deg, transparent, var(--accent));
}
.pillar__text { color: var(--text-muted); font-size: 1.1rem; line-height: 1.75; margin-top: .8rem; }
.pillar__text strong { color: #fff; }

@media (max-width: 900px) {
  .pillar, .pillar--reverse { flex-direction: column; text-align: center; gap: 1.5rem; }
  .pillar__badge { width: 120px; height: 120px; }
  .pillar__icon { width: 44px; height: 44px; }
  .pillar--reverse .pillar__content { text-align: center; }
  .pillar--reverse .eyebrow { padding-left: 2.6rem; padding-right: 0; }
  .pillar--reverse .eyebrow::before {
    left: 0; right: auto;
    background: linear-gradient(90deg, transparent, var(--accent));
  }
  .pillar__text { text-align: justify; }

  /* Sobre Nós — secções ficavam com espaço a mais entre si no responsivo */
  .page-hero { padding-top: 25px; padding-bottom: 25px; }
  .pillars { padding-top: 25px; padding-bottom: 25px; }
  .section--areas { padding-top: 25px; padding-bottom: 25px; }
  .about-cta { padding-top: 25px; padding-bottom: 25px; }
}

/* ============================================================
   ABOUT PAGE CLOSING CTA (reuses .newsletter's background treatment)
   ============================================================ */
.about-cta__inner { text-align: center; max-width: 700px; margin-inline: auto; }
.about-cta__inner p { color: var(--text-muted); margin: .8rem 0 2rem; font-size: 1.05rem; }
.about-cta__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ============================================================
   CONSULTORIA (consultoria.html)
   ============================================================ */
.consultoria-intro { padding-top: 20px; }
.consultoria-intro__inner { max-width: 820px; margin-inline: auto; text-align: center; }
.consultoria-intro__inner .page-hero__lead { margin-top: .9rem; }
.consultoria-intro__inner .page-hero__lead:first-of-type { margin-top: 1.2rem; }
.consultoria-intro__inner .page-hero__lead strong { color: #fff; }

.services__intro {
  max-width: 760px; margin: 0 auto 3rem;
  text-align: center;
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  border-left: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  padding: 0 1.5rem;
}

.service-block { padding: 3rem 0; border-bottom: 1px solid var(--line); }
.service-block:last-child { border-bottom: 0; }
.service-block__head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1rem; }
.service-block__emoji {
  flex: none;
  width: 3.2rem; height: 3.2rem;
  display: grid; place-items: center;
  font-size: 1.5rem;
  border-radius: 50%;
  background: rgba(23,182,230,.05);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 0 20px rgba(23,182,230,.12), 0 0 20px rgba(23,182,230,.1);
}
.service-block__heading { min-width: 0; }
.service-block__num {
  display: block;
  font-family: var(--font-head); font-weight: 600;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .2rem;
}
.service-block__title {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  text-transform: uppercase; letter-spacing: .01em;
  color: #fff;
}
.service-block__tagline {
  color: var(--text-muted); font-style: italic;
  margin: 0 0 1.4rem; line-height: 1.6;
}
.service-block__note {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem;
  margin: 1.4rem 0;
  color: var(--text-muted);
  font-size: .95rem; line-height: 1.7;
}
.service-block__subhead {
  font-family: var(--font-head); font-weight: 600;
  font-size: .95rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
  margin: 1.8rem 0 1rem;
}
.service-block__list { display: grid; gap: .9rem; list-style: none; }
.service-block__list > li {
  position: relative; padding-left: 1.5rem;
  color: var(--text-muted); line-height: 1.65;
}
.service-block__list > li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(23,182,230,.75);
}
.service-block__list strong { color: #fff; }
.service-block__sublist {
  margin: .7rem 0 0 1.5rem;
  display: grid; gap: .5rem;
  list-style: none;
}
.service-block__sublist li {
  position: relative; padding-left: 1.4rem;
  color: var(--text-muted); line-height: 1.6; font-size: .95rem;
}
.service-block__sublist li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px rgba(255,122,0,.7);
}

@media (max-width: 720px) {
  .service-block__head { align-items: flex-start; }
  .services__intro { padding: 0 1rem; }
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter {
  padding: 5rem 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(700px 300px at 50% 120%, rgba(23,182,230,.12), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.newsletter__inner {
  display: flex; align-items: center; justify-content: center;
  gap: .5rem;
}
.newsletter__content { max-width: 480px; }
.newsletter p { color: var(--text-muted); margin: .8rem 0 2rem; font-size: 1.05rem; }

/* Floating illustration beside the copy, pulled in close and nudged up so
   it sits almost on top of the subscribe button. */
.newsletter__figure {
  flex: none;
  width: min(336px, 36vw); /* 280px + 20% */
  margin-top: -50px; /* -30px - 20px higher */
  position: relative; z-index: 2;
  pointer-events: none;
}
.newsletter__figure img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 14px 26px rgba(0,0,0,.45)) drop-shadow(0 0 30px rgba(23,182,230,.25));
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}
.newsletter__form {
  display: flex; gap: .8rem;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: .5rem;
  /* .newsletter__content caps this at 480px; break out of it — left edge
     stays flush with the heading/paragraph above, all the extra 30% width
     extends to the right (may overlap the figure — that's fine). */
  width: 624px;
  max-width: 624px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.newsletter__form:focus-within { border-color: var(--accent); box-shadow: var(--glow-cyan); }
.newsletter__form input {
  flex: 1; background: transparent; border: 0; color: var(--text);
  padding: .8rem 1rem; font-size: 1rem; font-family: var(--font-body);
}
.newsletter__form input::placeholder { color: var(--text-dim); }
.newsletter__form input:focus { outline: none; }
.newsletter__note { min-height: 1.2rem; font-size: .9rem; color: var(--accent-soft); margin-top: .8rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg), #04060c);
  padding-top: 3.5rem;
}
.footer__grid {
  display: grid; grid-template-columns: 1.3fr 1.4fr 1.2fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer__col h3 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .05em; color: #fff; margin-bottom: 1rem; }
.footer__col h4 {
  font-size: .95rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent); margin-bottom: 1.1rem;
}
.footer__col p { color: var(--text-muted); font-size: .92rem; margin-bottom: 1.3rem; }

.footer__links { display: flex; gap: 2.5rem; }
.footer__links ul { list-style: none; display: grid; gap: .7rem; }
.footer__links a, .footer__contacts { font-size: .92rem; }
.footer__links a { color: var(--text-muted); transition: color .2s var(--ease); }
.footer__links a:hover { color: var(--accent); }

.footer__contacts { list-style: none; display: grid; gap: 1rem; }
.footer__contacts li { display: flex; align-items: flex-start; flex-wrap: wrap; gap: .3rem .7rem; color: var(--text-muted); font-size: .92rem; }
.footer__contacts .ci { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 1px; }
.footer__contacts .ci svg { width: 100%; height: 100%; }
.footer__contacts a { color: var(--text-muted); transition: color .2s var(--ease); }
.footer__contacts a:hover { color: var(--accent); }

.footer__col--brand { display: grid; gap: 1.5rem; align-content: start; justify-items: start; }
.brand--footer .brand__logo { height: 77px; filter: drop-shadow(0 0 6px rgba(23,182,230,.4)); } /* 46px + 40%, then +20% */

.socials { display: flex; gap: .7rem; }
.socials a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 10px;
  color: var(--text-muted);
  transition: .25s var(--ease);
}
.socials a svg { width: 18px; height: 18px; }
.socials a:hover { color: var(--accent); border-color: var(--accent); box-shadow: var(--glow-cyan); transform: translateY(-2px); }

.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  color: var(--text-dim); font-size: .84rem;
}
.footer__bottom a { color: var(--text-dim); transition: color .2s var(--ease); }
.footer__bottom a:hover { color: var(--accent); }

.footer__complaints { flex: none; line-height: 0; margin-top: .3rem; }
.footer__complaints img {
  height: 60px; width: auto; display: block; /* 40px + 50% */
  border-radius: 6px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.footer__complaints:hover img {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.45);
}

/* ============================================================
   FLOATING WHATSAPP BUTTON
   Fixed to the viewport (not the footer) so it's always visible; styled
   with the site's own dark surface + neon-glow language, but keeps
   WhatsApp's recognisable green on the icon/glow so it's still instantly
   identifiable as WhatsApp.
   ============================================================ */
.whatsapp-fab {
  position: fixed;
  right: 1.5rem; bottom: 1.5rem;
  z-index: 90;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line-strong);
  color: #25d366;
  box-shadow: 0 8px 22px rgba(0,0,0,.5), 0 0 18px rgba(37,211,102,.3);
  animation: whatsapp-pulse 2.6s ease-in-out infinite;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.whatsapp-fab svg {
  width: 30px; height: 30px;
  filter: drop-shadow(0 0 6px rgba(37,211,102,.65));
}
.whatsapp-fab:hover {
  transform: translateY(-3px) scale(1.06);
  border-color: #25d366;
}
@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(0,0,0,.5), 0 0 18px rgba(37,211,102,.3); }
  50%      { box-shadow: 0 8px 22px rgba(0,0,0,.5), 0 0 30px rgba(37,211,102,.55); }
}
@media (max-width: 520px) {
  .whatsapp-fab { right: 1rem; bottom: 1rem; width: 54px; height: 54px; }
  .whatsapp-fab svg { width: 27px; height: 27px; }
}

/* ============================================================
   IMAGE PLACEHOLDERS
   When you add final images, either:
   - replace the element with <img src="images/..."> , or
   - set: [data-img] { background-image: url("../images/NAME.jpg"); }
   ============================================================ */
[data-img] { background-size: cover; background-position: center; }

/* ============================================================
   PRELOADER  (spinning numbers — Uiverse/SelfMadeSystem)
   Recolorido para a paleta ciano/azul néon da página.
   ============================================================ */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background:
    radial-gradient(600px 600px at 50% 50%, rgba(23,182,230,.12), transparent 70%),
    var(--bg);
  transition: opacity .9s var(--ease), visibility .9s var(--ease);
}
/* faint tech grid behind the numbers */
.preloader::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(94,156,214,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94,156,214,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 50%, #000 5%, transparent 62%);
}
/* smooth exit: fade + gentle zoom & blur, not an abrupt cut */
body:not(.is-loading) .preloader {
  opacity: 0; visibility: hidden; pointer-events: none;
}
body.is-loading { overflow: hidden; }

/* the ring is anchored to the exact centre of the viewport */
.preloader__stage {
  position: absolute; z-index: 1;
  top: 50%; left: 50%;
  width: 0; height: 0;
}

.spinning-number { position: absolute; top: 0; left: 0; font-size: 0.66rem; }
.spinning-number .wheel { animation: spinning-number-spin var(--t) linear infinite var(--r1); }
@keyframes spinning-number-spin { 0% { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.spinning-number .number {
  position: absolute;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--l) * -1)) scale(var(--s));
}
.spinning-number .number::before {
  content: "1";
  --z: 1.9; --r: normal;
  display: block;
  transform: translate(-50%, -50%);
  font-family: var(--font-head);
  font-weight: 700;
  /* same cyan as the hero animation + neon glow (overrides each wheel's inline colour) */
  color: var(--accent);
  text-shadow: 0 0 4px var(--accent), 0 0 10px var(--accent);
  animation: spinning-number-changing calc(var(--t) * var(--z))
    calc(-1 * var(--z) * var(--t) * var(--i) / var(--m) - 60s) linear infinite var(--r);
}
@keyframes spinning-number-changing { 0% { content: "1"; } to { content: "0"; } }

/* brand + loading text, placed just below the ring */
.preloader__caption {
  position: absolute; z-index: 1;
  left: 0; right: 0; top: 50%;
  transform: translateY(180px);
  display: grid; gap: .5rem; justify-items: center;
  text-align: center;
  /* hidden until the web font is confirmed loaded — see js/main.js */
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.preloader__caption.is-ready { opacity: 1; }
.preloader__brand {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.4rem, 4vw, 2rem); letter-spacing: .14em; text-transform: uppercase;
  color: #fff; text-shadow: 0 0 18px rgba(23,182,230,.5);
}
.preloader__brand span { color: var(--accent); }
.preloader__text {
  font-family: var(--font-head); font-weight: 500;
  letter-spacing: .34em; text-transform: uppercase; font-size: .78rem;
  color: var(--text-dim);
}
.preloader__text .dots i { animation: dot-blink 1.4s infinite both; font-style: normal; }
.preloader__text .dots i:nth-child(2) { animation-delay: .2s; }
.preloader__text .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dot-blink { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }

@media (max-width: 560px) {
  .spinning-number { font-size: 0.48rem; }
  .preloader__caption { transform: translateY(135px); }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .course { width: 235px; }
  .features__grid { grid-template-columns: repeat(3, 1fr); }
  .feature { border-bottom: 1px solid var(--line); }
  /* 6 sub-columns (each card spans 2) so the leftover 2-card row can be
     centred explicitly — plain repeat(3,1fr) leaves it stuck to the left. */
  .areas { grid-template-columns: repeat(6, 1fr); }
  .area { grid-column: span 2; }
  .area:nth-child(4) { grid-column: 2 / span 2; }
  .area:nth-child(5) { grid-column: 4 / span 2; }
}

@media (max-width: 900px) {
  .site-header { margin-top: 10px; }
  .nav, .header__actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .header__inner { width: min(100% - 1.5rem, var(--container)); }
  /* .nav normally has the auto side-margins that push .header__actions to the
     far right; with .nav hidden on mobile that push disappears, so restore it
     directly here — plus pull the icon itself a bit closer to the edge. */
  .header__actions { margin-left: auto; }
  .nav-toggle { margin-right: -6px; }

  .site-header.nav-open .nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 74px; left: 0; right: 0;
    background: rgba(5,7,14,.97); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem;
  }
  .site-header.nav-open .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); }

  /* The 75% 30% glow position is tuned for the desktop two-column layout;
     on the stacked mobile layout that position no longer lines up with
     anything, and the mismatch against the flat colour used by the media
     panel's shadows/vignette is what reads as a seam. Centring it removes
     the location-dependent mismatch. */
  .hero__bg {
    background:
      radial-gradient(600px 500px at 50% 15%, rgba(23,182,230,.14), transparent 65%),
      linear-gradient(180deg, rgba(5,7,14,0) 60%, var(--bg) 100%);
  }
  .hero__bg::before { mask-image: radial-gradient(circle at 50% 20%, #000 10%, transparent 70%); }

  .hero__inner { grid-template-columns: 1fr; text-align: left; min-height: auto; padding-top: 1.5rem; }
  /* Stacked mobile layout: the media panel becomes a normal full-width band
     above the copy instead of a full-height side column (reset the desktop
     bleed margins, which assumed a shared-row two-column layout). Pulled up
     tight to the header and overlapping down into the copy a little for a
     more harmonious, connected feel (the bottom vignette keeps the
     overlapping text legible). */
  .hero__media {
    order: -1;
    align-self: auto;
    margin: -1.5rem -1.25rem -34px;
    height: 460px; /* grown to fit the +50% ring without clipping it */
    overflow: hidden; /* stacked mobile layout: no side text to blend into */
  }
  .hero__media-img {
    left: 0; top: 0; transform: none;
    width: 100%; height: 100%; max-width: none;
    object-fit: cover; object-position: center;
    -webkit-mask-image: none;
            mask-image: none;
  }
  /* Soft left/right edge shadows (same idea as the courses carousel), and a
     bottom-only fade for the overlapping copy — no top darkening, that was
     reading as a solid black band right under the header. */
  .hero__media::before {
    content: "";
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
      linear-gradient(90deg, var(--bg) 0%, transparent 10%),
      linear-gradient(270deg, var(--bg) 0%, transparent 10%);
  }
  .hero__media::after {
    background: linear-gradient(180deg, transparent 0%, transparent 74%, var(--bg) 100%);
    opacity: .95;
  }
  /* Fix stacking: a positioned element (.hero__media, position:relative)
     paints above static in-flow siblings regardless of DOM/source order, so
     the overlapping copy was rendering silently behind the image. */
  .hero__copy { position: relative; z-index: 2; }
  .orbit { width: min(360px, 94%); } /* hero-2, +50% then -20% */

  /* Same stacked treatment as the hero media on mobile — full-width band
     above the copy, with the copy overlapping up into it a little for a
     more connected, intentional look (the bottom vignette on .about__media
     keeps the overlapping text legible). */
  .about { padding-top: 5px; }
  .about__inner { grid-template-columns: 1fr; gap: .5rem; }
  .about__media {
    order: -1;
    align-self: auto;
    margin: 0 -1.25rem -60px; /* tighter overlap — reads as one connected block */
    height: 300px;
    overflow: hidden;
  }
  /* No top darkening (that read as a solid black band) — bottom-only fade
     for the overlapping copy. */
  .about__media::after {
    background: linear-gradient(180deg, transparent 0%, transparent 68%, var(--bg) 100%);
    opacity: .95;
  }
  .about__copy { position: relative; z-index: 2; }
  .about__media-img {
    left: 0; top: 0; transform: none;
    width: 100%; height: 100%; max-width: none;
    object-fit: cover; object-position: center;
    -webkit-mask-image: none;
            mask-image: none;
  }

  .newsletter__inner { flex-direction: column; text-align: center; }
  .newsletter__content { max-width: 100%; }
  .newsletter__figure { width: min(260px, 65vw); margin-top: -20px; } /* 200px + 30% */
  /* Reset the desktop-only 30%-wider breakout — on a stacked mobile layout
     it should just be a normal, fully responsive form again. */
  .newsletter__form { width: 100%; max-width: 480px; margin: 0 auto; }
}

@media (max-width: 720px) {
  .course { width: 220px; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(odd) { border-right: 1px solid var(--line); }
  /* 4 sub-columns (each card spans 2) so the leftover 5th card can be
     centred instead of stuck to the left. */
  .areas { grid-template-columns: repeat(4, 1fr); }
  .area { grid-column: span 2; }
  .area:nth-child(4) { grid-column: auto; }
  .area:nth-child(5) { grid-column: 2 / span 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__col--cta, .footer__col--brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .course { width: 76vw; }
  .features__grid { grid-template-columns: 1fr; }
  .feature { border-right: 0 !important; }
  /* Cards stacked one below the other; within each card, icon and text sit
     side by side, with the title above the description inside the text
     block (not icon/title/description all in one row). */
  .areas {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .area, .area:nth-child(4), .area:nth-child(5) {
    grid-column: auto;
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
  .area__text { display: flex; flex-direction: column; }
  #areas .section__head { text-align: center; }
  .newsletter__form { flex-direction: column; }
  .newsletter__form .btn { justify-content: center; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__links { gap: 3rem; }

  /* Centre both the logo/socials/complaints block and the copyright/legal
     row — reads better than left-aligned on a narrow single-column footer. */
  .footer__col--brand { justify-items: center; text-align: center; }
  .footer__bottom { justify-content: center; text-align: center; }
}

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