:root {
  --primary: #ea1d2c;
  --primary-dark: #b81220;
  --bg: #f7f8fa;
  --text: #232323;
  --muted: #6c6c6c;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: "Outfit", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.inst-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #ededed;
}

.header-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  font-size: 24px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  white-space: nowrap;
}

.brand i,
.brand span {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.header-cadastro-btn {
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  padding: 12px 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(234, 29, 44, 0.18);
}

.header-cadastro-btn:hover {
  background: var(--primary-dark);
}

.btn-back {
  border: 1px solid #e7e7e7;
  background: var(--white);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: 0.25s ease;
}

.btn-back:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 46px;
  background: radial-gradient(circle at 12% 0%, #ffd5d9 0, transparent 32%),
    radial-gradient(circle at 95% 20%, #ffd8aa 0, transparent 28%),
    #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

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

h1 {
  font-size: 44px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-text {
  max-width: 700px;
  color: var(--muted);
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-ghost {
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  transition: 0.25s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-ghost {
  border: 1px solid #dddddd;
  background: #fff;
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-panel {
  background: #141414;
  color: #f5f5f5;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.hero-panel h3 {
  margin-bottom: 12px;
}

.hero-panel ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-panel li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #d7d7d7;
}

.hero-panel i {
  color: #25d366;
  margin-top: 4px;
}

.features,
.economy {
  padding: 52px 0;
}

h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid #ececec;
  padding: 18px;
  box-shadow: var(--shadow);
}

.feature-card i {
  color: var(--primary);
  font-size: 20px;
  margin-bottom: 8px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.feature-card p {
  color: var(--muted);
  font-size: 14px;
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: 18px;
}

.economy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.chart-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.chart-card h3 {
  margin-bottom: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-bottom: 10px;
}

.bar-row span {
  font-size: 13px;
  color: #4f4f4f;
}

.bar-row strong {
  font-size: 15px;
}

.bar-row.highlight strong {
  color: var(--primary);
}

.bar {
  width: 100%;
  height: 10px;
  background: #f0f1f3;
  border-radius: 999px;
  overflow: hidden;
}

.fill {
  height: 100%;
  border-radius: 999px;
}

.fill.danger {
  background: #ff6b6b;
}

.fill.success {
  background: #29c266;
}

.fill.primary {
  background: var(--primary);
}

.donut-wrap {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: center;
}

.donut-chart {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) 0 34%, #3ed37a 34% 66%, #eceff2 66% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.donut-chart::after {
  content: "";
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
}

.donut-chart span {
  position: relative;
  z-index: 2;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}

.donut-legend p {
  color: #4e4e4e;
  font-size: 14px;
  margin-bottom: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.dot-primary {
  background: var(--primary);
}

.dot-success {
  background: #3ed37a;
}

.dot-neutral {
  background: #b8c0c8;
}

.chart-note {
  margin-top: 10px;
  color: #777;
  font-size: 12px;
}

.inst-footer {
  background: #1c1c1c;
  color: #d2d2d2;
  padding: 22px 0;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-back-footer {
  border-color: #3a3a3a;
  background: #242424;
  color: #fff;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  width: 100%;
  max-width: 560px;
  margin: 12px;
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.modal-header h3 {
  font-size: 22px;
}

.close-modal {
  border: none;
  background: transparent;
  font-size: 20px;
  color: #707070;
  cursor: pointer;
}

.contact-intro {
  color: var(--muted);
  margin-bottom: 12px;
  font-size: 14px;
}

.register-form {
  display: grid;
  gap: 12px;
}

.register-field {
  display: grid;
  gap: 6px;
}

.register-field label {
  font-size: 13px;
  font-weight: 600;
}

.register-field input,
.register-field select {
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: 0.25s ease;
}

.document-type-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.document-type-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e2e2e2;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  background: #fff;
  cursor: pointer;
  transition: 0.25s ease;
}

.document-type-option input {
  margin: 0;
}

.document-type-option.is-selected {
  border-color: var(--primary);
  background: rgba(234, 29, 44, 0.08);
  color: var(--text-main);
}

.register-field input:focus,
.register-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(234, 29, 44, 0.12);
}

.btn-submit {
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.btn-submit:hover {
  background: var(--primary-dark);
}

@media (max-width: 992px) {
  h1 {
    font-size: 36px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .economy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-wrap {
    min-height: auto;
    padding: 12px 0;
    flex-direction: column;
    align-items: stretch;
  }

  .brand {
    font-size: 20px;
    justify-content: center;
  }

  .header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .header-cadastro-btn,
  .btn-back {
    width: 100%;
    justify-content: center;
    font-size: 13px;
    padding: 11px 12px;
  }

  .header-cadastro-btn {
    white-space: normal;
    text-align: center;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 26px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .donut-wrap {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-content {
    padding: 16px;
    border-radius: 14px;
  }

  .modal-header h3 {
    font-size: 18px;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 18px;
  }

  .header-cadastro-btn,
  .btn-back {
    font-size: 12px;
  }
}
