/* ============================================
   Landing Page — Modern SaaS Redesign
   ============================================ */

/* Font Override */
.landing-page,
.navbar {
  font-family: 'Inter', var(--font-family);
}

/* ============================================
   Scroll Reveal
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Gradient Text
   ============================================ */

.gradient-text {
  background: linear-gradient(135deg, var(--md-sys-color-primary) 0%, rgb(91 91 126) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================
   Buttons
   ============================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background-color: var(--primary);
  color: var(--on-primary);
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: var(--md-sys-color-on-primary-container);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(12, 103, 128, 0.3);
}

[data-theme="dark"] .btn-primary:hover {
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  box-shadow: 0 8px 24px rgba(137, 208, 237, 0.2);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary.btn-inverted {
  background-color: white;
  color: var(--md-sys-color-primary);
  border-color: white;
}

.btn-primary.btn-inverted:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--md-sys-color-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background-color: transparent;
  color: var(--on-background);
  border: 1.5px solid var(--outline-variant);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-ghost:hover {
  border-color: var(--primary);
  background-color: var(--primary-container);
  color: var(--on-primary-container);
  transform: translateY(-2px);
}

.btn-ghost.btn-ghost-light {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost.btn-ghost-light:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  color: white;
  transform: translateY(-2px);
}

/* ============================================
   Floating Navbar
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, -webkit-backdrop-filter 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.is-scrolled {
  background-color: rgba(245, 250, 253, 0.85);
  border-bottom-color: var(--outline-variant);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="dark"] .navbar.is-scrolled {
  background-color: rgba(15, 20, 23, 0.85);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  gap: 24px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-logo-img {
  width: 28px;
  height: 28px;
}

.navbar-logo-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--on-surface);
  letter-spacing: -0.01em;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface-variant);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.navbar-link:hover {
  color: var(--on-surface);
  background-color: var(--surface-variant);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.navbar-signin {
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface-variant);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.2s ease;
}

.navbar-signin:hover {
  color: var(--on-surface);
}

.navbar-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background-color: var(--primary);
  color: var(--on-primary);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.navbar-cta:hover {
  background-color: var(--md-sys-color-on-primary-container);
  transform: translateY(-1px);
}

[data-theme="dark"] .navbar-cta:hover {
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

/* Theme Toggle — now inside navbar */
.theme-toggle {
  background: none;
  border: 1px solid var(--outline-variant);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--on-surface-variant);
  transition: background-color 0.2s ease, border-color 0.2s ease;
  padding: 0;
}

.theme-toggle:hover {
  background-color: var(--surface-variant);
  border-color: var(--outline);
}

/* ============================================
   Landing Page Container
   ============================================ */

.landing-page {
  max-width: 100%;
  overflow-x: hidden;
  padding-top: 64px;
}

/* ============================================
   Section Shared Styles
   ============================================ */

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

.section-heading {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--on-surface);
  text-align: center;
  max-width: 640px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
  position: relative;
  overflow: hidden;
}

/* Spotlight mesh background */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 10% 15%, rgba(12, 103, 128, 0.13) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 92% 8%, rgba(91, 91, 126, 0.1) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .hero-section::before {
  background:
    radial-gradient(ellipse 65% 55% at 10% 15%, rgba(137, 208, 237, 0.09) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 92% 8%, rgba(196, 195, 235, 0.07) 0%, transparent 60%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 24px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: var(--primary-container);
  color: var(--on-primary-container);
  border: 1px solid rgba(12, 103, 128, 0.2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

[data-theme="dark"] .hero-badge {
  border-color: rgba(137, 208, 237, 0.2);
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  background-color: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.75); }
}

.hero-headline {
  font-size: clamp(42px, 8vw, 80px);
  font-weight: 900;
  color: var(--on-surface);
  line-height: 1.06;
  letter-spacing: -0.045em;
  max-width: 760px;
  margin: 0;
}

.hero-subheadline {
  font-size: 18px;
  color: var(--on-surface-variant);
  max-width: 560px;
  line-height: 1.65;
  margin: 0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 4px;
}

.hero-meta {
  font-size: 13px;
  color: var(--on-surface-variant);
  opacity: 0.7;
}

.hero-visual {
  margin-top: 24px;
  width: 100%;
  max-width: 480px;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   Features Bento Grid
   ============================================ */

.features-section {
  background-color: var(--surface-variant);
  transition: background-color 0.3s ease;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  max-width: 1100px;
  margin-top: 8px;
}

@media (min-width: 640px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .bento-wide {
    grid-column: span 2;
  }
}

.bento-card {
  background-color: var(--background);
  border: 1px solid var(--outline-variant);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.bento-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

[data-theme="dark"] .bento-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.bento-accent {
  background: linear-gradient(135deg, var(--primary-container) 0%, var(--md-sys-color-tertiary-container) 100%);
  border-color: rgba(12, 103, 128, 0.2);
}

[data-theme="dark"] .bento-accent {
  border-color: rgba(137, 208, 237, 0.15);
}

.bento-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-container);
  border-radius: 12px;
  flex-shrink: 0;
}

.bento-accent .bento-card-icon {
  background-color: rgba(255, 255, 255, 0.45);
}

[data-theme="dark"] .bento-accent .bento-card-icon {
  background-color: rgba(0, 0, 0, 0.18);
}

.bento-card-icon .material-icons {
  font-size: 24px;
  color: var(--primary);
}

.bento-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--on-surface);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.bento-card-description {
  font-size: 14px;
  color: var(--on-surface-variant);
  line-height: 1.65;
}

/* ============================================
   How It Works
   ============================================ */

.steps-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 900px;
  margin-top: 8px;
}

.step-connector {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--outline-variant), transparent);
  margin: 0 auto;
  border-radius: 1px;
}

@media (min-width: 768px) {
  .steps-grid {
    flex-direction: row;
    align-items: flex-start;
  }

  .step {
    flex: 1;
  }

  .step-connector {
    width: 64px;
    height: 2px;
    margin: 0;
    margin-top: 54px;
    flex-shrink: 0;
    background: linear-gradient(to right, var(--outline-variant), transparent);
  }
}

.step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px;
  background-color: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: 20px;
  transition: background-color 0.3s ease;
}

.step-number {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--outline-variant);
}

.step-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-container);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon .material-icons {
  font-size: 26px;
  color: var(--primary);
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--on-surface);
  letter-spacing: -0.02em;
}

.step-description {
  font-size: 14px;
  color: var(--on-surface-variant);
  line-height: 1.65;
}

.how-visual {
  margin-top: 32px;
  max-width: 360px;
  width: 100%;
}

.how-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   Testimonials
   ============================================ */

.testimonials-section {
  background-color: var(--surface-variant);
  transition: background-color 0.3s ease;
}

.testimonials-grid {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 580px;
  margin-top: 8px;
}

.testimonial-card {
  background-color: var(--background);
  border: 1px solid var(--outline-variant);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  transition: background-color 0.3s ease, box-shadow 0.25s ease;
}

.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.testimonial-stars {
  font-size: 18px;
  color: #f59e0b;
  letter-spacing: 2px;
}

.testimonial-quote {
  font-size: 16px;
  color: var(--on-surface);
  line-height: 1.7;
  font-style: italic;
  border: none;
  margin: 0;
  padding: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, rgb(91 91 126) 100%);
  color: white;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  user-select: none;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--on-surface);
}

.testimonial-role {
  font-size: 13px;
  color: var(--on-surface-variant);
  margin-top: 1px;
}

/* ============================================
   Comparison Table
   ============================================ */

.table-wrapper {
  overflow-x: auto;
  width: 100%;
  max-width: 720px;
  border-radius: 16px;
  border: 1px solid var(--outline-variant);
  margin-top: 8px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--surface);
  font-size: 15px;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--outline-variant);
}

.comparison-table th {
  background-color: var(--surface-variant);
  color: var(--on-surface);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.comparison-table th.col-prioritylens {
  background-color: var(--primary-container);
  color: var(--on-primary-container);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:nth-child(even) td {
  background-color: var(--surface-variant);
}

.comparison-table .check {
  color: #10b981;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.comparison-table .cross {
  color: var(--md-sys-color-error);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

/* ============================================
   CTA Banner
   ============================================ */

.cta-banner-section {
  padding: 0 24px;
  margin: 80px auto;
  max-width: 1200px;
}

.cta-banner-inner {
  background: linear-gradient(135deg, var(--md-sys-color-primary) 0%, rgb(68 68 101) 100%);
  border-radius: 28px;
  padding: 72px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-banner-heading {
  font-size: clamp(27px, 4vw, 44px);
  font-weight: 900;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 600px;
}

.cta-banner-subtext {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 480px;
  line-height: 1.6;
}

.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 4px;
}

.cta-banner-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Footer
   ============================================ */

.footer-section {
  background-color: var(--surface-variant);
  border-top: 1px solid var(--outline-variant);
  padding: 40px 24px;
  transition: background-color 0.3s ease;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--on-surface);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: center;
}

.footer-links a {
  font-size: 13px;
  color: var(--on-surface-variant);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-contact a {
  font-size: 13px;
  color: var(--on-surface-variant);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: var(--primary);
}

/* ============================================
   Scroll Indicator
   ============================================ */

.scroll-indicator {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.7;
  pointer-events: none;
  z-index: 100;
  font-size: 48px;
  color: var(--on-surface-variant);
  animation: bounce 2s ease-in-out infinite;
  transition: opacity 0.3s ease;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

.scroll-indicator.hidden {
  opacity: 0;
}

/* ============================================
   Responsive — Mobile (<640px)
   ============================================ */

@media (max-width: 639px) {
  .section-inner {
    padding: 60px 20px;
  }

  .hero-inner {
    padding: 64px 20px 52px;
  }

  .hero-subheadline {
    font-size: 16px;
  }

  .navbar-links {
    display: none;
  }

  .navbar-signin {
    display: none;
  }

  .cta-banner-section {
    padding: 0 16px;
    margin: 60px auto;
  }

  .cta-banner-inner {
    padding: 48px 24px;
    border-radius: 20px;
  }

  .step {
    padding: 20px;
  }

  .step-connector {
    height: 28px;
  }
}

/* ============================================
   Responsive — Tablet (640–767px)
   ============================================ */

@media (min-width: 640px) and (max-width: 767px) {
  .step-connector {
    display: none;
  }

  .steps-grid {
    gap: 16px;
  }
}

/* ============================================
   Responsive — Desktop (≥768px)
   ============================================ */

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
  }
}

