:root {
  --indigo: #4f46e5;
  --indigo-strong: #3730a3;
  --indigo-soft: #eef2ff;
  --violet: #7c3aed;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --rose: #e11d48;
  --emerald: #059669;
  --amber: #d97706;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 14px 35px rgba(15, 23, 42, 0.08);
  --radius: 28px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--slate-800);
  background:
    radial-gradient(circle at 10% 10%, rgba(79, 70, 229, .13), transparent 30%),
    radial-gradient(circle at 90% 0%, rgba(124, 58, 237, .12), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 52%, #ffffff 100%);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.wm-orb { position: fixed; width: 380px; height: 380px; border-radius: 999px; filter: blur(95px); opacity: .32; pointer-events: none; z-index: -1; }
.wm-orb-a { left: -150px; top: 120px; background: #4f46e5; }
.wm-orb-b { right: -170px; bottom: 50px; background: #7c3aed; }

.shell { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, .9);
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 48px; height: 48px; border-radius: 16px; box-shadow: 0 12px 30px rgba(79, 70, 229, .25); }
.brand strong { display: block; color: var(--slate-900); font-weight: 900; letter-spacing: -.03em; }
.brand small { display: block; color: var(--slate-500); font-size: .78rem; margin-top: 2px; }
nav { display: flex; align-items: center; gap: 8px; }
nav a { color: var(--slate-600); font-weight: 800; font-size: .92rem; padding: 10px 12px; border-radius: 999px; }
nav a:hover { background: var(--indigo-soft); color: var(--indigo-strong); }

.hero { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(310px, .82fr); gap: 28px; padding: 76px 0 34px; align-items: stretch; }
.hero-copy, .hero-panel, .resource-summary, .form-card, .info-grid article {
  border: 1px solid rgba(226, 232, 240, .88);
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.hero-copy { padding: clamp(28px, 5vw, 58px); position: relative; overflow: hidden; }
.hero-copy::after { content: ""; position: absolute; right: -80px; bottom: -100px; width: 260px; height: 260px; border-radius: 999px; background: rgba(79, 70, 229, .08); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--indigo-strong); background: var(--indigo-soft); border: 1px solid #c7d2fe; border-radius: 999px; padding: 7px 11px; font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.hero h1 { color: var(--slate-900); font-size: clamp(2.3rem, 5.6vw, 4.9rem); line-height: .96; letter-spacing: -.065em; margin: 22px 0 20px; max-width: 850px; }
.lead { color: var(--slate-600); font-size: clamp(1.04rem, 2vw, 1.24rem); line-height: 1.75; max-width: 790px; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { border: 0; border-radius: 16px; padding: 13px 17px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; min-height: 46px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: white; background: linear-gradient(135deg, var(--indigo), var(--violet)); box-shadow: 0 18px 34px rgba(79, 70, 229, .25); }
.btn-soft { color: var(--indigo-strong); background: var(--indigo-soft); border: 1px solid #c7d2fe; }
.btn-danger { color: #9f1239; background: #fff1f2; border: 1px solid #fecdd3; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.trust-row span { padding: 8px 11px; border: 1px solid var(--slate-200); color: var(--slate-600); border-radius: 999px; font-size: .84rem; font-weight: 800; background: rgba(248,250,252,.7); }

.hero-panel { padding: 28px; background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); }
.panel-logo { display: flex; align-items: center; gap: 10px; color: var(--slate-900); font-weight: 900; }
.panel-logo img { width: 54px; height: 54px; border-radius: 18px; }
.hero-panel h2 { color: var(--slate-900); font-size: 1.6rem; line-height: 1.15; letter-spacing: -.04em; margin: 28px 0 12px; }
.hero-panel p { color: var(--slate-600); line-height: 1.7; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.mini-stats div { border: 1px solid var(--slate-200); border-radius: 20px; background: #fff; padding: 16px 10px; text-align: center; }
.mini-stats strong { display: block; color: var(--indigo); font-size: 1.6rem; font-weight: 950; }
.mini-stats span { color: var(--slate-500); font-size: .78rem; font-weight: 800; }

.resource-section { padding: 44px 0 26px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 18px; }
.section-head h2 { color: var(--slate-900); font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 14px 0 0; letter-spacing: -.045em; }
.section-head p { color: var(--slate-500); line-height: 1.65; max-width: 520px; margin: 0; }
.toolbar { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 16px; margin-bottom: 20px; align-items: end; }
.search-box { display: grid; gap: 6px; }
.search-box label { color: var(--slate-500); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.search-box input { width: 100%; border: 1px solid var(--slate-200); border-radius: 18px; padding: 14px 15px; outline: none; color: var(--slate-800); background: rgba(255,255,255,.9); }
.search-box input:focus { border-color: #a5b4fc; box-shadow: 0 0 0 4px rgba(79,70,229,.11); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--slate-200); background: rgba(255,255,255,.9); color: var(--slate-600); padding: 10px 12px; border-radius: 999px; font-weight: 900; font-size: .82rem; }
.chip.active { background: var(--indigo); border-color: var(--indigo); color: white; }

.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.resource-card { position: relative; overflow: hidden; border: 1px solid var(--slate-200); background: rgba(255,255,255,.88); border-radius: 24px; padding: 18px; box-shadow: var(--shadow-soft); text-align: left; min-height: 210px; display: flex; flex-direction: column; }
.resource-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--accent, var(--indigo)); }
.resource-card:hover, .resource-card.active { border-color: #c7d2fe; box-shadow: 0 22px 46px rgba(79,70,229,.13); transform: translateY(-2px); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card-number { color: var(--indigo); font-size: .78rem; font-weight: 950; letter-spacing: .08em; }
.card-category { color: var(--slate-500); background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 999px; padding: 6px 9px; font-size: .72rem; font-weight: 900; }
.resource-card h3 { color: var(--slate-900); font-size: 1.08rem; line-height: 1.25; margin: 16px 0 10px; }
.resource-card p { color: var(--slate-600); line-height: 1.58; margin: 0 0 14px; font-size: .93rem; }
.resource-card .card-foot { margin-top: auto; color: var(--indigo-strong); font-weight: 900; font-size: .86rem; }

.workspace { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 22px; padding: 40px 0 36px; align-items: start; }
.resource-summary, .form-card { padding: 24px; }
.resource-summary { position: sticky; top: 92px; }
.resource-summary h2, .form-card-head h2 { color: var(--slate-900); letter-spacing: -.04em; margin: 14px 0 10px; }
.resource-summary p { color: var(--slate-600); line-height: 1.7; }
.how-card, .privacy-card { border: 1px solid var(--slate-200); border-radius: 22px; padding: 16px; background: var(--slate-50); margin-top: 16px; }
.how-card strong, .privacy-card strong { color: var(--slate-900); }
.how-card ol { margin: 10px 0 0; padding-left: 20px; color: var(--slate-600); line-height: 1.7; }
.privacy-card p { margin: 8px 0 0; font-size: .94rem; }
.form-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--slate-200); padding-bottom: 18px; margin-bottom: 18px; }
.progress-pill { background: var(--indigo-soft); color: var(--indigo-strong); border: 1px solid #c7d2fe; border-radius: 999px; padding: 8px 12px; font-weight: 950; }
.dynamic-form { display: grid; gap: 16px; }
.empty-state { display: grid; place-items: center; text-align: center; padding: 50px 20px; border: 1px dashed var(--slate-300); border-radius: 24px; background: var(--slate-50); }
.empty-state img { width: 78px; height: 78px; border-radius: 24px; opacity: .92; }
.empty-state h3 { margin: 14px 0 6px; color: var(--slate-900); }
.empty-state p { color: var(--slate-500); margin: 0; }
.field { display: grid; gap: 8px; }
.field label { color: var(--slate-700); font-weight: 900; font-size: .92rem; }
.field input, .field textarea, .field select { border: 1px solid var(--slate-200); border-radius: 16px; padding: 13px 14px; outline: none; color: var(--slate-800); background: #fff; width: 100%; }
.field textarea { resize: vertical; min-height: 108px; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #a5b4fc; box-shadow: 0 0 0 4px rgba(79,70,229,.11); }
.range-wrap { display: grid; grid-template-columns: 1fr 50px; gap: 12px; align-items: center; }
.range-wrap input { padding: 0; accent-color: var(--indigo); }
.range-value { text-align: center; color: var(--indigo); font-weight: 950; border: 1px solid #c7d2fe; background: var(--indigo-soft); border-radius: 12px; padding: 9px 4px; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--slate-200); margin-top: 20px; padding-top: 18px; }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 36px 0 56px; }
.info-grid article { padding: 24px; }
.info-grid h2 { color: var(--slate-900); margin: 14px 0 10px; letter-spacing: -.035em; }
.info-grid p { color: var(--slate-600); line-height: 1.7; margin: 0; }
.site-footer { border-top: 1px solid var(--slate-200); background: rgba(255,255,255,.9); color: var(--slate-500); padding: 28px clamp(18px, 4vw, 64px); display: flex; justify-content: space-between; gap: 24px; line-height: 1.6; }
.site-footer strong { color: var(--slate-900); }
.site-footer p { margin: 0; max-width: 690px; text-align: right; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; z-index: 100; background: var(--slate-900); color: white; padding: 13px 16px; border-radius: 16px; box-shadow: 0 20px 45px rgba(15,23,42,.22); font-weight: 800; transition: opacity .2s ease, transform .2s ease; max-width: min(520px, calc(100% - 36px)); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 980px) {
  .hero, .workspace, .toolbar, .info-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-summary { position: static; }
  .section-head { display: block; }
  .section-head p { margin-top: 10px; }
}
@media (max-width: 680px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  nav { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .hero { padding-top: 36px; }
  .resource-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
  .site-footer p { text-align: left; }
  .action-row .btn { width: 100%; }
  .mini-stats { grid-template-columns: 1fr; }
}

/* Ajustes finais de responsividade, celular, tablet e desktop */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
.brand span { min-width: 0; }
.brand strong, .brand small { overflow-wrap: anywhere; }
.resource-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.action-row .btn { flex: 1 1 190px; }
.field input, .field textarea, .search-box input { min-width: 0; }

@media (min-width: 1181px) {
  .resource-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-panel { display: grid; gap: 14px; }
  .hero-panel h2 { margin-top: 12px; }
  .workspace { grid-template-columns: 320px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .topbar { position: relative; }
  .workspace, .toolbar, .info-grid { grid-template-columns: 1fr; }
  .resource-summary { position: static; }
  .section-head { display: block; }
  .section-head p { margin-top: 10px; }
  .form-card-head { align-items: flex-start; flex-direction: column; }
  .progress-pill { align-self: flex-start; }
}

@media (max-width: 640px) {
  :root { --radius: 22px; }
  .shell { width: min(100% - 24px, 1180px); }
  .topbar { padding: 12px; gap: 12px; }
  .brand { width: 100%; align-items: center; }
  .brand img { width: 42px; height: 42px; border-radius: 14px; }
  nav { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; overflow: visible; }
  nav a { text-align: center; padding: 9px 6px; font-size: .78rem; background: rgba(238, 242, 255, .65); }
  .hero { padding: 28px 0 24px; gap: 16px; }
  .hero-copy, .hero-panel, .resource-summary, .form-card, .info-grid article { border-radius: 22px; }
  .hero-copy, .hero-panel, .resource-summary, .form-card, .info-grid article { padding: 20px; }
  .hero h1 { font-size: clamp(2rem, 12vw, 3.15rem); line-height: 1; }
  .lead { font-size: 1rem; line-height: 1.65; }
  .hero-actions .btn, .action-row .btn { width: 100%; flex-basis: 100%; }
  .trust-row span { flex: 1 1 100%; text-align: center; }
  .mini-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mini-stats div { padding: 12px 6px; border-radius: 16px; }
  .mini-stats strong { font-size: 1.25rem; }
  .mini-stats span { font-size: .7rem; }
  .resource-section { padding-top: 28px; }
  .toolbar { gap: 12px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .chip { white-space: nowrap; scroll-snap-align: start; }
  .resource-grid { grid-template-columns: 1fr; gap: 12px; }
  .resource-card { min-height: auto; padding: 17px; border-radius: 20px; }
  .workspace { padding: 24px 0 28px; gap: 14px; }
  .range-wrap { grid-template-columns: 1fr 44px; gap: 8px; }
  .site-footer { padding: 22px 12px; }
  .toast { bottom: 14px; }
}

@media (max-width: 380px) {
  .shell { width: min(100% - 18px, 1180px); }
  .hero-copy, .hero-panel, .resource-summary, .form-card, .info-grid article { padding: 16px; }
  .eyebrow { font-size: .67rem; }
  .brand small { display: none; }
  nav a { font-size: .72rem; }
  .mini-stats { grid-template-columns: 1fr; }
}
