/* =========================================
   P.S.K Biosciences — Shared Stylesheet
   ========================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a2740;
  background: #ffffff;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

:root {
  --primary: #0f9d58;
  --primary-dark: #0a7a45;
  --accent: #1f4ea8;
  --ink: #0f1a30;
  --ink-soft: #4a5872;
  --muted: #8895ad;
  --line: #e5ebf2;
  --bg-soft: #f6f9fc;
  --bg-dark: #0c1a2e;
  --bg-dark2: #142339;
  --shadow-sm: 0 4px 14px rgba(15, 26, 48, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 26, 48, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 26, 48, 0.18);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }
.reveal.delay-4 { transition-delay: .4s; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--bg-dark);
  color: #d9e4f5;
  font-size: 12.5px;
  letter-spacing: .04em;
  padding: 8px 0;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar a { color: #6dd49a; font-weight: 500; }
.topbar a:hover { color: #fff; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 18px rgba(15,26,48,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 78px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
}
.logo img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > li > a {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .01em;
  transition: color .25s var(--ease);
}
.nav > li > a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .35s var(--ease);
}
.nav > li > a:hover, .nav > li > a.active { color: var(--primary); }
.nav > li > a:hover::after, .nav > li > a.active::after { transform: scaleX(1); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, 8px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 240px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.dropdown a:hover { background: var(--bg-soft); color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.search-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.search-toggle:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.header-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform .3s var(--ease), opacity .3s var(--ease), top .3s var(--ease), bottom .3s var(--ease);
}
.menu-toggle span::before { position: absolute; top: -7px; }
.menu-toggle span::after { position: absolute; bottom: -7px; }
.menu-toggle.open span { background: transparent; }
.menu-toggle.open span::before { top: 0; transform: rotate(45deg); }
.menu-toggle.open span::after { bottom: 0; transform: rotate(-45deg); }

/* ---------- Search overlay ---------- */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 16, 30, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 18vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-box {
  width: 100%;
  max-width: 720px;
  margin: 0 28px;
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform .35s var(--ease);
}
.search-overlay.open .search-box { transform: translateY(0); }
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 18px;
}
.search-input-wrap svg { color: var(--muted); flex-shrink: 0; }
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 20px;
  color: var(--ink);
  font-family: inherit;
  background: transparent;
}
.search-input::placeholder { color: var(--muted); }
.search-hint { color: var(--muted); font-size: 12px; }

.search-results { max-height: 50vh; overflow-y: auto; }
.search-results-empty { color: var(--muted); padding: 20px 4px; text-align: center; font-size: 14px; }
.search-result {
  padding: 12px 14px;
  border-radius: 10px;
  display: block;
  color: var(--ink);
  transition: background .2s var(--ease);
}
.search-result:hover { background: var(--bg-soft); }
.search-result .res-type {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 4px;
  padding: 2px 8px;
  background: rgba(15,157,88,.10);
  border-radius: 4px;
}
.search-result .res-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--ink);
}
.search-result .res-snip { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.search-result mark { background: rgba(255,213,79,.55); padding: 0 2px; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: all .3s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(15,157,88,.35); }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.btn-outline { background: var(--bg-soft); color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Section base ---------- */
section { padding: 110px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head.left { text-align: left; margin-left: 0; }
.section-tag {
  display: inline-block;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 3.6vw, 46px);
  color: var(--ink);
  line-height: 1.18;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto;
}
.section-head.left .section-sub { margin: 0; }

/* ---------- Regulatory timeline (natural platform) ---------- */
.timeline { padding: 100px 0; background: var(--bg-soft); }
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 50px;
}
.timeline-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.timeline-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.timeline-card .year {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  color: var(--primary);
  margin-bottom: 10px;
}
.timeline-card .label { font-weight: 600; color: var(--ink); font-size: 16px; margin-bottom: 12px; }
.timeline-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.65; margin: 0; }
@media (max-width: 900px) { .timeline-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .timeline-grid { grid-template-columns: 1fr; } }

/* ---------- Program list (CNS pipeline cards) ---------- */
.program-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}
.program-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.program-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 100% 0%, rgba(15,157,88,.08), transparent 70%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.program-card:hover::before { opacity: 1; }
.program-card .phase {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(15,157,88,.10);
  color: var(--primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.program-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.25;
}
.program-card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}
@media (max-width: 768px) {
  .program-list-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- Home Hero ---------- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #07101e;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(7,16,30,.92) 0%, rgba(7,16,30,.72) 40%, rgba(7,16,30,.50) 100%);
  z-index: 1;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: .6;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  padding: 60px 0 80px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(15,157,88,.18);
  border: 1px solid rgba(15,157,88,.35);
  color: #7ceba5;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 22px;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.hero-tag .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #7ceba5;
  box-shadow: 0 0 12px #7ceba5;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.18;
  letter-spacing: -.015em;
  color: #fff;
  margin-bottom: 28px;
  max-width: 720px;
  text-shadow: 0 2px 24px rgba(0,0,0,.45);
}
.hero h1 strong {
  font-weight: 700;
  color: #7ceba5;
}
.hero .lead {
  font-size: 18px;
  color: #c4d2e6;
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-card {
  padding: 24px 20px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.stat-card .num {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  margin-bottom: 10px;
}
.stat-card .num em {
  font-style: normal;
  color: #6dd49a;
}
.stat-card .lbl {
  font-size: 14px;
  color: #c4d2e6;
  line-height: 1.55;
}
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,.55);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.mouse {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 12px;
  position: relative;
}
.mouse::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 6px;
  background: rgba(255,255,255,.75);
  border-radius: 2px;
  animation: scrollWheel 1.8s infinite;
}
@keyframes scrollWheel {
  0% { opacity: 1; transform: translate(-50%, 0); }
  80% { opacity: 0; transform: translate(-50%, 10px); }
  100% { opacity: 0; }
}

/* ---------- Page Hero (interior pages) ---------- */
.page-hero {
  position: relative;
  padding: 130px 0 80px;
  color: #fff;
  overflow: hidden;
  background: radial-gradient(120% 80% at 20% 0%, #103a55 0%, #0c1a2e 60%, #07101e 100%);
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(60% 40% at 80% 30%, rgba(15,157,88,.35), transparent 70%),
    radial-gradient(50% 50% at 10% 80%, rgba(31,78,168,.45), transparent 70%);
  z-index: -1;
}
.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9aacc8;
  margin-bottom: 18px;
}
.page-hero .breadcrumb a { color: #9aacc8; transition: color .2s var(--ease); }
.page-hero .breadcrumb a:hover { color: #6dd49a; }
.page-hero .breadcrumb .sep { color: rgba(255,255,255,.25); }
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: -.015em;
}
.page-hero h1 .accent {
  background: linear-gradient(120deg, #6dd49a 0%, #5fb9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-hero p {
  font-size: 18px;
  color: #c4d2e6;
  max-width: 680px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-dark2);
  color: #c4d2e6;
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand { max-width: 320px; }
.footer-brand img { height: 52px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; line-height: 1.7; color: #9aacc8; }
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: #c4d2e6;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.footer-social a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.footer-col h5 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  color: #9aacc8;
  font-size: 14px;
  transition: color .25s var(--ease), padding-left .25s var(--ease);
}
.footer-col ul a:hover { color: var(--primary); padding-left: 4px; }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #7891b2;
}
.footer-bottom a { color: #9aacc8; }
.footer-bottom a:hover { color: var(--primary); }
.footer-bottom .legal-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  section { padding: 80px 0; }
  .hero { min-height: auto; padding: 120px 0 70px; }
  .hero h1 { font-size: clamp(26px, 6.5vw, 38px); margin-bottom: 24px; }
  .hero-inner { padding: 0; gap: 32px; }
  .hero-actions { justify-content: center; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 18px 14px; }
  .stat-card .num { font-size: 28px; margin-bottom: 8px; }
  .stat-card .lbl { font-size: 12px; }
  .scroll-hint { display: none; }
  .nav,
  .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-open .nav {
    display: flex;
    position: fixed;
    top: 78px;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px 24px;
    gap: 0;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 78px);
    overflow-y: auto;
  }
  .nav-open .nav > li { width: 100%; }
  .nav-open .nav > li > a { padding: 14px 12px; width: 100%; display: block; border-bottom: 1px solid var(--line); }
  .nav-open .dropdown { position: static; transform: none; box-shadow: none; border: none; padding: 0 12px 12px; opacity: 1; visibility: visible; }
  .nav-open .has-dropdown:hover .dropdown,
  .nav-open .has-dropdown:focus-within .dropdown { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .page-hero { padding: 100px 0 60px; }
}
