/* Next-generation marketing homepage */

body.md-home {
  background: #07111f !important;
}

body.md-home #mainContent,
body.md-home .mainContent {
  margin-top: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  min-height: 0 !important;
  background: #f4f7fb;
}

body.md-home #mainNav,
body.md-home #mainNav.navbar-inverse,
body.md-home #mainNav > .container {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border-image: none !important;
  border-bottom-color: transparent !important;
}

body.md-home #mainNav.md-elevated,
body.md-home #mainNav.md-elevated > .container {
  background: rgba(7, 17, 31, 0.92) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28) !important;
  backdrop-filter: blur(16px);
}

.md-landing {
  color: #142033;
  overflow: hidden;
}

.md-hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 0 80px;
  color: #f8fafc;
  background:
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.45), transparent 32%),
    radial-gradient(circle at 85% 10%, rgba(45, 212, 191, 0.22), transparent 28%),
    radial-gradient(circle at 70% 80%, rgba(59, 130, 246, 0.25), transparent 30%),
    linear-gradient(180deg, #07111f 0%, #0c2344 55%, #102a56 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.md-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 75%);
  animation: md-grid-drift 28s linear infinite;
  pointer-events: none;
}

@keyframes md-grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 64px, 64px 0; }
}

.md-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}

.md-orb-a {
  width: 280px;
  height: 280px;
  left: -40px;
  top: 18%;
  background: rgba(59, 130, 246, 0.45);
  animation: md-float 9s ease-in-out infinite;
}

.md-orb-b {
  width: 180px;
  height: 180px;
  right: 8%;
  top: 22%;
  background: rgba(45, 212, 191, 0.35);
  animation: md-float 11s ease-in-out infinite reverse;
}

.md-orb-c {
  width: 220px;
  height: 220px;
  right: 18%;
  bottom: 8%;
  background: rgba(99, 102, 241, 0.28);
  animation: md-float 13s ease-in-out infinite;
}

@keyframes md-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-22px) scale(1.05); }
}

.md-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
}

.md-logo {
  width: min(420px, 78vw);
  height: auto;
  margin: 0 auto 18px;
  display: block;
  animation: md-logo-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
}

@keyframes md-logo-in {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.md-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 18px;
}

.md-kicker i {
  color: #5eead4;
}

.md-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.035em;
  color: #fff !important;
  border: 0 !important;
}

.md-hero h1 span {
  display: block;
  background: linear-gradient(90deg, #93c5fd, #5eead4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.md-lead {
  max-width: 680px;
  margin: 0 auto 28px;
  font-size: 18px;
  line-height: 1.6;
  color: #dbe7f5;
}

.md-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.md-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 500;
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.md-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.md-btn-primary {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff !important;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.md-btn-primary:hover {
  color: #fff !important;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.5);
}

.md-btn-ghost {
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.md-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff !important;
}

.md-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}

.md-metric {
  padding: 16px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.md-metric strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}

.md-metric span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #b6c6da;
}

.md-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 2;
}

.md-scroll i {
  display: block;
  margin-top: 6px;
  animation: md-bob 1.4s ease-in-out infinite;
}

@keyframes md-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.md-section {
  padding: 84px 0;
  position: relative;
}

.md-section h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.03em;
  color: #102a56;
  font-weight: 500;
}

.md-section .md-intro {
  max-width: 640px;
  color: #5c6b80;
  font-size: 17px;
  margin-bottom: 32px;
}

.md-section-head {
  text-align: center;
  margin-bottom: 8px;
}

.md-section-head .md-intro {
  margin-left: auto;
  margin-right: auto;
}

.md-band {
  background: #fff;
}

.md-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.md-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px 22px 22px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
  border: 1px solid #e6edf5;
  height: 100%;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.md-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.12);
}

.md-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8f0fe;
  color: #1d4ed8;
  font-size: 20px;
  margin-bottom: 14px;
}

.md-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
  color: #142033;
}

.md-card p {
  margin: 0;
  color: #5c6b80;
  line-height: 1.55;
  font-size: 15px;
}

.md-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}

.md-step {
  position: relative;
  padding: 28px 22px 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid #e6edf5;
  min-height: 210px;
}

.md-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: #1d4ed8;
  margin-bottom: 10px;
}

.md-step h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 500;
}

.md-step p {
  margin: 0;
  color: #5c6b80;
}

.md-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.md-panel {
  border-radius: 28px;
  padding: 36px 32px;
  color: #f8fafc;
  background:
    radial-gradient(circle at 90% 10%, rgba(45, 212, 191, 0.35), transparent 30%),
    linear-gradient(145deg, #0b1f3a, #1d4ed8);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.25);
  min-height: 320px;
}

.md-panel h2,
.md-panel p {
  color: #fff;
}

.md-panel p {
  color: #dbe7f5;
  font-size: 16px;
  line-height: 1.6;
}

.md-checklist {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.md-checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0;
  color: #e8eef8;
}

.md-checklist i {
  color: #5eead4;
  margin-top: 3px;
}

.md-apps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.md-app-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  padding: 24px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #e6edf5;
  text-decoration: none !important;
  color: inherit !important;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.md-app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.12);
  color: inherit !important;
}

.md-app-card img {
  width: 180px;
  height: auto;
  margin-bottom: 16px;
}

.md-app-card span {
  color: #1d4ed8;
  font-weight: 500;
}

.md-cta {
  text-align: center;
  padding: 28px 20px 8px;
}

.md-cta h2 {
  color: #102a56;
}

.md-reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: md-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: calc(var(--d, 0) * 90ms);
}

.md-reveal.md-in {
  animation: md-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes md-rise {
  to { opacity: 1; transform: none; }
}

@media (max-width: 991px) {
  .md-card-grid,
  .md-steps,
  .md-split,
  .md-apps,
  .md-metrics {
    grid-template-columns: 1fr;
  }

  .md-hero {
    padding-top: 108px;
    min-height: auto;
  }

  .md-scroll {
    position: static;
    transform: none;
    display: block;
    width: 100%;
    margin-top: 28px;
    text-align: center;
  }
}

.md-downloads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.md-download {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e6edf5;
  color: #142033 !important;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
  font-weight: 500;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.md-download i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fee2e2;
  color: #b91c1c;
}

.md-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.12);
  color: #142033 !important;
}

.md-compare {
  width: 100%;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e6edf5;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}

.md-compare th,
.md-compare td {
  padding: 14px 16px !important;
  vertical-align: middle !important;
}

.md-compare thead th {
  background: #f4f7fb;
  color: #102a56;
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  .md-grid,
  .md-orb,
  .md-logo,
  .md-reveal,
  .md-scroll i {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
