/* Matrix Educação — Design Tokens (Dark Mode — extraídos do brandbook Figma) */
:root {
  color-scheme: dark;

  --matrix-blue: #1E40D8;
  --matrix-blue-600: #1D4ED8;
  --matrix-blue-500: #3B82F6;
  --matrix-blue-300: #93C5FD;
  --matrix-blue-100: rgba(59, 130, 246, .18);

  --matrix-navy:        #0F172A;
  --matrix-navy-deep:   #0B1220;
  --matrix-navy-2:      #111B30;
  --matrix-navy-3:      #16223D;

  --matrix-bg:        var(--matrix-navy-deep);
  --matrix-surface:   var(--matrix-navy);
  --matrix-surface-2: var(--matrix-navy-2);

  --matrix-ink:       #F1F5F9;
  --matrix-text:      #E2E8F0;
  --matrix-text-soft: #CBD5E1;
  --matrix-gray-700:  #CBD5E1;
  --matrix-gray-500:  #94A3B8;
  --matrix-gray-400:  #64748B;
  --matrix-gray-300:  #475569;
  --matrix-gray-200:  rgba(255, 255, 255, .08);
  --matrix-gray-100:  rgba(255, 255, 255, .05);
  --matrix-gray-50:   var(--matrix-navy);

  --matrix-success: #4ADE80;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, .06), 0 2px 4px rgba(15, 23, 42, .04);
  --shadow-lg: 0 24px 48px rgba(15, 23, 42, .12), 0 8px 16px rgba(15, 23, 42, .06);

  --grid-line: rgba(148, 163, 184, .25);
  --grid-line-strong: rgba(148, 163, 184, .55);

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--matrix-text);
  background: var(--matrix-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover { color: var(--matrix-blue); }

button { font-family: inherit; cursor: pointer; }

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--matrix-blue);
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--matrix-blue);
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--matrix-ink);
  margin: 0 0 16px;
}

h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.05; }
h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15; }
h3 { font-size: 20px; line-height: 1.3; }

p { margin: 0 0 16px; color: var(--matrix-text-soft); }

.section { padding: clamp(64px, 10vw, 120px) 0; }
.section-tight { padding: clamp(48px, 7vw, 80px) 0; }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head .eyebrow { margin-bottom: 16px; }

.section-head p {
  font-size: 18px;
  color: var(--matrix-text-soft);
}

/* Grid background ornamento */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 75%);
  pointer-events: none;
}

/* ===========================
   HEADER
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, .78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo-link img { height: 40px; width: auto; }

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

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 28px;
}

.nav-list a {
  font-size: 15px;
  font-weight: 500;
  color: var(--matrix-text);
  transition: color .15s ease;
}

.nav-list a:hover { color: var(--matrix-blue-300); }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--matrix-blue);
  color: #fff;
  box-shadow: 0 6px 14px rgba(30, 64, 216, .25);
}
.btn-primary:hover { background: var(--matrix-blue-600); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 20px rgba(30, 64, 216, .3); }

.btn-ghost {
  background: transparent;
  color: var(--matrix-ink);
  border-color: rgba(255, 255, 255, .12);
}
.btn-ghost:hover {
  color: #fff;
  border-color: var(--matrix-blue-300);
  background: rgba(59, 130, 246, .08);
}

.btn-dark {
  background: var(--matrix-navy);
  color: #fff;
}
.btn-dark:hover { background: #1e293b; color: #fff; transform: translateY(-1px); }

.btn-lg { padding: 16px 28px; font-size: 16px; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 10px;
  border-radius: 10px;
  color: var(--matrix-ink);
}

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 10vw, 120px) 0 clamp(80px, 10vw, 140px);
  background:
    radial-gradient(ellipse 80% 60% at 30% 0%, rgba(30, 64, 216, .22) 0%, transparent 60%),
    linear-gradient(180deg, var(--matrix-navy-deep) 0%, var(--matrix-navy) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(96, 165, 250, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(96, 165, 250, .05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content .eyebrow { margin-bottom: 24px; }
.hero h1 { color: var(--matrix-ink); margin-bottom: 24px; }
.hero h1 .accent { color: var(--matrix-blue-300); }

.hero-lead {
  font-size: clamp(18px, 1.6vw, 20px);
  max-width: 560px;
  color: var(--matrix-text-soft);
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 24px;
  max-width: 540px;
}

.hero-stats dt {
  font-size: 28px;
  font-weight: 700;
  color: var(--matrix-ink);
  letter-spacing: -0.02em;
}

.hero-stats dd {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--matrix-gray-500);
}

/* Hero visual: pixel-grid card with full animation stack */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  border-radius: var(--radius-xl);
  background: radial-gradient(ellipse at 50% 40%, #1B2745 0%, var(--matrix-navy) 70%, #060B17 100%);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(96,165,250,.06) inset;
  overflow: hidden;
  isolation: isolate;
}

/* Aurora — pulsing radial glow behind everything */
.visual-aurora {
  position: absolute;
  inset: -15%;
  z-index: 0;
  background:
    radial-gradient(50% 50% at 30% 25%, rgba(59,130,246,.55) 0%, transparent 60%),
    radial-gradient(60% 60% at 80% 80%, rgba(30,64,216,.55) 0%, transparent 65%);
  filter: blur(18px);
  animation: auroraPulse 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes auroraPulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.05); }
}

/* Grid canvas with electric bolts traveling along grid lines */
.grid-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 95% 95% at 50% 50%, #000 65%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 95% 95% at 50% 50%, #000 65%, transparent 100%);
}
.grid-canvas .bolt {
  fill: none;
  stroke: #93C5FD;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 7 100;
  stroke-dashoffset: 107;
  filter:
    drop-shadow(0 0 4px #60A5FA)
    drop-shadow(0 0 10px rgba(96,165,250,.7));
  animation: boltRun var(--bolt-t, 4s) linear infinite;
  animation-delay: var(--bolt-d, 0s);
}
@keyframes boltRun {
  0%   { stroke-dashoffset: 107; opacity: 0; }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { stroke-dashoffset: -7;  opacity: 0; }
}

/* Pixel-art M with staggered entrance + occasional shimmer */
.pixel-m {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 3;
  padding: 18%;
}
.pixel-m svg {
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 4px 16px rgba(59,130,246,.45))
    drop-shadow(0 0 28px rgba(59,130,246,.25));
}
.pixel-m-rects rect {
  fill: #3B82F6;
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation:
    pixelIn .55s cubic-bezier(.2,.8,.3,1.4) both,
    pixelShimmer 7s ease-in-out infinite;
  animation-delay:
    calc(var(--i, 0) * 80ms + 250ms),
    calc(var(--i, 0) * 90ms + 1.8s);
}
@keyframes pixelIn {
  0%   { opacity: 0; transform: scale(.3); }
  60%  { opacity: 1; transform: scale(1.15); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes pixelShimmer {
  0%, 88%, 100% { fill: #3B82F6; }
  92%           { fill: #93C5FD; }
  94%           { fill: #DBEAFE; }
  96%           { fill: #93C5FD; }
}

@media (prefers-reduced-motion: reduce) {
  .visual-aurora,
  .grid-canvas .bolt,
  .pixel-m-rects rect { animation: none !important; }
  .pixel-m-rects rect { opacity: 1 !important; transform: none !important; }
}

/* ===========================
   LOGOS / SOCIAL PROOF
   =========================== */
.logos {
  border-top: 1px solid var(--matrix-gray-200);
  border-bottom: 1px solid var(--matrix-gray-200);
  background: #fff;
}
.logos .container {
  padding-top: 40px;
  padding-bottom: 40px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 56px);
  justify-content: space-between;
}
.logos-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--matrix-gray-400);
  font-weight: 600;
}
.logos ul {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  list-style: none;
  margin: 0; padding: 0;
  flex-wrap: wrap;
  align-items: center;
}
.logos li {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--matrix-gray-400);
  opacity: .8;
}

/* ===========================
   SOBRE — module map
   =========================== */
.sobre-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.sobre-text .eyebrow { margin-bottom: 16px; display: inline-flex; }
.sobre-text h2 { margin-bottom: 20px; }
.sobre-text p { font-size: 17px; color: var(--matrix-text-soft); }

.module-map {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(30, 64, 216, .12) 0%, transparent 55%),
    rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, .04);
  overflow: hidden;
}

.module-map::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(59, 130, 246, .18), transparent 70%);
  pointer-events: none;
}

.module-map-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, .14);
  border: 1px solid rgba(96, 165, 250, .25);
  color: #BFDBFE;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.module-map-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: #4ADE80;
  border-radius: 50%;
  box-shadow: 0 0 8px #4ADE80, 0 0 0 4px rgba(74, 222, 128, .18);
  animation: dotPulse 1.6s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 8px #4ADE80, 0 0 0 4px rgba(74, 222, 128, .18); }
  50%      { box-shadow: 0 0 8px #4ADE80, 0 0 0 9px rgba(74, 222, 128, 0); }
}

.module-map svg {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
}

.mm-conn {
  fill: none;
  stroke: rgba(96, 165, 250, .55);
  stroke-width: 1.8;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(96, 165, 250, .35));
}

.mm-active {
  fill: #1E40D8;
  stroke: rgba(96, 165, 250, .35);
  stroke-width: 1;
  filter: drop-shadow(0 0 6px rgba(30, 64, 216, .55));
}

.mm-current {
  fill: #60A5FA;
  stroke: #DBEAFE;
  stroke-width: 1.5;
  transform-origin: center;
  transform-box: fill-box;
  animation: mmCurrentPulse 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 10px #60A5FA) drop-shadow(0 0 22px rgba(59, 130, 246, .8));
}
@keyframes mmCurrentPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .9; transform: scale(1.08); }
}

.mm-queued {
  fill: rgba(96, 165, 250, .08);
  stroke: rgba(96, 165, 250, .55);
  stroke-width: 1.4;
  stroke-dasharray: 3 3;
}

.mm-locked {
  fill: none;
  stroke: rgba(255, 255, 255, .08);
  stroke-width: 1.2;
}

.module-map-legend {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: 12px;
  color: var(--matrix-text-soft);
  font-weight: 500;
}
.module-map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.module-map-legend i {
  width: 12px; height: 12px;
  border-radius: 3px;
  display: inline-block;
}
.module-map-legend .lg-active  { background: #1E40D8; box-shadow: 0 0 6px rgba(30, 64, 216, .6); }
.module-map-legend .lg-current { background: #60A5FA; box-shadow: 0 0 8px #60A5FA; }
.module-map-legend .lg-queued  { border: 1.4px dashed rgba(96, 165, 250, .55); background: rgba(96, 165, 250, .08); }

/* ===========================
   FEATURES
   =========================== */
.features {
  background: var(--matrix-navy);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-card {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: rgba(255, 255, 255, .03);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, .35);
  background: rgba(255, 255, 255, .05);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--matrix-blue) 0%, var(--matrix-blue-500) 100%);
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 24px;
  box-shadow: 0 8px 16px rgba(30,64,216,.2);
}

.feature-icon svg { width: 28px; height: 28px; }

.feature-card h3 { margin-bottom: 8px; }
.feature-card p { margin: 0; font-size: 15px; }

/* ===========================
   COURSES
   =========================== */
.courses {
  background: var(--matrix-navy-deep);
  position: relative;
  overflow: hidden;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.course-card {
  background: rgba(255, 255, 255, .03);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, .08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.course-card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, .35);
  background: rgba(255, 255, 255, .05);
}

.course-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--matrix-navy-2) 0%, var(--matrix-navy-deep) 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.course-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

.course-thumb svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px; height: 64px;
}

.course-thumb .badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
}

.course-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.course-body h3 { margin-bottom: 8px; font-size: 18px; }
.course-body p { font-size: 14px; margin-bottom: 16px; flex: 1; }

.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: 13px;
  color: var(--matrix-gray-500);
}

.course-meta strong { color: var(--matrix-ink); font-weight: 600; }

/* ===========================
   METHOD (Matrix Grid)
   =========================== */
.method {
  background: var(--matrix-navy);
  color: #fff;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .04);
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}
.method::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 80%);
}

.method .container { position: relative; z-index: 1; }
.method h2 { color: #fff; max-width: 720px; }
.method .section-head .eyebrow { color: var(--matrix-blue-500); }
.method .section-head .eyebrow::before { background: var(--matrix-blue-500); }
.method .section-head p { color: var(--matrix-gray-300); }

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.method-step {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: background .2s ease, border-color .2s ease;
}

.method-step:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(59, 130, 246, .35);
}

.method-step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--matrix-blue);
  color: #fff;
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 14px;
}

.method-step h3 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.method-step p { color: var(--matrix-gray-300); font-size: 14px; margin: 0; }

/* ===========================
   TESTIMONIAL
   =========================== */
.testimonial {
  background: var(--matrix-navy-deep);
}

.testimonial-card {
  background:
    linear-gradient(135deg, rgba(30, 64, 216, .12) 0%, transparent 60%),
    rgba(255, 255, 255, .03);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 5vw, 64px);
  border: 1px solid rgba(255, 255, 255, .08);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(59, 130, 246, .18), transparent 70%);
  pointer-events: none;
}

.testimonial-quote {
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.4;
  font-weight: 500;
  color: var(--matrix-ink);
  letter-spacing: -0.01em;
  margin: 24px 0 32px;
  max-width: 820px;
  position: relative;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--matrix-blue), var(--matrix-blue-500));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  letter-spacing: -.02em;
  box-shadow: 0 8px 16px rgba(30, 64, 216, .35);
}

.author-info strong { display: block; color: var(--matrix-ink); font-size: 15px; }
.author-info span { color: var(--matrix-gray-500); font-size: 13px; }

/* ===========================
   CTA
   =========================== */
.cta {
  background: var(--matrix-bg);
  padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 120px);
}
.cta-card {
  background: var(--matrix-navy);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 50%, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 50%, #000 30%, transparent 70%);
}

.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { color: #fff; margin-bottom: 12px; }
.cta-card p { color: var(--matrix-gray-300); margin: 0 0 24px; font-size: 17px; }

.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.cta-actions .btn-primary { background: var(--matrix-blue-500); }
.cta-actions .btn-primary:hover { background: var(--matrix-blue); }
.cta-actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.cta-actions .btn-ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.5); color: #fff; }

.cta-visual {
  display: grid;
  place-items: center;
}
.cta-visual svg { width: 220px; height: 220px; }

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: var(--matrix-navy);
  color: var(--matrix-gray-300);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255,255,255,.05);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.footer-brand img { height: 48px; }

.footer-brand p {
  color: var(--matrix-gray-400);
  font-size: 14px;
  margin-top: 16px;
  max-width: 320px;
}

.footer-col h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 16px;
  font-weight: 600;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a {
  color: var(--matrix-gray-300);
  font-size: 14px;
  transition: color .15s ease;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p { margin: 0; font-size: 13px; color: var(--matrix-gray-400); }

.socials { display: flex; gap: 12px; }
.socials a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  color: var(--matrix-gray-300);
  transition: background .15s ease, color .15s ease;
}
.socials a:hover { background: var(--matrix-blue); color: #fff; }
.socials svg { width: 18px; height: 18px; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin: 0 auto; max-width: 480px; }
  .sobre-grid { grid-template-columns: 1fr; }
  .module-map { max-width: 420px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .cta-card { grid-template-columns: 1fr; }
  .cta-visual { display: none; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px var(--gutter);
    background: rgba(11, 18, 32, .96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .5);
  }
  .nav.is-open .nav-list {
    flex-direction: column;
    gap: 0;
  }
  .nav.is-open .nav-list a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
  }

  .features-grid,
  .courses-grid,
  .method-grid { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
