/* Styling for PlataformaENEM Marketing Landing Page */

/* Transitions and Global Page Container */
#landing-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  color: var(--color-text-main);
  animation: fadeIn 0.5s ease-out;
  overflow-x: hidden;
  position: relative;
  z-index: 10;
}

#app-workspace {
  width: 100%;
  min-height: 100vh;
  display: none;
  animation: fadeIn 0.5s ease-out;
}

/* Landing Navigation Header */
.landing-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: 80px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  transition: background 0.3s ease, border-color 0.3s ease;
}

body.dark-theme .landing-header {
  background: rgba(9, 12, 21, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-logo .logo-icon {
  background: linear-gradient(135deg, var(--color-primary), #7c3aed);
}

.landing-logo .logo-text {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 22px;
  background: linear-gradient(135deg, var(--color-text-main) 30%, var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.landing-nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.landing-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-login {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--color-text-main);
  padding: 10px 20px;
  border-radius: 10px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background: var(--bg-card-subtle);
  border-color: var(--color-primary);
}

.btn-register {
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: 10px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--color-primary-glow);
  transition: all 0.3s ease;
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Sections Base */
.landing-section {
  padding: 100px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(255, 77, 141, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 38px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  color: var(--color-text-main);
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 600px;
  margin-bottom: 60px;
  line-height: 1.6;
}

/* Hero Section */
.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  padding: 60px 0;
}

.hero-text-area {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-tag {
  background: linear-gradient(90deg, rgba(37,99,235,0.1), rgba(124,58,237,0.1));
  border: 1px solid var(--border-color);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-text-main);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--color-primary), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--color-primary), #7c3aed);
  color: #ffffff;
  border: none;
  padding: 16px 36px;
  border-radius: 12px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.5);
}

.btn-hero-secondary {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--color-text-main);
  padding: 16px 36px;
  border-radius: 12px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
  background: var(--bg-card-subtle);
  border-color: var(--color-primary);
}

.hero-visual-area {
  position: relative;
  display: flex;
  justify-content: center;
}

.mockup-wrapper {
  width: 100%;
  max-width: 520px;
  border-radius: 20px;
  background: #ffffff;
  padding: 10px;
  box-shadow: 0 20px 50px rgba(13, 19, 43, 0.12);
  border: 1px solid var(--border-color);
  position: relative;
  z-index: 2;
  transition: transform 0.5s ease;
}

body.dark-theme .mockup-wrapper {
  background: #0f1424;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.mockup-wrapper:hover {
  transform: scale(1.02) rotate(1deg);
}

.mockup-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}

.visual-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: var(--card-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: 0 12px 30px var(--color-primary-glow);
}

.feature-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--color-primary-glow);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 24px;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon-box {
  transform: scale(1.1) rotate(5deg);
}

.feature-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* Pricing Toggle and Cards on Landing */
.pricing-section-container {
  width: 100%;
}

/* Testimonials Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--color-text-main);
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a29bfe, #6c5ce7);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-title);
}

.testimonial-info {
  display: flex;
  flex-direction: column;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-main);
}

.testimonial-meta {
  font-size: 12px;
  color: var(--color-secondary);
  font-weight: 600;
}

/* FAQ Accordion Styles */
.faq-list {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: var(--color-primary-glow);
}

.faq-question {
  width: 100%;
  padding: 22px 28px;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.faq-item.active {
  border-color: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  padding: 0 28px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--color-text-muted);
  border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
  max-height: 300px; /* Suficiente para o texto */
  padding: 0 28px 24px;
  border-top: 1px dashed var(--border-color);
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0), padding 0.3s ease;
}

/* Call to Action Banner */
.cta-banner-wrapper {
  width: 100%;
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.cta-banner {
  background: linear-gradient(135deg, #0d132b, #1e293b);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(13, 19, 43, 0.2);
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner-title {
  font-family: var(--font-title);
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.cta-banner-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

/* Landing Footer */
.landing-footer {
  background: #090c15;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 40px 30px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand .logo-text {
  color: #ffffff;
}

.footer-brand-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.4);
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.footer-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 13.5px;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.35);
}

/* Modal Overlay & Card for Login */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(9, 12, 21, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease-out;
}

.login-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  padding: 40px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close-btn:hover {
  background: var(--bg-card-subtle);
  color: var(--color-text-main);
}

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

.login-modal-header h2 {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 6px;
}

.login-modal-header p {
  color: var(--color-text-muted);
  font-size: 13.5px;
}

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

.form-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-text-main);
}

.form-input {
  width: 100%;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--color-text-main);
  font-family: var(--font-body);
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--bg-secondary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.btn-login-submit {
  background: linear-gradient(135deg, var(--color-primary), #7c3aed);
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px var(--color-primary-glow);
}

.btn-login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.login-demo-info {
  background: rgba(250, 204, 21, 0.08);
  border: 1px dashed rgba(250, 204, 21, 0.25);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 11.5px;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-top: 20px;
  text-align: center;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Landing Page */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-text-area {
    align-items: center;
  }
  
  .features-grid, .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .landing-header {
    padding: 0 20px;
  }
  
  .landing-nav {
    display: none;
  }
  
  .hero-title {
    font-size: 38px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .landing-section {
    padding: 60px 20px;
  }
}
