/* =========================================================
   MINDD2 — Homepage styles (mobile-first)
   ========================================================= */

:root {
  --indigo: #151B5B;
  --purple: #5B2EFF;
  --violet: #4B45D8;
  --lime: #B8F000;
  --white: #FFFFFF;
  --muted: #626B91;

  --tint: #F6F5FF;
  --line: #E7E6F4;
  --gradient: linear-gradient(135deg, #5B2EFF 0%, #4B45D8 100%);

  --shadow-sm: 0 2px 8px rgba(21, 27, 91, .06);
  --shadow-md: 0 18px 48px -18px rgba(21, 27, 91, .22);

  --radius: 20px;
  --gutter: 20px;
  --header-h: 64px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--indigo);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 88px 0; }

.skip-link {
  position: absolute;
  left: 12px; top: -48px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--indigo);
  color: var(--white);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- Typography helpers ---------- */
.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 34em;
  text-wrap: pretty;
}

.eyebrow {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--purple);
}

.section-title {
  font-size: clamp(1.75rem, 6.4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.section-title.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn span[aria-hidden] { transition: transform .25s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(3px); }

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(91, 46, 255, .6);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -10px rgba(91, 46, 255, .7);
}

.btn-ghost {
  background: var(--white);
  color: var(--indigo);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); }

.btn-light {
  background: var(--white);
  color: var(--indigo);
}
.btn-light:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(184, 240, 0, .55);
}
.btn-light:focus-visible { outline-color: var(--lime); }

.btn-sm { min-height: 44px; padding: 0 20px; font-size: .875rem; letter-spacing: .02em; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo-img {
  width: auto;
  height: 26px;
  mix-blend-mode: multiply;
}
.logo-full {
  width: 200px;
  height: auto;
}

.nav-desktop, .header-cta { display: none; }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  margin-right: -10px;
  padding: 0 11px;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--indigo);
  transition: transform .3s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  border-top: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.mobile-menu ul { padding: 8px var(--gutter) 24px; }
.mobile-menu li a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-size: 1.0625rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-menu-cta { margin-top: 12px; }
.mobile-menu-cta + .mobile-menu-cta { margin-top: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 40px 0 72px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -40% auto auto;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(91, 46, 255, .10), transparent);
  pointer-events: none;
}

.hero-inner { position: relative; display: grid; gap: 48px; }

.hero-title {
  font-size: clamp(2.5rem, 11vw, 4.5rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

.hero-actions {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

/* Hero product visual (Asset 1) */
.hero-visual {
  justify-self: center;
  width: 100%;
  max-width: 560px;
}
.hero-visual img,
.people-visual img {
  width: 100%;
  height: auto;
  /* Lets the asset's white backdrop melt into the page and section tints */
  mix-blend-mode: multiply;
}

/* ---------- ANSWER / FIND / BUILD ---------- */
.afb { padding: 8px 0 24px; }
.afb-list {
  display: grid;
  gap: 0;
  padding: 8px 24px;
  border-radius: var(--radius);
  background: var(--tint);
}
.afb-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
}
.afb-item + .afb-item { border-top: 1px solid var(--line); }

.afb-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--purple);
}
.afb-icon svg {
  width: 26px; height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.afb-text { display: grid; gap: 2px; }
.afb-text strong {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--purple);
}
.afb-text span { font-size: 1.125rem; font-weight: 500; }

/* ---------- WHAT MAKES MINDD2 DIFFERENT? ---------- */
.different-head { max-width: 760px; }
.statement {
  margin: 16px 0 18px;
  font-size: clamp(1.75rem, 6.4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.points {
  display: grid;
  gap: 36px;
  margin-top: 56px;
}
.point h3 {
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .1em;
  margin: 14px 0 6px;
}
.point p { color: var(--muted); max-width: 26em; }
.point-mark {
  display: block;
  width: 32px; height: 4px;
  border-radius: 4px;
  background: var(--gradient);
}
.point:nth-child(3) .point-mark { background: var(--lime); }

/* ---------- People / Perspectives ---------- */
.people { background: var(--tint); }
.people-inner { display: grid; gap: 40px; }
.people-copy .lead { margin-top: 18px; }

.people-visual {
  width: 100%;
  max-width: 620px;
  justify-self: center;
}

/* ---------- Final CTA ---------- */
.final-cta { padding: 16px 0 88px; }
.cta-panel {
  position: relative;
  overflow: hidden;
  padding: 64px 24px;
  border-radius: 28px;
  background: var(--gradient);
  color: var(--white);
  text-align: center;
}
.cta-panel::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -120px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(184, 240, 0, .22), transparent);
  pointer-events: none;
}
.cta-small {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--lime);
}
.cta-main {
  margin: 16px 0 32px;
  font-size: clamp(2rem, 8vw, 3.25rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.01em;
  text-wrap: balance;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 56px;
}
.footer-inner { display: grid; gap: 40px; }
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 24px;
}
.footer-nav h2 {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 8px;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-weight: 500;
  transition: color .2s var(--ease);
}
.footer-nav a:hover { color: var(--purple); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  color: var(--muted);
}

/* ---------- Current page (nav) ---------- */
.mobile-menu li a[aria-current="page"],
.footer-nav a[aria-current="page"] { color: var(--purple); }

/* =========================================================
   Why MINDD2 page
   ========================================================= */
.why-intro {
  position: relative;
  padding: 40px 0 64px;
  overflow: hidden;
}
.why-intro::before {
  content: "";
  position: absolute;
  inset: -12% -45% auto auto;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(91, 46, 255, .09), transparent);
  pointer-events: none;
}
.why-intro-inner { position: relative; display: grid; gap: 40px; }

.why-title {
  margin: 16px 0 22px;
  font-size: clamp(2.375rem, 10.4vw, 4.5rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.why-lead { display: grid; gap: 14px; }

.why-visual {
  justify-self: center;
  width: 100%;
  max-width: 540px;
}
.why-visual img {
  width: 100%;
  height: auto;
  /* White backdrop melts into the page */
  mix-blend-mode: multiply;
}
.why-visual.is-in img { animation: why-drift 9s ease-in-out 1s infinite alternate; }
@keyframes why-drift {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}

/* Three stages */
.stages { background: var(--tint); }
.stage-list { display: grid; gap: 40px; }
.stage {
  position: relative;
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  text-align: center;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
/* Soft vertical link between stacked stages */
.stage + .stage::before {
  content: "";
  position: absolute;
  left: 50%; top: -41px;
  width: 1.5px; height: 40px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(91, 46, 255, .12), rgba(91, 46, 255, .45));
}
.stage-mark {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.stage-mark svg {
  width: 64px; height: 40px;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.stage-mark--minds circle:nth-child(1) { stroke: var(--purple); }
.stage-mark--minds circle:nth-child(2) { stroke: var(--violet); opacity: .7; }
.stage-mark--minds circle:nth-child(3) { stroke: var(--muted); opacity: .6; }
.stage-mark--shared circle:nth-child(1) { stroke: var(--purple); fill: rgba(91, 46, 255, .08); }
.stage-mark--shared circle:nth-child(2) { stroke: var(--violet); fill: rgba(75, 69, 216, .08); }
.stage-mark--connect path { stroke: var(--violet); }
.stage-mark--connect circle { stroke: var(--purple); fill: rgba(91, 46, 255, .08); }
.stage-mark--connect circle:last-child { stroke: #8DBA00; fill: rgba(184, 240, 0, .35); }

.stage-num {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--purple);
}
.stage h2 {
  margin: 10px 0 8px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.3;
}
.stage p {
  color: var(--muted);
  max-width: 22em;
  margin: 0 auto;
}

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .afb-item.reveal:nth-child(2), .js .point.reveal:nth-child(2) { transition-delay: .12s; }
.js .afb-item.reveal:nth-child(3), .js .point.reveal:nth-child(3) { transition-delay: .24s; }
.js .stage.reveal:nth-child(2) { transition-delay: .14s; }
.js .stage.reveal:nth-child(3) { transition-delay: .28s; }
.js .stage.reveal {
  transition: opacity .8s var(--ease), transform .8s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

/* =========================================================
   Tablet
   ========================================================= */
@media (min-width: 640px) {
  :root { --gutter: 32px; }

  .hero-actions { display: flex; flex-wrap: wrap; }

  .afb-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 8px 12px;
  }
  .afb-item { flex-direction: column; align-items: flex-start; padding: 24px 16px; }
  .afb-item + .afb-item { border-top: 0; }
  .afb-item + .afb-item::before {
    content: "→";
    position: absolute;
    left: -9px; top: 36px;
    color: var(--violet);
    opacity: .6;
    font-weight: 500;
  }

  .points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }

  .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cta-panel { padding: 80px 40px; }

  .why-intro { padding: 56px 0 80px; }
  .stage-list { max-width: 560px; margin: 0 auto; }
  .stage { padding: 40px 32px; }
}

/* =========================================================
   Desktop
   ========================================================= */
@media (min-width: 960px) {
  :root { --header-h: 76px; }

  body { font-size: 18px; }
  .section { padding: 120px 0; }

  .nav-desktop { display: block; }
  .nav-desktop ul { display: flex; gap: 36px; }
  .nav-desktop a {
    position: relative;
    font-size: .9375rem;
    font-weight: 500;
    padding: 8px 0;
    transition: color .2s var(--ease);
  }
  .nav-desktop a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform .3s var(--ease);
  }
  .nav-desktop a:hover { color: var(--purple); }
  .nav-desktop a:hover::after { transform: scaleX(1); }

  .header-cta { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none !important; }

  .hero { padding: 72px 0 104px; }
  .hero-title { font-size: clamp(3rem, 4.6vw, 4.25rem); white-space: nowrap; }
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
  }
  .hero-visual { max-width: none; margin: 0 -24px 0 0; }
  .logo-img { height: 30px; }

  .afb-item { flex-direction: row; align-items: center; padding: 28px 28px; }
  .afb-item + .afb-item::before { top: 50%; transform: translateY(-50%); }

  .points { margin-top: 72px; gap: 56px; }

  .people-inner {
    grid-template-columns: .8fr 1.2fr;
    align-items: center;
    gap: 64px;
  }


  .final-cta { padding: 24px 0 120px; }
  .cta-panel { padding: 104px 48px; }

  .footer-inner { grid-template-columns: 1fr 1.4fr; align-items: start; }

  .nav-desktop a[aria-current="page"] { color: var(--purple); }
  .nav-desktop a[aria-current="page"]::after { transform: scaleX(1); }

  .why-intro { padding: 72px 0 112px; }
  .why-intro-inner {
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 64px;
  }
  .why-title { font-size: clamp(3.25rem, 5vw, 4.5rem); margin: 20px 0 28px; }
  .why-lead { gap: 16px; }
  .why-visual { max-width: none; margin-right: -16px; }

  .stage-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
    max-width: none;
  }
  .stage { padding: 44px 32px 48px; }
  /* Link turns horizontal between side-by-side stages */
  .stage + .stage::before {
    left: -49px; top: 50%;
    width: 48px; height: 1.5px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, rgba(91, 46, 255, .12), rgba(91, 46, 255, .45));
  }
}

@media (min-width: 960px) and (hover: hover) {
  .js .stage.reveal.is-in:hover,
  .stage:hover {
    transform: translateY(-4px);
    border-color: rgba(91, 46, 255, .25);
    box-shadow: var(--shadow-md);
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
