/* ==========================================================================
   CSA — Centro de Sucesso do Aluno · landing institucional
   Paleta da marca iCEV: gradiente roxo → magenta, com pílulas, bolinhas e
   cometas. Sem dependências externas (CSP-friendly).
   ========================================================================== */

:root {
  --bg: #1f1448;
  --bg-2: #271858;
  --surface: #2f1d66;
  --surface-2: #392276;
  --border: #4f2f93;
  --border-soft: #382268;
  --text: #f4eefb;
  --muted: #c8b9e6;
  --primary: #d27ec0;        /* magenta-rosa — ícones/realces */
  --primary-light: #ecaadd;  /* texto de realce em fundo escuro */
  --grad-a: #b1227e;         /* magenta (lado direito do gradiente) */
  --grad-b: #5b2bb6;         /* violeta (lado esquerdo) */
  --primary-ink: #ffffff;
  --accent: #f6bfe2;         /* rosa claro — realce do hero */
  --primary-rgb: 210, 126, 192;
  --purple-rgb: 91, 43, 182;
  --magenta-rgb: 177, 34, 126;

  --maxw: 1120px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 48px rgba(0, 0, 0, .45);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--grad-a); color: #fff; padding: .6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 3px; border-radius: 4px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 650; font-size: .95rem; padding: .7rem 1.15rem;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn-lg { padding: .85rem 1.5rem; font-size: 1rem; }
.btn-primary {
  background: linear-gradient(100deg, var(--grad-b), var(--grad-a));
  color: var(--primary-ink); box-shadow: 0 8px 22px rgba(var(--magenta-rgb), .4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(var(--magenta-rgb), .55); }
.btn-ghost { background: rgba(255, 255, 255, .1); color: var(--text); border-color: rgba(255, 255, 255, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); border-color: #fff; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(31, 20, 72, .82); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner { display: flex; align-items: center; gap: 1.25rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .8rem; margin-right: auto; }
.brand-logo { height: 36px; width: auto; }
.brand-divider { width: 1px; height: 30px; background: var(--border); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: .95rem; }
.brand-text small { color: var(--muted); font-size: .72rem; }
.site-nav { display: flex; gap: 1.4rem; }
.site-nav a { color: var(--muted); font-size: .92rem; font-weight: 550; }
.site-nav a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--border-soft);
  background:
    radial-gradient(85% 75% at 82% 8%, rgba(var(--magenta-rgb), .7), transparent 55%),
    linear-gradient(155deg, #321f78 0%, #3f2390 38%, #5f2690 66%, #8a2078 100%);
}
/* padrão de bolinhas (halftone) no canto inferior esquerdo */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1.7px, transparent 1.8px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(70% 60% at 8% 96%, #000 0%, transparent 62%);
          mask-image: radial-gradient(70% 60% at 8% 96%, #000 0%, transparent 62%);
}
/* pílulas + cometas da marca */
.hero-decor {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  color: rgba(232, 196, 255, .22);
}
.hero-decor svg { width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 1; padding: clamp(3.5rem, 8vw, 6.5rem) 1.25rem; max-width: 880px; }
.eyebrow {
  display: inline-block; color: #fff; font-weight: 700;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .35rem .8rem; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px;
  background: rgba(255, 255, 255, .1); margin-bottom: 1.25rem;
}
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); font-weight: 800; }
.hero h1 .accent {
  background: linear-gradient(180deg, #ffffff, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin-top: 1.25rem; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: #ece3fb; max-width: 640px; }
.hero-sub strong { color: #fff; font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .55rem; padding: 0; margin: 2.25rem 0 0; }
.chips li {
  font-size: .82rem; color: #f1e9fc; padding: .4rem .85rem;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .08);
}

/* ---------- Seções ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border-soft); }
.section-head { max-width: 620px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 780; }
.section-head p { color: var(--muted); margin-top: .65rem; font-size: 1.05rem; }

.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 1.5rem;
  transition: transform .18s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border); box-shadow: var(--shadow); }

.profile p { color: var(--muted); margin-top: .6rem; }
.profile-tag {
  display: inline-block; font-weight: 750; font-size: .85rem; letter-spacing: .04em;
  color: var(--primary-light); background: rgba(var(--primary-rgb), .16);
  border: 1px solid var(--border); border-radius: 999px; padding: .3rem .8rem;
}

.feature .ic {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  border-radius: 12px; color: var(--primary-light);
  background: rgba(var(--primary-rgb), .16); border: 1px solid var(--border); margin-bottom: 1rem;
}
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.12rem; font-weight: 700; }
.feature p { color: var(--muted); margin-top: .5rem; font-size: .96rem; }

.flow { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(3, 1fr); }
.flow-step { position: relative; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 1.6rem 1.5rem; }
.flow-num {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  font-weight: 800; color: var(--primary-ink);
  background: linear-gradient(135deg, var(--grad-b), var(--grad-a)); margin-bottom: .9rem;
}
.flow-step h3 { font-size: 1.1rem; }
.flow-step p { color: var(--muted); margin-top: .45rem; font-size: .96rem; }

.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(90% 130% at 12% 0%, rgba(var(--purple-rgb), .8), transparent 60%),
    radial-gradient(90% 130% at 88% 10%, rgba(var(--magenta-rgb), .7), transparent 60%),
    linear-gradient(150deg, #321f78, #6a2484);
  border-top: 1px solid var(--border-soft);
}
.cta-inner { position: relative; text-align: center; padding: clamp(3rem, 7vw, 5rem) 1.25rem; }
.cta-inner h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.cta-inner p { color: #ece3fb; margin: .8rem auto 1.8rem; max-width: 520px; font-size: 1.08rem; }

.site-footer { background: var(--bg-2); border-top: 1px solid var(--border-soft); padding: 2.5rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }
.footer-brand { display: flex; align-items: center; gap: .9rem; margin-right: auto; }
.footer-brand .brand-logo { height: 40px; width: auto; }
.footer-brand p { font-weight: 600; font-size: .92rem; }
.footer-brand small { color: var(--muted); font-weight: 400; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a { color: var(--muted); font-size: .92rem; }
.footer-links a:hover { color: var(--text); }
.footer-legal { color: var(--muted); font-size: .8rem; width: 100%; padding-top: 1.25rem; border-top: 1px solid var(--border-soft); }

/* ---------- Responsivo ---------- */
@media (max-width: 880px) {
  .grid-3, .flow { grid-template-columns: 1fr 1fr; }
  .site-nav { display: none; }
}
@media (max-width: 560px) {
  .grid-3, .flow { grid-template-columns: 1fr; }
  .brand-divider, .brand-text small { display: none; }
  .header-inner { gap: .75rem; }
  .btn { padding: .65rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
