/* Radar de Milhas — Application Styles */

/* ═══════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-10);
  transition: background 300ms cubic-bezier(0.4,0,0.2,1),
              border-color 300ms cubic-bezier(0.4,0,0.2,1),
              backdrop-filter 300ms;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(1, 4, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(206, 212, 242, 0.08);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-wordmark {
  height: 20px;
  width: auto;
  display: block;
}

.navbar-tagline {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  margin-left: auto;
}


/* ═══════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + var(--space-16)) var(--space-6) var(--space-16);
  position: relative;
  overflow: hidden;
  background: var(--bg-base);
}

/* Radial glow — top centre */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(28, 96, 218, 0.30) 0%, transparent 70%);
  pointer-events: none;
}

/* Ambient glow — bottom left */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: -10%;
  width: 600px; height: 400px;
  background: radial-gradient(ellipse 60% 50% at 0% 100%, rgba(28, 96, 218, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Video de fundo (opcional — mantido para compatibilidade) */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.06;
  animation: videofadein 2s ease forwards;
}

@keyframes videofadein {
  from { opacity: 0; }
  to   { opacity: 0.06; }
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(1, 4, 10, 0.55) 0%,
    rgba(1, 4, 10, 0.20) 40%,
    rgba(1, 4, 10, 0.20) 60%,
    rgba(1, 4, 10, 0.80) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

/* Eyebrow pill badge */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(28, 96, 218, 0.12);
  border: 1px solid rgba(28, 96, 218, 0.30);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  margin-bottom: var(--space-8);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: #7EB0FF;
  letter-spacing: var(--tracking-wide);
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tighter);
  color: var(--fg-1);
  margin-bottom: var(--space-6);
}

.hero-title span { color: var(--color-primary); }

.hero-subtitle {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--fg-2);
  max-width: 480px;
  margin: 0 auto var(--space-10);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px var(--space-8);
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-decoration: none;
  transition: background 150ms ease, transform 150ms ease;
}

.hero-cta:hover {
  background: var(--color-primary-hover);
  color: #fff;
  transform: translateY(-1px);
}

.hero-cta:active { transform: scale(0.97); }

.hero-cta-icon { width: 16px; height: 16px; }

/* Slots badge */
.slots-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding: 6px 14px;
  background: rgba(28, 96, 218, 0.08);
  border: 1px solid rgba(28, 96, 218, 0.20);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--fg-3);
  letter-spacing: var(--tracking-wide);
}

.slots-badge.full {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.22);
  color: #ef4444;
}

.slots-number {
  color: #ef4444;
  font-size: 1.15em;
  font-weight: var(--weight-semibold);
}

.slots-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

.slots-badge.full .slots-dot {
  background: #ef4444;
  animation: none;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero-stats {
  display: flex;
  gap: var(--space-16);
  justify-content: center;
  margin-top: var(--space-16);
  padding-top: var(--space-12);
  border-top: 1px solid var(--border);
}

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

.hero-stat-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-extrabold);
  color: var(--fg-1);
  letter-spacing: var(--tracking-tighter);
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: var(--fg-3);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  margin-top: var(--space-1);
}


/* ═══════════════════════════════════════════════
   DIVIDER
   ═══════════════════════════════════════════════ */
.section-divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 0 auto;
  max-width: var(--content-width);
}


/* ═══════════════════════════════════════════════
   FORM SECTION
   ═══════════════════════════════════════════════ */
.form-section {
  padding: var(--space-24) var(--space-6);
  max-width: var(--content-width);
  margin: 0 auto;
}

.section-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-tighter);
  color: var(--fg-1);
  margin-bottom: var(--space-3);
  line-height: var(--leading-tight);
}

.section-desc {
  font-size: var(--text-base);
  color: var(--fg-2);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}


/* ═══════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════ */
.card {
  background: #070C18;
  border: 1px solid rgba(206, 212, 242, 0.10);
  border-radius: 14px;
  padding: var(--space-8);
  margin-bottom: var(--space-4);
  box-shadow: 0 2px 12px rgba(1,4,10,0.7), inset 0 1px 0 rgba(206,212,242,0.05);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.card:hover {
  border-color: rgba(28, 96, 218, 0.35);
  box-shadow: 0 4px 24px rgba(1,4,10,0.8), inset 0 1px 0 rgba(206,212,242,0.07);
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.card-desc {
  font-size: var(--text-sm);
  color: var(--fg-2);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}


/* ═══════════════════════════════════════════════
   FORM INPUTS
   ═══════════════════════════════════════════════ */
.field-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.field-group input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(1, 4, 10, 0.8);
  border: 1px solid rgba(206, 212, 242, 0.18);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--fg-1);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field-group input::placeholder { color: #455084; }

.field-group input:focus {
  border-color: rgba(28, 96, 218, 0.6);
  box-shadow: 0 0 0 3px rgba(28, 96, 218, 0.15);
}


/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: none;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: background 150ms cubic-bezier(0.4,0,0.2,1),
              transform 150ms cubic-bezier(0.4,0,0.2,1),
              box-shadow 150ms cubic-bezier(0.4,0,0.2,1);
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.btn:active:not(:disabled) { transform: scale(0.97); }

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-primary {
  padding: 11px var(--space-6);
  background: #1C60DA;
  color: #fff;
  font-size: var(--text-sm);
  width: 100%;
  margin-top: var(--space-2);
}

.btn-primary:hover:not(:disabled) {
  background: #2B6FE8;
  box-shadow: 0 0 24px rgba(28,96,218,0.4), 0 0 48px rgba(28,96,218,0.15);
}

.btn-save {
  padding: 13px var(--space-6);
  background: #1C60DA;
  color: #fff;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  width: 100%;
  margin-top: var(--space-2);
}

.btn-save:hover:not(:disabled) {
  background: #2B6FE8;
  box-shadow: 0 0 24px rgba(28,96,218,0.4), 0 0 48px rgba(28,96,218,0.15);
}

.btn-save:active:not(:disabled) { transform: scale(0.97); }

.btn-sm {
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  flex-shrink: 0;
}

.btn-sm:hover:not(:disabled) { background: var(--color-primary-hover); }

.btn-link {
  background: none;
  border: none;
  color: var(--fg-3);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  transition: color 150ms ease;
  white-space: nowrap;
}

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


/* ═══════════════════════════════════════════════
   SPINNER
   ═══════════════════════════════════════════════ */
.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }


/* ═══════════════════════════════════════════════
   USER BAR
   ═══════════════════════════════════════════════ */
.user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: rgba(28, 96, 218, 0.08);
  border: 1px solid rgba(28, 96, 218, 0.25);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.user-bar-email {
  font-size: var(--text-sm);
  color: #7EB0FF;
  font-weight: var(--weight-medium);
  word-break: break-all;
}


/* ═══════════════════════════════════════════════
   PROGRAM CHIPS
   ═══════════════════════════════════════════════ */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

.prog-chip {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: rgba(11, 17, 34, 0.8);
  border: 1px solid rgba(206, 212, 242, 0.12);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 1px 4px rgba(1,4,10,0.4), inset 0 1px 0 rgba(206,212,242,0.04);
}

.prog-chip:hover { border-color: rgba(206,212,242,0.22); }

.prog-chip.selected {
  border-color: var(--prog-color);
  background: var(--prog-bg);
  box-shadow: 0 0 0 1px var(--prog-color) inset;
}

.prog-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background 200ms ease, box-shadow 200ms ease;
}

.prog-chip.selected .prog-dot {
  background: var(--prog-color);
  box-shadow: 0 0 6px var(--prog-color);
}

.prog-name {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--fg-2);
  transition: color 200ms ease;
}

.prog-chip.selected .prog-name { color: var(--fg-1); }


/* ═══════════════════════════════════════════════
   TRANSFER PAIR WIZARD
   ═══════════════════════════════════════════════ */
.pair-wizard {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.pair-wizard-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.pair-wizard-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--fg-3);
}

.pair-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.pair-wizard-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.pair-div-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.pair-div-icon {
  display: flex;
  align-items: center;
  color: var(--color-primary);
  opacity: 0.45;
}

.pairs-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  min-height: 1px;
}

.pairs-empty {
  font-size: var(--text-xs);
  color: var(--fg-3);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.pair-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: linear-gradient(105deg, var(--src-bg, var(--bg-elevated)) 0%, var(--dst-bg, var(--bg-elevated)) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--fg-2);
  box-shadow:
    inset 3px 0 0 var(--src-color, var(--border)),
    inset -3px 0 0 var(--dst-color, var(--border));
}

.pair-tag-arrow {
  color: var(--fg-3);
  font-size: 10px;
  opacity: 0.6;
  flex-shrink: 0;
}

.pair-tag-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--fg-3);
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  padding: 0;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.pair-tag-remove:hover {
  border-color: var(--color-error);
  color: var(--color-error);
  background: var(--surface-error);
}


/* ═══════════════════════════════════════════════
   FEEDBACK MESSAGES
   ═══════════════════════════════════════════════ */
.msg {
  display: none;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  margin-top: var(--space-4);
  line-height: var(--leading-relaxed);
}

.msg.show { display: flex; }

.msg-success {
  background: var(--surface-success);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: var(--color-success);
}

.msg-error {
  background: var(--surface-error);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--color-error);
}

.inline-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: var(--space-2);
  letter-spacing: var(--tracking-wide);
}


/* ═══════════════════════════════════════════════
   STEP VISIBILITY
   ═══════════════════════════════════════════════ */
#step-prefs { display: none; }


/* ═══════════════════════════════════════════════
   EDUCATIONAL SECTION
   ═══════════════════════════════════════════════ */
.edu-section {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-5) var(--space-20);
}

.edu-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

@media (max-width: 800px) {
  .edu-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .edu-grid { grid-template-columns: 1fr; }
}

.edu-card {
  background: #070C18;
  border: 1px solid rgba(206, 212, 242, 0.10);
  border-radius: 14px;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: 0 2px 12px rgba(1,4,10,0.6), inset 0 1px 0 rgba(206,212,242,0.05);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.edu-card:hover {
  border-color: rgba(28, 96, 218, 0.30);
  box-shadow: 0 4px 24px rgba(1,4,10,0.8), inset 0 1px 0 rgba(206,212,242,0.07);
  transform: translateY(-2px);
}

.edu-card--highlight {
  background: linear-gradient(135deg, rgba(28,96,218,0.16) 0%, #04080F 100%);
  border-color: rgba(28, 96, 218, 0.30);
}

.edu-card--highlight:hover {
  border-color: rgba(28, 96, 218, 0.5);
}

.edu-icon-wrap {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(206, 212, 242, 0.06);
  border: 1px solid rgba(206, 212, 242, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A5ACCD;
  flex-shrink: 0;
}

.edu-icon-wrap--accent {
  background: rgba(28, 96, 218, 0.15);
  border-color: rgba(28, 96, 218, 0.35);
  color: #1C60DA;
}

.edu-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.edu-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--fg-1);
  letter-spacing: -0.01em;
  margin: 0;
}

.edu-card--highlight .edu-title {
  color: #CED4F2;
  font-size: var(--text-base);
}

.edu-text {
  font-size: var(--text-sm);
  color: #707AA9;
  line-height: var(--leading-relaxed);
  margin: 0;
  flex: 1;
}

.edu-card--highlight .edu-text { color: #A5ACCD; }

.edu-text strong { color: #A5ACCD; font-weight: var(--weight-medium); }

.edu-card--highlight .edu-text strong { color: #CED4F2; }

.edu-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding: 9px 16px;
  background: #1C60DA;
  color: #fff;
  border-radius: 8px;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 150ms ease, box-shadow 150ms ease;
  align-self: flex-start;
}

.edu-cta:hover {
  background: #2B6FE8;
  color: #fff;
  box-shadow: 0 0 16px rgba(28,96,218,0.4);
}


/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.site-footer {
  padding: var(--space-12) var(--space-6);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.site-footer p {
  font-size: var(--text-xs);
  color: var(--fg-3);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  font-family: var(--font-mono);
}


/* ═══════════════════════════════════════════════
   REVEAL ANIMATION
   ═══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 600px) {
  .navbar { padding: 0 var(--space-4); }
  .navbar-tagline { display: none; }
  .hero-stats { gap: var(--space-8); }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .form-section { padding: var(--space-16) var(--space-4); }
  .section-title { font-size: var(--text-3xl); }
}
