/* ---------------------------------------------------
   Meridian AI Solutions — design tokens & base styles
--------------------------------------------------- */
:root {
  --bg: #07100e;
  --bg-alt: #08120f;
  --panel: #0d1715;
  --panel-2: #0a1412;
  --panel-3: #0c1815;
  --panel-4: #14211e;
  --panel-cta: #0b1614;
  --panel-nav-btn: #0b1714;

  --border: #1c302b;
  --border-soft: #1a2825;
  --border-btn: #22332f;
  --border-cta: #1f3a34;
  --border-accent: rgba(139, 107, 255, 0.35);

  --text: #f2f7f5;
  --text-dim: #93a4a0;
  --text-dim-2: #8fa19c;
  --text-dim-3: #9aaba6;
  --text-dim-4: #8a9b96;
  --text-dim-5: #7f918c;
  --text-chat: #c4d2ce;
  --text-chat-2: #e6f5f0;

  --teal: #1fe0b0;
  --blue: #2bc8ff;
  --violet: #8b6bff;
  --ink: #04110d;

  --grad-brand: linear-gradient(90deg, #1fe0b0, #2bc8ff);
  --grad-brand-diag: linear-gradient(135deg, #1fe0b0, #2bc8ff);
  --grad-text: linear-gradient(90deg, #1fe0b0, #2bc8ff, #8b6bff);

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------------------------------------------------
   Custom cursor
--------------------------------------------------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 7px; height: 7px;
  background: var(--teal);
  box-shadow: 0 0 10px rgba(31, 224, 176, 0.45);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid var(--border-btn);
  transition: width .25s var(--ease), height .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}
.cursor-ring.is-hover {
  width: 64px; height: 64px;
  border-color: var(--teal);
  background: rgba(31, 224, 176, 0.08);
}
.cursor-ring.is-hidden, .cursor-dot.is-hidden { opacity: 0; }
.cursor-ring::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--teal);
  opacity: 0;
  transition: opacity .2s var(--ease);
  white-space: nowrap;
}
.cursor-ring.is-hover::after { opacity: 1; }

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------------------------------------------------
   Reveal-on-scroll base states
--------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease);
  transition-delay: calc(var(--reveal-delay, 0) * 90ms);
}
[data-reveal="fade-up"] { transform: translateY(28px); }
[data-reveal="fade-down"] { transform: translateY(-20px); }
[data-reveal="pop"] { transform: translateY(20px) scale(0.96); filter: blur(6px); }
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------
   Buttons & logo
--------------------------------------------------- */
.mh-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 500;
  border: none;
  white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.mh-btn:hover { transform: translateY(-2px); }
.mh-btn-outline {
  border: 1px solid var(--border-btn);
  color: var(--text);
  background: var(--panel-nav-btn);
}
.mh-btn-brand {
  padding: 0 26px;
  color: var(--ink);
  font-weight: 600;
  background: var(--grad-brand);
}
.mh-btn-ghost {
  border: 1px solid var(--border-btn);
  color: var(--text);
  background: var(--panel-3);
  font-weight: 500;
}
.mh-btn-lg {
  min-height: 68px;
  padding: 0 40px;
  border-radius: 16px;
  font-size: 20px;
}
.mh-btn-brand.mh-btn-lg { box-shadow: 0 12px 40px rgba(31, 224, 176, 0.25); }

.mh-logo-mark {
  display: block;
  width: 32px; height: 32px;
}
.mh-logo-mark svg { display: block; width: 100%; height: 100%; }
.mh-logo-mark-sm { width: 24px; height: 24px; }
.mh-grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ---------------------------------------------------
   Nav
--------------------------------------------------- */
.mh-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 64px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-alt);
}
.mh-logo { display: flex; align-items: center; gap: 14px; }
.mh-logo-text {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.mh-logo-text span { color: rgba(31, 224, 176, 0.65); font-weight: 500; }
.mh-nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 17px;
  color: var(--text-dim-3);
}

/* ---------------------------------------------------
   Hero
--------------------------------------------------- */
.mh-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 120px 64px 96px;
  background: var(--bg);
}
.mh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.mh-blob-a {
  left: 4%; top: 20%;
  width: 620px; height: 560px;
  background: radial-gradient(circle, rgba(24, 150, 170, 0.55), transparent 70%);
  animation: driftA 22s ease-in-out infinite;
}
.mh-blob-b {
  left: 62%; top: 58%;
  width: 520px; height: 460px;
  background: radial-gradient(circle, rgba(139, 107, 255, 0.5), transparent 70%);
  animation: driftB 26s ease-in-out infinite;
}
.mh-blob-c {
  left: 74%; top: -8%;
  width: 620px; height: 520px;
  background: radial-gradient(circle, rgba(20, 160, 110, 0.5), transparent 70%);
  animation: driftC 19s ease-in-out infinite;
}
@keyframes driftA { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,-40px) scale(1.12); } }
@keyframes driftB { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-70px,50px) scale(0.92); } }
@keyframes driftC { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,60px) scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
  .mh-blob { animation: none; }
}

.mh-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}
.mh-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid rgba(31, 224, 176, 0.28);
  background: rgba(31, 224, 176, 0.07);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--teal);
  margin: 0;
}
.mh-eyebrow-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }
.mh-hero-headline {
  margin: 44px 0 0;
  font-family: var(--font-head);
  font-size: 96px;
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 1180px;
}
.mh-hero-sub {
  margin: 44px 0 0;
  max-width: 780px;
  font-size: 24px;
  line-height: 1.6;
  color: var(--text-dim);
}
.mh-hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 48px; flex-wrap: wrap; justify-content: center; }

.mh-hero-divider {
  width: 100%;
  max-width: 1080px;
  height: 1px;
  margin-top: 56px;
  background: var(--border-soft);
}
.mh-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.mh-hero-stat { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mh-hero-stat-num {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  color: var(--teal);
}
.mh-hero-stat-label { font-size: 14px; color: var(--text-dim-2); }
.mh-call-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 640px;
  margin: 48px auto 0;
  padding: 14px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-sizing: border-box;
}
.mh-call-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  border-radius: 18px;
}
.mh-call-row-caller { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); }
.mh-call-row-ava { background: rgba(31, 224, 176, 0.08); border: 1px solid rgba(31, 224, 176, 0.24); }
.mh-call-text { display: flex; flex-direction: column; gap: 6px; }
.mh-call-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mh-call-row-caller .mh-call-label { color: var(--text-dim-3); }
.mh-call-row-ava .mh-call-label { color: var(--teal); }
.mh-call-quote {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.4;
  color: var(--text);
}
.mh-call-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mh-call-row-caller .mh-call-icon { background: rgba(255, 255, 255, 0.06); }
.mh-call-row-ava .mh-call-icon { background: var(--grad-brand); }
.mh-call-connector {
  align-self: center;
  z-index: 1;
  width: 32px;
  height: 32px;
  margin: -14px 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-brand);
  box-shadow: 0 0 0 4px var(--panel);
}

/* ---------------------------------------------------
   Section shared layout
--------------------------------------------------- */
.mh-section-inner { max-width: 1200px; margin: 0 auto; }
.mh-eyebrow-label {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--teal);
  margin: 0;
}
.mh-section-title {
  margin: 20px 0 0;
  max-width: 820px;
  font-family: var(--font-head);
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}

/* ---------------------------------------------------
   Who it's for
--------------------------------------------------- */
.mh-who { padding: 40px 64px 120px; background: var(--bg); }
.mh-who-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}
.mh-who-card {
  padding: 32px 28px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--panel);
  transition: opacity .35s var(--ease), transform .35s var(--ease), border-color .35s var(--ease);
}
.mh-who-card-accent { border-color: var(--border-accent); }
.mh-who-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--blue);
}
.mh-who-index-accent { color: var(--violet); }
.mh-who-card h3 {
  margin: 36px 0 0;
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.mh-who-card p { margin: 14px 0 0; font-size: 17px; line-height: 1.6; color: var(--text-dim-2); }

.mh-who-grid.is-active .mh-who-card { opacity: 0.4; transform: none; }
.mh-who-grid.is-active .mh-who-card.is-focused { opacity: 1; transform: translateY(-4px); }

/* ---------------------------------------------------
   How it works
--------------------------------------------------- */
.mh-how { padding: 120px 64px; background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.mh-how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.mh-how-card { padding: 36px 32px; border-radius: 22px; border: 1px solid var(--border); background: var(--panel); }
.mh-how-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.mh-how-badge-a { background: var(--grad-brand-diag); }
.mh-how-badge-b { background: linear-gradient(135deg, var(--violet), var(--blue)); }
.mh-how-card h3 { margin: 28px 0 0; font-family: var(--font-head); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.mh-how-card p { margin: 14px 0 0; font-size: 18px; line-height: 1.6; color: var(--text-dim-2); }

/* ---------------------------------------------------
   CTA
--------------------------------------------------- */
.mh-cta {
  display: flex;
  justify-content: center;
  padding: 120px 64px;
  background:
    radial-gradient(ellipse 500px 320px at 12% 0%, rgba(139, 107, 255, 0.2), transparent 70%),
    radial-gradient(ellipse 700px 380px at 50% 100%, rgba(20, 140, 110, 0.3), transparent 70%),
    var(--bg);
}
.mh-cta-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 1080px;
  box-sizing: border-box;
  padding: 80px 64px;
  border-radius: 32px;
  border: 1px solid var(--border-cta);
  background: var(--panel-cta);
}
.mh-cta-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.mh-cta-sub { margin: 28px 0 0; max-width: 640px; font-size: 22px; line-height: 1.6; color: var(--text-dim); }
.mh-cta-actions { display: flex; align-items: center; gap: 20px; margin-top: 44px; flex-wrap: wrap; justify-content: center; }
.mh-cta-email { font-size: 18px; color: var(--text-dim-2); }

/* ---------------------------------------------------
   Footer
--------------------------------------------------- */
.mh-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 64px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-alt);
  font-size: 16px;
  color: var(--text-dim-5);
  flex-wrap: wrap;
  gap: 12px;
}
.mh-footer-brand { display: flex; align-items: center; gap: 12px; }
.mh-footer-slogan {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 600;
  font-size: 15px;
  color: var(--teal);
}
.mh-footer-name { font-family: var(--font-head); font-size: 20px; font-weight: 600; color: var(--text); }

/* ---------------------------------------------------
   Responsive
--------------------------------------------------- */
@media (max-width: 1080px) {
  .mh-who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mh-how-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .mh-nav { padding: 14px 16px; gap: 10px; }
  .mh-logo { gap: 8px; }
  .mh-logo-mark { width: 24px; height: 24px; }
  .mh-logo-text { font-size: 15px; letter-spacing: -0.005em; white-space: nowrap; }
  .mh-nav-links { gap: 8px; font-size: 15px; }
  .mh-nav-links a:not(.mh-btn) { display: none; }
  .mh-nav-links .mh-btn { padding: 0 12px; min-height: 36px; font-size: 12.5px; }
  .mh-hero, .mh-who, .mh-how, .mh-cta { padding-left: 24px; padding-right: 24px; }
  .mh-hero-stats { gap: 32px; }
  .mh-hero-stat-num { font-size: 26px; }
  .mh-hero-headline { font-size: clamp(40px, 10vw, 64px); }
  .mh-section-title { font-size: clamp(30px, 7vw, 40px); }
  .mh-cta-title { font-size: clamp(34px, 8vw, 48px); }
  .mh-who-grid { grid-template-columns: 1fr; }
  .mh-cta-panel { padding: 48px 28px; }
  .mh-footer { padding: 24px; }
  .mh-call-row { padding: 18px 20px; gap: 14px; }
  .mh-call-quote { font-size: 16px; }
  .mh-call-icon { width: 34px; height: 34px; }
}

@media (max-width: 400px) {
  .mh-logo-text { font-size: 13px; }
  .mh-nav-links .mh-btn { padding: 0 10px; font-size: 11px; min-height: 32px; }
  .mh-nav-links { gap: 6px; }
}
