/* MN Social Co — landing page styles.
   Palette: bg #FFF8F3 (warm cream) · coral #FF6B5E · pink #F43F8E ·
   violet #8B5CF6 · sky #2CB9F0 · text #27203F (deep plum)
   Fonts: Space Grotesk (display) · Inter (body) */

:root {
  --bg: #FFF8F3;
  --text: #27203F;
  --muted: #5A5170;
  --dim: #837B96;
  --coral: #FF6B5E;
  --pink: #F43F8E;
  --violet: #8B5CF6;
  --sky: #2CB9F0;
  --green: #10B981;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-border: rgba(39, 32, 63, 0.08);
  --grad: linear-gradient(100deg, var(--coral), var(--pink) 50%, var(--violet));
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(244, 63, 142, 0.25); }

h1, h2, h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
  color: var(--text);
}

h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--pink); }

a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 4px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}

.eyebrow {
  font-family: Inter, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 1.2em;
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: var(--muted);
  max-width: 46ch;
}

/* ---------- skip link + progress ---------- */

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 200;
  background: #ffffff;
  color: var(--text);
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  box-shadow: 0 8px 24px rgba(39, 32, 63, 0.12);
}
.skip-link:focus { left: 12px; }

.progress-track {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 120;
  background: rgba(39, 32, 63, 0.06);
}
.progress-bar {
  height: 100%;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- 3D canvas ---------- */

#bg3d {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.9s ease;
}
#bg3d.is-ready { opacity: 1; }

/* no-WebGL fallback: soft pastel glows in place of the scene */
.no-webgl #bg3d { display: none; }
.no-webgl body {
  background:
    radial-gradient(60vw 60vw at 15% 18%, rgba(255, 107, 94, 0.18), transparent 60%),
    radial-gradient(55vw 55vw at 85% 30%, rgba(139, 92, 246, 0.14), transparent 60%),
    radial-gradient(50vw 50vw at 55% 92%, rgba(244, 63, 142, 0.12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 251, 247, 0.8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--panel-border);
  box-shadow: 0 6px 24px rgba(39, 32, 63, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand-mark { width: 30px; height: 30px; }
.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: Inter, sans-serif;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(120deg, var(--coral), var(--pink));
  border: none;
  border-radius: 999px;
  padding: 13px 28px;
  box-shadow: 0 10px 26px rgba(244, 63, 142, 0.3);
  transition: box-shadow 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}
.btn:hover {
  box-shadow: 0 14px 34px rgba(244, 63, 142, 0.42);
  transform: translateY(-2px);
  filter: saturate(1.1);
}
.btn-small { padding: 10px 20px; font-size: 0.92rem; }
.btn-big { padding: 19px 42px; font-size: 1.15rem; }

.cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 1.6em 0 1.2em;
}
.cta-hint {
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--dim);
  letter-spacing: 0.02em;
}

/* ---------- layout / sections ---------- */

.section {
  position: relative;
  padding: 18vh clamp(16px, 5vw, 48px);
  max-width: 1200px;
  margin: 0 auto;
}

.panel {
  background: var(--panel);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 18px 50px rgba(148, 88, 180, 0.12);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 8vh;
  text-align: center;
}

/* soft light halo behind headings that sit directly on the 3D field */
.section-head,
.closer {
  position: relative;
  z-index: 0;
}
.section-head::before,
.closer::before {
  content: '';
  position: absolute;
  inset: -56px -96px;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(255, 248, 243, 0.92), rgba(255, 248, 243, 0) 72%);
  pointer-events: none;
}

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 20vh;
}
.hero-panel {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .lede { margin-left: auto; margin-right: auto; }

.chips {
  list-style: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 0.6em 0 0;
}
.chips li {
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--muted);
  border: 1.5px solid rgba(244, 63, 142, 0.25);
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.75);
}

.scroll-cue {
  position: absolute;
  bottom: 4vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--dim);
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: cue-bob 2.4s ease-in-out infinite;
}
@keyframes cue-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- how it works ---------- */

.how { min-height: 130vh; }

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14vh;
}
.step {
  max-width: 460px;
  width: 100%;
}
.step:nth-child(odd) { margin-right: auto; }
.step:nth-child(even) { margin-left: auto; }
.step-num {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--pink);
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 10px;
}
.step p { color: var(--muted); margin: 0; }

/* ---------- what we do ---------- */

.what { min-height: 110vh; }

.what-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
}
.what-item h3 { margin-bottom: 0.35em; }
.what-item p { color: var(--muted); margin: 0; font-size: 0.98rem; }

.closer {
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 600;
  margin: 9vh auto 0;
  max-width: 620px;
}

/* ---------- proof ---------- */

.proof { min-height: 120vh; display: flex; align-items: center; }

.proof-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  width: 100%;
}
.proof-stage { min-height: 60vh; }
.proof-panel { max-width: 520px; }
.proof-panel p { color: var(--muted); }

.callouts {
  list-style: none;
  padding: 0;
  margin: 1.6em 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.callouts li {
  border-left: 3px solid;
  border-image: linear-gradient(180deg, var(--coral), var(--violet)) 1;
  padding-left: 16px;
}
.callouts strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
}
.callouts span { color: var(--dim); font-size: 0.94rem; }

/* ---------- CTA ---------- */

.cta {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-panel {
  text-align: center;
  max-width: 680px;
  padding: clamp(40px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-panel .lede { margin-left: auto; margin-right: auto; }
.cta-panel .btn-big { margin: 0.8em 0 1.4em; }

.email-fallback { color: var(--dim); font-size: 0.95rem; margin: 0; }
.email-fallback a { color: var(--pink); }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px clamp(16px, 5vw, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
  color: var(--dim);
  font-size: 0.88rem;
}
.footer-brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  color: var(--text);
}
.footer a { color: var(--pink); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-note { opacity: 0.8; }

/* ---------- mobile ---------- */

@media (max-width: 767px) {
  .section { padding-top: 14vh; padding-bottom: 14vh; }

  /* blur over WebGL is expensive on phones — solid panels instead */
  .panel {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(255, 255, 255, 0.92);
  }

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

  .proof-layout { grid-template-columns: 1fr; gap: 0; }
  .proof-stage { min-height: 56vh; }

  .steps { gap: 9vh; }
  .step:nth-child(odd), .step:nth-child(even) { margin: 0 auto; }

  .brand-name { font-size: 0.95rem; }
  .btn-small { padding: 8px 14px; font-size: 0.85rem; }
}

@media (max-width: 419px) {
  .nav { padding-left: 12px; padding-right: 12px; }
  .brand-name { font-size: 0.88rem; }
  .btn-small { padding: 7px 11px; font-size: 0.78rem; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue { animation: none; }
  .btn { transition: none; }
  #bg3d { transition: none; }
}
.reduced-motion .reveal { opacity: 1; transform: none; transition: none; }
.reduced-motion .scroll-cue { animation: none; }
