/* ============================================================
   MaaşAnaliz Public Pages — v2.0
   Modern marketing homepage with premium design
   ============================================================ */

/* ---------- 1. PUBLIC HEADER ---------- */
.public-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t-smooth);
}
.public-header.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,0.04); }
.public-header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
@media (min-width: 768px) { .public-header-inner { padding: 0 24px; } }
.public-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.public-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--sh-primary);
}
.public-nav {
  display: none;
  align-items: center;
  gap: 4px;
}
@media (min-width: 768px) { .public-nav { display: flex; } }
.public-nav-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--r-md);
  transition: color var(--t-fast), background var(--t-fast);
}
.public-nav-link:hover { color: var(--text); background: var(--bg-alt); }
.public-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- 2. HERO ---------- */
.hero {
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
@media (min-width: 768px) { .hero { padding: 80px 0 64px; } }

/* Hero background mesh */
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(20, 87, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; padding: 0 32px; gap: 48px; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(20, 87, 255, 0.12);
}
.hero-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 16px;
}
@media (min-width: 768px) { .hero-title { font-size: 48px; } }
@media (min-width: 1024px) { .hero-title { font-size: 56px; } }
.hero-title .accent { color: var(--primary); }
.hero-desc {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 28px;
}
@media (min-width: 768px) { .hero-desc { font-size: 18px; } }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero visual */
.hero-visual {
  position: relative;
  display: block;
  margin-top: 8px;
}
@media (min-width: 1024px) { .hero-visual { margin-top: 0; } }

/* Hero trust */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}
.hero-trust-stars {
  display: inline-flex;
  flex-direction: row;
  gap: 2px;
  color: #F59E0B;
  line-height: 1;
}
.hero-trust-stars svg { display: inline-block; vertical-align: middle; }
.hero-trust-text {
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* ---------- 3. STATS BAR ---------- */
.stats-bar {
  background: var(--dark);
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}
.stats-bar-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (min-width: 768px) {
  .stats-bar-inner { grid-template-columns: repeat(4, 1fr); padding: 0 24px; }
}
.stat-bar-item { text-align: center; }
.stat-bar-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark-foreground);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
}
@media (min-width: 768px) { .stat-bar-value { font-size: 36px; } }
.stat-bar-label {
  font-size: 13px;
  color: var(--dark-muted);
  margin-top: 4px;
}

/* ---------- 4. TOOLS GRID ---------- */
.tools-section { padding: 64px 0; }
.tools-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tools-grid { grid-template-columns: repeat(3, 1fr); } }
.tool-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: border-color var(--t-smooth), box-shadow var(--t-smooth), transform var(--t-smooth);
  position: relative;
}
.tool-card:hover {
  border-color: var(--primary);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}
.tool-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.tool-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.tool-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}
.tool-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 16px;
  transition: gap var(--t-fast);
}
.tool-card:hover .tool-card-arrow { gap: 8px; }
.tool-card-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: var(--primary-soft);
  color: var(--primary);
}

/* ---------- 5. HOW IT WORKS ---------- */
.how-section {
  background: var(--bg-alt);
  padding: 64px 0;
}
.how-steps {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .how-steps { grid-template-columns: repeat(3, 1fr); } }
.how-step { text-align: center; }
.how-step-num {
  width: 48px;
  height: 48px;
  border-radius: var(--r-full);
  background: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  margin: 0 auto 16px;
  box-shadow: var(--sh-primary);
}
.how-step-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.how-step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- 6. CTA SECTION ---------- */
.cta-section { padding: 64px 0; }
.cta-box {
  background: var(--dark);
  border-radius: var(--r-xl);
  padding: 48px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .cta-box { padding: 64px 48px; } }
.cta-box::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(20, 87, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark-foreground);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  position: relative;
}
@media (min-width: 768px) { .cta-title { font-size: 36px; } }
.cta-desc {
  font-size: 16px;
  color: var(--dark-muted);
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.6;
  position: relative;
}

/* ---------- 7. PUBLIC FOOTER ---------- */
.public-footer {
  background: var(--dark);
  padding: 48px 0 24px;
}
.public-footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 768px) { .public-footer-inner { padding: 0 24px; } }
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  margin-bottom: 32px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand-desc {
  font-size: 14px;
  color: var(--dark-muted);
  line-height: 1.6;
  margin-top: 12px;
  max-width: 320px;
}
.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-foreground);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.footer-link {
  display: block;
  font-size: 14px;
  color: var(--dark-muted);
  text-decoration: none;
  padding: 4px 0;
  transition: color var(--t-fast);
}
.footer-link:hover { color: var(--dark-foreground); }
.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: 13px;
  color: var(--dark-muted);
}

/* ---------- 8. SECTION HEADER ---------- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
@media (min-width: 768px) { .section-title { font-size: 36px; } }
.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- 9. TESTIMONIALS ---------- */
.testimonials-section {
  padding: 64px 0;
  background: var(--surface);
}
.testimonials-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial-quote { color: #F59E0B; margin-bottom: 4px; }
.testimonial-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  flex: 1;
  margin: 0;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-name { font-size: 14px; font-weight: 600; color: var(--text); margin: 0; }
.testimonial-role { font-size: 12px; color: var(--text-tertiary); margin: 2px 0 0; }

/* ---------- 10. FAQ ---------- */
.faq-section {
  padding: 64px 0;
  background: var(--bg-alt);
}
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-fast);
}
.faq-item[open] { border-color: var(--primary); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-icon { flex-shrink: 0; color: var(--primary); transition: transform var(--t-fast); }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-a { padding: 0 24px 20px; }
.faq-a p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* ---------- 11. FEATURES SECTION ---------- */
.features-section { padding: 64px 0; }
.features-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon.primary { background: var(--primary-soft); color: var(--primary); }
.feature-icon.success { background: var(--success-soft); color: var(--success-foreground); }
.feature-icon.warning { background: var(--warning-soft); color: var(--warning-foreground); }
.feature-title { font-size: 16px; font-weight: 600; margin: 0 0 4px; color: var(--text); }
.feature-desc { font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.5; }

/* ---------- 12. AUTH PAGES ---------- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  padding: 40px 32px;
}
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  text-decoration: none;
}
.auth-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.auth-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 28px;
}
.auth-tabs {
  display: flex;
  background: var(--bg-alt);
  border-radius: var(--r-md);
  padding: 4px;
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  padding: 9px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
  border: none;
  background: transparent;
}
.auth-tab.active { background: var(--surface); color: var(--text); box-shadow: var(--sh-xs); }
.auth-social { display: flex; gap: 10px; margin-bottom: 20px; }
.auth-social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background var(--t-fast);
}
.auth-social-btn:hover { background: var(--surface-hover); }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 12px;
  color: var(--text-tertiary);
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-footer-link { text-align: center; font-size: 14px; color: var(--text-secondary); margin-top: 20px; }
.auth-footer-link a { color: var(--primary); font-weight: 500; text-decoration: none; }
.auth-footer-link a:hover { text-decoration: underline; }

/* ---------- 13. ANIMATIONS ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.6s ease-out both; }
.slide-up { animation: fadeInUp 0.8s ease-out 0.1s both; }

@media (prefers-reduced-motion: reduce) {
  .fade-in, .slide-up { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
