/* ═══════════════════════════════════════
   STUDEM — Design System
   Fonte: Sora (headings) + Inter (body)
═══════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Palette */
  --blue:        #1756C5;
  --blue-mid:    #2D6EE8;
  --blue-light:  #EEF4FF;
  --blue-dark:   #0B3A8A;
  --blue-border: #BFCFED;

  --slate:       #0D1B2E;
  --slate-mid:   #243448;
  --muted:       #5B6B82;
  --subtle:      #8A96A8;
  --ghost:       #C5CDD8;

  --surface:     #F5F8FC;
  --surface2:    #EDF1F7;
  --card:        #FFFFFF;
  --border:      #E3E9F1;
  --border2:     #D0D9E7;

  --green:       #16A34A;
  --green-bg:    #ECFDF5;
  --amber:       #D97706;
  --amber-bg:    #FFFBEB;
  --red:         #DC2626;
  --red-bg:      #FEF2F2;

  /* Type */
  --font-head:   'Sora', sans-serif;
  --font-body:   'Inter', sans-serif;

  /* Radius */
  --r-sm:  6px;
  --r:     10px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-2xl: 32px;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(13,27,46,.07), 0 1px 2px rgba(13,27,46,.05);
  --shadow:    0 4px 12px rgba(13,27,46,.09), 0 1px 3px rgba(13,27,46,.06);
  --shadow-lg: 0 12px 32px rgba(13,27,46,.12), 0 4px 8px rgba(13,27,46,.06);
  --shadow-blue: 0 8px 24px rgba(23,86,197,.25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--slate);
  background: var(--card);
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.2; letter-spacing: -.4px; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--muted); line-height: 1.75; }
a  { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.text-center { text-align: center; }
.text-blue   { color: var(--blue); }
.text-muted  { color: var(--muted); }
.text-subtle { color: var(--subtle); }

/* ── LAYOUT ── */
.container { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }

section { padding: 5rem 0; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .6rem 1.25rem; border-radius: var(--r);
  font-family: var(--font-body); font-size: .875rem; font-weight: 500;
  cursor: pointer; transition: all .18s; border: 1.5px solid transparent;
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--blue); color: #fff; border-color: var(--blue);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); text-decoration: none; color: #fff; }
.btn-outline {
  background: transparent; color: var(--slate); border-color: var(--border2);
}
.btn-outline:hover { background: var(--surface); border-color: var(--ghost); text-decoration: none; color: var(--slate); }
.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; }
.btn-ghost:hover { background: var(--surface); color: var(--slate); text-decoration: none; }
.btn-lg { padding: .8rem 1.75rem; font-size: 1rem; border-radius: var(--r-lg); }
.btn-sm { padding: .4rem .9rem; font-size: .8rem; }

/* ── BADGE ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: .25rem .7rem; border-radius: 100px;
  font-size: .72rem; font-weight: 600; letter-spacing: .3px;
  font-family: var(--font-head);
}
.badge-blue   { background: var(--blue-light); color: var(--blue-dark); }
.badge-green  { background: var(--green-bg);   color: var(--green); }
.badge-amber  { background: var(--amber-bg);   color: var(--amber); }

/* ── CARDS ── */
.card {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.card:hover { border-color: var(--blue-border); box-shadow: var(--shadow); }

/* ── INPUT ── */
.input {
  width: 100%; padding: .65rem 1rem;
  border: 1.5px solid var(--border2); border-radius: var(--r);
  font-family: var(--font-body); font-size: .9rem; color: var(--slate);
  background: var(--card); outline: none; transition: border .15s;
}
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,86,197,.1); }
.input::placeholder { color: var(--ghost); }

textarea.input { resize: vertical; min-height: 120px; }

label {
  display: block; font-size: .8rem; font-weight: 500;
  color: var(--muted); margin-bottom: .4rem;
}

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); margin: 2rem 0; }

/* ── SECTION LABEL ── */
.sec-label {
  font-family: var(--font-head); font-size: .7rem; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--blue); margin-bottom: .65rem;
}

/* ── GRID ── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }

/* ═══════════════════════════════════════
   NAVBAR
═══════════════════════════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}
.navbar-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; height: 56px; gap: 1.5rem;
}
.navbar-logo {
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 700;
  color: var(--blue); letter-spacing: -.5px; text-decoration: none;
  flex-shrink: 0;
}
.navbar-logo:hover { text-decoration: none; }
.navbar-logo span { color: var(--slate); }
.navbar-links {
  display: flex; align-items: center; gap: .25rem; flex: 1;
}
.navbar-link {
  padding: .4rem .7rem; border-radius: var(--r-sm);
  font-size: .875rem; color: var(--muted); text-decoration: none;
  transition: all .15s; font-weight: 500;
}
.navbar-link:hover, .navbar-link.active {
  color: var(--blue); background: var(--blue-light); text-decoration: none;
}
.navbar-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }

/* Hambúrguer (mobile) */
.navbar-toggle {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 1.4rem; color: var(--slate); padding: .3rem .35rem;
  flex-shrink: 0; align-items: center; justify-content: center;
  margin-left: auto
}

/* Painel de menu mobile */
.navbar-mobile {
  display: none; flex-direction: column; gap: .15rem;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--card); border-bottom: 1px solid var(--border);
  padding: .75rem 1.25rem 1.25rem; box-shadow: var(--shadow);
  max-height: calc(100vh - 56px); overflow-y: auto;
}
.navbar-mobile.open { display: flex; }
.navbar-mobile .navbar-link { padding: .75rem .6rem; font-size: .95rem; border-radius: var(--r-sm); }
.navbar-mobile-actions {
  display: flex; flex-direction: column; gap: .6rem;
  margin-top: .75rem; padding-top: .9rem; border-top: 1px solid var(--border);
}

/* Fundo escurecido ao abrir o menu */
.navbar-overlay {
  display: none; position: fixed; inset: 0; top: 56px;
  background: rgba(13,27,46,.4); z-index: 90;
}
.navbar-overlay.show { display: block; }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer {
  background: var(--slate); color: #fff;
  padding: 4rem 1.5rem 2rem;
}
.footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
}
.footer-logo {
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 700;
  color: var(--blue-mid); letter-spacing: -.4px; margin-bottom: .75rem;
}
.footer-logo span { color: #fff; }
.footer-desc { font-size: .85rem; color: #8A9BB5; line-height: 1.7; margin-bottom: 1.25rem; }
.footer-col h5 {
  font-family: var(--font-head); font-size: .8rem; font-weight: 600;
  color: #fff; letter-spacing: .5px; text-transform: uppercase;
  margin-bottom: .85rem;
}
.footer-col a {
  display: block; font-size: .85rem; color: #8A9BB5;
  text-decoration: none; margin-bottom: .5rem; transition: color .15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1080px; margin: 2.5rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: space-between;
  font-size: .8rem; color: #5B6F88;
}

/* ═══════════════════════════════════════
   HERO (index)
═══════════════════════════════════════ */
.hero {
  background: linear-gradient(160deg, #EEF4FF 0%, #F5F8FC 55%, #EEF4FF 100%);
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(23,86,197,.1), transparent);
  pointer-events: none;
}
.hero-badge { margin-bottom: 1.5rem; }
.hero h1 { max-width: 700px; margin: 0 auto 1.25rem; }
.hero h1 span { color: var(--blue); }
.hero-sub {
  font-size: 1.05rem; max-width: 520px; margin: 0 auto 2.5rem;
  color: var(--muted); line-height: 1.8;
}
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap;
  margin-top: 3.5rem; padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--blue);
}
.hero-stat-lbl { font-size: .78rem; color: var(--muted); margin-top: .15rem; }

/* ═══════════════════════════════════════
   FEATURES
═══════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem; margin-top: 3rem;
}
.feature-card {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); padding: 1.5rem;
  transition: all .2s;
}
.feature-card:hover {
  border-color: var(--blue-border); box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px; height: 44px; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; font-size: 1.1rem;
}
.feature-card h3 { margin-bottom: .4rem; font-size: .95rem; }
.feature-card p  { font-size: .85rem; }

/* ═══════════════════════════════════════
   PRICING
═══════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem; margin-top: 3rem; align-items: start;
}
.pricing-card {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--r-xl); padding: 2rem;
  position: relative; transition: all .2s;
}
.pricing-card.popular {
  border-color: var(--blue); box-shadow: var(--shadow-blue);
  transform: scale(1.02);
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff;
  padding: .25rem .9rem; border-radius: 100px;
  font-size: .72rem; font-weight: 700; font-family: var(--font-head);
  letter-spacing: .5px; white-space: nowrap;
}
.pricing-name { font-family: var(--font-head); font-weight: 600; font-size: 1rem; margin-bottom: .35rem; }
.pricing-price {
  font-family: var(--font-head); font-size: 2.5rem; font-weight: 700;
  color: var(--slate); line-height: 1; margin: .75rem 0 .25rem;
}
.pricing-price sup { font-size: 1rem; vertical-align: top; margin-top: .4rem; display: inline-block; }
.pricing-price span { font-size: .9rem; font-weight: 400; color: var(--muted); }
.pricing-desc { font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }
.pricing-features { list-style: none; margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: .65rem; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .875rem; color: var(--muted);
}
.pricing-features li .check { color: var(--green); font-size: 1rem; flex-shrink: 0; margin-top: .05rem; }
.pricing-features li .cross { color: var(--ghost); font-size: 1rem; flex-shrink: 0; margin-top: .05rem; }

/* ═══════════════════════════════════════
   FAQ
═══════════════════════════════════════ */
.faq-item {
  border-bottom: 1px solid var(--border); padding: 1.25rem 0;
}
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  font-family: var(--font-head); font-size: .95rem; font-weight: 600;
  color: var(--slate); cursor: pointer; display: flex;
  align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0; transition: color .15s;
}
.faq-q:hover { color: var(--blue); }
.faq-icon { font-size: 1.1rem; flex-shrink: 0; transition: transform .3s; color: var(--muted); }
.faq-a {
  font-size: .9rem; color: var(--muted); line-height: 1.75;
  max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .25s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--blue); }
.faq-item.open .faq-a { max-height: 300px; padding-top: .75rem; }

/* ═══════════════════════════════════════
   BLOG
═══════════════════════════════════════ */
.post-card {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; transition: all .2s;
}
.post-card:hover { border-color: var(--blue-border); box-shadow: var(--shadow); transform: translateY(-2px); }
.post-thumb {
  height: 160px; display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; flex-shrink: 0;
}
.post-body { padding: 1.25rem; }
.post-meta { font-size: .75rem; color: var(--subtle); margin-bottom: .5rem; }
.post-title { font-family: var(--font-head); font-size: 1rem; font-weight: 600; margin-bottom: .4rem; line-height: 1.4; color: var(--slate); }
.post-excerpt { font-size: .85rem; color: var(--muted); line-height: 1.6; margin-bottom: .75rem; }
.post-card a { text-decoration: none; }
.post-card a:hover .post-title { color: var(--blue); }

/* ═══════════════════════════════════════
   ABOUT
═══════════════════════════════════════ */
.team-card {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); padding: 1.5rem; text-align: center; transition: all .2s;
}
.team-card:hover { border-color: var(--blue-border); box-shadow: var(--shadow); }
.team-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700; font-family: var(--font-head);
  border: 2px solid var(--blue-border);
}
.team-name { font-family: var(--font-head); font-weight: 600; margin-bottom: .2rem; }
.team-role { font-size: .8rem; color: var(--muted); }

/* ═══════════════════════════════════════
   CONTACT
═══════════════════════════════════════ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start;
}
.contact-item {
  display: flex; gap: 1rem; margin-bottom: 1.5rem;
}
.contact-icon {
  width: 42px; height: 42px; background: var(--blue-light);
  border-radius: var(--r); display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}

/* ═══════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════ */
.testimonial-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); padding: 1.5rem;
}
.testimonial-text { font-size: .9rem; line-height: 1.75; color: var(--slate); margin-bottom: 1rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.testimonial-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; font-family: var(--font-head);
}
.testimonial-name { font-size: .85rem; font-weight: 600; color: var(--slate); }
.testimonial-role { font-size: .75rem; color: var(--subtle); }

/* ═══════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════ */
.cta-section {
  background: var(--blue); color: #fff;
  padding: 5rem 1.5rem; text-align: center;
}
.cta-section h2 { color: #fff; }
.cta-section p  { color: rgba(255,255,255,.75); max-width: 500px; margin: 1rem auto 2rem; }

/* ═══════════════════════════════════════
   PAGE HERO (sub-pages)
═══════════════════════════════════════ */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 4rem 1.5rem 3rem; text-align: center;
}
.page-hero h1 { margin-bottom: .75rem; }
.page-hero p  { font-size: 1.05rem; max-width: 520px; margin: 0 auto; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .hero { padding: 4rem 1.25rem 3rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .pricing-card.popular { transform: none; }
  .navbar-links { display: none; }
  .navbar-actions { display: none; }
  .navbar-toggle { display: inline-flex; }
  .page-hero { padding: 3rem 1.25rem 2.25rem; }
  .hero-stats { gap: 1.5rem 2rem; margin-top: 2.5rem; padding-top: 1.75rem; }
  .stack-mobile { grid-template-columns: 1fr !important; gap: 1.75rem !important; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .pricing-price { font-size: 2.1rem; }
  .contact-grid > .card { padding: 1.25rem; }
}

/* ═══════════════════════════════════════
   UTILS
═══════════════════════════════════════ */
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.flex   { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.w-full { width: 100%; }

/* ═══════════════════════════════════════
   ARTIGO (blog post individual)
═══════════════════════════════════════ */
.article-hero { padding: 3rem 0 2rem; text-align: center; }
.article-hero .container-sm { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.article-hero h1 { max-width: 680px; }
.article-meta-row { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; justify-content: center; font-size: .85rem; color: var(--subtle); }
.article-avatar { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; flex-shrink: 0; }
.article-cover { font-size: 4.5rem; background: var(--blue-light); border-radius: var(--r-xl); width: 100%; max-width: 720px; height: 220px; display: flex; align-items: center; justify-content: center; margin-top: .5rem; }
.article-body { max-width: 680px; margin: 0 auto; padding: 1rem 1.5rem 3rem; }
.article-body p { margin-bottom: 1.25rem; }
.article-body h2 { margin: 2.25rem 0 1rem; font-size: 1.35rem; }
.article-body h3 { margin: 1.75rem 0 .75rem; }
.article-body ul, .article-body ol { color: var(--muted); line-height: 1.75; padding-left: 1.35rem; margin-bottom: 1.25rem; }
.article-body li { margin-bottom: .5rem; }
.article-body strong { color: var(--slate); }
.article-lead { font-size: 1.1rem; color: var(--slate-mid); line-height: 1.7; margin-bottom: 1.5rem; }
.article-callout { background: var(--blue-light); border: 1.5px solid var(--blue-border); border-radius: var(--r-lg); padding: 1.25rem 1.5rem; margin: 1.75rem 0; font-size: .92rem; color: var(--slate-mid); }
.article-callout strong { color: var(--blue-dark); }
.article-cta { background: var(--surface); border-radius: var(--r-xl); padding: 2rem; text-align: center; margin-top: 2.5rem; }
.article-cta h3 { margin-bottom: .5rem; }
.article-cta p { margin-bottom: 1.25rem; }
.article-back { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }
.article-back:hover { color: var(--blue); }
.article-related { max-width: 680px; margin: 0 auto; padding: 0 1.5rem 3rem; }
.article-related h4 { margin-bottom: 1rem; font-size: .95rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; font-size: .75rem; }
