/* ============================================================
   iCidadao.app.br — Global Styles
   Cores: #124459 (primaria), #ffffff (branco), #b4ff00 (acento)
   ============================================================ */

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

:root {
  --navy:   #124459;
  --navy-d: #0c2f3d;
  --navy-l: #1a5a77;
  --lime:   #b4ff00;
  --lime-d: #8ecb00;
  --white:  #ffffff;
  --off:    #f0f7fb;
  --text:   #0d2e3b;
  --muted:  #4a7a8a;
  --border: #d0e6ef;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(18,68,89,.10);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ───────────────────────────────────────── */
.display { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.headline { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
.subhead  { font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 400; line-height: 1.6; }
.label    { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* ── Containers ───────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }

/* ── Badges ───────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .9rem; border-radius: 100px;
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
}
.badge-lime  { background: var(--lime);  color: var(--navy-d); }
.badge-navy  { background: var(--navy);  color: var(--white); }
.badge-white { background: rgba(255,255,255,.15); color: var(--white); border: 1px solid rgba(255,255,255,.25); }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.8rem; border-radius: var(--radius);
  font-size: 1rem; font-weight: 700; cursor: pointer;
  border: 2px solid transparent; transition: all .2s ease;
  white-space: nowrap;
}
.btn-lime  { background: var(--lime); color: var(--navy-d); }
.btn-lime:hover { background: var(--lime-d); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(180,255,0,.35); }
.btn-outline-white { background: transparent; border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.btn-outline-navy  { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover  { background: var(--navy); color: var(--white); }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.05rem; }

/* ── Nav ──────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(18,68,89,.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .3s;
}
#nav .nav-inner {
  display: flex; align-items: center; gap: 1.5rem;
  height: 64px;
}
#nav .logo {
  font-size: 1.4rem; font-weight: 900; color: var(--white);
  letter-spacing: -.03em; flex-shrink: 0;
}
#nav .logo span { color: var(--lime); }
#nav .nav-links {
  display: flex; gap: .25rem; margin-left: auto;
}
#nav .nav-links a {
  color: rgba(255,255,255,.7); font-size: .88rem; font-weight: 500;
  padding: .4rem .75rem; border-radius: 8px; transition: all .15s;
}
#nav .nav-links a:hover { color: var(--white); background: rgba(255,255,255,.08); }
#nav .nav-cta { margin-left: .5rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .5rem; }
.hamburger span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: .3s; }

/* ── Hero ─────────────────────────────────────────────── */
#hero {
  background: linear-gradient(135deg, var(--navy-d) 0%, var(--navy) 60%, #1a6880 100%);
  padding: 9rem 0 6rem;
  position: relative; overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 75% 50%, rgba(180,255,0,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-text .pre-title { color: var(--lime); margin-bottom: 1.2rem; }
.hero-text .display   { color: var(--white); margin-bottom: 1.5rem; }
.hero-text .subhead   { color: rgba(255,255,255,.75); max-width: 520px; margin-bottom: 2.5rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-social {
  display: flex; align-items: center; gap: .75rem;
  margin-top: 2.5rem; color: rgba(255,255,255,.5); font-size: .85rem;
}
.hero-social .avatars { display: flex; }
.hero-social .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy-l); border: 2px solid var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; color: var(--lime);
  margin-left: -8px;
}
.hero-social .avatar:first-child { margin-left: 0; }

/* ── Hero dashboard mockup ────────────────────────────── */
.hero-visual {
  position: relative;
}
.hero-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 1.5rem; color: var(--white);
  backdrop-filter: blur(8px);
}
.hero-card-header {
  display: flex; align-items: center; gap: .75rem;
  font-size: .85rem; font-weight: 600; margin-bottom: 1rem;
  padding-bottom: .75rem; border-bottom: 1px solid rgba(255,255,255,.1);
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-lime { background: var(--lime); }
.dot-off  { background: rgba(255,255,255,.3); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1rem; }
.stat-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: .85rem; text-align: center;
}
.stat-card .number { font-size: 1.6rem; font-weight: 800; color: var(--lime); line-height: 1; }
.stat-card .stat-label { font-size: .72rem; color: rgba(255,255,255,.55); margin-top: .3rem; }
.progress-bar { background: rgba(255,255,255,.1); border-radius: 100px; height: 6px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 100px; background: var(--lime); }
.mini-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 600;
  padding: .25rem .6rem; border-radius: 100px;
}
.mini-badge-lime { background: rgba(180,255,0,.15); color: var(--lime); }
.mini-badge-white { background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); }
.floating-pill {
  position: absolute; background: var(--navy-d);
  border: 1px solid rgba(255,255,255,.15); border-radius: 100px;
  padding: .5rem 1rem; font-size: .78rem; font-weight: 600;
  color: var(--white); display: flex; align-items: center; gap: .5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.3); white-space: nowrap;
  animation: float 4s ease-in-out infinite;
}
.pill-1 { top: -1rem; left: -2rem; animation-delay: 0s; }
.pill-2 { bottom: 1rem; right: -1.5rem; animation-delay: 2s; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* ── Stats bar ────────────────────────────────────────── */
#stats { background: var(--lime); padding: 2.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-item .big { font-size: 2.2rem; font-weight: 900; color: var(--navy-d); line-height: 1; }
.stat-item .desc { font-size: .85rem; font-weight: 600; color: var(--navy); margin-top: .3rem; opacity: .8; }

/* ── Problem section ──────────────────────────────────── */
#problema { background: var(--white); }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.problem-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.problem-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 1.25rem; border-radius: 10px; border: 1px solid var(--border);
  background: var(--white); transition: border-color .2s;
}
.problem-item:hover { border-color: var(--navy); }
.problem-icon {
  width: 36px; height: 36px; border-radius: 8px; display: flex;
  align-items: center; justify-content: center; font-size: 1.1rem;
  flex-shrink: 0; background: #fff0f0;
}
.problem-icon.blue { background: #e8f4ff; }
.problem-text strong { display: block; font-size: .92rem; color: var(--text); margin-bottom: .2rem; }
.problem-text span   { font-size: .82rem; color: var(--muted); }

/* ── Products overview ────────────────────────────────── */
#produtos { background: var(--off); }
.products-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.product-card {
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  background: var(--white); transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(18,68,89,.15); }
.product-card-header {
  padding: 2rem; background: var(--navy);
  display: flex; align-items: center; gap: 1rem;
}
.product-card-header.blue { background: #1a5a77; }
.product-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(255,255,255,.12); display: flex;
  align-items: center; justify-content: center; font-size: 1.5rem;
}
.product-card-header h3 { color: var(--white); font-size: 1.3rem; font-weight: 800; }
.product-card-header p  { color: rgba(255,255,255,.65); font-size: .85rem; margin-top: .25rem; }
.product-card-body { padding: 1.75rem; }
.feature-list { display: flex; flex-direction: column; gap: .6rem; }
.feature-item {
  display: flex; align-items: flex-start; gap: .75rem;
  font-size: .9rem; color: var(--text);
}
.check {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--lime); color: var(--navy-d);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 900; flex-shrink: 0; margin-top: .1rem;
}
.product-card-footer { padding: 1.25rem 1.75rem; border-top: 1px solid var(--border); }

/* ── Feature sections ─────────────────────────────────── */
#icidadao { background: var(--white); }
#iescola  { background: var(--navy-d); }
.features-header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  border-radius: var(--radius); padding: 1.5rem;
  border: 1px solid var(--border); background: var(--white);
  transition: transform .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--navy); }
.feature-card-dark {
  border-radius: var(--radius); padding: 1.5rem;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05);
  transition: transform .2s, border-color .2s;
}
.feature-card-dark:hover { transform: translateY(-4px); border-color: rgba(180,255,0,.4); }
.feat-icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; font-size: 1.4rem;
  margin-bottom: 1rem;
}
.feat-icon-navy  { background: rgba(18,68,89,.1); }
.feat-icon-lime  { background: rgba(180,255,0,.15); }
.feature-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; color: var(--text); }
.feature-card p  { font-size: .88rem; color: var(--muted); line-height: 1.6; }
.feature-card-dark h4 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; color: var(--white); }
.feature-card-dark p  { font-size: .88rem; color: rgba(255,255,255,.55); line-height: 1.6; }
.feature-card-dark .feat-icon-dark { background: rgba(180,255,0,.12); }

/* ── How it works ─────────────────────────────────────── */
#como-funciona { background: var(--off); }
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; margin-top: 3rem; }
.step-card {
  text-align: center; padding: 2rem 1.5rem;
  background: var(--white); border-radius: 16px; border: 1px solid var(--border);
  position: relative;
}
.step-number {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy); color: var(--lime);
  font-size: 1.4rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.step-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: .6rem; }
.step-card p  { font-size: .88rem; color: var(--muted); }
.step-arrow {
  position: absolute; right: -1.1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--lime); z-index: 1;
}

/* ── Comparison table ─────────────────────────────────── */
#comparativo { background: var(--navy-d); }
.comp-table-wrap { overflow-x: auto; margin-top: 2.5rem; border-radius: var(--radius); overflow: hidden; }
.comp-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.comp-table th, .comp-table td { padding: .9rem 1.2rem; text-align: center; border-bottom: 1px solid rgba(255,255,255,.06); }
.comp-table thead tr { background: rgba(255,255,255,.05); }
.comp-table thead th { color: rgba(255,255,255,.7); font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.comp-table thead th:first-child { text-align: left; }
.comp-table tbody td { color: rgba(255,255,255,.6); }
.comp-table tbody td:first-child { text-align: left; color: rgba(255,255,255,.85); font-weight: 500; }
.comp-table tbody tr:hover td { background: rgba(255,255,255,.03); }
.comp-table .highlight { background: rgba(180,255,0,.07); }
.comp-table .highlight td:first-child { color: var(--lime); font-weight: 700; }
.comp-yes  { color: var(--lime); font-size: 1.1rem; font-weight: 700; }
.comp-no   { color: rgba(255,255,255,.2); font-size: 1.1rem; }
.comp-part { color: #ffd166; font-size: .8rem; font-weight: 600; }
.comp-table thead .col-highlight { color: var(--lime); }

/* ── Legal section ────────────────────────────────────── */
#legal { background: var(--white); }
.legal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.legal-card {
  padding: 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--white);
}
.legal-card .law-badge {
  display: inline-block; padding: .3rem .75rem; border-radius: 6px;
  background: var(--navy); color: var(--lime); font-size: .72rem;
  font-weight: 800; letter-spacing: .05em; margin-bottom: .85rem;
}
.legal-card h4 { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; }
.legal-card p  { font-size: .82rem; color: var(--muted); line-height: 1.5; }

/* ── FAQ ──────────────────────────────────────────────── */
#faq { background: var(--off); }
.faq-list { max-width: 780px; margin: 2.5rem auto 0; display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 1.5rem; cursor: pointer; font-weight: 600; font-size: .95rem;
  transition: background .15s;
}
.faq-question:hover { background: var(--off); }
.faq-icon { font-size: 1.2rem; color: var(--navy); font-weight: 300; transition: transform .25s; }
.faq-answer { padding: 0 1.5rem; max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s; }
.faq-answer p { font-size: .9rem; color: var(--muted); padding-bottom: 1.2rem; line-height: 1.7; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-item.open .faq-answer { max-height: 400px; }

/* ── CTA section ──────────────────────────────────────── */
#contato {
  background: linear-gradient(135deg, var(--navy-d) 0%, var(--navy) 100%);
  text-align: center; padding: 6rem 0;
  position: relative; overflow: hidden;
}
#contato::before {
  content: ''; position: absolute; width: 600px; height: 600px;
  border-radius: 50%; border: 1px solid rgba(180,255,0,.08);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
#contato::after {
  content: ''; position: absolute; width: 900px; height: 900px;
  border-radius: 50%; border: 1px solid rgba(180,255,0,.04);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.cta-content { position: relative; z-index: 1; }
.cta-content .display { color: var(--white); margin-bottom: 1rem; }
.cta-content .subhead { color: rgba(255,255,255,.7); max-width: 560px; margin: 0 auto 2.5rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.contact-strip {
  display: flex; justify-content: center; gap: 2.5rem; margin-top: 3rem;
  flex-wrap: wrap;
}
.contact-item {
  display: flex; align-items: center; gap: .6rem;
  color: rgba(255,255,255,.7); font-size: .9rem;
}
.contact-item strong { color: var(--lime); }

/* ── Footer ───────────────────────────────────────────── */
footer {
  background: var(--navy-d);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 3rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer-brand .logo { font-size: 1.6rem; font-weight: 900; color: var(--white); letter-spacing: -.03em; }
.footer-brand .logo span { color: var(--lime); }
.footer-brand p { font-size: .85rem; color: rgba(255,255,255,.45); margin-top: .75rem; max-width: 260px; line-height: 1.6; }
.footer-col h5 { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul li a { font-size: .88rem; color: rgba(255,255,255,.55); transition: color .15s; }
.footer-col ul li a:hover { color: var(--lime); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2rem; margin-top: 2rem; border-top: 1px solid rgba(255,255,255,.07);
  font-size: .8rem; color: rgba(255,255,255,.3); flex-wrap: wrap; gap: 1rem;
}
.footer-badge {
  background: rgba(180,255,0,.1); color: var(--lime);
  border: 1px solid rgba(180,255,0,.2); border-radius: 6px;
  padding: .2rem .7rem; font-size: .72rem; font-weight: 700;
}

/* ── Utilities ────────────────────────────────────────── */
.text-center { text-align: center; }
.text-lime   { color: var(--lime); }
.text-navy   { color: var(--navy); }
.text-white  { color: var(--white); }
.text-muted  { color: var(--muted); }
.text-white-70 { color: rgba(255,255,255,.7); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.divider { width: 48px; height: 4px; background: var(--lime); border-radius: 2px; margin: 1rem 0 1.5rem; }
.divider-center { margin: 1rem auto 1.5rem; }

/* ── Scroll counter animation ────────────────────────── */
.counter { display: inline-block; }

/* ── Mobile nav ───────────────────────────────────────── */
.mobile-menu {
  display: none; flex-direction: column; gap: .25rem;
  position: absolute; top: 64px; left: 0; right: 0;
  background: var(--navy-d); padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,.75); font-size: .95rem; font-weight: 500;
  padding: .65rem .75rem; border-radius: 8px; transition: all .15s;
}
.mobile-menu a:hover { color: var(--white); background: rgba(255,255,255,.07); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid    { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual  { display: none; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  #nav .nav-links, #nav .nav-cta { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  .problem-grid  { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .steps-grid    { grid-template-columns: 1fr; }
  .step-arrow    { display: none; }
  .stats-grid    { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-grid   { grid-template-columns: 1fr; gap: 2rem; }
  .hero-btns     { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .display       { font-size: 2rem; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .container  { padding: 0 1rem; }
}
