/* ── 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, #1a237e 0%, #283593 30%, #3949ab 60%, #5c6bc0 100%);
  color: #fff;
  text-align: center;
  padding: 80px 32px 64px;
  border-radius: 0 0 24px 24px;
  margin: -20px -16px 48px -16px;
  position: relative;
  overflow: hidden;
}

.landing-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.06) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.landing-hero h1 {
  font-size: 2.6em;
  font-weight: 800;
  margin: 0 0 12px 0;
  color: #fff !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: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  position: relative;
}

.landing-hero .hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #1a237e;
  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(0, 0, 0, 0.2);
}

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

/* Stats Ribbon */
.stats-ribbon {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  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;
}

.stats-ribbon .stat-label {
  font-size: 0.82em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  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 {
  background-color: #f8f9fa !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-left: 4px solid var(--md-primary-fg-color) !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;
}

.md-content .grid.cards > ul > li:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 24px rgba(63, 81, 181, 0.12) !important;
  background-color: #f1f3f5 !important;
}

[data-md-color-scheme="slate"] .md-content .grid.cards > ul > li {
  background-color: #162032 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-left: 4px solid var(--md-primary-fg-color) !important;
}

[data-md-color-scheme="slate"] .md-content .grid.cards > ul > li:hover {
  background-color: #1b263b !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}
