/* ============================================
   Marshall Digital Tools LLC — Brand Styles
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Instrument+Serif:ital@0;1&display=swap');

/* --- CSS Variables --- */
:root {
  --navy-900: #070e1a;
  --navy-800: #0a1628;
  --navy-700: #0f2038;
  --navy-600: #162d4d;
  --navy-500: #1e3a5f;
  --teal-400: #00d4aa;
  --teal-500: #00b894;
  --teal-600: #009d7e;
  --teal-glow: rgba(0, 212, 170, 0.15);
  --warm-white: #f8f7f4;
  --warm-100: #f0eeea;
  --warm-200: #e2dfd9;
  --warm-300: #c8c4bc;
  --slate-500: #64748b;
  --slate-600: #475569;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--navy-800);
  background: var(--warm-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
}

/* --- Navbar --- */
.mdt-navbar {
  background: var(--navy-900);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
}

.mdt-navbar .navbar-brand {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mdt-navbar .navbar-brand:hover {
  color: #fff;
}

.brand-icon {
  height: 38px;
  width: 38px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
}

.brand-llc {
  font-weight: 400;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.05em;
}

.mdt-navbar .nav-link {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1.15rem !important;
  transition: color 0.3s var(--transition-smooth);
  letter-spacing: 0.01em;
}

.mdt-navbar .nav-link:hover,
.mdt-navbar .nav-link.active {
  color: #fff;
}

.mdt-navbar .nav-link.active {
  position: relative;
}

.mdt-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.15rem;
  right: 1.15rem;
  height: 2px;
  background: var(--teal-400);
  border-radius: 1px;
}

.navbar-toggler {
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.4rem 0.65rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- Hero Section --- */
.hero {
  background: var(--navy-900);
  position: relative;
  overflow: hidden;
  padding: 7rem 0 6rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(0, 212, 170, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.3), transparent);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-400);
  margin-bottom: 1.5rem;
}

.hero-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--teal-400);
  border-radius: 1px;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  color: #fff;
  margin-bottom: 1.5rem;
  max-width: 700px;
}

.hero h1 em {
  font-style: italic;
  color: var(--teal-400);
}

.hero-body {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* --- Buttons --- */
.btn-mdt-primary {
  background: var(--teal-400);
  color: var(--navy-900);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 6px;
  transition: all 0.3s var(--transition-smooth);
  letter-spacing: 0.01em;
}

.btn-mdt-primary:hover {
  background: var(--teal-500);
  color: var(--navy-900);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(0, 212, 170, 0.25);
}

.btn-mdt-outline {
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.8rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  transition: all 0.3s var(--transition-smooth);
}

.btn-mdt-outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.btn-mdt-dark {
  background: var(--navy-800);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 6px;
  transition: all 0.3s var(--transition-smooth);
}

.btn-mdt-dark:hover {
  background: var(--navy-700);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(10, 22, 40, 0.3);
}

/* --- Section Utilities --- */
.section-pad {
  padding: 6rem 0;
}

.section-pad-lg {
  padding: 8rem 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 16px;
  height: 2px;
  background: var(--teal-500);
  border-radius: 1px;
}

.section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy-800);
  margin-bottom: 1rem;
}

.section-subtext {
  font-size: 1.05rem;
  color: var(--slate-500);
  line-height: 1.7;
  max-width: 560px;
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--navy-800);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.stat-item {
  text-align: center;
  padding: 2.5rem 1rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--teal-400);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- Overview / Features --- */
.overview-section {
  background: var(--warm-white);
}

.feature-card {
  padding: 2.5rem;
  border-radius: 10px;
  border: 1px solid var(--warm-200);
  background: #fff;
  transition: all 0.4s var(--transition-smooth);
  height: 100%;
}

.feature-card:hover {
  border-color: var(--teal-400);
  box-shadow: 0 20px 60px rgba(10, 22, 40, 0.06);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--teal-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--teal-500);
  font-size: 1.3rem;
}

.feature-card h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--navy-800);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--slate-500);
  line-height: 1.7;
  margin: 0;
}

/* --- CTA Section --- */
.cta-section {
  background: var(--navy-900);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 300%;
  background: radial-gradient(ellipse at center, rgba(0, 212, 170, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.05rem;
}

/* --- Product Cards --- */
.product-card {
  background: #fff;
  border: 1px solid var(--warm-200);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.4s var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--teal-400);
  box-shadow: 0 20px 60px rgba(10, 22, 40, 0.08);
  transform: translateY(-4px);
}

.product-card-visual {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-card-visual .product-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  position: relative;
  z-index: 1;
}

.product-card-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image:
    linear-gradient(rgba(0,0,0,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.1) 1px, transparent 1px);
  background-size: 24px 24px;
}

.product-visual-1 { background: linear-gradient(135deg, #0f2038 0%, #1e3a5f 100%); }
.product-visual-2 { background: linear-gradient(135deg, #162d4d 0%, #00b894 100%); }
.product-visual-3 { background: linear-gradient(135deg, #1e3a5f 0%, #0a1628 100%); }
.product-visual-4 { background: linear-gradient(135deg, #009d7e 0%, #0f2038 100%); }
.product-visual-5 { background: linear-gradient(135deg, #0a1628 0%, #162d4d 100%); }
.product-visual-6 { background: linear-gradient(135deg, #1e3a5f 0%, #00d4aa 100%); }

.product-icon-1 { background: rgba(0,212,170,0.2); }
.product-icon-2 { background: rgba(255,255,255,0.15); }
.product-icon-3 { background: rgba(0,212,170,0.2); }
.product-icon-4 { background: rgba(255,255,255,0.15); }
.product-icon-5 { background: rgba(0,212,170,0.2); }
.product-icon-6 { background: rgba(255,255,255,0.15); }

.product-card-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-600);
  background: var(--teal-glow);
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  width: fit-content;
}

.product-card-body h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy-800);
  margin-bottom: 0.75rem;
}

.product-card-body p {
  font-size: 0.92rem;
  color: var(--slate-500);
  line-height: 1.7;
  flex: 1;
}

.product-card-body .product-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal-600);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.3s var(--transition-smooth);
  margin-top: 0.5rem;
}

.product-card-body .product-link:hover {
  color: var(--teal-500);
  gap: 0.7rem;
}

/* --- Page Header --- */
.page-header {
  background: var(--navy-900);
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 50%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(0, 212, 170, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.page-header .hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.page-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: #fff;
  margin-bottom: 1rem;
}

.page-header p {
  color: rgba(255,255,255,0.5);
  font-size: 1.1rem;
  max-width: 500px;
}

/* --- Inquiry Form --- */
.inquiry-section {
  background: var(--warm-white);
}

.inquiry-form-card {
  background: #fff;
  border: 1px solid var(--warm-200);
  border-radius: 12px;
  padding: 3rem;
}

.inquiry-form-card .form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.inquiry-form-card .form-control,
.inquiry-form-card .form-select {
  border: 1px solid var(--warm-200);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--navy-800);
  background: var(--warm-white);
  transition: all 0.3s var(--transition-smooth);
}

.inquiry-form-card .form-control::placeholder {
  color: var(--warm-300);
}

.inquiry-form-card .form-control:focus,
.inquiry-form-card .form-select:focus {
  border-color: var(--teal-400);
  box-shadow: 0 0 0 3px var(--teal-glow);
  background: #fff;
  outline: none;
}

.inquiry-form-card textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.inquiry-sidebar h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--navy-800);
  margin-bottom: 1rem;
}

.inquiry-sidebar p {
  font-size: 0.92rem;
  color: var(--slate-500);
  line-height: 1.7;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--teal-glow);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-500);
  flex-shrink: 0;
  font-size: 0.95rem;
}

.contact-detail-text {
  font-size: 0.92rem;
  color: var(--slate-600);
  line-height: 1.6;
}

.contact-detail-text strong {
  display: block;
  color: var(--navy-800);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

/* --- Footer --- */
.mdt-footer {
  background: var(--navy-900);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4rem 0 2rem;
}

.footer-brand {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
  max-width: 300px;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.3s var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--teal-400);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.25);
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* --- Responsive Adjustments --- */
@media (max-width: 991.98px) {
  .hero {
    padding: 5rem 0 4rem;
  }

  .section-pad {
    padding: 4rem 0;
  }

  .section-pad-lg {
    padding: 5rem 0;
  }

  .inquiry-form-card {
    padding: 2rem;
  }
}

@media (max-width: 767.98px) {
  .hero {
    padding: 4rem 0 3rem;
  }

  .stat-item {
    padding: 1.5rem 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .page-header {
    padding: 5rem 0 3rem;
  }

  .inquiry-form-card {
    padding: 1.5rem;
  }
}
