/* Shared layout and visual system for MGCA static pages */
:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --card: #101528;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.14);
  --accent-strong: #818cf8;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.3);
  --radius-lg: 18px;
  --shadow-soft: 0 22px 60px rgba(15, 23, 42, 0.7);
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #1e293b 0, #020617 45%, #020617 100%);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: absolute;
  left: 0.9rem;
  top: 0.75rem;
  z-index: 1000;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  transform: translateY(-220%);
  transition: transform 0.18s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid rgba(129, 140, 248, 0.85);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 2px solid rgba(129, 140, 248, 0.85);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .carousel-viewport {
    scroll-behavior: auto;
  }

  .skip-link {
    transition: none;
  }
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.6), transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.35rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: conic-gradient(from 180deg, #4f46e5, #ec4899, #22c55e, #0ea5e9, #4f46e5);
  position: relative;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.5), 0 16px 35px rgba(15, 23, 42, 0.7);
}

.brand-mark.has-logo {
  width: 150px;
  height: 100px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.brand-mark.has-logo::after {
  content: none;
}

.brand-mark.has-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 20%, #1f2937, #020617);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pill-link {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.pill-link:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
  transform: translateY(-1px);
}

.pill-link.is-active {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(148, 163, 184, 0.9);
  color: #e5e7eb;
  transform: translateY(-1px);
}

.pill-cta {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #f9fafb;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-weight: 500;
  box-shadow: 0 16px 35px rgba(79, 70, 229, 0.4);
  border: 1px solid rgba(191, 219, 254, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pill-cta span {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pill-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.6);
}

main {
  flex: 1;
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: radial-gradient(circle at 0% 0%, rgba(129, 140, 248, 0.4), transparent 55%);
  border: 1px solid rgba(129, 140, 248, 0.5);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.24);
}

.hero h1 {
  margin-top: 1.2rem;
  font-size: clamp(2.35rem, 3vw, 3rem);
  letter-spacing: -0.03em;
}

.hero h1 span {
  background: linear-gradient(135deg, #c4b5fd, #e5e7eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-intro {
  margin-top: 1.1rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 34rem;
}

.hero-intro strong {
  color: #e5e7eb;
  font-weight: 500;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.7rem;
  align-items: center;
}

.outline-btn {
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.88rem;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(20px);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.outline-btn:hover {
  border-color: rgba(191, 219, 254, 0.95);
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(-1px);
}

.hero-meta {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin-top: 2.1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.diagram {
  width: 100%;
  height: auto;
  display: block;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.meta-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: #6b7280;
}

.meta-value {
  color: #e5e7eb;
  font-size: 0.9rem;
}

.hero-visual-wrapper {
  position: relative;
  min-height: 260px;
}

.hero-card {
  position: relative;
  border-radius: 26px;
  padding: 1.4rem 1.3rem;
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.3), transparent 45%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.25), transparent 55%),
    linear-gradient(145deg, #020617, #020617);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-soft);
  max-width: 360px;
  margin-left: auto;
  overflow: hidden;
  transform-origin: center center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.hero-badge {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(129, 140, 248, 0.6);
  color: #c7d2fe;
}

.hero-metric {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-metric strong {
  display: block;
  font-size: 1.2rem;
  color: #e5e7eb;
}

.hero-graph {
  margin-top: 0.4rem;
  padding: 1rem;
  border-radius: 18px;
  background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.3), transparent 60%),
    rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.sparkline {
  display: grid;
  grid-auto-flow: column;
  gap: 0.28rem;
  align-items: flex-end;
  height: 80px;
}

.spark-bar {
  width: 6px;
  border-radius: 999px 999px 3px 3px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9), #4f46e5);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.6);
}

.spark-bar.peak {
  background: linear-gradient(to top, rgba(8, 47, 73, 0.95), #22c55e);
  box-shadow: 0 10px 22px rgba(34, 197, 94, 0.6);
}

.hero-card-footer {
  margin-top: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.23rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.55);
  font-size: 0.7rem;
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.25);
}

.sections {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.8), #020617 40%);
  border-top: 1px solid rgba(30, 64, 175, 0.5);
  border-bottom: 1px solid rgba(30, 64, 175, 0.5);
}

.sections-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.1rem 1.5rem 3.4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.section-heading {
  max-width: 32rem;
}

.section-heading h2 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.section-heading p {
  font-size: 0.94rem;
  color: var(--text-muted);
}

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

.card {
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.1rem;
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.14), transparent 55%),
    linear-gradient(145deg, #020617, #020617);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.85);
}

.card-image {
  width: 100%;
  border-radius: 14px;
  display: block;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card ul {
  margin-top: 0.6rem;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.card li + li {
  margin-top: 0.25rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

.tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #e5e7eb;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.9rem;
}

.client-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.carousel-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(191, 219, 254, 0.85);
  background: rgba(15, 23, 42, 0.95);
}

.carousel-btn:focus-visible {
  outline: 2px solid rgba(129, 140, 248, 0.85);
  outline-offset: 2px;
}

.carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.35);
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.carousel-viewport:focus-visible {
  outline: 2px solid rgba(129, 140, 248, 0.85);
  outline-offset: 2px;
}

.carousel-track {
  display: flex;
  --carousel-gap: 0.9rem;
  gap: var(--carousel-gap);
  padding: 0.9rem;
}

.carousel-viewport::-webkit-scrollbar {
  height: 10px;
}

.carousel-viewport::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
  border-radius: 999px;
}

.carousel-viewport::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.2);
}

.client-tile {
  scroll-snap-align: start;
  flex: 0 0 calc((100% - (var(--carousel-gap) * 3)) / 4);
  min-height: 124px;
  padding: 1rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #e5e7eb;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

@media (max-width: 900px) {
  .client-tile {
    flex-basis: calc((100% - (var(--carousel-gap) * 1)) / 2);
  }
}

@media (max-width: 640px) {
  .client-carousel {
    grid-template-columns: minmax(0, 1fr);
  }

  .carousel-btn {
    display: none;
  }

  .client-tile {
    flex-basis: 100%;
  }
}

.client-tile:hover {
  transform: translateY(-1px);
  border-color: rgba(191, 219, 254, 0.75);
  background: rgba(15, 23, 42, 0.92);
}

.client-logo {
  width: 84px;
  height: 84px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  opacity: 0.95;
}

.process {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.process-step {
  padding: 0.7rem 0.75rem;
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px dashed rgba(148, 163, 184, 0.6);
}

.process-step strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #e5e7eb;
  font-size: 0.85rem;
}

.cta-band {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.2rem 1.5rem 3.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.cta-card {
  border-radius: 24px;
  padding: 1.6rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.4), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.4), transparent 55%),
    linear-gradient(145deg, #020617, #020617);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.95);
}

.cta-card h2 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.cta-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.primary-btn {
  border-radius: 999px;
  padding: 0.7rem 1.35rem;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #f9fafb;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.7);
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 50px rgba(79, 70, 229, 0.9);
}

.secondary-link {
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.9rem;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(15, 23, 42, 0.85);
}

.secondary-link:hover {
  background: rgba(15, 23, 42, 1);
}

.cta-note {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cta-side {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.cta-side h3 {
  color: #e5e7eb;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.cta-side ul {
  margin-top: 0.5rem;
  padding-left: 1.1rem;
}

.cta-side li + li {
  margin-top: 0.25rem;
}

footer {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  background: #020617;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.6rem 1.5rem 1.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.footer-links a {
  color: var(--text-muted);
}

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

.cookie-banner {
  position: fixed;
  inset-inline: 0.75rem;
  bottom: 0.75rem;
  z-index: 50;
  max-width: 1120px;
  margin-inline: auto;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.98);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.78rem;
}

.cookie-text {
  flex: 1;
  color: var(--text-muted);
}

.cookie-text a {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-accept {
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #022c22;
  font-size: 0.8rem;
  font-weight: 600;
}

.cookie-dismiss {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: pointer;
}

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

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

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-status {
  border-radius: 0.9rem;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.85);
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  font-size: 0.92rem;
}

.form-status.is-success {
  border-color: rgba(34, 197, 94, 0.55);
}

.form-status.is-error {
  border-color: rgba(248, 113, 113, 0.55);
}

.form-status.is-info {
  border-color: rgba(129, 140, 248, 0.55);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.form-field label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #9ca3af;
}

.form-field input,
.form-field textarea {
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.55rem 0.7rem;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  font: inherit;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(191, 219, 254, 0.95);
  box-shadow: 0 0 0 1px rgba(191, 219, 254, 0.6);
}

.form-consent label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.form-consent input[type="checkbox"] {
  margin-top: 0.15rem;
}

.form-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 2.4rem;
  }

  .hero-card {
    margin: 0 auto;
  }

  .cta-band {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-inner {
    padding-inline: 1rem;
    flex-wrap: wrap;
    gap: 0.85rem;
  }

  .nav-links {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.7rem;
    font-size: 0.85rem;
  }

  .pill-link {
    padding: 0.3rem 0.75rem;
  }

  .pill-cta {
    padding: 0.4rem 0.85rem;
  }

  .sections-inner {
    padding-inline: 1.2rem;
  }

  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .process {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
