/* MeshMerchant public site refresh - shared visual layer */
:root {
  --mm-ink: #121b22;
  --mm-muted: #5c6871;
  --mm-line: #dfe5e8;
  --mm-soft: #f3f6f5;
  --mm-canvas: #fbfcfb;
  --mm-blue: #087da8;
  --mm-blue-dark: #075f80;
  --mm-green: #1f8f6a;
  --mm-orange: #d85c2d;
  --mm-violet: #7651a8;
  --mm-radius: 8px;
  --color-background: var(--mm-canvas);
  --color-surface: #ffffff;
  --color-text-primary: var(--mm-ink);
  --color-text-secondary: var(--mm-muted);
  --color-border: var(--mm-line);
  --color-primary-blue: var(--mm-blue);
  --brand-blue: var(--mm-blue);
  --brand-blue-600: var(--mm-blue-dark);
  --container-width: 1240px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --radius-xl: 8px;
  --radius-2xl: 8px;
  --radius-3xl: 8px;
  --shadow-xs: 0 1px 2px rgba(18, 27, 34, 0.05);
  --shadow-sm: 0 2px 6px rgba(18, 27, 34, 0.06);
  --shadow-md: 0 8px 24px rgba(18, 27, 34, 0.08);
  --shadow-lg: 0 18px 48px rgba(18, 27, 34, 0.10);
}

html { scroll-padding-top: 88px; }

body {
  background: var(--mm-canvas);
  color: var(--mm-ink);
}

h1, h2, h3, h4, h5, h6,
.section-title,
.stat-value {
  letter-spacing: 0 !important;
}

a, button, input { -webkit-tap-highlight-color: transparent; }

.btn {
  min-height: 44px;
  border-radius: 6px !important;
  gap: 8px;
  letter-spacing: 0;
  box-shadow: none;
}

.btn .material-symbols-outlined { font-size: 18px; }

.btn-primary {
  color: #fff !important;
  background: var(--mm-ink) !important;
  border-color: var(--mm-ink) !important;
  box-shadow: none !important;
}

.btn-primary:hover {
  color: #fff !important;
  background: #25313a !important;
  border-color: #25313a !important;
  transform: translateY(-1px);
}

html body .header .btn.btn-primary,
html body .header .btn.btn-primary:hover {
  color: #fff !important;
  background: var(--mm-ink) !important;
  border-color: var(--mm-ink) !important;
  box-shadow: none !important;
}

.text-gradient {
  color: var(--mm-blue) !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: currentColor !important;
}

.btn-secondary {
  color: var(--mm-ink) !important;
  background: #fff !important;
  border-color: #cbd4d9 !important;
  box-shadow: none !important;
}

.btn-secondary:hover {
  color: var(--mm-ink) !important;
  border-color: #8998a1 !important;
  transform: translateY(-1px);
}

.scroll-progress {
  height: 2px;
  background: var(--mm-blue);
  box-shadow: none;
}

.octopus-mascot { display: none !important; }

.aurora-bg,
.article-hero {
  background: #f7f9f8 !important;
}

.cta-section {
  background: var(--mm-blue-dark) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.card,
.feature-card,
.testimonial-card,
.stat-card,
.pricing-card,
.logo-pill {
  border-radius: var(--mm-radius) !important;
  box-shadow: none !important;
}

.card:hover,
.feature-card:hover,
.testimonial-card:hover,
.logo-pill:hover {
  box-shadow: var(--shadow-md) !important;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  max-width: none;
  min-height: 72px;
  margin: 0;
  background: rgba(251, 252, 251, 0.94);
  border: 0;
  border-bottom: 1px solid rgba(18, 27, 34, 0.10);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header.scrolled {
  top: 0;
  background: rgba(251, 252, 251, 0.98);
  border-color: rgba(18, 27, 34, 0.14);
  box-shadow: 0 5px 18px rgba(18, 27, 34, 0.05);
}

.header-container {
  max-width: var(--container-width);
  height: 72px;
  margin: 0 auto;
}

.logo-image { height: 36px; max-width: 180px; }
.nav { gap: 32px; }
.nav-links { gap: 28px; }

.nav-link,
.nav-login {
  color: #3e4b53;
  font-size: 14px;
  font-weight: 600;
}

.nav-link:hover,
.nav-login:hover { color: var(--mm-ink); }

.nav-link.active::after { background: var(--mm-blue); }

.nav-dropdown {
  min-width: 520px;
  gap: 4px;
  margin-top: 14px;
  padding: 8px;
  border: 1px solid var(--mm-line);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(18, 27, 34, 0.12);
}

.nav-dropdown-item {
  min-height: 104px;
  padding: 16px;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 6px;
}

.nav-dropdown-item:hover {
  background: var(--mm-soft);
  border-color: #cfd7db !important;
  box-shadow: none !important;
  transform: none;
}

.nav-dropdown-item img { height: 28px; margin-bottom: 10px; }
.nav-dropdown-item span { font-size: 13px; line-height: 1.45; }

.nav-cta { padding: 10px 15px; font-size: 14px; }

/* Footer */
.footer {
  margin-top: 0;
  padding: 72px 0 24px;
  color: rgba(255, 255, 255, 0.70);
  background: #111a20;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(500px, 1fr);
  gap: 96px;
  padding-bottom: 56px;
}

.footer-intro { max-width: 420px; }
.footer-brand { display: inline-flex; margin-bottom: 20px; }
.footer-logo-image { width: 180px; height: auto; }

.footer-intro p {
  max-width: 390px;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.64);
  font-size: 16px;
}

.footer-app-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 600;
}

.footer-app-link:hover { color: #7ac7e4; }
.footer-app-link .material-symbols-outlined { font-size: 18px; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-column h4 {
  margin-bottom: 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-links { list-style: none; }
.footer-links li + li { margin-top: 10px; }

.footer-links a {
  color: rgba(255,255,255,0.64);
  font-size: 14px;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255,255,255,0.48);
  font-size: 13px;
}

.footer-cookie-button {
  padding: 0;
  color: rgba(255,255,255,0.58);
  background: none;
  border: 0;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.footer-cookie-button:hover { color: #fff; }

@media (max-width: 980px) {
  .nav-links { gap: 18px; }
  .nav-link { font-size: 13px; }
  .footer-top { grid-template-columns: 1fr; gap: 52px; }
  .footer-intro { max-width: 520px; }
}

@media (max-width: 768px) {
  :root { --container-padding: 20px; }

  .header-container { height: 68px; }
  .header { min-height: 68px; }
  .logo-image { height: 32px; }

  .nav {
    top: 68px;
    height: calc(100vh - 68px);
    padding: 24px 20px 36px;
    background: var(--mm-canvas);
  }

  .nav-links { gap: 0; }
  .nav-link { font-size: 17px; }
  .nav-dropdown { min-width: 0; box-shadow: none; }
  .nav-dropdown-item { min-height: 0; background: #fff; }
  .nav-actions { width: 100%; }
  .nav-login, .nav-cta { justify-content: center; width: 100%; }
  .mobile-menu-btn { display: flex; }

  .footer { padding-top: 56px; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .footer-nav { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
