/* ===== Nyxa Therapeutics — site styles ===================================
   Brand palette (locked):
     ink    #0B0E1A   cyan  #46E5D0   gold  #E8C46A
   Type: Jost (geometric sans, echoes the Futura wordmark)
   ========================================================================= */

:root {
  --ink:      #0B0E1A;
  --ink-2:    #10152a;   /* alt section bg */
  --ink-3:    #161c33;   /* cards */
  --line:     rgba(255,255,255,.09);
  --cyan:     #46E5D0;
  --gold:     #E8C46A;
  --text:     #E8ECF6;
  --muted:    #9aa3bd;
  --maxw:     1120px;
  --r:        16px;
  --ease:     cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--cyan); color: var(--ink);
  font-weight: 600; font-size: 1rem; letter-spacing: .01em;
  padding: .85em 1.6em; border-radius: 999px; border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  box-shadow: 0 8px 30px -12px rgba(70,229,208,.6);
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(70,229,208,.75); }
.btn--ghost {
  background: transparent; color: var(--text);
  border-color: var(--line); box-shadow: none;
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--sm { padding: .55em 1.1em; font-size: .9rem; }
.btn--lg { font-size: 1.15rem; padding: 1em 2em; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11,14,26,.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
}
.nav__logo { height: 30px; width: auto; display: block; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  font-size: .95rem; color: var(--muted); font-weight: 500;
  transition: color .2s; position: relative;
}
.nav__links a:hover { color: var(--text); }
.nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 190px 0 120px; overflow: hidden; }
.hero__glow {
  position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(70,229,208,.16), transparent 70%),
    radial-gradient(closest-side, rgba(232,196,106,.10), transparent 70%);
  background-position: 30% 30%, 75% 55%;
  background-repeat: no-repeat;
  background-size: 70% 70%, 55% 55%;
  filter: blur(10px);
}
.hero__inner { position: relative; text-align: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .22em; font-size: .8rem;
  font-weight: 600; color: var(--cyan); margin: 0 0 20px;
}
.hero__title {
  font-size: clamp(2.5rem, 6.2vw, 4.6rem); line-height: 1.05;
  font-weight: 600; letter-spacing: -.02em; margin: 0 auto 26px; max-width: 15ch;
}
.grad {
  background: linear-gradient(100deg, var(--cyan) 20%, var(--gold) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lede {
  font-size: clamp(1.1rem, 2.1vw, 1.4rem); color: var(--muted);
  max-width: 40ch; margin: 0 auto 38px; font-weight: 300;
}
.hero__lede em { color: var(--text); font-style: normal; font-weight: 500; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__tags {
  list-style: none; display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center; padding: 0; margin: 52px 0 0;
}
.hero__tags li {
  font-size: .85rem; color: var(--muted); font-weight: 500;
  border: 1px solid var(--line); border-radius: 999px; padding: .45em 1.1em;
  background: rgba(255,255,255,.02);
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section--alt { background: var(--ink-2); }
.section__title {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 600;
  letter-spacing: -.015em; line-height: 1.15; margin: 0 0 20px; max-width: 24ch;
}
.section__lede {
  font-size: 1.2rem; color: var(--muted); max-width: 62ch;
  margin: 0 0 50px; font-weight: 300;
}
.section__lede em { color: var(--text); font-style: normal; font-weight: 500; }
.pull {
  font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 500;
  text-align: center; margin: 60px auto 0; max-width: 24ch; line-height: 1.3;
  color: var(--text);
}
.pull b { color: var(--cyan); font-weight: 600; }

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 20px; margin-top: 40px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--ink-3); border: 1px solid var(--line);
  border-radius: var(--r); padding: 28px;
  transition: transform .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(70,229,208,.4); }
.card h3 { margin: 0 0 12px; font-size: 1.2rem; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card--accent { padding: 34px 28px; }
.card__icon {
  font-size: 1.6rem; color: var(--cyan); margin-bottom: 18px;
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 12px; background: rgba(70,229,208,.08);
  border: 1px solid rgba(70,229,208,.2);
}

/* ---------- Steps ---------- */
.steps {
  list-style: none; padding: 0; margin: 50px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none;
}
.step {
  background: var(--ink-3); border: 1px solid var(--line);
  border-radius: var(--r); padding: 30px 26px; position: relative;
  transition: transform .3s var(--ease), border-color .3s;
}
.step:hover { transform: translateY(-4px); border-color: rgba(232,196,106,.4); }
.step__n {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; font-weight: 700; font-size: 1.15rem;
  color: var(--ink); background: linear-gradient(135deg, var(--cyan), var(--gold));
  margin-bottom: 18px;
}
.step h3 { margin: 0 0 10px; font-size: 1.12rem; font-weight: 600; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Cargo chart ---------- */
.chart {
  margin-top: 46px; background: var(--ink-3);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 40px 36px 30px; position: relative;
}
.chart__ceiling {
  position: absolute; top: 30px; bottom: 78px;
  /* 4.7 of 11.1 kb scale, offset by label column (38%) */
  left: calc(38% + (100% - 38%) * (4.7 / 11.5));
  border-left: 2px dashed var(--gold);
}
.chart__ceiling span {
  position: absolute; top: -8px; left: 8px; white-space: nowrap;
  font-size: .78rem; color: var(--gold); font-weight: 600;
}
.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: 38% 1fr; align-items: center; gap: 14px; }
.bar__label { font-size: .9rem; color: var(--muted); text-align: right; }
.bar__fill {
  height: 30px; border-radius: 7px; position: relative;
  width: calc(var(--kb) / 11.5 * 100%);
  display: flex; align-items: center; justify-content: flex-end;
  min-width: 42px;
  transform-origin: left center; animation: growbar .9s var(--ease) both;
}
@keyframes growbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.bar__fill.fits { background: linear-gradient(90deg, rgba(70,229,208,.55), var(--cyan)); }
.bar__fill.over { background: linear-gradient(90deg, rgba(232,196,106,.55), var(--gold)); }
.bar__val {
  font-size: .82rem; font-weight: 700; color: var(--ink);
  padding-right: 10px;
}
.chart__legend {
  display: flex; gap: 28px; flex-wrap: wrap; margin-top: 26px;
  padding-top: 20px; border-top: 1px solid var(--line);
  font-size: .85rem; color: var(--muted);
}
.chart__legend span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.dot.fits { background: var(--cyan); }
.dot.over { background: var(--gold); }

/* ---------- Timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.phase {
  background: var(--ink-3); border: 1px solid var(--line);
  border-radius: var(--r); padding: 30px 28px;
  border-top: 3px solid var(--cyan);
  transition: transform .3s var(--ease);
}
.phase:nth-child(2) { border-top-color: var(--gold); }
.phase:nth-child(3) { border-top-color: #8b7bff; }
.phase:hover { transform: translateY(-4px); }
.phase__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.phase__tag { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.phase:nth-child(2) .phase__tag { color: var(--gold); }
.phase:nth-child(3) .phase__tag { color: #a99bff; }
.phase__when { font-size: .85rem; color: var(--muted); }
.phase h3 { margin: 0 0 16px; font-size: 1.2rem; font-weight: 600; }
.phase ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .95rem; }
.phase li { margin-bottom: 8px; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.founder__name {
  font-size: 1.4rem; font-weight: 600; margin: 0 0 24px;
  display: flex; flex-direction: column;
}
.founder__name span { font-size: .95rem; font-weight: 400; color: var(--cyan); margin-top: 4px; letter-spacing: .04em; }
.cv { list-style: none; padding: 0; margin: 0; }
.cv li {
  position: relative; padding-left: 26px; margin-bottom: 16px;
  color: var(--muted); font-size: 1rem;
}
.cv li::before {
  content: "▸"; position: absolute; left: 0; top: 0; color: var(--gold);
}

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact__inner { max-width: 720px; margin: 0 auto; }
.contact .section__title { margin: 0 auto 20px; }
.contact .section__lede { margin: 0 auto 40px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 50px 0; background: var(--ink); }
.footer__inner { text-align: center; }
.footer__logo { height: 26px; opacity: .85; margin-bottom: 20px; }
.footer__meta { color: var(--muted); font-size: .95rem; margin: 0 0 8px; }
.footer__meta a { color: var(--cyan); }
.footer__fine { color: #5b6480; font-size: .82rem; margin: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--4, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid--3, .timeline { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; gap: 32px; }
  .nav__links, .nav .btn--sm { display: none; }
  .nav__toggle {
    display: flex; flex-direction: column; gap: 5px; margin-left: auto;
    background: none; border: 0; cursor: pointer; padding: 6px;
  }
  .nav__toggle span { width: 24px; height: 2px; background: var(--text); transition: .3s; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__links.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(11,14,26,.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
  }
  .nav__links.open a { padding: 14px 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .grid--4, .steps { grid-template-columns: 1fr; }
  .hero { padding: 150px 0 90px; }
  .section { padding: 80px 0; }
  .bar { grid-template-columns: 42% 1fr; }
  .bar__label { font-size: .8rem; }
  .chart { padding: 34px 20px 26px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
