/* ── Landing Page Styles ── */

/* Value Proposition Section */
.landing-value-section {
  background: rgba(63, 81, 181, 0.035);
  border-radius: 16px;
  padding: 48px 32px 40px;
  margin: 0 -16px 48px -16px;
}

/* Hero Section */
.landing-hero {
  background: linear-gradient(135deg, #eef2ff 0%, #fef2f2 50%, #ecfdf5 100%); /* Soft Pastel Gradient */
  color: #1e293b;
  text-align: center;
  padding: 80px 32px 64px;
  border-radius: 24px;
  margin: -20px -16px 48px -16px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.landing-hero::before {
  content: '';
  position: absolute;
  top: -25%;
  left: -25%;
  width: 150%;
  height: 150%;
  background: 
    radial-gradient(circle at 25% 25%, rgba(129, 140, 248, 0.55) 0%, rgba(129, 140, 248, 0.2) 35%, transparent 70%),
    radial-gradient(circle at 75% 75%, rgba(244, 114, 182, 0.5) 0%, rgba(244, 114, 182, 0.15) 30%, transparent 65%);
  pointer-events: none;
  animation: elegantGlow 12s ease-in-out infinite alternate;
}

@keyframes elegantGlow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-10%, 8%) scale(1.08);
  }
  100% {
    transform: translate(8%, -10%) scale(1.15);
  }
}

.landing-hero h1 {
  font-size: 2.6em;
  font-weight: 800;
  margin: 0 0 12px 0;
  color: #1e293b !important;
  border-bottom: none;
  letter-spacing: -0.02em;
  line-height: 1.15;
  position: relative;
}

.landing-hero .hero-subtitle {
  font-size: 1.15em;
  margin: 0 auto 32px auto;
  max-width: 640px;
  line-height: 1.7;
  color: #475569 !important;
  font-weight: 400;
  position: relative;
}

.landing-hero .hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #1a237e !important;
  font-weight: 700;
  font-size: 1.05em;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.12);
}

.landing-hero .hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.22);
}

/* Stats Ribbon */
.stats-ribbon {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  flex-wrap: wrap;
}

.stats-ribbon .stat {
  text-align: center;
}

.stats-ribbon .stat-value {
  font-size: 1.8em;
  font-weight: 800;
  display: block;
  line-height: 1.2;
  color: #1e293b !important;
}

.stats-ribbon .stat-label {
  font-size: 0.82em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b !important;
  margin-top: 4px;
  display: block;
}

/* Section Headings */
.landing-section-title {
  text-align: center;
  font-size: 1.8em;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--md-default-fg-color);
}

.landing-section-subtitle {
  text-align: center;
  font-size: 1.05em;
  color: var(--md-default-fg-color--light);
  margin: 0 auto 36px auto;
  max-width: 600px;
  line-height: 1.6;
}

/* CTA Block */
.landing-cta-block {
  text-align: center;
  padding: 48px 24px;
  margin: 0 -16px 40px -16px;
  background: rgba(63, 81, 181, 0.035);
  border-radius: 16px;
  border: 1px solid rgba(63, 81, 181, 0.1);
}

.landing-cta-block h2 {
  font-size: 1.6em;
  font-weight: 700;
  margin: 0 0 8px 0;
  border-bottom: none;
}

.landing-cta-block p {
  font-size: 1.05em;
  color: var(--md-default-fg-color--light);
  margin: 0 auto 28px auto;
  max-width: 540px;
  line-height: 1.6;
}

.landing-cta-block .md-button {
  font-weight: 700;
  padding: 12px 28px;
  font-size: 1.02em;
}

/* About Card */
.landing-about {
  background: rgba(63, 81, 181, 0.035);
  border: 1px solid rgba(63, 81, 181, 0.1);
  border-radius: 16px;
  padding: 28px 32px;
  margin: 0 0 24px 0;
  font-size: 0.92em;
  line-height: 1.7;
  color: var(--md-default-fg-color--light);
}

.landing-about strong {
  color: var(--md-default-fg-color);
}

.landing-about .about-title {
  font-size: 1.1em;
  font-weight: 600;
  color: var(--md-default-fg-color);
  margin: 0 0 8px 0;
}

.landing-about blockquote {
  border-left: 3px solid var(--md-primary-fg-color);
  margin: 16px 0 0 0;
  padding: 8px 16px;
  font-size: 0.95em;
  color: var(--md-default-fg-color--light);
}

/* Responsive */
@media (max-width: 768px) {
  .landing-hero {
    padding: 48px 20px 40px;
  }
  .landing-hero h1 {
    font-size: 1.8em;
  }
  .stats-ribbon {
    gap: 24px;
  }
  .stats-ribbon .stat-value {
    font-size: 1.4em;
  }
}

/* Clickable Cards (Stretch Link Pattern) */
.clickable-cards .grid.cards li {
  position: relative;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
}

.clickable-cards .grid.cards li:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(63, 81, 181, 0.12);
  border-color: rgba(63, 81, 181, 0.3) !important;
  cursor: pointer;
}

.clickable-cards .grid.cards li a {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.clickable-cards .grid.cards li a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

/* Global Navigation Logo Styling Overrides */
.md-logo img,
.md-nav__button.md-logo img,
.md-nav__title .md-logo img,
.md-sidebar .md-logo img {
  border-radius: 50% !important;
  border: 2px solid #ffffff !important;
  background-color: #ffffff !important;
  box-sizing: border-box !important;
  width: 36px !important;
  height: 36px !important;
  object-fit: contain !important;
  padding: 1px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18) !important;
  transition: transform 0.2s ease-in-out !important;
}

.md-logo img:hover {
  transform: scale(1.08) !important;
}

.md-header__button.md-logo {
  padding: 2px !important;
}

/* Navigation bar — distinct color and larger font */
.md-tabs {
  background-color: #303f9f !important; /* Darker indigo, distinct from header #3f51b5 */
  font-size: 0.85rem !important;
}

.md-tabs__link {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

/* Force dark header background color in dark mode */
[data-md-color-scheme="slate"] .md-header {
  background-color: #0f172a !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

[data-md-color-scheme="slate"] .md-tabs {
  background-color: #1e293b !important;
}

/* ── Header & Navigation Tabs Redesign ── */

/* Ensure the title bar (header) is sticky */
.md-header {
  position: -webkit-sticky !important; /* Safari fallback */
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* Smooth scrolling for sidebar/drawers in iOS Safari */
.md-sidebar__scrollwrap {
  -webkit-overflow-scrolling: touch;
}

/* Prevent title transition: keep first topic (site name) visible, hide second topic */
.md-header__topic:first-child {
  position: relative !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
}

.md-header__topic:last-child {
  display: none !important;
}

.md-header__title--active .md-header__topic {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
  transition: none !important;
  z-index: 0 !important;
}

.md-header__title--active .md-header__topic + .md-header__topic {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: none !important;
  transition: none !important;
  z-index: -1 !important;
}

/* Format the header tabs for desktop */
@media screen and (min-width: 76.25em) {
  .md-header__title {
    flex-grow: 0 !important;
    margin-right: 32px !important;
  }
  
  .md-header__tabs {
    display: block !important;
    flex-grow: 1 !important;
    align-self: center !important;
  }
  
  .md-header__tabs .md-tabs {
    background-color: transparent !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    display: block !important;
  }
  
  .md-header__tabs .md-tabs .md-grid {
    margin: 0 !important;
    max-width: none !important;
    padding: 0 !important;
  }
  
  .md-header__tabs .md-tabs__list {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .md-header__tabs .md-tabs__item {
    height: auto !important;
    line-height: normal !important;
    margin: 0 !important;
  }
  
  .md-header__tabs .md-tabs__link {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    transition: color 0.2s ease, border-bottom-color 0.2s ease !important;
    padding: 6px 4px !important;
    margin-top: 0 !important;
    border-bottom: 2px solid transparent !important;
    display: inline-block !important;
  }
  
  .md-header__tabs .md-tabs__link:hover {
    color: #ffffff !important;
  }
  
  .md-header__tabs .md-tabs__item--active .md-tabs__link {
    color: #ffffff !important;
    border-bottom-color: #ffffff !important;
  }
}

/* Hide header tabs on mobile/tablet viewports (where hamburger menu is used) */
@media screen and (max-width: 76.249em) {
  .md-header__tabs {
    display: none !important;
  }
}

/* ── Custom Footer ── */
.md-footer {
  background-color: #1a237e !important;
  color: rgba(255, 255, 255, 0.7) !important;
  padding: 40px 0 24px !important;
}

[data-md-color-scheme="slate"] .md-footer {
  background-color: #0f172a !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.custom-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  width: 100%;
  margin-bottom: 24px;
}

@media screen and (max-width: 76.249em) {
  .custom-footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.custom-footer__col h3 {
  color: #ffffff !important;
  font-size: 0.9em !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  margin: 0 0 16px 0 !important;
  border: none !important;
  padding: 0 !important;
}

.custom-footer__about p {
  font-size: 0.85em;
  line-height: 1.6;
  margin: 0;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.7) !important;
}

.custom-footer__col ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.custom-footer__col ul li {
  margin-bottom: 10px !important;
}

.custom-footer__col ul li a {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 0.85em !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
  font-weight: normal !important;
}

.custom-footer__col ul li a:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}

.custom-footer__divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  margin: 20px 0 !important;
  width: 100%;
}

[data-md-color-scheme="slate"] .custom-footer__divider {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.custom-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  font-size: 0.75em;
}

@media screen and (max-width: 48em) {
  .custom-footer__bottom {
    flex-direction: column;
    align-items: stretch;
  }
}

.custom-footer__copyright {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  white-space: nowrap;
}

.custom-footer__disclaimer {
  color: rgba(255, 255, 255, 0.5) !important;
  line-height: 1.5;
  flex: 1;
  max-width: 720px;
}

/* ── Custom Cards Styling ── */
.md-content .grid.cards > ul > li {
  border: 1px solid rgba(0, 0, 0, 0.04) !important;
  border-radius: 8px !important;
  padding: 16px 20px !important;
  margin: 0 !important;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease !important;
}

/* Card 1: Lavender/Indigo */
.md-content .grid.cards > ul > li:nth-child(6n+1) {
  background-color: rgba(99, 102, 241, 0.045) !important;
  border-left: 4px solid #6366f1 !important;
}
.md-content .grid.cards > ul > li:nth-child(6n+1):hover {
  background-color: rgba(99, 102, 241, 0.08) !important;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12) !important;
  transform: translateY(-4px) !important;
}

/* Card 2: Teal/Sage */
.md-content .grid.cards > ul > li:nth-child(6n+2) {
  background-color: rgba(16, 185, 129, 0.04) !important;
  border-left: 4px solid #10b981 !important;
}
.md-content .grid.cards > ul > li:nth-child(6n+2):hover {
  background-color: rgba(16, 185, 129, 0.07) !important;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.1) !important;
  transform: translateY(-4px) !important;
}

/* Card 3: Rose/Pink */
.md-content .grid.cards > ul > li:nth-child(6n+3) {
  background-color: rgba(236, 72, 153, 0.04) !important;
  border-left: 4px solid #ec4899 !important;
}
.md-content .grid.cards > ul > li:nth-child(6n+3):hover {
  background-color: rgba(236, 72, 153, 0.07) !important;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.1) !important;
  transform: translateY(-4px) !important;
}

/* Card 4: Sky/Blue */
.md-content .grid.cards > ul > li:nth-child(6n+4) {
  background-color: rgba(59, 130, 246, 0.04) !important;
  border-left: 4px solid #3b82f6 !important;
}
.md-content .grid.cards > ul > li:nth-child(6n+4):hover {
  background-color: rgba(59, 130, 246, 0.07) !important;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.1) !important;
  transform: translateY(-4px) !important;
}

/* Card 5: Violet/Purple */
.md-content .grid.cards > ul > li:nth-child(6n+5) {
  background-color: rgba(139, 92, 246, 0.04) !important;
  border-left: 4px solid #8b5cf6 !important;
}
.md-content .grid.cards > ul > li:nth-child(6n+5):hover {
  background-color: rgba(139, 92, 246, 0.07) !important;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.1) !important;
  transform: translateY(-4px) !important;
}

/* Card 6: Amber/Orange */
.md-content .grid.cards > ul > li:nth-child(6n+6) {
  background-color: rgba(245, 158, 11, 0.04) !important;
  border-left: 4px solid #f59e0b !important;
}
.md-content .grid.cards > ul > li:nth-child(6n+6):hover {
  background-color: rgba(245, 158, 11, 0.07) !important;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.1) !important;
  transform: translateY(-4px) !important;
}

/* ── Dark Mode Pastel Cards ── */
[data-md-color-scheme="slate"] .md-content .grid.cards > ul > li {
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

[data-md-color-scheme="slate"] .md-content .grid.cards > ul > li:nth-child(6n+1) {
  background-color: rgba(99, 102, 241, 0.08) !important;
  border-left: 4px solid #818cf8 !important;
}
[data-md-color-scheme="slate"] .md-content .grid.cards > ul > li:nth-child(6n+1):hover {
  background-color: rgba(99, 102, 241, 0.14) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

[data-md-color-scheme="slate"] .md-content .grid.cards > ul > li:nth-child(6n+2) {
  background-color: rgba(52, 211, 153, 0.07) !important;
  border-left: 4px solid #34d399 !important;
}
[data-md-color-scheme="slate"] .md-content .grid.cards > ul > li:nth-child(6n+2):hover {
  background-color: rgba(52, 211, 153, 0.13) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

[data-md-color-scheme="slate"] .md-content .grid.cards > ul > li:nth-child(6n+3) {
  background-color: rgba(244, 114, 182, 0.07) !important;
  border-left: 4px solid #f472b6 !important;
}
[data-md-color-scheme="slate"] .md-content .grid.cards > ul > li:nth-child(6n+3):hover {
  background-color: rgba(244, 114, 182, 0.13) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

[data-md-color-scheme="slate"] .md-content .grid.cards > ul > li:nth-child(6n+4) {
  background-color: rgba(96, 165, 250, 0.07) !important;
  border-left: 4px solid #60a5fa !important;
}
[data-md-color-scheme="slate"] .md-content .grid.cards > ul > li:nth-child(6n+4):hover {
  background-color: rgba(96, 165, 250, 0.13) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

[data-md-color-scheme="slate"] .md-content .grid.cards > ul > li:nth-child(6n+5) {
  background-color: rgba(167, 139, 250, 0.07) !important;
  border-left: 4px solid #a78bfa !important;
}
[data-md-color-scheme="slate"] .md-content .grid.cards > ul > li:nth-child(6n+5):hover {
  background-color: rgba(167, 139, 250, 0.13) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

[data-md-color-scheme="slate"] .md-content .grid.cards > ul > li:nth-child(6n+6) {
  background-color: rgba(251, 191, 36, 0.07) !important;
  border-left: 4px solid #fbbf24 !important;
}
[data-md-color-scheme="slate"] .md-content .grid.cards > ul > li:nth-child(6n+6):hover {
  background-color: rgba(251, 191, 36, 0.13) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

/* ── Scroll Reveal Animations ── */
.reveal {
  opacity: 0 !important;
  transform: translateY(20px) !important;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.reveal--visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ── Dark Mode Hero Overrides ── */
[data-md-color-scheme="slate"] .landing-hero {
  background: linear-gradient(135deg, #161726 0%, #1a1824 50%, #12181d 100%) !important; /* Dark Muted Pastel Gradient */
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
  color: #ffffff !important;
}

[data-md-color-scheme="slate"] .landing-hero::before {
  background: 
    radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.35) 0%, rgba(99, 102, 241, 0.12) 35%, transparent 70%),
    radial-gradient(circle at 75% 75%, rgba(236, 72, 153, 0.28) 0%, rgba(236, 72, 153, 0.1) 30%, transparent 65%) !important;
}

[data-md-color-scheme="slate"] .landing-hero h1 {
  color: #ffffff !important;
}

[data-md-color-scheme="slate"] .landing-hero .hero-subtitle {
  color: rgba(255, 255, 255, 0.8) !important;
}

[data-md-color-scheme="slate"] .landing-hero .hero-cta {
  background-color: var(--md-primary-fg-color) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

[data-md-color-scheme="slate"] .stats-ribbon {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-md-color-scheme="slate"] .stats-ribbon .stat-value {
  color: #ffffff !important;
}

[data-md-color-scheme="slate"] .stats-ribbon .stat-label {
  color: rgba(255, 255, 255, 0.6) !important;
}
