/* Implexsys Therapeutics — shared styles */
:root {
  --plum: #7B3F8C;
  --crimson: #D92B3C;
  --ink: #2A1E30;
  --text: #4A3A52;
  --muted: #7A6B80;
  --tint: #F7F2F8;
  --line: #E8DEEB;
  --white: #FFFFFF;
  --grad: linear-gradient(90deg, var(--plum), var(--crimson));
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--plum); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Placeholder text: replace these before going live, then delete the class */
.ph { background: #FFF4C2; border-bottom: 1px dashed #C9A300; padding: 0 3px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mark { height: 44px; width: auto; }
.brand .word { height: 26px; width: auto; }
.nav ul { list-style: none; display: flex; gap: 6px; }
.nav a.link {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px;
  padding: 8px 14px; border-radius: 999px;
}
.nav a.link:hover { background: var(--tint); }
.nav a.link[aria-current="page"] { color: var(--white); background: var(--plum); }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: 999px; transition: transform .15s, box-shadow .15s;
}
.btn-primary { color: var(--white); background: var(--grad); box-shadow: 0 6px 18px rgba(185,45,80,.25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(185,45,80,.32); }
.btn-ghost { color: var(--plum); border: 1.5px solid var(--plum); }
.btn-ghost:hover { background: var(--tint); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 104px; }
.hero::before {
  content: ""; position: absolute; right: -180px; top: -140px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(217,43,60,.10), rgba(123,63,140,.06) 45%, transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--plum); margin-bottom: 18px;
}
h1, h2, h3 { color: var(--ink); line-height: 1.15; font-weight: 600; }
h1 { font-size: clamp(36px, 5.2vw, 58px); letter-spacing: -0.02em; margin-bottom: 22px; }
h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--text); max-width: 34em; margin-bottom: 34px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(340px, 80%); filter: drop-shadow(0 20px 40px rgba(123,63,140,.18)); }

/* Page hero (inner pages) */
.page-hero { background: var(--tint); padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.page-hero h1, .page-hero .h1-like { font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 14px; }
.page-hero p { font-size: 18px; max-width: 40em; }

/* Sections */
section.block { padding: 88px 0; }
section.alt { background: var(--tint); }
.section-head { max-width: 44em; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 14px; letter-spacing: -0.01em; }

/* Cards with hexagon icon motif */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: 0 2px 10px rgba(42,30,48,.04);
}
.hex {
  width: 52px; height: 58px; margin-bottom: 20px; display: grid; place-items: center;
  background: var(--grad); color: var(--white); font-weight: 600; font-size: 18px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { font-size: 16px; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 18px; }
.split p + p { margin-top: 14px; }
.panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px;
}

/* Steps */
.steps { list-style: none; counter-reset: s; display: grid; gap: 18px; }
.steps li {
  counter-increment: s; position: relative; padding: 22px 24px 22px 76px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.steps li::before {
  content: counter(s); position: absolute; left: 22px; top: 22px; width: 36px; height: 40px;
  display: grid; place-items: center; color: var(--white); font-weight: 600;
  background: var(--grad); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.steps strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }

/* CTA band */
.cta {
  background: var(--ink); color: #E9DFEC; border-radius: 20px; padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta h2 { color: var(--white); font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-item h3 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--plum); margin-bottom: 8px; }
.contact-item p, .contact-item a { font-size: 17px; color: var(--ink); }

/* Footer */
.site-footer { background: var(--ink); color: #BFB0C5; padding: 48px 0 36px; margin-top: 0; font-size: 15px; }
.footer-grid { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.site-footer .tag { color: var(--white); font-weight: 500; margin-bottom: 4px; }
.site-footer a { color: #E9DFEC; text-decoration: none; margin-right: 18px; }
.site-footer a:hover { text-decoration: underline; }
.legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 20px; font-size: 13px; }

/* Platform animation */
.figure {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: 0 8px 30px rgba(42,30,48,.06);
}
.figure video, .figure img { width: 100%; height: auto; border-radius: 8px; }
.figure figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; font-size: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 22px; height: 4px; border-radius: 2px; display: inline-block; }
.split.wide-right { grid-template-columns: .9fr 1.1fr; }
.checks { list-style: none; display: grid; gap: 20px; margin-top: 8px; }
.checks li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.checks .hex { width: 36px; height: 40px; margin: 2px 0 0; font-size: 14px; }
.checks strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 2px; }
.checks p { font-size: 16px; }

/* Challenge page */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card.big { padding: 36px 32px; }
.card.big h3 { font-size: 22px; margin-bottom: 12px; }
.ticks { list-style: none; margin-top: 20px; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15.5px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 11px; background: var(--grad);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.compare { padding: 8px 0; }
.compare .row { display: grid; grid-template-columns: .8fr 1fr 1fr; gap: 14px; padding: 14px 24px; border-top: 1px solid var(--line); font-size: 15px; }
.compare .row:first-child { border-top: 0; }
.compare .head span { font-weight: 600; color: var(--ink); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.compare [role="rowheader"] { font-weight: 600; color: var(--ink); }
.compare .win { color: var(--plum); font-weight: 500; }

.hurdles {
  margin-top: 24px; background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px;
}
.hurdles h3 { font-size: 18px; margin-bottom: 4px; }
.hurdles .ticks { border-top: 0; padding-top: 0; margin-top: 14px; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hurdles .ticks strong { color: var(--ink); font-weight: 600; }

/* Pipeline statement */
.pipeline { background: var(--ink); color: #E9DFEC; border-radius: 20px; padding: 56px; }
.pipeline .eyebrow { color: #E7B9C9; }
.pipeline .statement { color: var(--white); font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; line-height: 1.35; max-width: 30em; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.tags span { padding: 8px 18px; border-radius: 999px; background: var(--grad); color: var(--white); font-weight: 600; font-size: 14px; }

/* Mobile */
@media (max-width: 860px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid, .split, .split.wide-right, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; }
  .hero-art img { width: 180px; }
  .cards, .duo, .hurdles .ticks { grid-template-columns: 1fr; }
  .compare .row { padding: 12px 16px; gap: 10px; font-size: 14px; }
  section.block { padding: 64px 0; }
  .cta, .pipeline { padding: 36px 28px; }
}
@media (max-width: 560px) {
  .brand .word { display: none; }
  .nav { gap: 8px; }
  .brand { flex-shrink: 0; }
  .brand .mark { height: 36px; }
  .nav ul { gap: 2px; }
  .nav a.link { padding: 7px 8px; font-size: 13px; }
  body { font-size: 16px; }
}
