:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-soft: #fafbff;
  --purple-950: #3b0764;
  --purple-700: #6d28d9;
  --purple-100: #f3e8ff;
  --green: #22c55e;
  --green-dark: #15803d;
  --blue-950: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --danger: #dc2626;
  --warning: #d97706;
  --info: #2563eb;
  --radius: 8px;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 50px rgba(15, 23, 42, 0.12);
  --sidebar-width: 280px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--blue-950);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  min-height: 100vh;
}

body.sidebar-open {
  overflow: hidden;
}

a {
  color: var(--purple-700);
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

input,
select,
textarea {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  color: var(--blue-950);
  min-height: 46px;
  padding: 11px 12px;
  width: 100%;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--purple-700);
  box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.12);
  outline: 0;
}

label {
  color: var(--slate-700);
  font-size: 14px;
  font-weight: 700;
}

/* App Shell */
.app-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: calc(100vh - var(--header-height));
}

.app-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  height: var(--header-height);
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
}

.app-header__left,
.app-brand,
.user-chip,
.sidebar-brand {
  align-items: center;
  display: flex;
}

.app-brand {
  color: var(--blue-950);
  gap: 10px;
  text-decoration: none;
}

.app-brand__mark,
.sidebar-brand span,
.auth-brand span,
.brand-symbol {
  align-items: center;
  background: linear-gradient(135deg, var(--purple-950), var(--purple-700));
  border-radius: var(--radius);
  color: #ffffff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.app-brand__text,
.sidebar-brand strong {
  font-weight: 850;
  letter-spacing: 0;
}

.user-chip {
  background: var(--surface);
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  gap: 10px;
  padding: 7px 12px 7px 7px;
}

.user-chip__avatar {
  align-items: center;
  background: var(--purple-100);
  border-radius: 50%;
  color: var(--purple-950);
  display: flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.user-chip__meta {
  display: grid;
  line-height: 1.1;
}

.user-chip__meta strong {
  font-size: 14px;
}

.user-chip__meta span {
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 700;
}

.sidebar {
  background: var(--blue-950);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: calc(100vh - var(--header-height));
  padding: 20px;
  position: sticky;
  top: var(--header-height);
  z-index: 35;
}

.sidebar__top {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.sidebar-brand {
  color: #ffffff;
  gap: 10px;
  text-decoration: none;
}

.sidebar-brand span {
  background: #ffffff;
  color: var(--purple-950);
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.sidebar-nav a,
.sidebar-logout__button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.sidebar-nav a:hover,
.sidebar-logout__button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.sidebar-nav a.active {
  background: linear-gradient(135deg, var(--purple-700), var(--purple-950));
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(109, 40, 217, 0.28);
}

.nav-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  display: inline-flex;
  flex: 0 0 24px;
  font-size: 11px;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.sidebar-logout {
  margin-top: auto;
}

.sidebar-logout__button {
  color: #fecaca;
}

.sidebar__close,
.mobile-menu-button,
.sidebar-backdrop {
  display: none;
}

main {
  padding: 28px;
}

.app-footer {
  align-items: center;
  color: var(--slate-500);
  display: flex;
  font-size: 13px;
  gap: 12px;
  justify-content: space-between;
  padding: 20px 28px;
}

/* Typography and Layout */
.page-header {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

.page-subtitle {
  color: var(--slate-500);
  margin: 8px 0 0;
  max-width: 760px;
}

.section-title {
  font-size: 22px;
  margin: 0 0 16px;
}

.eyebrow {
  color: var(--purple-700);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

/* Cards and Dashboard */
.dashboard-grid,
.card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  margin-top: 18px;
}

.card,
.metric-card,
.panel,
.empty-state {
  background: var(--surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card,
.panel {
  padding: 22px;
}

.metric-card {
  display: grid;
  gap: 8px;
  min-height: 138px;
  padding: 20px;
}

.metric-card__label {
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 800;
}

.metric-card__value {
  color: var(--blue-950);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
  line-height: 1;
}

.metric-card__hint {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

.panel-header {
  align-items: center;
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  justify-content: space-between;
  margin: -22px -22px 20px;
  padding: 18px 22px;
}

.panel-header h2,
.card h3 {
  margin: 0;
}

.dashboard-alert {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.dashboard-alert a {
  color: inherit;
  font-weight: 900;
}

.step-list {
  display: grid;
  gap: 14px;
}

.step-item {
  align-items: start;
  background: var(--surface-soft);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  grid-template-columns: 34px 1fr;
  padding: 14px;
}

.step-item > span {
  align-items: center;
  background: var(--purple-100);
  border-radius: 50%;
  color: var(--purple-950);
  display: flex;
  font-size: 13px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.step-item.done > span {
  background: #dcfce7;
  color: #166534;
}

.step-item strong {
  color: var(--blue-950);
}

.step-item p {
  color: var(--slate-500);
  font-size: 14px;
  line-height: 1.45;
  margin: 5px 0 0;
}

.summary-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.summary-list div {
  border-bottom: 1px solid var(--slate-200);
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
}

.summary-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.summary-list dt {
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.summary-list dd {
  color: var(--blue-950);
  font-weight: 800;
  margin: 0;
}

.opportunity-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.opportunity-card {
  background:
    linear-gradient(180deg, rgba(109, 40, 217, 0.06), rgba(255, 255, 255, 0) 42%),
    var(--surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

.opportunity-card__top {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.opportunity-card__top h2 {
  color: var(--blue-950);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.05;
  margin: 0;
}

.opportunity-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.opportunity-metrics div,
.opportunity-footer {
  background: var(--surface-soft);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
}

.opportunity-metrics div {
  display: grid;
  gap: 5px;
  padding: 14px;
}

.opportunity-metrics strong {
  color: var(--purple-950);
  font-size: 20px;
  line-height: 1.1;
}

.opportunity-metrics span,
.opportunity-footer span,
.ranking-item small {
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 800;
}

.opportunity-footer {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 12px;
  overflow: hidden;
}

.opportunity-footer div {
  background: #ffffff;
  display: grid;
  gap: 4px;
  padding: 14px;
}

.opportunity-footer strong {
  color: var(--blue-950);
  font-size: 18px;
}

.opportunity-rankings,
.categories-panel {
  margin-top: 18px;
}

.ranking-list {
  display: grid;
  gap: 10px;
}

.ranking-item {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  grid-template-columns: 34px 1fr auto;
  padding: 12px;
}

.ranking-item > span {
  align-items: center;
  background: var(--purple-100);
  border-radius: 50%;
  color: var(--purple-950);
  display: flex;
  font-size: 13px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.ranking-item div {
  display: grid;
  gap: 2px;
}

.ranking-item b {
  color: var(--green-dark);
}

/* Buttons */
.button,
.btn,
.auth-submit,
.nav-cta {
  align-items: center;
  border: 0;
  border-radius: var(--radius);
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.button:hover,
.btn:hover,
.auth-submit:hover {
  transform: translateY(-1px);
}

.btn-primary,
.button-primary,
.auth-submit {
  background: linear-gradient(135deg, var(--purple-700), var(--purple-950));
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(109, 40, 217, 0.22);
}

.btn-secondary,
.button-ghost {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  color: var(--purple-950);
}

.btn-danger {
  background: var(--danger);
  color: #ffffff;
}

.btn-success {
  background: var(--green);
  color: #052e16;
}

.btn-sm {
  min-height: 36px;
  padding: 8px 12px;
}

.icon-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  color: var(--blue-950);
  justify-content: center;
  min-height: 40px;
  width: 40px;
}

/* Forms */
.form-card {
  background: var(--surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.choice-field {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  display: flex;
  gap: 14px;
  margin: 0;
  min-height: 74px;
  padding: 12px;
}

.choice-field legend {
  color: var(--slate-700);
  font-size: 14px;
  font-weight: 800;
  padding: 0 4px;
}

.choice-field label {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.choice-field input {
  min-height: auto;
  width: auto;
}

.form-help {
  color: var(--slate-500);
  font-size: 13px;
  margin: 0;
}

.form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* Tables */
.table-card {
  background: var(--surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table-responsive {
  overflow-x: auto;
}

.data-table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--slate-200);
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  background: var(--surface-soft);
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.data-table td {
  color: var(--slate-700);
  font-size: 14px;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

/* Badges and Alerts */
.badge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  min-height: 26px;
  padding: 5px 10px;
}

.badge-success,
.status-aberta,
.status-concluida {
  background: #dcfce7;
  color: #166534;
}

.badge-warning,
.status-agrupada,
.status-em_negociacao {
  background: #fef3c7;
  color: #92400e;
}

.badge-danger,
.status-cancelada {
  background: #fee2e2;
  color: #991b1b;
}

.badge-info {
  background: #dbeafe;
  color: #1d4ed8;
}

.alert,
.auth-alert {
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  padding: 13px 14px;
}

.alert {
  margin-bottom: 18px;
}

.alert-success,
.auth-alert-success {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.alert-error,
.auth-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.alert-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

/* Empty States */
.empty-state {
  align-items: center;
  display: grid;
  justify-items: center;
  padding: 42px 22px;
  text-align: center;
}

.empty-state__icon {
  align-items: center;
  background: var(--purple-100);
  border-radius: 50%;
  color: var(--purple-950);
  display: flex;
  font-weight: 900;
  height: 58px;
  justify-content: center;
  margin-bottom: 16px;
  width: 58px;
}

.empty-state h3 {
  margin: 0 0 8px;
}

.empty-state p {
  color: var(--slate-500);
  margin: 0;
  max-width: 560px;
}

.empty-state-compact {
  box-shadow: none;
  padding: 24px 12px;
}

/* Auth */
.auth-page {
  background:
    radial-gradient(circle at 18% 14%, rgba(34, 197, 94, 0.22), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(109, 40, 217, 0.2), transparent 30%),
    linear-gradient(135deg, var(--blue-950) 0%, var(--purple-950) 46%, #eef2ff 46%, var(--bg) 100%);
  min-height: 100vh;
}

.auth-screen {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 76px);
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 480px);
  min-height: 100vh;
  padding: clamp(24px, 5vw, 72px);
}

.auth-screen-compact {
  grid-template-columns: minmax(320px, 520px);
  justify-content: center;
}

.auth-brand-panel {
  color: #ffffff;
  display: grid;
  gap: clamp(80px, 14vh, 160px);
  max-width: 720px;
}

.auth-brand {
  align-items: center;
  color: #ffffff;
  display: inline-flex;
  font-weight: 900;
  gap: 12px;
  text-decoration: none;
  width: fit-content;
}

.auth-brand-dark {
  color: var(--blue-950);
  margin-bottom: 22px;
}

.auth-brand-panel h1 {
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  margin: 0;
}

.auth-brand-panel p:last-child,
.auth-card-heading p {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
  margin: 22px 0 0;
  max-width: 620px;
}

.auth-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(24px, 4vw, 38px);
}

.auth-card-heading {
  margin-bottom: 24px;
}

.auth-card-heading h2 {
  color: var(--blue-950);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.08;
  margin: 0;
}

.auth-card-heading p {
  color: var(--slate-500);
  font-size: 15px;
  margin-top: 10px;
}

.auth-alert {
  margin-bottom: 16px;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 7px;
}

.auth-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 20px;
}

.auth-links a {
  color: var(--purple-950);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

/* Landing */
.landing-page {
  background: var(--bg);
}

.landing-page .landing-main {
  padding: 0;
}

.landing-nav {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(15, 23, 42, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 16px clamp(18px, 5vw, 64px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand-mark,
.landing-links {
  align-items: center;
  display: flex;
}

.brand-mark {
  color: #ffffff;
  font-weight: 850;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-symbol {
  background: #ffffff;
  color: var(--purple-950);
}

.landing-links {
  gap: 8px;
}

.landing-links a {
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 800;
  padding: 9px 12px;
  text-decoration: none;
}

.landing-links a:hover {
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
}

.landing-links .nav-cta {
  background: #ffffff;
  color: var(--purple-950);
}

.hero-section {
  isolation: isolate;
  min-height: 92vh;
  overflow: hidden;
  position: relative;
}

.hero-image,
.hero-section picture {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
  z-index: -2;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(59, 7, 100, 0.78) 42%, rgba(15, 23, 42, 0.28) 74%, rgba(15, 23, 42, 0.1) 100%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.24) 74%, var(--bg) 100%);
  inset: 0;
  position: absolute;
  z-index: -1;
}

.hero-content {
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 92vh;
  padding: 112px clamp(22px, 6vw, 76px) 68px;
  width: min(760px, 100%);
}

.hero-content .eyebrow {
  color: #86efac;
}

.hero-content h1 {
  font-size: clamp(48px, 9vw, 112px);
  line-height: 0.92;
  margin: 0;
  max-width: 720px;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
  margin: 24px 0 0;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.signal-strip {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  margin: -34px auto 0;
  max-width: 1120px;
  padding: 0 clamp(18px, 4vw, 36px);
  position: relative;
  z-index: 2;
}

.signal-strip > div {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  display: grid;
  min-height: 118px;
  padding: 24px;
}

.signal-strip > div:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.signal-strip > div:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.metric-value {
  color: var(--blue-950);
  font-size: 34px;
  font-weight: 900;
}

.metric-label {
  color: var(--slate-500);
  font-size: 14px;
  font-weight: 800;
}

.landing-section,
.insight-section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 96px clamp(18px, 4vw, 36px);
}

.section-heading {
  max-width: 720px;
}

.section-heading h2,
.insight-copy h2 {
  color: var(--blue-950);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  margin: 0;
}

.feature-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 34px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  min-height: 260px;
  padding: 26px;
}

.feature-index {
  color: var(--purple-700);
  font-size: 13px;
  font-weight: 900;
}

.feature-card h3 {
  color: var(--blue-950);
  font-size: 24px;
  line-height: 1.12;
  margin: 42px 0 12px;
}

.feature-card p,
.insight-copy p {
  color: var(--slate-500);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}

.insight-section {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: 0.9fr 1.1fr;
  padding-top: 28px;
}

.insight-copy p:last-child {
  margin-top: 22px;
}

.dashboard-preview {
  background: var(--blue-950);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  color: #ffffff;
  padding: 24px;
}

.preview-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding-bottom: 18px;
}

.preview-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}

.preview-grid div {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  display: grid;
  gap: 6px;
  padding: 18px;
}

.preview-grid strong {
  font-size: clamp(24px, 4vw, 36px);
}

.preview-grid span,
.preview-top span {
  color: rgba(255, 255, 255, 0.68);
}

.preview-bars {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  height: 150px;
  margin-top: 18px;
}

.preview-bars span {
  background: linear-gradient(180deg, var(--green) 0%, var(--purple-700) 100%);
  border-radius: var(--radius) var(--radius) 0 0;
  height: var(--size);
}

.landing-footer {
  align-items: center;
  background: var(--blue-950);
  color: rgba(255, 255, 255, 0.74);
  display: flex;
  justify-content: space-between;
  padding: 24px clamp(18px, 5vw, 64px);
}

.landing-footer a {
  color: #ffffff;
  font-weight: 850;
}

/* Utilities */
.text-muted {
  color: var(--slate-500);
}

.text-success {
  color: var(--green-dark);
}

.text-danger {
  color: var(--danger);
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.hidden {
  display: none !important;
}

.stack {
  display: grid;
  gap: 16px;
}

/* Responsive */
@media (max-width: 1100px) {
  .dashboard-grid,
  .content-grid,
  .opportunity-grid,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .opportunity-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insight-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 66px;
  }

  .app-layout {
    grid-template-columns: 1fr;
  }

  .app-header {
    padding: 0 16px;
  }

  .mobile-menu-button {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    margin-right: 10px;
  }

  .mobile-menu-button span {
    background: var(--blue-950);
    border-radius: 999px;
    display: block;
    height: 2px;
    width: 17px;
  }

  .app-brand__text {
    font-size: 14px;
  }

  .user-chip {
    padding: 6px;
  }

  .user-chip__meta {
    display: none;
  }

  .sidebar {
    bottom: 0;
    min-height: 100vh;
    position: fixed;
    top: 0;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    width: min(86vw, 320px);
    z-index: 80;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar__close {
    display: inline-flex;
    font-size: 26px;
    line-height: 1;
  }

  .sidebar-backdrop {
    background: rgba(15, 23, 42, 0.48);
    inset: 0;
    position: fixed;
    z-index: 70;
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }

  main {
    padding: 20px 16px;
  }

  .page-header,
  .app-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-grid,
  .content-grid,
  .opportunity-grid,
  .card-grid,
  .feature-grid,
  .signal-strip,
  .form-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .opportunity-card__top,
  .opportunity-footer {
    grid-template-columns: 1fr;
  }

  .opportunity-card__top {
    flex-direction: column;
  }

  .signal-strip > div,
  .signal-strip > div:first-child,
  .signal-strip > div:last-child {
    border-radius: var(--radius);
  }

  .auth-page {
    background:
      linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(59, 7, 100, 0.94) 44%, var(--bg) 44%, var(--bg) 100%);
  }

  .auth-screen {
    align-items: start;
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .auth-brand-panel {
    gap: 52px;
  }

  .auth-brand-panel h1 {
    font-size: 42px;
  }

  .auth-card {
    padding: 22px;
  }

  .landing-nav {
    align-items: center;
    flex-direction: row;
    gap: 10px;
    padding: 14px 16px;
  }

  .landing-links {
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .landing-links a {
    padding: 8px 9px;
  }

  .brand-mark {
    font-size: 14px;
    gap: 8px;
  }

  .brand-symbol {
    flex: 0 0 34px;
  }

  .landing-links a[href="#operacao"],
  .landing-links a[href="#indicadores"] {
    display: none;
  }

  .hero-section,
  .hero-content {
    min-height: 820px;
  }

  .hero-content {
    padding-top: 112px;
  }

  .landing-section,
  .insight-section {
    padding-block: 68px;
  }

  .landing-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
