/* Base Reset & Theme */
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  color: #e6edf7;
  background-color: #0b1320; /* fallback seguro para evitar fundo branco */
  background: radial-gradient(1200px 800px at 50% 20%, rgba(50, 63, 94, 0.32), transparent 60%),
              linear-gradient(180deg, #0e1726 0%, #0b1320 100%);
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(to right, rgba(255,255,255,0.022) 1px, transparent 1px),
    radial-gradient(1200px 800px at 50% 20%, rgba(50, 63, 94, 0.22), transparent 60%),
    linear-gradient(180deg, #0e1726 0%, #0b1320 100%);
  background-size: 24px 24px, 24px 24px, auto, auto;
  background-position: top left, top left, center, center;
  background-repeat: repeat, repeat, no-repeat, no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scale & Tokens */
:root {
  /* Type scale */
  --text-50: 0.96rem; /* small */
  --text-100: 1rem;   /* body */
  --text-200: 1.125rem; /* large body */
  --text-300: 1.5rem; /* h3 */
  --text-400: 2rem;   /* h2 */
  --text-500: clamp(2.4rem, 5.2vw, 3.4rem); /* h1 responsive */

  /* Line-height */
  --lh-tight: 1.15;
  --lh-base: 1.6;
  --lh-loose: 1.8;

  /* Radius */
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 999px; /* pills */

  /* Surfaces */
  --surface-0: rgba(255,255,255,0.04);
  --surface-1: rgba(255,255,255,0.06);
  --surface-2: rgba(255,255,255,0.09);

  /* Colors */
  --border: rgba(255,255,255,0.10);
  --muted: #c9d4e3;
  --primary: #5b8cff;
  --primary-600: #4a78e6;
  --primary-700: #3c64c2;
  --ring: rgba(91,140,255,0.45);

  /* Shadows */
  --shadow-1: 0 6px 20px rgba(0,0,0,0.25);
  --shadow-2: 0 10px 30px rgba(0,0,0,0.35);

  /* Spacing */
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-28: 28px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-56: 56px;
  --space-64: 64px;
  --space-72: 72px;
}

.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: var(--space-56) var(--space-20) var(--space-72);
}

.hero {
  display: grid;
  gap: var(--space-32);
  justify-items: center;
  text-align: center;
}

.brand img {
  width: clamp(200px, 28vw, 300px);
  height: auto;
  user-select: none;
}

.hero-text {
  max-width: 780px;
}

.headline {
  font-size: var(--text-500);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  margin: var(--space-8) 0 var(--space-12);
}

.subhead {
  color: var(--muted);
  font-size: var(--text-200);
  line-height: var(--lh-loose);
  max-width: 720px;
  margin: 0 auto;
}

.actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  width: min(640px, 100%);
  margin-top: var(--space-12);
}
@media (min-width: 560px) {
  .actions { grid-template-columns: 1fr 1fr; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  width: 100%;
  height: 52px;
  padding: 0 var(--space-20);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-200);
  line-height: 1;
  transition: transform 120ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
  will-change: transform;
}

.btn .btn-ico { flex: 0 0 auto; }

.btn.primary {
  background: linear-gradient(180deg, #5b8cff, #4f78e8);
  color: #0b1320;
  box-shadow: 0 6px 16px rgba(91,140,255,0.35);
}
.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(91,140,255,0.45);
}
.btn.primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(91,140,255,0.35);
}

.btn.secondary {
  background: transparent;
  color: #e6edf7;
  border-color: var(--border);
}
.btn.secondary:hover {
  background: var(--surface-1);
  border-color: rgba(255,255,255,0.22);
}
.btn.secondary:active { transform: translateY(0); }

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-12);
  margin-top: var(--space-20);
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  background: var(--surface-0);
  border: 1px solid var(--border);
  color: #dbe6f5;
  font-size: var(--text-100);
  transition: background 160ms ease, transform 120ms ease;
}
.chips li:hover { background: var(--surface-1); transform: translateY(-1px); }

.section-title {
  font-size: var(--text-400);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  margin: var(--space-40) 0 var(--space-20);
  text-align: center;
}

.features {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-24); /* mais respiro entre cards */
  margin-top: var(--space-12);
  align-items: stretch;
  grid-auto-rows: 1fr;
}
.features::before {
  content: none;
}
.features-head {
  grid-column: 1 / -1;
  text-align: center;
}
.features-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(91,140,255,0.18), rgba(155,107,255,0.18));
  color: #dbe6f5;
  font-weight: 600;
  font-size: var(--text-50);
  letter-spacing: 0.03em;
}
.features-head .section-title {
  margin: var(--space-12) 0 var(--space-8);
}
.features-head .section-title::after {
  content: "";
  display: block;
  width: 220px;
  height: 3px;
  margin: var(--space-12) auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #5b8cff, #9b6bff);
  opacity: 0.6;
}
.section-lead {
  color: var(--muted);
  font-size: var(--text-200);
  max-width: 760px;
  margin: 0 auto var(--space-12);
}

.feature {
  /* acentos de cor por padrão; cada card pode sobrescrever */
  --accent1: #5b8cff;
  --accent2: #9b6bff;
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-12);
  align-items: start;
  padding: var(--space-20);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background:
    radial-gradient(280px 140px at 20% 20%, rgba(255,255,255,0.06), transparent 70%),
    linear-gradient(var(--surface-0), var(--surface-0)) padding-box,
    linear-gradient(180deg, var(--accent1), var(--accent2)) border-box;
  box-shadow: var(--shadow-1);
  transition: transform 160ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
  height: 100%;
  min-height: 176px; /* altura mínima maior */
  backdrop-filter: blur(4px);
}
.features .feature:nth-of-type(2) { --accent1: #56ccf2; --accent2: #5b8cff; }
.features .feature:nth-of-type(3) { --accent1: #9b6bff; --accent2: #6b5bff; }
.feature:hover {
  transform: translateY(-4px) scale(1.01);
  background:
    radial-gradient(320px 160px at 20% 20%, rgba(255,255,255,0.08), transparent 70%),
    linear-gradient(var(--surface-1), var(--surface-1)) padding-box,
    linear-gradient(180deg, var(--accent1), var(--accent2)) border-box;
  box-shadow: 0 12px 28px rgba(91,140,255,0.25), var(--shadow-2);
}
/* foco acessível */
.feature:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring), var(--shadow-2);
  transform: translateY(-2px);
}
.feature h3 {
  font-size: var(--text-300);
  margin: 0 0 var(--space-8);
}
.feature p {
  margin: 0;
  color: var(--muted);
  line-height: var(--lh-base);
}
.ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px; /* badge maior */
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(91,140,255,0.25), rgba(155,107,255,0.25));
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.15);
}
.feature svg {
  width: 28px;
  height: 28px; /* ícone maior */
}
/* reduzir animações para quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  .feature, .feature:hover { transition: none; transform: none; }
}
.support {
  text-align: center;
  margin: var(--space-36, 36px) 0 0;
  font-size: var(--text-100);
}
.support .link {
  display: inline-block;
  margin-top: var(--space-10, 10px);
  color: var(--primary);
  text-decoration: none;
}
.support .link:hover { text-decoration: underline; }

.footer {
  margin-top: var(--space-52, 52px);
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.footer .container {
  max-width: 1040px;
  margin: 0 auto;
  padding: var(--space-20);
  display: flex;
  gap: var(--space-16);
  align-items: center;
  justify-content: space-between;
}
.footer nav a {
  color: #dbe6f5;
  text-decoration: none;
  margin-left: var(--space-16);
  font-size: var(--text-50);
}
.footer nav a:hover { text-decoration: underline; }

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive */
@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .features { grid-template-columns: 1fr; }
  .headline { font-size: clamp(2.2rem, 6.5vw, 2.8rem); }
  .subhead { font-size: var(--text-100); }
  .page { padding: var(--space-48) var(--space-16) var(--space-56); }
}

/* --- Professional benefits redesign --- */
:root {
  --brand-500: #5B8CFF; /* accent */
  --brand-400: #7AA4FF;
  --bg-950: #0B1220;
  --surface-800: #141A2A;
  --surface-750: #182036;
  --border-300: rgba(255, 255, 255, 0.08);
  --shadow-strong: 0 1px 1px rgba(0,0,0,0.4), 0 12px 24px rgba(0,0,0,0.25);
  --shadow-hover: 0 8px 28px rgba(0,0,0,0.35);
  --text-100: rgba(255,255,255,0.92);
  --text-200: rgba(255,255,255,0.72);
}

section.features {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--space-20);
  padding-block: var(--space-64);
  background: none; /* sem overlay para não criar faixa clara */
}

.features .features-head { 
  text-align: left; 
  max-width: 880px; 
  margin: 0 auto var(--space-24);
}
.features .eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-200);
  padding: 6px 10px;
  border: 1px solid var(--border-300);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
}
.features .section-title { 
  grid-column: 1 / -1; 
  margin-top: var(--space-12);
  color: var(--text-100);
  text-align: left;
  position: relative;
}
.features .section-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: -10px;
  width: 120px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-500), transparent 90%);
  opacity: 0.8;
}
.features .section-lead { 
  color: var(--text-200);
  max-width: 720px;
}

/* Cards: clean surface, subtle border and elevation */
.features { gap: var(--space-28); }
.feature {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--space-12);
  align-items: start;
  padding: var(--space-20);
  min-height: 188px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border: 1px solid var(--border-300);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 6px 18px -8px rgba(11,17,30,0.5);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(11,17,30,0.55);
  border-color: rgba(91,140,255,0.38);
}
.feature:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(91,140,255,0.45), var(--shadow-hover);
  border-color: rgba(91,140,255,0.55);
  transform: translateY(-1px);
}
.feature h3 { color: var(--text-100); }
.feature p { color: var(--text-200); }

/* Badge icons refinados */
.feature .ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(91,140,255,0.18), rgba(91,140,255,0.08));
  border: 1px solid rgba(91,140,255,0.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
  color: #cfe0ff;
}
.feature:hover .ico {
  box-shadow: 0 0 0 6px rgba(91,140,255,0.08), inset 0 1px 0 rgba(255,255,255,0.25);
}
.feature .ico svg { width: 24px; height: 24px; }

@media (max-width: 1024px) {
  section.features { padding-block: var(--space-48); }
}
@media (max-width: 640px) {
  section.features { padding-inline: var(--space-16); }
}

@media (prefers-reduced-motion: reduce) {
  .feature { transition: none; }
}

/* Modal de Cursos */
.courses-cta { text-align: center; margin: var(--space-48) 0 var(--space-24); }
.courses-cta .btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 var(--space-28);
  width: auto; max-width: none;
  border-radius: 12px; font-weight: 700; letter-spacing: 0.02em;
  color: #041423;
  background: linear-gradient(135deg, #26c6da 0%, #00acc1 50%, #0091ea 100%);
  border: 1px solid rgba(0,229,255,0.6);
  box-shadow: 0 8px 18px rgba(0,229,255,0.20), inset 0 1px 0 rgba(255,255,255,0.30);
  transition: transform 150ms ease, box-shadow 200ms ease, filter 200ms ease, background 200ms ease;
}
.courses-cta .btn:hover { transform: translateY(-1px); box-shadow: 0 12px 22px rgba(0,229,255,0.25); filter: brightness(1.05); }
.courses-cta .btn:active { transform: translateY(0); box-shadow: 0 8px 16px rgba(0,229,255,0.18); filter: brightness(0.98); }
.courses-cta .btn:focus-visible { outline: 2px solid #00e5ff; outline-offset: 2px; }
.courses-cta .btn .btn-ico { width: 20px; height: 20px; color: currentColor; }
@keyframes glowPulse { 0%,100% { box-shadow: 0 8px 18px rgba(0,229,255,0.18), inset 0 1px 0 rgba(255,255,255,0.30); } 50% { box-shadow: 0 16px 28px rgba(0,229,255,0.28), inset 0 1px 0 rgba(255,255,255,0.30); } }
@media (prefers-reduced-motion: reduce) { .courses-cta .btn { animation: none; } }

.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 999; }
.modal.open { display: flex; }
.modal .overlay { position: absolute; inset: 0; background: rgba(4,8,16,0.75); }
.modal .dialog {
  position: relative;
  width: min(1100px, 92vw);
  height: min(84vh, 900px);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-300);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}
.modal .header { position: absolute; top: 10px; right: 12px; display: flex; gap: 8px; z-index: 2; }
.modal .close-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border-300);
  background: rgba(255,255,255,0.02);
  color: #cfe0ff;
}
.modal .close-btn:hover { background: rgba(255,255,255,0.04); }
.modal iframe { width: 100%; height: 100%; border: 0; background: #0b1320; }