/* Landing Page - Scudo */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #002332;
  --secondary: #41738C;
  --accent: #3D8C9D;
  --accent-hover: #2d6b7a;
  --success: #169080;
  --danger: #BF4B61;
  --text-dark: #002E41;
  --text-gray: #7a8a99;
  --text-light: #a0b0be;
  --input-bg: rgba(255, 255, 255, 0.08);
  --input-border: rgba(255, 255, 255, 0.2);
  --input-radius: 12px;
  --btn-radius: 12px;
  --section-padding: 100px 0;
}

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

body, html {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* ========== NAVBAR ========== */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}

.landing-nav.scrolled {
  background: rgba(0, 35, 50, 0.95);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.landing-nav .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-nav .nav-logo img {
  height: 36px;
}

.landing-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.landing-nav .nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.landing-nav .nav-links a:hover {
  color: #fff;
}

.landing-nav .nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 22px;
  border-radius: var(--btn-radius);
  font-weight: 600;
  transition: background 0.2s;
}

.landing-nav .nav-cta:hover {
  background: var(--accent-hover);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 35, 50, 0.88) 0%, rgba(65, 115, 140, 0.75) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 30px 80px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-text {
  color: #fff;
}

.hero-badge {
  display: inline-block;
  background: rgba(61, 140, 157, 0.25);
  border: 1px solid rgba(61, 140, 157, 0.4);
  color: #7dd3e8;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

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

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.hero-features-list li i {
  color: var(--accent);
  font-size: 1rem;
}

/* ========== LOGIN CARD ========== */
.login-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 40px 36px;
  color: #fff;
}

.login-card-header {
  text-align: center;
  margin-bottom: 28px;
}

.login-card-header img.scudo-logo {
  width: 120px;
  margin-bottom: 8px;
}

.login-card-header img.scola-logo {
  width: 90px;
  margin-bottom: 12px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.login-card-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.login-card-header p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.login-card form {
  width: 100%;
}

.login-card .input-group-login {
  margin-bottom: 16px;
  position: relative;
  width: 100%;
}

.login-card .input-group-login .form-control {
  width: 100%;
}

.login-card .input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  z-index: 10;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.login-card .form-control {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--input-radius);
  color: #fff;
  font-size: 0.95rem;
  height: 50px;
  padding: 0 16px 0 46px;
  line-height: 50px;
}

.login-card .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.login-card .form-control:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(61, 140, 157, 0.2);
  color: #fff;
}

.login-alert {
  background: rgba(191, 75, 97, 0.2);
  border: 1px solid rgba(191, 75, 97, 0.4);
  color: #ffb3c1;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.82rem;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.login-alert i {
  margin-top: 2px;
  flex-shrink: 0;
}

.login-alert-success {
  background: rgba(22, 144, 128, 0.2);
  border: 1px solid rgba(22, 144, 128, 0.4);
  color: #7de8d8;
}

/* Modal recovery */
#recoveryModal .modal-content {
  border: none;
}

#recoveryModal .modal-content.login-card {
  background: rgba(0, 35, 50, 0.97);
  backdrop-filter: blur(20px);
}

.login-card .form-check-input {
  background-color: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.login-card .form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.login-card .form-check-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  margin-left: 4px;
}

.login-card .forgot-link {
  color: #7dd3e8;
  font-size: 0.82rem;
  text-decoration: underline;
  font-weight: 500;
}

.login-card .forgot-link:hover {
  color: #7dd3e8;
  text-decoration: underline;
}

.login-card .btn-login {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--btn-radius);
  font-weight: 600;
  font-size: 1rem;
  min-height: 48px;
  width: 100%;
  transition: background 0.2s, transform 0.1s;
  margin-bottom: 12px;
}

.login-card .btn-login:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.login-card .btn-portal {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--btn-radius);
  font-weight: 400;
  font-size: 0.8rem;
  min-height: 40px;
  width: 100%;
  transition: background 0.2s;
}

.login-card .btn-portal:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ========== FEATURES ========== */
.features {
  padding: var(--section-padding);
  background: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  padding: 0 20px;
}

.section-label {
  display: inline-block;
  background: rgba(61, 140, 157, 0.1);
  color: var(--accent);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: #f8fafb;
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 35, 50, 0.1);
  border-color: rgba(61, 140, 157, 0.2);
}

.feature-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 20px;
}

.feature-card h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin: 0;
}

/* ========== STATS ========== */
.stats {
  padding: var(--section-padding);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
}

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

.stats-header {
  text-align: center;
  margin-bottom: 60px;
}

.stats-header .section-label {
  background: rgba(255, 255, 255, 0.12);
  color: #7dd3e8;
}

.stats-header .section-title {
  color: #fff;
}

.stats-header .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

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

.stat-item {
  text-align: center;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number span {
  color: var(--accent);
}

.stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  padding: var(--section-padding);
  background: #f8fafb;
}

.testimonials-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 2px 16px rgba(0, 35, 50, 0.06);
  position: relative;
  transition: transform 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

.testimonial-quote {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 12px;
  line-height: 1;
}

.testimonial-card p {
  font-size: 0.92rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author-info h5 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 2px;
}

.testimonial-author-info span {
  font-size: 0.8rem;
  color: var(--text-gray);
}

/* ========== FOOTER ========== */
.landing-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 50px 0 30px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo img {
  height: 32px;
  opacity: 0.9;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.footer-copy a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
}

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (max-width: 991px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 100px 30px 60px;
    text-align: center;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-subtitle {
    margin: 0 auto 24px;
  }

  .hero-features-list {
    display: none;
  }

  .login-card {
    max-width: 420px;
    margin: 0 auto;
  }

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

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

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
  }

  .landing-nav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(0, 35, 50, 0.97);
    flex-direction: column;
    padding: 20px 30px;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .landing-nav .nav-links.show {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .hero-content {
    padding: 90px 20px 40px;
    gap: 30px;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-badge {
    font-size: 0.72rem;
  }

  .login-card {
    padding: 28px 22px;
  }

  /* Allow the show-password / forgot-password row to stack on very narrow screens */
  .login-card .d-flex.align-items-center {
    flex-wrap: wrap;
    gap: 8px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .features {
    padding: 60px 0;
  }

  .stats {
    padding: 60px 0;
  }

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

  .stat-number {
    font-size: 2.2rem;
  }

  .testimonials {
    padding: 60px 0;
  }

  .testimonials-grid {
    padding: 0 20px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 0.92rem;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Small mobile — stats go single column to prevent cramped numbers */
@media (max-width: 400px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Hero video: hide on mobile, show gradient fallback */
@media (max-width: 768px) {
  .hero-video {
    display: none;
  }

  .hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  }
}

/* Counter animation */
.stat-number {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}

.stat-number.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== FAQ ========== */
.faq {
  padding: var(--section-padding);
  background: #fff;
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #f8fafb;
  border: 1px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item[open] {
  border-color: rgba(61, 140, 157, 0.2);
  box-shadow: 0 4px 16px rgba(0, 35, 50, 0.06);
}

.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item summary h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.faq-item > p {
  padding: 0 24px 20px;
  font-size: 0.92rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 576px) {
  .faq {
    padding: 60px 0;
  }

  .faq-grid {
    padding: 0 20px;
  }

  .faq-item summary {
    padding: 16px 18px;
  }

  .faq-item summary h3 {
    font-size: 0.92rem;
  }

  .faq-item > p {
    padding: 0 18px 16px;
    font-size: 0.85rem;
  }
}

/* Cursor spotlight */
#cursor-spotlight {
  position: fixed;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s;
}
