:root {
  --primary: #6C5CE7;
  /* Playful Purple */
  --secondary: #FF7675;
  /* Soft Pink / Red */
  --tertiary: #00CEC9;
  /* Teal */
  --accent: #FDCB6E;
  /* Yellow/Amber */
  --bg-color: #F8F9FA;
  --text-main: #2D3436;
  --text-light: #636E72;
  --white: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1,
h2,
h3,
h4,
.badge {
  font-family: 'Nunito', sans-serif;
}

/* Background Shapes */
.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.5;
  animation: floatBG 15s infinite alternate ease-in-out;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -100px;
  left: -100px;
}

.shape-2 {
  width: 500px;
  height: 500px;
  background: var(--secondary);
  top: 30%;
  right: -150px;
  animation-delay: -5s;
}

.shape-3 {
  width: 350px;
  height: 350px;
  background: var(--tertiary);
  bottom: 0%;
  left: 10%;
  animation-delay: -10s;
}

@keyframes floatBG {
  0% {
    transform: translateY(0) scale(1);
  }

  100% {
    transform: translateY(50px) scale(1.1);
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.mt-4 {
  margin-top: 2rem;
}

.mt-5 {
  margin-top: 3rem;
}

/* Glassmorphism utility */
.glass {
  background: var(--white);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 24px;
  padding: 24px;
}

/* Typography & Utilities */
.highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

.badge {
  display: inline-block;
  background: rgba(108, 92, 231, 0.1);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 30px;
  transition: all 0.3s ease;
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #A29BFE);
  color: #fff;
  box-shadow: 0 10px 20px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(108, 92, 231, 0.4);
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 15px;
  color: var(--text-main);
}

.section-header p {
  color: var(--text-light);
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

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

.hero-text h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 25px;
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 30px;
}

.law-text {
  font-size: 0.95rem !important;
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.9);
  padding: 15px 25px;
  border-radius: 16px;
  border-left: 5px solid var(--tertiary);
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  font-weight: 500;
}

.hero-cards {
  display: flex;
  gap: 20px;
  margin-bottom: 35px;
}

.info-card {
  flex: 1;
  padding: 25px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
}

.info-card:hover {
  transform: translateY(-5px);
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
}

.info-card:not(.alert)::before {
  background: var(--primary);
}

.info-card.alert::before {
  background: var(--secondary);
}

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

.info-card p {
  font-size: 0.95rem;
  margin: 0;
}

.icon-primary {
  color: var(--primary);
  font-size: 2rem;
}

.icon-warning {
  color: var(--secondary);
  font-size: 2rem;
}

.floating-illustration {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-icon {
  font-size: 16rem;
  color: var(--primary);
  filter: drop-shadow(0 20px 30px rgba(108, 92, 231, 0.3));
  animation: floatMain 6s ease-in-out infinite;
}

.float-icon {
  position: absolute;
  font-size: 3.5rem;
  background: white;
  padding: 20px;
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  animation: float 5s ease-in-out infinite alternate;
}

.float-1 {
  top: 5%;
  right: 5%;
  color: var(--accent);
  animation-delay: 0.5s;
}

.float-2 {
  bottom: 15%;
  right: 15%;
  color: var(--secondary);
  animation-delay: 1.2s;
}

.float-3 {
  top: 35%;
  left: -5%;
  color: var(--tertiary);
  animation-delay: 2.1s;
}

@keyframes floatMain {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-25px) rotate(3deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(-20px);
  }
}

/* Modalities Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.interactive {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
}

.interactive:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  border-color: rgba(108, 92, 231, 0.4);
  background: white;
}

.card-icon {
  width: 70px;
  height: 70px;
  background: rgba(108, 92, 231, 0.1);
  color: var(--primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
  transition: all 0.4s ease;
}

.interactive:hover .card-icon {
  background: var(--primary);
  color: white;
  transform: rotate(10deg);
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.card p {
  font-size: 1.05rem;
  color: var(--text-light);
}

/* Timeline / Fases */
.timeline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  margin-top: 80px;
}

@media (max-width: 900px) {
  .timeline {
    flex-direction: column;
    margin-top: 40px;
  }
}

.timeline-item {
  flex: 1;
  position: relative;
  padding: 40px 30px;
  text-align: center;
  border-top: 6px solid var(--primary);
  margin-top: 30px;
}

.timeline-item:nth-child(2) {
  border-color: var(--tertiary);
}

.timeline-item:nth-child(3) {
  border-color: var(--accent);
}

.timeline-item:nth-child(4) {
  border-color: var(--secondary);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--text-main);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
  margin: -70px auto 25px;
  border: 6px solid #fff;
  font-family: 'Nunito', sans-serif;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(1) .step-number {
  background: var(--primary);
}

.timeline-item:nth-child(2) .step-number {
  background: var(--tertiary);
}

.timeline-item:nth-child(3) .step-number {
  background: var(--accent);
}

.timeline-item:nth-child(4) .step-number {
  background: var(--secondary);
}

.step-content h3 {
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.icon-info {
  color: var(--tertiary);
  font-size: 1.8rem;
  margin-right: 15px;
}

.note-box {
  display: flex;
  align-items: center;
  padding: 25px 30px;
  border-left: 5px solid var(--tertiary);
  font-size: 1.1rem;
}

/* Rules Section */
.rules-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.fancy-list {
  list-style: none;
  margin-top: 35px;
}

.fancy-list li {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 25px;
  background: white;
  padding: 20px 25px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s;
}

.fancy-list li:hover {
  transform: translateX(15px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.fancy-list i {
  font-size: 2.2rem;
  color: var(--primary);
  background: rgba(108, 92, 231, 0.1);
  padding: 18px;
  border-radius: 16px;
  min-width: 75px;
  text-align: center;
}

.fancy-list .text-danger {
  color: var(--secondary);
  background: rgba(255, 118, 117, 0.1);
}

.fancy-list .text-success {
  color: var(--tertiary);
  background: rgba(0, 206, 201, 0.1);
}

.fancy-list strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 5px;
  color: var(--text-main);
  font-family: 'Nunito', sans-serif;
}

.fancy-list p {
  margin: 0;
  color: var(--text-light);
}

.banca-box {
  text-align: center;
  padding: 50px 40px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.banca-box h3 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.criteria-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}

.tag {
  background: white;
  color: var(--primary);
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: none;
  transition: all 0.3s;
}

.tag:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.banca-illustration {
  font-size: 7rem;
  color: var(--primary);
  opacity: 0.9;
  filter: drop-shadow(0 10px 20px rgba(108, 92, 231, 0.2));
}

/* Examples Section */
.examples-section {
  background: linear-gradient(135deg, var(--primary), #81E4DA);
  color: white;
  border-radius: 50px 50px 0 0;
  margin-top: 50px;
  padding-bottom: 150px;
  box-shadow: 0 -20px 50px rgba(108, 92, 231, 0.2);
}

.examples-section .section-header h2,
.examples-section .section-header p {
  color: white;
}

.examples-carousel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 50px;
}

.example-pill {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px 30px;
  border-radius: 40px;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  cursor: default;
}

.example-pill:hover {
  background: white;
  color: var(--primary);
  transform: scale(1.08) translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.cta-bottom h3 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  font-weight: 900;
}

.cta-bottom p {
  font-size: 1.2rem;
  opacity: 0.9;
}

footer {
  text-align: center;
  padding: 40px 20px 30px;
  background: #2D3436;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
}

.developer-info {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.developer-info p {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  margin: 0;
}

.dev-name {
  color: var(--tertiary);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
  background: var(--tertiary);
  color: white !important;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 20px rgba(0, 206, 201, 0.3);
}

.no-decoration {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
  /* Ensure the link behaves like a block element */
}

/* Elementos do Projeto */
.elementos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.elemento-card {
  text-align: center;
  padding: 30px 20px;
  transition: transform 0.3s ease;
}

.elemento-card:hover {
  transform: translateY(-5px);
}

.elemento-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: white;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
  box-shadow: 0 10px 20px rgba(255, 118, 117, 0.3);
}

.elemento-card h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.elemento-card p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Login Badge */
.login-badge {
  position: absolute;
  top: 30px;
  right: 40px;
  background: white;
  padding: 10px 25px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  color: var(--primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
}

.login-badge i {
  font-size: 1.2rem;
}

.login-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(108, 92, 231, 0.2);
  background: var(--primary);
  color: white;
}

/* Media Queries */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .hero-text h1 {
    font-size: 3.5rem;
  }

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

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

  .floating-illustration {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .hero-cards {
    flex-direction: column;
  }
}

/* Auth Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeInModal 0.3s ease;
  padding: 16px;
  box-sizing: border-box;
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-content {
  width: 100%;
  max-width: 450px;
  position: relative;
  padding: 40px;
  margin: auto;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal:hover {
  color: var(--secondary);
}

.modal-header {
  text-align: center;
  margin-bottom: 30px;
}

.modal-header h2 {
  font-size: 2rem;
  color: var(--primary);
}

.auth-form .input-group {
  position: relative;
  margin-bottom: 20px;
}

.auth-form .input-group i {
  position: absolute;
  left: 15px;
  top: 15px;
  color: var(--text-light);
}

.auth-form input,
.auth-form select {
  width: 100%;
  padding: 15px 15px 15px 45px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 16px; /* mínimo 16px evita zoom automático no iOS */
  background: rgba(255, 255, 255, 0.7);
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  -webkit-appearance: none;
  appearance: none;
}

.auth-form input:focus,
.auth-form select:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.w-100 {
  width: 100%;
}

.auth-switch {
  font-size: 0.95rem;
}

.auth-switch a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  margin-left: 5px;
}

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

.error-msg {
  color: white;
  background: var(--secondary);
  padding: 10px;
  border-radius: 8px;
  margin-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ── Responsividade Mobile do Modal de Auth ── */
@media (max-width: 480px) {
  .modal-overlay {
    align-items: flex-start;
    padding: 10px;
  }

  .modal-content {
    padding: 24px 18px;
    border-radius: 16px;
    margin: auto 0;
  }

  .modal-header {
    margin-bottom: 18px;
  }

  .modal-header h2 {
    font-size: 1.5rem;
  }

  .modal-header p {
    font-size: 0.9rem;
  }

  .auth-form .input-group {
    margin-bottom: 14px;
  }

  .auth-form input,
  .auth-form select {
    padding: 13px 13px 13px 40px;
    font-size: 16px;
    border-radius: 10px;
  }

  .auth-form .input-group i {
    top: 14px;
    left: 12px;
    font-size: 0.9rem;
  }

  /* Botões menores no mobile */
  .auth-form .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
    border-radius: 20px;
  }

  .auth-switch {
    font-size: 0.85rem;
  }
}