/* ==========================================================================
   Nucleus — withnucleus.com
   Aesthetic: 2023 pitch deck — brand navy (#07092f) background throughout,
   teal (#53a7ab / #8ed1d3) accents, white type
   Type: Poppins (display) · Inter (body)
   ========================================================================== */

:root {
  --navy: #07092f;
  --navy-raise: #0b0e3d;
  --text: #f2f5ff;
  --muted: #a2aacd;
  --faint: #7d86b4;
  --line: rgba(142, 209, 211, .2);
  --line-soft: rgba(255, 255, 255, .1);
  --teal: #53a7ab;
  --teal-deep: #3f8e92;
  --teal-light: #8ed1d3;
  --glass: rgba(255, 255, 255, .045);
  --aurora: linear-gradient(120deg, #3f8e92 0%, #53a7ab 45%, #8ed1d3 110%);
  --radius: 18px;
  --shadow: 0 12px 40px -14px rgba(0, 0, 0, 0.5);
  --display: "Poppins", sans-serif;
  --body: "Inter", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--text);
  background: var(--navy);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { max-width: 100%; }

.container { width: min(1140px, 92%); margin-inline: auto; }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.02em; }

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

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .orbit__spokes, .hero__glow { animation: none !important; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600; font-size: 15.5px;
  padding: 14px 28px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 8px 24px -8px rgba(83, 167, 171, .6); }
.btn--primary:hover { background: var(--teal-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--teal); color: var(--teal-light); }
.btn:focus-visible, a:focus-visible, input:focus-visible, button:focus-visible {
  outline: 3px solid rgba(142, 209, 211, .6); outline-offset: 2px;
}

/* ---------- eyebrow ---------- */
.eyebrow {
  font-family: var(--display); font-size: 13px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--teal-light);
  margin-bottom: 18px;
}
.eyebrow--light { color: var(--teal-light); }

.tealtext { color: var(--teal-light); }

/* ---------- logo ---------- */
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo-img { height: 30px; width: auto; display: block; }

/* ---------- venture logo lockups (icon + wordmark) ---------- */
.lockup {
  display: inline-flex; align-items: center;
  font-family: var(--display); font-weight: 700; color: #fff;
  letter-spacing: -0.02em; line-height: 1;
}
.lockup em { font-style: normal; }
.lockup__icon { height: 1.15em; width: auto; display: block; flex: none; margin-right: .34em; }
svg.lockup__icon { width: 1.15em; }
.lockup--trialflow em { color: #f4a7bb; }
.lockup--peppy em { color: #a78bfa; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(7, 9, 47, .78); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s ease;
}
.nav.is-scrolled { border-color: var(--line); }
.nav__inner {
  width: min(1140px, 92%); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav__links { display: flex; gap: 34px; font-family: var(--display); font-weight: 500; font-size: 15px; }
.nav__links a { color: var(--muted); transition: color .15s ease; }
.nav__links a:hover { color: var(--teal-light); }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 34px; height: 34px; flex-direction: column; justify-content: center; gap: 7px; }
.nav__toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s ease; }

@media (max-width: 860px) {
  .nav__links {
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--navy); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 0;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 6%; }
  .nav__toggle { display: flex; }
  .nav__actions .btn { display: none; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; padding: 170px 0 96px; overflow: hidden; text-align: center; }
@media (max-width: 640px) { .hero { padding: 130px 0 70px; } }
.hero__glow {
  position: absolute; top: -280px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 640px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(83,167,171,.28), rgba(142,209,211,.08) 60%, transparent);
  filter: blur(20px); animation: drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift { to { transform: translateX(-46%) translateY(24px); } }

.hero__title {
  font-size: clamp(44px, 7vw, 82px); font-weight: 700; margin-bottom: 26px; color: #fff;
}
.hero__title em {
  font-style: normal;
  background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.hero__sub { max-width: 620px; margin: 0 auto 36px; color: var(--muted); font-size: 19px; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 72px; }

.hero__stats {
  display: flex; justify-content: center; gap: clamp(40px, 8vw, 110px);
  padding: 34px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  margin-bottom: 44px; flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat__value { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.03em; color: #fff; }
.stat__label { font-size: 13.5px; color: var(--faint); letter-spacing: .04em; text-transform: uppercase; }

.hero__backers { display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap; color: var(--muted); font-family: var(--display); font-weight: 600; font-size: 15px; }
.hero__backers-label { font-family: var(--body); font-weight: 400; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--faint); }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: 110px 0; }
@media (max-width: 640px) { .section { padding: 76px 0; } }
.section--tint {
  background:
    radial-gradient(900px 460px at 88% 0%, rgba(83,167,171,.1), transparent 60%),
    var(--navy-raise);
}
.section--dark {
  background:
    radial-gradient(1000px 500px at 10% 110%, rgba(63,142,146,.18), transparent 62%),
    var(--navy-raise);
  color: #fff;
}
.section--dark .section__lede { color: var(--muted); }
.section--dark .stat__label { color: var(--faint); }

.section__title { font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; text-align: center; margin-bottom: 20px; color: #fff; }
.section__title--left { text-align: left; }
.section__lede { max-width: 640px; margin: 0 auto 64px; text-align: center; color: var(--muted); font-size: 18px; }
.section > .container > .eyebrow { text-align: center; }
.story .eyebrow { text-align: left; }

/* ---------- about / orbit ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; margin-top: 70px; }
.about__copy h3 { font-size: 26px; margin-bottom: 18px; color: #fff; }
.about__copy p { color: var(--muted); margin-bottom: 16px; }

.orbit { position: relative; aspect-ratio: 1; max-width: 460px; margin-inline: auto; width: 100%; }
.orbit__ring { position: absolute; border: 1.5px dashed rgba(142, 209, 211, .3); border-radius: 50%; }
.orbit__ring--outer { inset: 0; }
.orbit__ring--inner { inset: 22%; border-style: solid; border-color: var(--line-soft); }
.orbit__hub {
  position: absolute; inset: 0; margin: auto; width: 118px; height: 118px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--aurora); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 19px;
  box-shadow: 0 14px 40px -10px rgba(83,167,171,.6);
  transition: transform .18s ease;
}
.orbit__hub:hover { transform: scale(1.05); }
.orbit__hub-img { width: 76px; height: auto; display: block; }
.orbit { container-type: size; }
.orbit__spokes { position: absolute; inset: 0; }
.orbit__node {
  --angle: calc(var(--i) * 72deg);
  --orbit-r: 46cqmin;
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(-1 * var(--orbit-r))) rotate(calc(-1 * var(--angle)));
  background: var(--navy-raise); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--text);
  white-space: nowrap; box-shadow: var(--shadow);
  transition: border-color .15s ease, color .15s ease;
}
.orbit__node:hover { border-color: var(--teal); color: var(--teal-light); }
.orbit__node .orbit__logo { height: 15px; width: auto; display: block; }
.orbit__node .orbit__logo--tall { height: 24px; }
.orbit__node .lockup { font-size: 13.5px; }

@media (max-width: 560px) {
  .orbit { max-width: 300px; }
  .orbit__hub { width: 88px; height: 88px; }
  .orbit__hub-img { width: 58px; }
  .orbit__node { padding: 6px 11px; --orbit-r: 41cqmin; }
  .orbit__node .orbit__logo { height: 11px; }
  .orbit__node .orbit__logo--tall { height: 17px; }
  .orbit__node .lockup { font-size: 11px; }
}
.orbit__hub { animation: pulse 4.5s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 14px 40px -10px rgba(83,167,171,.6), 0 0 0 0 rgba(83,167,171,.3); }
  50%       { box-shadow: 0 14px 40px -10px rgba(83,167,171,.6), 0 0 0 26px rgba(83,167,171,0); }
}
@media (prefers-reduced-motion: reduce) { .orbit__hub { animation: none; } }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 54px; }
}

/* ---------- pillar cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 60px; }
.card {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(142, 209, 211, .5); background: rgba(255,255,255,.07); }
.card__tag {
  display: inline-block; font-family: var(--display); font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--teal-light);
  background: rgba(83, 167, 171, .16); border-radius: 999px; padding: 5px 13px; margin-bottom: 20px;
}
.card h3 { font-size: 21px; margin-bottom: 12px; color: #fff; }
.card p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }

/* ---------- story ---------- */
.story { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: center; }
.story__copy p { color: var(--muted); margin-bottom: 16px; }
.story__copy .section__title { margin-bottom: 26px; }
.story__founder { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.story__founder strong { display: block; font-family: var(--display); color: #fff; }
.story__founder span:last-child span, .story__founder div span { color: var(--muted); font-size: 14px; }
.story__quote {
  background: var(--glass); border: 1px solid var(--line); color: #fff; border-radius: var(--radius);
  padding: 46px 42px; position: relative; overflow: hidden;
}
.story__quote::before {
  content: ""; position: absolute; inset: auto -60px -80px auto; width: 240px; height: 240px;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(83,167,171,.45), transparent);
}
.story__quote blockquote {
  font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 1.45;
  margin-bottom: 22px; position: relative;
}
.story__quote figcaption { color: var(--teal-light); font-family: var(--display); font-size: 14px; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; gap: 44px; } }
@media (max-width: 640px) {
  .story__quote { padding: 34px 26px; }
  .story__quote blockquote { font-size: 20px; }
}

/* ---------- team (galactic) ---------- */
.section--space {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(83,167,171,.22), transparent 60%),
    radial-gradient(900px 480px at 8% 108%, rgba(47,126,131,.28), transparent 62%),
    var(--navy);
  color: #fff;
}
/* starfield */
.section--space::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .8;
  background-image:
    radial-gradient(1.2px 1.2px at 22px 34px, #fff, transparent),
    radial-gradient(1px 1px at 118px 90px, rgba(255,255,255,.85), transparent),
    radial-gradient(1.6px 1.6px at 196px 26px, rgba(142,209,211,.95), transparent),
    radial-gradient(1px 1px at 62px 158px, rgba(255,255,255,.7), transparent),
    radial-gradient(1.4px 1.4px at 152px 202px, #fff, transparent),
    radial-gradient(1px 1px at 236px 130px, rgba(255,255,255,.6), transparent),
    radial-gradient(1.2px 1.2px at 90px 246px, rgba(142,209,211,.8), transparent),
    radial-gradient(1px 1px at 210px 262px, rgba(255,255,255,.75), transparent);
  background-size: 280px 280px;
}
.space__decor { position: absolute; inset: 0; pointer-events: none; }
.space__planet { position: absolute; border-radius: 50%; }
.space__planet--1 {
  width: 190px; height: 190px; right: -60px; top: 90px;
  background: radial-gradient(circle at 32% 30%, #8ed1d3, #2f7e83 58%, #123a4b);
  box-shadow: 0 0 70px rgba(83,167,171,.4);
  opacity: .55;
}
.space__planet--2 {
  width: 110px; height: 110px; left: -34px; bottom: 140px;
  background: radial-gradient(circle at 35% 30%, #a5e6e8, #3f8e92 60%, #0f3140);
  box-shadow: 0 0 50px rgba(83,167,171,.35);
  opacity: .5;
}
.section--space .container { position: relative; }
.section--space .section__lede { color: var(--muted); }

.avatar-img {
  width: 84px; height: 84px; border-radius: 50%; flex: none;
  margin-bottom: 16px; display: block;
  border: 2px solid rgba(142, 209, 211, .55);
  box-shadow: 0 0 24px rgba(83, 167, 171, .35);
  background: var(--navy);
}
.avatar-img--sm { width: 48px; height: 48px; margin-bottom: 0; box-shadow: 0 0 14px rgba(83,167,171,.3); }

.team__group {
  font-size: 22px; margin: 64px 0 28px; display: flex; align-items: baseline; gap: 14px; color: #fff;
}
.team__group span { font-family: var(--body); font-weight: 400; font-size: 14.5px; color: var(--faint); }
.team__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px; }
.member {
  background: var(--glass); border: 1px solid rgba(142, 209, 211, .22);
  border-radius: var(--radius); backdrop-filter: blur(4px);
  padding: 28px 24px; display: flex; flex-direction: column; align-items: flex-start;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.member:hover { transform: translateY(-3px); border-color: rgba(142, 209, 211, .6); background: rgba(255, 255, 255, .08); }
.member strong { font-family: var(--display); font-size: 16.5px; margin-bottom: 4px; color: #fff; }
.member > span:last-child { color: var(--muted); font-size: 13.5px; line-height: 1.5; }

/* ---------- portfolio / ventures ---------- */
.portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pcard {
  --brand: 83, 167, 171; /* teal fallback; overridden per venture */
  display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(155deg, rgba(var(--brand), .2), rgba(var(--brand), .05) 58%), var(--glass);
  border: 1px solid rgba(var(--brand), .38); border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.pcard:hover {
  transform: translateY(-5px); border-color: rgba(var(--brand), .75);
  box-shadow: 0 14px 44px -14px rgba(var(--brand), .45);
}
.pcard--neuly     { --brand: 61, 165, 106; }   /* green */
.pcard--trialflow { --brand: 244, 167, 187; }  /* soft pink */
.pcard--pi        { --brand: 242, 141, 119; }  /* peach */
.pcard--psyrise   { --brand: 242, 140, 31; }   /* orange */
.pcard--matter    { --brand: 43, 82, 199; }    /* dark blue */
.pcard--peppy     { --brand: 139, 92, 246; }   /* purple */
.pcard h3 { font-size: 22px; color: #fff; }
.pcard__logo { display: flex; align-items: center; min-height: 40px; }
.pcard__logo > img { height: 30px; width: auto; display: block; max-width: 100%; }
.pcard__logo > .pcard__logo-tall { height: 40px; }
.pcard__logo .lockup { font-size: 24px; }
.pcard h3::after { content: " ↗"; font-size: 15px; color: rgba(255,255,255,.85); opacity: 0; transition: opacity .15s ease; margin-left: 8px; }
.pcard:hover h3::after { opacity: 1; }
.pcard p { color: var(--muted); font-size: 15px; flex: 1; }
.pcard__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pcard__tags span {
  font-family: var(--display); font-size: 12px; font-weight: 600;
  color: #eef1fb; background: rgba(var(--brand), .24);
  border-radius: 999px; padding: 4px 12px;
}
@media (max-width: 980px) { .portfolio { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .portfolio { grid-template-columns: 1fr; } }

/* ---------- process / dark ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 90px; }
.step__num {
  font-family: var(--display); font-weight: 700; font-size: 15px;
  color: var(--teal-light); letter-spacing: .1em; display: block; margin-bottom: 16px;
  border-top: 2px solid rgba(142, 209, 211, .35); padding-top: 16px;
}
.step h3 { font-size: 21px; margin-bottom: 12px; color: #fff; }
.step p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 32px; } }

.bigstats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
  border-top: 1px solid var(--line-soft); padding-top: 54px;
}
@media (max-width: 720px) { .bigstats { grid-template-columns: 1fr 1fr; } }

/* ---------- CTA ---------- */
.cta { padding-bottom: 130px; }
.cta__inner { text-align: center; }
.cta__form {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  max-width: 640px; margin: 0 auto;
}
.cta__form input {
  flex: 1 1 200px; padding: 14px 20px; border-radius: 999px;
  border: 1.5px solid var(--line); background: rgba(255, 255, 255, .06);
  font-family: var(--body); font-size: 15.5px; color: var(--text);
}
.cta__form input::placeholder { color: var(--faint); }
.cta__form input:focus { border-color: var(--teal); }
.cta__note { margin-top: 18px; font-size: 14.5px; color: var(--teal-light); min-height: 1.4em; }

/* ---------- footer ---------- */
.footer { background: #05071f; border-top: 1px solid var(--line-soft); color: var(--muted); padding: 76px 0 36px; }
.footer .nav__logo { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 56px; }
.footer__brand p { margin-top: 16px; font-size: 15px; color: var(--faint); max-width: 280px; }
.footer__col { display: flex; flex-direction: column; gap: 11px; }
.footer__col h4 { color: #fff; font-size: 15px; margin-bottom: 6px; }
.footer__col a { color: var(--faint); font-size: 14.5px; transition: color .15s ease, opacity .15s ease; }
.footer__col a:hover { color: var(--teal-light); }
.footer__legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  border-top: 1px solid var(--line-soft); padding-top: 28px;
  font-size: 13.5px; color: var(--faint);
}
.footer__legal a { color: var(--faint); }
.footer__legal a:hover { color: var(--teal-light); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
