/* Moiz Automations Group — Design System */
:root {
  --bg-primary: #020817;
  --bg-secondary: #0a0f1e;
  --bg-card: #0d1526;
  --accent-primary: #2563eb;
  --accent-secondary: #7c3aed;
  --accent-glow: rgba(37, 99, 235, 0.15);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --success: #10b981;
  --warning: #ef4444;
  --border: rgba(37, 99, 235, 0.2);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --nav-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Dot grid — no background gradients */
.bg-dots {
  background-color: var(--bg-primary);
  background-image: radial-gradient(
    rgba(148, 163, 184, 0.12) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
}

.bg-dots-secondary {
  background-color: var(--bg-secondary);
  background-image: radial-gradient(
    rgba(148, 163, 184, 0.1) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.15;
}

.label-upper {
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.6875rem;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section--tight {
  padding: 3.5rem 0;
}

/* ——— Nav ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 8, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.logo svg {
  flex-shrink: 0;
}

.logo .logo-mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  text-align: center;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible,
.nav-links a:focus-visible,
.logo:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

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

.btn--primary:hover {
  background: #1d4ed8;
}

.btn--outline {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
}

.btn--outline:hover {
  background: rgba(37, 99, 235, 0.1);
}

.btn--block {
  width: 100%;
}

/* ——— Badges ——— */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge--blue {
  background: var(--accent-primary);
  color: #fff;
}

.badge--muted {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* ——— Cards ——— */
.card {
  background: var(--bg-card);
  border: 1px solid var(--accent-glow);
  border-radius: 12px;
  padding: 1.5rem;
}

.card--glow {
  box-shadow: 0 0 0 1px var(--accent-glow);
}

/* ——— Section end CTA ——— */
.section-cta {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-cta--spaced {
  margin-top: 2.5rem;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.footer-nav a {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-nav a:hover {
  color: var(--text-primary);
}

.footer-right {
  text-align: right;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-right a {
  color: var(--accent-primary);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a:hover {
  color: var(--text-secondary);
}

/* ——— Money gap line (global) ——— */
.money-gap-line {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.money-gap-line strong {
  color: var(--accent-primary);
  font-weight: 600;
}

/* ——— Fade-up animation ——— */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ——— Mobile sticky CTA ——— */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  padding: 0.75rem 1rem;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  background: rgba(2, 8, 23, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

.sticky-mobile-cta .btn {
  width: 100%;
  padding: 1rem 1.25rem;
}

body.has-mobile-sticky {
  padding-bottom: 5.5rem;
}

/* ——— Hero ——— */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  max-width: 900px;
  margin: 1.25rem auto 0;
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 4rem;
  }
}

.hero .headline-line {
  display: block;
}

.hero .headline-line--normal {
  font-weight: 400;
  color: var(--text-primary);
}

.hero .headline-line--accent {
  color: var(--accent-primary);
}

.hero-sub {
  max-width: 640px;
  margin: 1.5rem auto 0;
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.trust-pills span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

/* Metrics bar */
.metrics-bar {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
}

.metric-cell {
  padding: 1.5rem 1.25rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.metric-cell:last-child {
  border-right: none;
}

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

.metric-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* Tech trust bar */
.tech-trust {
  margin-top: 3rem;
  text-align: center;
}

.tech-trust-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.logo-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.logo-pill {
  padding: 0.5rem 0.875rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Problem teaser columns */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.problem-card {
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.25);
  background: var(--bg-card);
}

.problem-card h3 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.125rem;
}

.problem-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin: 0;
}

.problem-cost {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: rgba(239, 68, 68, 0.85);
}

.statement-block {
  max-width: 800px;
  margin: 3rem auto 0;
  text-align: center;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
  line-height: 1.45;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.service-card {
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--accent-glow);
  background: var(--bg-card);
  transition: border-color 0.2s;
}

.service-card:hover {
  border-color: var(--border);
}

.service-card .icon-wrap {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
}

.service-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.55;
}

/* Money gap callout */
.callout-money {
  margin-top: 2rem;
  padding: 3rem 2rem;
  border-radius: 12px;
  border: 1px solid var(--accent-glow);
  border-left: 4px solid var(--accent-primary);
  background: var(--bg-card);
  text-align: center;
}

.callout-money h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1rem;
}

.callout-money p {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

.callout-money .muted {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Final CTA section */
.final-cta {
  text-align: center;
  padding: 5rem 1.5rem;
}

.final-cta h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.75rem;
}

.final-cta .sub {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Section titles */
.section-title {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 0.5rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
}

.section-intro {
  text-align: center;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1rem;
}

/* Services page alternating rows */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.service-row:last-of-type {
  border-bottom: none;
}

.service-row--reverse .service-row__visual {
  order: -1;
}

.service-row h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

.service-row__body {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.service-row__outcomes {
  margin-top: 1rem;
  padding-left: 1.25rem;
  color: var(--text-primary);
}

.service-row__tools {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.service-row__tools strong {
  color: var(--accent-primary);
  font-weight: 600;
}

.mock-card {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--accent-glow);
  background: var(--bg-secondary);
}

.mock-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  padding: 1.5rem;
}

.mock-cluster span {
  padding: 0.35rem 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Problem / solution page */
.card-problem {
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(127, 29, 29, 0.15);
  margin-bottom: 1.5rem;
}

.card-solution {
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: rgba(30, 58, 138, 0.2);
  margin-bottom: 3rem;
}

.card-problem h2,
.card-solution h2 {
  margin: 0 0 1rem;
  font-size: 1.375rem;
}

.card-problem p,
.card-solution p {
  color: var(--text-secondary);
  margin: 0;
}

.stat-big {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin: 1.25rem 0 0.5rem;
  letter-spacing: -0.02em;
}

.cost-line {
  color: rgba(248, 113, 113, 0.95);
  font-weight: 600;
  margin-top: 1rem;
  font-size: 0.9375rem;
}

.outcome-line {
  color: var(--accent-primary);
  font-weight: 600;
  margin-top: 1rem;
  font-size: 1rem;
}

.stat-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.stat-mini {
  padding: 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.stat-mini strong {
  display: block;
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

/* Video testimonials */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.video-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-primary);
  overflow: hidden;
}

.video-thumb {
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.video-thumb svg {
  width: 64px;
  height: 64px;
  color: var(--accent-primary);
}

.video-card__body {
  padding: 1.25rem;
}

.video-card__name {
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.video-card__meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.video-card__quote {
  font-style: italic;
  color: var(--text-primary);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0;
}

.stats-bar-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.stats-bar-row .card {
  text-align: center;
  padding: 1.25rem;
}

.stats-bar-row .num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.stats-bar-row .lbl {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

.industry-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Pricing page minimal */
.pricing-note {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
  .service-row--reverse .service-row__visual {
    order: 0;
  }

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

  .metrics-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-cell:nth-child(2) {
    border-right: none;
  }

  .metric-cell:nth-child(1),
  .metric-cell:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 900px) {
  .problem-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid-3 {
    grid-template-columns: 1fr;
  }

  .stats-bar-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
  }

  .nav-links.is-open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .nav-inner {
    flex-wrap: wrap;
  }

  .nav-cta-wrap .btn--primary {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

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

  .sticky-mobile-cta {
    display: block;
  }

  body.has-mobile-sticky {
    padding-bottom: 5.5rem;
  }
}

@media (min-width: 769px) {
  body.has-mobile-sticky {
    padding-bottom: 0;
  }
}
