/* ============================================
   business.michaelism.org — Style Sheet
   Dark Tech Company Aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- Custom Properties --- */
:root {
  --bg-color: #0f172a;
  --card-bg: #1e293b;
  --primary-accent: #3b82f6;
  --secondary-accent: #2563eb;
  --text-color: #f8fafc;
  --text-secondary: #94a3b8;
  --border: rgba(59, 130, 246, 0.15);
  --glow: rgba(59, 130, 246, 0.3);
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #60a5fa;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

ul, ol {
  list-style: none;
}

/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.4) 0%, transparent 100%);
}

.text-center {
  text-align: center;
}

.text-accent {
  color: var(--primary-accent);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ============================================
   PAGE NAVIGATION (sub-page links)
   ============================================ */
.business-page-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem 5%;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
  position: relative;
  overflow: hidden;
}
.business-page-nav a {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-accent);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.business-page-nav a:hover {
  color: #fff;
  text-shadow: 0 0 6px rgba(59, 130, 246, 0.4);
}
.business-page-nav a.page-active {
  color: #fff;
  opacity: 1;
}
.business-page-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-accent, #3b82f6), transparent);
  animation: nav-scan 4s linear infinite;
}
@keyframes nav-scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@media (max-width: 600px) {
  .business-page-nav {
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem;
  }
}

/* --- Shared Navigation --- */
.mm-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

.mm-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.mm-logo {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.4rem;
  white-space: nowrap;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-color);
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mm-logo img {
  flex-shrink: 0;
  height: 32px;
  width: auto;
}

.mm-logo:hover {
  color: var(--primary-accent);
}

.mm-links {
  display: flex;
  gap: 0.6rem 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.mm-links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.25rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.mm-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-accent);
  transition: width 0.3s ease;
}

.mm-links a:hover,
.mm-links a.active,
.mm-links a[aria-current="page"] {
  color: var(--text-color);
}

.mm-links a:hover::after,
.mm-links a.active::after,
.mm-links a[aria-current="page"]::after {
  width: 100%;
}

.mm-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: border-color 0.3s ease;
}

.mm-menu-toggle:hover {
  border-color: var(--primary-accent);
}

/* --- Sub-Navigation (Business Pages) --- */
.sub-nav {
  background: rgba(30, 41, 59, 0.6);
  border-bottom: 1px solid var(--border);
}

.sub-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.sub-nav-inner::-webkit-scrollbar {
  display: none;
}

.sub-nav-inner a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.75rem 0;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.sub-nav-inner a:hover,
.sub-nav-inner a.active {
  color: var(--primary-accent);
  border-bottom-color: var(--primary-accent);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 8rem 0 6rem;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(59, 130, 246, 0.12) 1px, transparent 0);
  background-size: 40px 40px;
  animation: gridPulse 8s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 20%;
  right: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.25rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-content h1 span {
  display: block;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--primary-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--card-bg) 0%, #0f172a 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-placeholder {
  text-align: center;
  padding: 2rem;
}

.hero-image-placeholder .placeholder-icon {
  width: 64px;
  height: 64px;
  border: 2px solid var(--border);
  border-radius: 12px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-accent);
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-accent);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
  background: var(--secondary-accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary-accent);
  color: var(--primary-accent);
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-accent), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover {
  border-color: var(--glow);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1);
  transform: translateY(-4px);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--primary-accent);
  border: 1px solid var(--border);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
}

.section-header.text-center p {
  margin: 0 auto;
}

/* --- Hero Images (sub-page single + index gallery) --- */
.page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  z-index: 0;
}
.hero-gallery {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.hero-gallery img.active {
  opacity: 0.15;
}
.hero-img-container {
  margin: 2rem auto 0;
  width: 100%;
  max-width: 1200px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.hero-img-container img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-gallery-visible {
  position: relative;
}
.hero-gallery-visible img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.hero-gallery-visible img.active {
  position: relative;
  opacity: 1;
}

/* --- Page Header --- */
.page-header {
  padding: 6rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(59, 130, 246, 0.08) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: 2.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
}

/* --- Clients Section --- */
.clients-section {
  text-align: center;
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.clients-section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- CTA Section --- */
.cta-section {
  padding: 5rem 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Tabbed Interface --- */
.tabs {
  margin-bottom: 3rem;
}

.tab-buttons {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.tab-buttons::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: var(--text-color);
  border-color: var(--glow);
}

.tab-btn.active {
  background: var(--primary-accent);
  color: #fff;
  border-color: var(--primary-accent);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Technology Badges --- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.tech-category {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border);
  transition: border-color 0.3s ease;
}

.tech-category:hover {
  border-color: var(--glow);
}

.tech-category h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tech-category h3 .cat-icon {
  color: var(--primary-accent);
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-badge {
  padding: 0.4rem 0.9rem;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  cursor: default;
}

.tech-badge:hover {
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary-accent);
  border-color: var(--glow);
  transform: translateY(-1px);
}

/* --- Case Studies --- */
.case-study {
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 2rem;
  transition: border-color 0.4s ease;
}

.case-study:hover {
  border-color: var(--glow);
}

.case-study-header {
  padding: 2rem 2.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.case-study-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
}

.case-study-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.case-study-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.case-study-body {
  padding: 2rem 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.case-study-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-accent);
  margin-bottom: 0.75rem;
}

.case-study-col p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.case-study-footer {
  padding: 1.25rem 2.5rem;
  border-top: 1px solid var(--border);
  background: rgba(59, 130, 246, 0.03);
}

.case-study-footer h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.case-study-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* --- Pricing / Engagement Cards --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.pricing-card {
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--glow);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.12);
}

.pricing-card-top {
  height: 4px;
  background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
}

.pricing-card-header {
  padding: 2rem 2rem 1rem;
}

.pricing-card-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.pricing-card-header .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-accent);
}

.pricing-card-header .price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.pricing-card-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.pricing-card-body {
  padding: 1rem 2rem 2rem;
  flex: 1;
}

.pricing-card-body ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-card-body li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 1.5rem;
  position: relative;
}

.pricing-card-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-accent);
}

.pricing-card-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
}

/* --- Comparison Table --- */
.comparison-table-wrapper {
  overflow-x: auto;
  margin: 3rem 0;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.comparison-table thead {
  background: var(--card-bg);
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.comparison-table th {
  font-weight: 700;
  color: var(--text-color);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-table td {
  color: var(--text-secondary);
}

.comparison-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.04);
}

.comparison-table .check {
  color: var(--primary-accent);
  font-weight: 700;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.form-group label .required {
  color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #475569;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group select option {
  background: var(--card-bg);
  color: var(--text-color);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group .error-msg {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: none;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #ef4444;
}

.form-group.has-error .error-msg {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* --- Contact Sidebar --- */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.75rem;
  border: 1px solid var(--border);
}

.sidebar-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.sidebar-card a,
.sidebar-card p {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  word-break: break-word;
}

.sidebar-card a:hover {
  color: var(--primary-accent);
}

/* --- Methodology Section --- */
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.methodology-step {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.3s ease;
}

.methodology-step:hover {
  border-color: var(--glow);
  transform: translateY(-2px);
}

.methodology-step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-accent);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.methodology-step h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.methodology-step p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* --- Open Source Note --- */
.oss-note {
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
}

.oss-note h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.oss-note p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* --- Service List --- */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-item {
  padding: 1.25rem 1.5rem;
  background: rgba(59, 130, 246, 0.04);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.service-item:hover {
  border-color: var(--glow);
  background: rgba(59, 130, 246, 0.08);
}

.service-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.service-item p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* --- More Coming Soon --- */
.coming-soon {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px dashed var(--border);
  margin-top: 2rem;
}

.coming-soon h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.coming-soon p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- Shared Footer --- */
.mm-footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.mm-footer-links {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.mm-footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  color: var(--text-color);
}

.mm-footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color 0.3s ease;
}

.mm-footer-col a:hover {
  color: var(--primary-accent);
}

.mm-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.mm-footer-bottom p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}

/* --- Form Success --- */
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(59, 130, 246, 0.06);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.form-success h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--primary-accent);
}

.form-success p {
  color: var(--text-secondary);
}

/* ============================================
   Dropdown Navigation
   ============================================ */
.mm-dropdown {
  position: relative;
  display: inline-block;
}
.mm-dropdown-toggle {
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  padding: 0;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.mm-dropdown-toggle:hover,
.mm-dropdown.active .mm-dropdown-toggle {
  opacity: 1;
}
.mm-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 160px;
  z-index: 1001;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.mm-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: 0;
  right: 0;
  height: 0.5rem;
}
.mm-dropdown:hover .mm-dropdown-menu,
.mm-dropdown.open .mm-dropdown-menu {
  display: flex;
  flex-direction: column;
}
.mm-dropdown-menu a {
  padding: 0.5rem 1.2rem;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s, background 0.3s;
}
.mm-dropdown-menu a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
}
.mm-dropdown-menu a.active {
  color: var(--primary-accent);
  font-weight: 600;
  opacity: 1;
}
.mm-dropdown-menu a.active::after {
  width: 100%;
}
.mm-ecosystem-link {
  opacity: 0.6;
  font-size: 0.85em;
}
.mm-ecosystem-link:hover {
  opacity: 1;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-content h1 {
    font-size: 2.75rem;
  }

  .hero-image {
    max-width: 500px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .case-study-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .mm-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .mm-links.open {
    display: flex;
  }

  .mm-menu-toggle {
    display: block;
  }

  .mm-dropdown {
    width: 100%;
  }
  .mm-dropdown-toggle {
    display: none;
  }
  .mm-dropdown-menu {
    display: flex !important;
    flex-direction: column;
    position: static;
    transform: none;
    background: none;
    border: none;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    min-width: auto;
  }
  .mm-dropdown-menu a {
    padding: 0.75rem 1rem;
  }

  .hero {
    padding: 5rem 0 3rem;
    min-height: auto;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .stats-bar .container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .section {
    padding: 3rem 0;
  }

  .page-header {
    padding: 4rem 0 2rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .mm-footer-links {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .tab-buttons {
    gap: 0.35rem;
  }

  .tab-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }

  .sub-nav-inner {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 1.25rem;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .stats-bar .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .card {
    padding: 1.5rem;
  }

  .case-study-header,
  .case-study-body,
  .case-study-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .pricing-card-header,
  .pricing-card-body,
  .pricing-card-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .btn-group {
    flex-direction: column;
  }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .mm-header,
  .sub-nav,
  .mm-footer,
  .mm-menu-toggle,
  .hero::before,
  .hero::after,
  .btn-group,
  .cta-section {
    display: none !important;
  }

  .card, .tech-category, .case-study, .pricing-card, .sidebar-card, .methodology-step {
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: none;
    color: #000;
    break-inside: avoid;
  }

  .card p, .tech-badge, .case-study-col p, .pricing-card-body li, .methodology-step p {
    color: #333;
  }

  .stat-value, .text-accent, .case-study-col h4 {
    color: #2563eb;
  }

  a {
    color: #2563eb;
    text-decoration: underline;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
}
