* {
  box-sizing: border-box;
}

:root {
  --bg: #0b1020;
  --bg-soft: #121a31;
  --panel: rgba(255, 255, 255, .08);
  --panel-border: rgba(255, 255, 255, .12);
  --text: #f5f7fb;
  --muted: #b7c1d9;
  --primary: #5eead4;
  --primary-2: #60a5fa;
  --warning: #fbbf24;
  --shadow: 0 20px 60px rgba(0, 0, 0, .35);
  --radius: 22px;
  --container: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, #0b1020 0%, #0f172a 100%);
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

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

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* FUNDO */

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,.8), transparent 85%);
  pointer-events: none;
  z-index: 0;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  opacity: .28;
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 360px;
  height: 360px;
  background: var(--primary-2);
  top: 80px;
  left: -80px;
}

.orb-2 {
  width: 340px;
  height: 340px;
  background: var(--primary);
  bottom: 40px;
  right: -60px;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 16, 32, .7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #08111f;
  font-weight: 800;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text small {
  color: var(--muted);
  font-size: .82rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  width: auto;
  flex-shrink: 0;
}

.nav a:not(.btn) {
  color: var(--muted);
  font-weight: 500;
}

.nav a:not(.btn):hover {
  color: #fff;
}

/* HERO */

.hero {
  padding: 60px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.hero-content h1,
.form-side h1 {
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  margin: 18px 0;
}

.hero-text,
.section-head p,
.info-card p,
.panel-text p,
.panel-item span,
.cta-text p,
.form-side p,
.side-card p,
.form-head p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-actions,
.form-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-actions {
  justify-content: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.stat-card {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.stat-card span {
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.55;
}

/* SEÇÕES */

.section {
  padding: 84px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head h2,
.panel-text h2,
.cta-text h2,
.form-head h2 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.1;
}

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

.info-card {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.info-card h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
}

.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(94,234,212,.18), rgba(96,165,250,.18));
  font-size: 1.4rem;
}

.section-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.panel-grid,
.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.panel-card {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.panel-item + .panel-item {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.panel-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

/* CTA */

.cta-box {
  background: linear-gradient(135deg, rgba(94,234,212,.12), rgba(96,165,250,.12));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow);
}

.cta-action {
  flex-shrink: 0;
}

/* FOOTER */

.site-footer {
  padding: 28px 0 38px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-wrap p {
  color: var(--muted);
}

/* BADGES E BOTÕES */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(94,234,212,.12);
  border: 1px solid rgba(94,234,212,.18);
  color: #a7fff1;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.badge-soft {
  background: rgba(96,165,250,.12);
  border-color: rgba(96,165,250,.18);
  color: #c6deff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: .2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-lg {
  min-height: 54px;
  padding: 0 28px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #08111f;
}

.btn-secondary {
  background: rgba(255,255,255,.08);
  border-color: var(--panel-border);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.14);
  color: #fff;
}

.btn-text,
.btn-loading {
  display: inline-block;
}

/* FORMULÁRIO */

.form-main {
  padding: 54px 0 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 100px);
}

.form-card-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.form-card {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: rgba(255,255,255,.95);
  color: #0f172a;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.form-card.is-loading,
.is-loading {
  opacity: .75;
  pointer-events: none;
}

.form-head h2 {
  color: #0f172a;
}

.form-head p {
  color: #5b6880;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

label {
  font-size: .95rem;
  font-weight: 600;
  color: #0f172a;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(15,23,42,.12);
  background: #f8fafc;
  border-radius: 14px;
  padding: 15px 16px;
  font: inherit;
  color: #0f172a;
  outline: none;
  transition: .2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(96,165,250,.6);
  box-shadow: 0 0 0 4px rgba(96,165,250,.12);
}

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

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

select:disabled {
  opacity: .65;
  cursor: not-allowed;
  background-color: #eef2f7;
}

/* RETORNO */

.cadastro-retorno {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: .95rem;
}

.cadastro-retorno.sucesso {
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .22);
  color: #166534;
}

.cadastro-retorno.erro {
  background: rgba(239, 68, 68, .12);
  border: 1px solid rgba(239, 68, 68, .22);
  color: #991b1b;
}

/* UTILITÁRIAS */

.d-none {
  display: none !important;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.w-100 {
  width: 100%;
}

.input-uppercase {
  text-transform: uppercase;
}

/* MODAL */

.modal-cadastro {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.modal-cadastro-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 20, .72);
  backdrop-filter: blur(4px);
}

.modal-cadastro-dialog {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 32px), 560px);
  margin: 6vh auto 0;
  background: #ffffff;
  color: #0f172a;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
  padding: 26px;
}

.modal-cadastro-header h3 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.2;
}

.modal-cadastro-body {
  margin-top: 18px;
  color: #475569;
  line-height: 1.7;
}

.modal-cadastro-body strong {
  color: #0f172a;
}

.modal-cadastro-footer {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.modal-cadastro-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.modal-cadastro-close:hover {
  background: #e2e8f0;
}

.modal-cadastro-info {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, .08);
}

.modal-cadastro-info-item + .modal-cadastro-info-item {
  margin-top: 10px;
}

.btn-modal {
  min-width: 150px;
}

.btn-modal-secondary {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-modal-secondary:hover {
  background: #cbd5e1;
}

.btn-modal-warning {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1f2937;
}

.btn-modal-warning:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* RESPONSIVO */

@media (min-width: 768px) {
  .hero-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 1024px) {
  .panel-grid,
  .form-layout,
  .card-grid,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .header-wrap {
    min-height: auto;
    padding: 14px 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand-text strong {
    font-size: .95rem;
  }

  .brand-text small {
    font-size: .78rem;
  }

  .nav {
    margin-left: auto;
    width: auto;
    flex-shrink: 0;
  }

  .hero {
    padding: 34px 0 60px;
  }

  .section {
    padding: 64px 0;
  }

  .hero-content h1,
  .form-side h1 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

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

  .form-card {
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .modal-cadastro-dialog {
    margin-top: 4vh;
    padding: 22px;
  }

  .modal-cadastro-footer {
    flex-direction: column;
  }

  .modal-cadastro-footer .btn {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
  }
}

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

.event {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 20px;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.event-date {
    font-size: 13px;
    color: var(--muted);
    font-weight: 700;
}

.event h4 {
    margin: 0 0 6px;
    font-size: 18px;
}

.event p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

@media (max-width: 640px) {

  .event {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: flex-start;
    padding: 18px;
  }

  .event-date {
    font-size: 12px;
    margin-bottom: 2px;
  }

  .event h4 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
  }

  .event p {
    font-size: 14px;
    line-height: 1.6;
  }

}