/* ============================================ */
/* === Landing Page Specific Styles =========== */
/* ============================================ */

/* === Nav Enhancements === */
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  transition: color 0.15s;
}
.nav-link:hover { color: var(--gray-900); }

@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* === Hero Badge Enhancement === */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-badge svg {
  flex-shrink: 0;
}

/* === Feature Icons with SVG === */
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg {
  flex-shrink: 0;
}

/* 8-card grid: 4 columns on desktop */
@media (min-width: 769px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* === AI Section === */
.ai-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #F5F3FF 0%, #EDE9FE 50%, #F5F3FF 100%);
  overflow: hidden;
}
.ai-layout {
  display: flex;
  gap: 64px;
  align-items: center;
}
.ai-content {
  flex: 1;
  min-width: 0;
}
.ai-visual {
  flex: 0 0 400px;
}
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--primary-light);
}
.ai-title {
  text-align: left;
  margin-bottom: 16px;
}
.ai-desc {
  font-size: 17px;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* AI Feature list */
.ai-features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ai-feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.ai-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.ai-feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ai-feature-text strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
}
.ai-feature-text span {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* AI Visual Cards */
.ai-card-stack {
  position: relative;
}
.ai-demo-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 8px 32px rgba(124, 92, 252, 0.12), 0 2px 8px rgba(0,0,0,0.04);
}
.ai-demo-1 {
  position: relative;
  z-index: 2;
}
.ai-demo-2 {
  margin-top: -20px;
  margin-left: 24px;
  position: relative;
  z-index: 1;
  opacity: 0.95;
}
.ai-demo-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}
.ai-demo-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 16px;
}
.ai-demo-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ai-demo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-600);
}
.ai-demo-pref-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}
.ai-demo-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.ai-chip {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-500);
}
.ai-chip.active {
  background: var(--primary);
  color: #fff;
}
.ai-chip.sm {
  padding: 4px 10px;
  font-size: 12px;
}
.ai-demo-pref-row {
  margin-bottom: 10px;
}
.ai-pref-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: block;
}

@media (max-width: 900px) {
  .ai-layout {
    flex-direction: column;
  }
  .ai-visual {
    flex: none;
    width: 100%;
    max-width: 400px;
  }
  .ai-title { text-align: center; }
  .ai-desc { text-align: center; }
  .ai-content { text-align: left; }
}

/* === Nav Actions (AI Hub + Download buttons) === */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-cta-ai {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: var(--radius-lg, 10px);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: transparent;
  border: 1.5px solid rgba(124, 92, 252, 0.3);
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-cta-ai:hover {
  background: rgba(124, 92, 252, 0.08);
  border-color: var(--primary);
  color: var(--primary);
}
.nav-cta-ai svg {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .nav-cta-ai { display: none; }
}

/* === AI Hub CTA Section === */
.aihub-cta {
  padding: 80px 0;
  background: linear-gradient(180deg, #F5F3FF 0%, #fff 100%);
}
.aihub-card {
  position: relative;
  background: linear-gradient(135deg, #1A1A2E 0%, #2D1B69 40%, #7C5CFC 100%);
  border-radius: 24px;
  padding: 64px;
  overflow: hidden;
  color: #fff;
}
.aihub-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.3), transparent 70%);
  pointer-events: none;
}
.aihub-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.aihub-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 24px;
}
.aihub-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.aihub-desc {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 28px;
}
.aihub-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 32px;
}
.aihub-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}
.aihub-feat svg {
  background: rgba(255, 255, 255, 0.12);
  padding: 4px;
  border-radius: 8px;
  flex-shrink: 0;
  stroke: #A78BFA;
}
.aihub-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: #fff;
  color: var(--primary);
  border-radius: var(--radius-xl);
  font-size: 16px;
  font-weight: 700;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.aihub-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}
.aihub-note {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .aihub-card { padding: 40px 24px; }
  .aihub-title { font-size: 26px; }
  .aihub-features { grid-template-columns: 1fr; }
}

/* === Steps Connector (replaces arrow text) === */
.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 12px;
}
@media (max-width: 768px) {
  .step-connector {
    transform: rotate(90deg);
    margin: 8px 0;
  }
}

/* === QR Section Layout === */
.qr-layout {
  display: flex;
  gap: 64px;
  align-items: center;
}
.qr-content {
  flex: 1;
}
.qr-visual {
  flex: 0 0 320px;
}

/* Phone Mockup */
.qr-phone-mockup {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1), 0 4px 16px rgba(0,0,0,0.04);
  overflow: hidden;
  border: 2px solid var(--gray-100);
}
.qr-phone-header {
  padding: 12px 16px 8px;
  display: flex;
  justify-content: center;
}
.qr-phone-dots {
  display: flex;
  gap: 6px;
}
.qr-phone-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-200);
}
.qr-phone-content {
  padding: 12px 20px 24px;
}
.qr-mock-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
  text-align: center;
}
.qr-mock-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 3px;
}
.qr-mock-tabs span {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
  border-radius: var(--radius-md);
  transition: all 0.15s;
}
.qr-mock-tabs span.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.qr-mock-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.qr-mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-600);
  font-weight: 500;
}
.qr-mock-btn {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  text-align: center;
  border-radius: var(--radius-xl);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .qr-layout {
    flex-direction: column;
  }
  .qr-visual {
    flex: none;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* === QR Benefits with SVG checks === */
.qr-benefits {
  margin-top: 24px;
}
.qr-benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 16px;
  color: var(--gray-700);
  font-weight: 500;
}
.benefit-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #D1FAE5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* === CTA Icon === */
.cta-icon {
  margin-bottom: 24px;
  opacity: 0.85;
}

/* === Footer Redesign === */
.footer {
  border-top: 1px solid var(--gray-100);
  padding: 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  padding: 48px 0 32px;
  gap: 48px;
}
.footer-brand {
  flex: 1;
}
.footer-tagline {
  font-size: 14px;
  color: var(--gray-400);
  margin-top: 12px;
}
.footer-links-group {
  display: flex;
  gap: 64px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: var(--gray-500);
  transition: color 0.15s;
}
.footer-col a:hover {
  color: var(--primary);
}
.footer-bottom {
  border-top: 1px solid var(--gray-100);
  padding: 20px 0;
}
.footer-copy {
  font-size: 13px;
  color: var(--gray-400);
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 32px;
  }
  .footer-links-group {
    gap: 40px;
  }
}

/* === Smooth Entrance Animations === */
@media (prefers-reduced-motion: no-preference) {
  .feature-card,
  .step,
  .ai-feature-item,
  .qr-benefit {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
  }

  .feature-card:nth-child(1) { animation-delay: 0.05s; }
  .feature-card:nth-child(2) { animation-delay: 0.1s; }
  .feature-card:nth-child(3) { animation-delay: 0.15s; }
  .feature-card:nth-child(4) { animation-delay: 0.2s; }
  .feature-card:nth-child(5) { animation-delay: 0.25s; }
  .feature-card:nth-child(6) { animation-delay: 0.3s; }
  .feature-card:nth-child(7) { animation-delay: 0.35s; }
  .feature-card:nth-child(8) { animation-delay: 0.4s; }

  .step:nth-child(1) { animation-delay: 0.1s; }
  .step:nth-child(3) { animation-delay: 0.2s; }
  .step:nth-child(5) { animation-delay: 0.3s; }

  .ai-feature-item:nth-child(1) { animation-delay: 0.05s; }
  .ai-feature-item:nth-child(2) { animation-delay: 0.1s; }
  .ai-feature-item:nth-child(3) { animation-delay: 0.15s; }
  .ai-feature-item:nth-child(4) { animation-delay: 0.2s; }
  .ai-feature-item:nth-child(5) { animation-delay: 0.25s; }
  .ai-feature-item:nth-child(6) { animation-delay: 0.3s; }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Language Switcher ===== */
.lang-switcher {
  position: relative;
}
.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md, 8px);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.lang-current:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.lang-current svg {
  opacity: 0.6;
}
.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md, 8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  min-width: 120px;
  z-index: 100;
  overflow: hidden;
}
.lang-switcher.open .lang-dropdown {
  display: block;
}
.lang-option {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--gray-600);
  text-decoration: none;
  transition: background 0.15s;
}
.lang-option:hover {
  background: var(--gray-50);
}
.lang-option.active {
  color: var(--primary);
  font-weight: 600;
}

/* ===== Legal Pages ===== */
.legal-page {
  padding: 120px 24px 80px;
  min-height: 100vh;
  background: var(--gray-50, #F9FAFB);
}
.legal-inner {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-xl, 16px);
  padding: 48px 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.legal-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.legal-updated {
  font-size: 14px;
  color: var(--gray-400);
  margin-bottom: 40px;
}
.legal-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-600);
}
.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--gray-900);
  letter-spacing: -0.01em;
}
.legal-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--gray-700);
}
.legal-content p {
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .lang-current span {
    display: none;
  }
  .lang-current {
    padding: 6px;
  }
  .legal-page {
    padding: 100px 16px 60px;
  }
  .legal-inner {
    padding: 32px 20px;
  }
  .legal-title {
    font-size: 24px;
  }
  .legal-content {
    font-size: 14px;
  }
}
