/* ============================================
   ALYCIUM INC. — v7 Premium Interactive
   ============================================ */

@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700&display=swap');

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

:root {
  --bg-black: #000000;
  --bg-void: #06060B;
  --bg-deep: #0B1120;
  --bg-dark: #111827;
  --bg-white: #FFFFFF;
  --bg-snow: #F9FAFB;
  --bg-alt: #F3F4F6;

  --lav-50: #F5F3FF;
  --lav-100: #EDE9FE;
  --lav-200: #DDD6FE;
  --lav-300: #C4B5FD;
  --lav-400: #A78BFA;
  --lav-500: #8B5CF6;
  --lav-600: #7C3AED;

  --ice-50: #ECFEFF;
  --ice-100: #CFFAFE;
  --ice-200: #A5F3FC;
  --ice-300: #67E8F9;
  --ice-400: #22D3EE;
  --ice-500: #06B6D4;

  --grad: linear-gradient(135deg, var(--lav-400), var(--ice-400));
  --grad-subtle: linear-gradient(135deg, var(--lav-300), var(--ice-300));
  --grad-text: linear-gradient(135deg, var(--lav-400), var(--ice-300));

  --t-white: #FFFFFF;
  --t-light: #D1D5DB;
  --t-mid: #9CA3AF;
  --t-muted: #6B7280;
  --t-dark: #111827;
  --t-heading: #111827;
  --t-body: #374151;

  --b-dark: rgba(255,255,255,0.08);
  --b-light: #E5E7EB;
  --b-subtle: rgba(255,255,255,0.05);

  --sh-sm: 0 1px 3px rgba(0,0,0,0.06);
  --sh-md: 0 4px 16px rgba(0,0,0,0.08);
  --sh-lg: 0 12px 40px rgba(0,0,0,0.12);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max-w: 1200px;
  --sec-pad: clamp(3.5rem, 6vw, 5.5rem);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 9999px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-white);
  color: var(--t-dark);
  line-height: 1.65;
  overflow-x: hidden;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }

/* TYPOGRAPHY */
h1, h2, h3, h4 { font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); letter-spacing: -0.02em; }
h4 { font-size: 1.05rem; letter-spacing: -0.01em; }

.label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; display: inline-block;
}

.accent {
  background: var(--grad-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Section modes */
.s-dark { background: var(--bg-void); }
.s-dark h1, .s-dark h2, .s-dark h3, .s-dark h4 { color: var(--t-white); }
.s-dark p, .s-dark li { color: var(--t-light); }
.s-dark .label { color: var(--lav-300); }

.s-light { background: var(--bg-white); }
.s-light h1, .s-light h2, .s-light h3, .s-light h4 { color: var(--t-heading); }
.s-light p, .s-light li { color: var(--t-body); }
.s-light .label { color: var(--lav-500); }

.s-alt { background: var(--bg-snow); }
.s-alt h1, .s-alt h2, .s-alt h3, .s-alt h4 { color: var(--t-heading); }
.s-alt p, .s-alt li { color: var(--t-body); }
.s-alt .label { color: var(--lav-500); }

.s-blue { background: var(--bg-snow); }
.s-blue h1, .s-blue h2, .s-blue h3, .s-blue h4 { color: var(--t-heading); }
.s-blue p, .s-blue li { color: var(--t-body); }
.s-blue .label { color: var(--lav-500); }

.s-deep { background: var(--bg-deep); }
.s-deep h1, .s-deep h2, .s-deep h3, .s-deep h4 { color: var(--t-white); }
.s-deep p, .s-deep li { color: var(--t-light); }
.s-deep .label { color: var(--ice-300); }

/* Pastel lavender section */
.s-lav { background: #F0ECFE; }
.s-lav h1, .s-lav h2, .s-lav h3, .s-lav h4 { color: var(--t-heading); }
.s-lav h2 { color: var(--lav-600); }
.s-lav p, .s-lav li { color: var(--t-body); }
.s-lav .label { color: var(--lav-500); }

/* Pastel ice section */
.s-ice { background: #ECFBFE; }
.s-ice h1, .s-ice h2, .s-ice h3, .s-ice h4 { color: var(--t-heading); }
.s-ice h2 { color: #0E7490; }
.s-ice p, .s-ice li { color: var(--t-body); }
.s-ice .label { color: var(--ice-500); }

/* DISCLAIMERS */
.disclaimer { font-size: 0.7rem; color: var(--t-muted); line-height: 1.6; max-width: 800px; opacity: 0.7; }
.disclaimer--center { text-align: center; margin: 0 auto; }
.disclaimer strong { color: var(--t-heading); font-weight: 600; }
.s-dark .disclaimer { color: var(--t-mid); }
.s-dark .disclaimer strong { color: var(--t-light); }

.disclaimer-sep {
  height: 1px; max-width: 400px; margin: 2rem auto 1rem;
  background: linear-gradient(90deg, transparent, var(--b-light), transparent);
}
.s-dark .disclaimer-sep { background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent); }

/* SCROLL PROGRESS */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--grad); z-index: 9999;
  transform-origin: left; transform: scaleX(0);
}

/* NAVIGATION */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; padding: 1.25rem 0; transition: all 0.5s var(--ease);
}
.nav--scrolled {
  background: rgba(6,6,11,0.92);
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--b-subtle); padding: 0.65rem 0;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
}
.nav__logo { display: flex; align-items: center; gap: 0.75rem; }
.nav__logo-mark { width: 32px; height: 30px; }
.nav__logo-mark svg { width: 100%; height: 100%; }
.nav__logo-text {
  font-size: 1.05rem; font-weight: 500; color: var(--t-white);
  letter-spacing: 0.28em; text-transform: uppercase;
}
.nav__links { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav__links a {
  font-size: 0.82rem; font-weight: 500; color: var(--t-mid);
  letter-spacing: 0.02em; transition: color 0.3s ease; position: relative;
}
.nav__links a:hover, .nav__links a.active { color: var(--t-white); }
.nav__links a::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 0; height: 2px; background: var(--grad);
  border-radius: 1px; transition: width 0.3s var(--ease);
}
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__cta {
  padding: 0.5rem 1.4rem !important; background: var(--grad) !important;
  border-radius: var(--r-pill) !important; color: var(--t-white) !important;
  font-weight: 600 !important; font-size: 0.72rem !important;
  letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 2px 14px rgba(139,92,246,0.2); transition: all 0.35s var(--ease) !important;
}
.nav__cta::after { display: none !important; }
.nav__cta:hover { box-shadow: 0 4px 24px rgba(139,92,246,0.35) !important; transform: translateY(-1px); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; background: none; border: none; }
.nav__toggle span { width: 24px; height: 2px; background: var(--t-white); transition: all 0.3s ease; display: block; }
.nav__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
    background: var(--bg-dark); flex-direction: column; justify-content: center;
    gap: 2.5rem; transition: right 0.4s var(--ease); border-left: 1px solid var(--b-dark);
  }
  .nav__links.open { right: 0; }
  .nav__links a { font-size: 1.1rem; }
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 2.2rem; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: var(--r-pill); border: none; cursor: pointer;
  transition: all 0.35s var(--ease);
}
.btn--primary { background: var(--ice-400); color: var(--t-white); box-shadow: 0 4px 20px rgba(34,211,238,0.2); }
.btn--primary:hover { background: var(--ice-500); box-shadow: 0 8px 32px rgba(6,182,212,0.35); transform: translateY(-2px); }
.btn--outline { background: var(--lav-400); color: var(--t-white); border: none; box-shadow: 0 4px 20px rgba(167,139,250,0.25); }
.btn--outline:hover { background: var(--lav-500); box-shadow: 0 8px 32px rgba(139,92,246,0.35); transform: translateY(-2px); }
.btn__arrow { transition: transform 0.35s var(--ease); font-size: 1.1em; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* GEOMETRIC PATTERN */
.geo-pattern {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='rgba(167,139,250,0.05)' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 60px 60px; pointer-events: none; z-index: 1;
}
.geo-mesh {
  position: absolute; right: -5%; top: 50%; transform: translateY(-50%);
  width: 50%; max-width: 600px; z-index: 2; opacity: 0.5; pointer-events: none;
}
.geo-mesh svg { width: 100%; height: auto; }
@media (max-width: 1024px) { .geo-mesh { display: none; } }

/* HERO */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 5rem; background: var(--bg-black);
}
.hero__video-wrap { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__video {
  position: absolute; top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  transform: translate(-50%, -50%); object-fit: cover;
}
.hero__video-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(6,6,11,0.6) 50%, rgba(6,6,11,0.95) 100%);
}
.hero__content { position: relative; z-index: 10; max-width: 660px; }
.hero__label { margin-bottom: 1.25rem; color: var(--lav-300); }
.hero__title { color: var(--t-white); margin-bottom: 1.25rem; line-height: 1.06; }
.hero__subtitle {
  font-size: clamp(0.92rem, 1.3vw, 1.05rem); color: rgba(255,255,255,0.92);
  max-width: 520px; margin-bottom: 2rem; line-height: 1.75;
  text-shadow: 0 0 30px rgba(167,139,250,0.25), 0 0 60px rgba(167,139,250,0.1);
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* OVERVIEW — Interactive Panels */
.overview { padding: var(--sec-pad) 0; position: relative; background: var(--bg-void); }
.overview__panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; border-radius: var(--r-lg); overflow: hidden; }

.overview__panel {
  position: relative; min-height: 420px; display: flex;
  align-items: flex-end; cursor: default; overflow: hidden;
}
.overview__panel-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform 0.8s var(--ease);
}
.overview__panel:hover .overview__panel-bg { transform: scale(1.08); }
.overview__panel-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,6,11,0.92) 0%, rgba(6,6,11,0.4) 50%, rgba(6,6,11,0.2) 100%);
  transition: all 0.6s var(--ease);
}
.overview__panel:hover .overview__panel-overlay {
  background: linear-gradient(to top, rgba(6,6,11,0.95) 0%, rgba(6,6,11,0.55) 50%, rgba(6,6,11,0.35) 100%);
}
.overview__panel-content { position: relative; z-index: 2; padding: 2rem 1.75rem; width: 100%; }
.overview__panel-icon {
  width: 44px; height: 44px; margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(167,139,250,0.15);
  border: 1px solid rgba(167,139,250,0.2); transition: all 0.5s var(--ease);
}
.overview__panel:hover .overview__panel-icon {
  background: var(--grad); border-color: transparent; box-shadow: 0 0 20px rgba(139,92,246,0.3);
}
.overview__panel-icon svg { width: 22px; height: 22px; stroke: var(--lav-300); transition: stroke 0.3s ease; }
.overview__panel:hover .overview__panel-icon svg { stroke: white; }
.overview__panel h3 { color: var(--t-white); font-size: 1.3rem; margin-bottom: 0; transition: all 0.4s var(--ease); }
.overview__panel:hover h3 { margin-bottom: 0.75rem; }
.overview__panel-desc {
  max-height: 0; overflow: hidden; opacity: 0; color: var(--t-light);
  font-size: 0.9rem; line-height: 1.7;
  transition: max-height 0.6s var(--ease), opacity 0.5s ease 0.1s;
}
.overview__panel:hover .overview__panel-desc { max-height: 200px; opacity: 1; }
.overview__panel-line { width: 0; height: 2px; background: var(--grad); margin-top: 1rem; transition: width 0.6s var(--ease); }
.overview__panel:hover .overview__panel-line { width: 60px; }

@media (max-width: 768px) {
  .overview__panels { grid-template-columns: 1fr; }
  .overview__panel { min-height: 280px; }
  /* Tap to expand on mobile */
  .overview__panel.panel--tapped h3 { margin-bottom: 0.75rem; }
  .overview__panel.panel--tapped .overview__panel-desc { max-height: 200px; opacity: 1; }
  .overview__panel.panel--tapped .overview__panel-line { width: 60px; }
  .overview__panel.panel--tapped .overview__panel-overlay {
    background: linear-gradient(to top, rgba(6,6,11,0.95) 0%, rgba(6,6,11,0.55) 50%, rgba(6,6,11,0.35) 100%);
  }
  .overview__panel.panel--tapped .overview__panel-icon {
    background: var(--grad); border-color: transparent;
  }
  .overview__panel.panel--tapped .overview__panel-icon svg { stroke: white; }
}

.overview__disclaimer { margin-top: 2rem; }

/* CTA */
.cta {
  text-align: center; padding: var(--sec-pad) 0;
  background: var(--bg-void); position: relative; overflow: hidden;
}
.cta h2, .cta p, .cta .btn, .cta .label, .cta .disclaimer { position: relative; z-index: 1; }
.cta p { max-width: 460px; margin: 0 auto 2rem; }

/* FOOTER */
.footer { background: var(--bg-void); border-top: 1px solid var(--b-dark); padding: 3rem 0 1.5rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer__brand p { font-size: 0.85rem; color: var(--t-muted); margin-top: 0.75rem; max-width: 280px; line-height: 1.65; }
.footer__col h4 { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-mid); margin-bottom: 1rem; }
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 0.6rem; }
.footer__col a { font-size: 0.85rem; color: var(--t-muted); transition: color 0.3s ease; }
.footer__col a:hover { color: var(--t-white); }
.footer__bottom { border-top: 1px solid var(--b-dark); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer__bottom p { font-size: 0.75rem; color: var(--t-muted); }
.footer__bottom-links { display: flex; gap: 2rem; }
.footer__bottom-links a { font-size: 0.75rem; color: var(--t-muted); transition: color 0.3s ease; }
.footer__bottom-links a:hover { color: var(--t-light); }
.footer__legal { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--b-dark); }
.footer__legal p { font-size: 0.65rem; color: var(--t-muted); opacity: 0.6; line-height: 1.65; max-width: 900px; }

/* footer mobile handled below */

/* PAGE HERO */
.page-hero {
  padding: 10rem 0 4.5rem; text-align: center;
  position: relative; overflow: hidden; background: var(--bg-black);
}
.page-hero .label, .page-hero h1, .page-hero p { position: relative; z-index: 3; }
.page-hero p { max-width: 580px; margin: 0 auto; font-size: 1rem; }

.pipeline-hero {
  padding: 10rem 0 4rem; text-align: center;
  position: relative; overflow: hidden; background: var(--bg-black);
}
.pipeline-hero .label, .pipeline-hero h1, .pipeline-hero p { position: relative; z-index: 3; }
.pipeline-hero p { max-width: 560px; margin: 0 auto; font-size: 1rem; }

/* =============================================
   SCIENCE PAGE
   ============================================= */
.science-section { padding: var(--sec-pad) 0; position: relative; overflow: hidden; }

.science__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.science__grid--reverse { direction: rtl; }
.science__grid--reverse > * { direction: ltr; }

.science__visual {
  aspect-ratio: 16/10; border-radius: var(--r-lg); overflow: hidden;
  position: relative; box-shadow: var(--sh-lg);
}
.science__visual-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.science__visual:hover .science__visual-img { transform: scale(1.06); filter: brightness(1.1); }
.science__visual::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(34,211,238,0.05));
  opacity: 0; transition: opacity 0.6s var(--ease);
}
.science__visual:hover::before { opacity: 1; }
.science__visual::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 40%; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.science__text .label { margin-bottom: 0.75rem; display: block; }
.science__text h2 { margin-bottom: 1rem; }
.science__text p { margin-bottom: 0.85rem; line-height: 1.8; font-size: 0.94rem; }
.science__features { list-style: none; margin-top: 1.25rem; }
.science__features li { padding: 0.55rem 0 0.55rem 1.75rem; position: relative; font-size: 0.9rem; }
.science__features li::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: var(--lav-400);
}

@media (max-width: 768px) {
  .science__grid, .science__grid--reverse { grid-template-columns: 1fr; gap: 2rem; direction: ltr; }
}

/* Full-bleed image banner */
.science-banner {
  position: relative; min-height: 360px; display: flex; align-items: center; overflow: hidden;
}
.science-banner__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  background-attachment: fixed;
}
.science-banner__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(6,6,11,0.85), rgba(11,17,32,0.8));
}
.science-banner__content {
  position: relative; z-index: 2; max-width: var(--max-w); margin: 0 auto;
  padding: var(--sec-pad) 2rem;
}

/* DIAGRAM */
.diagram { padding: var(--sec-pad) 0; text-align: center; }
.diagram__header { margin-bottom: 3rem; }
.diagram__header .label { display: block; margin-bottom: 0.75rem; }
.diagram__header p { max-width: 530px; margin: 0.75rem auto 0; }
.diagram__flow {
  display: flex; align-items: stretch; justify-content: center;
  gap: 0; max-width: 1000px; margin: 0 auto; position: relative;
}
.diagram__flow::before {
  content: ''; position: absolute; top: 50%; left: 7%; right: 7%; height: 2px;
  background: var(--grad); opacity: 0.12; z-index: 0;
}
.diagram__step {
  flex: 1; padding: 1.75rem 1.25rem;
  background: var(--bg-white); border: 1px solid var(--b-light); border-radius: var(--r-md);
  text-align: center; transition: all 0.5s var(--ease);
  position: relative; z-index: 1; margin: 0 0.5rem;
}
.diagram__step:hover {
  transform: translateY(-6px); box-shadow: 0 16px 48px rgba(139,92,246,0.1); border-color: var(--lav-200);
}
.diagram__step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--grad);
  color: var(--t-white); font-size: 0.72rem; font-weight: 700; margin-bottom: 0.85rem;
}
.diagram__step h4 { color: var(--t-heading); margin-bottom: 0.4rem; transition: color 0.3s ease; }
.diagram__step:hover h4 { color: var(--lav-600); }
.diagram__step p { font-size: 0.82rem; color: var(--t-body); line-height: 1.5; }

@media (max-width: 768px) {
  .diagram__flow { flex-direction: column; gap: 0.75rem; }
  .diagram__flow::before { display: none; }
  .diagram__step { margin: 0; cursor: pointer; }
  /* Tap to glow on mobile */
  .diagram__step.step--tapped {
    transform: translateY(-4px);
    border-color: var(--lav-200);
    box-shadow: 0 12px 36px rgba(139,92,246,0.12);
  }
  .diagram--dark .diagram__step.step--tapped {
    background: rgba(167,139,250,0.08);
    border-color: rgba(167,139,250,0.25);
    box-shadow: 0 12px 36px rgba(139,92,246,0.2);
  }
  .diagram--dark .diagram__step.step--tapped h4 { color: var(--lav-300); }
  .diagram__step.step--tapped h4 { color: var(--lav-600); }
}

/* Dark diagram variant */
.diagram--dark { background: var(--bg-void); position: relative; overflow: hidden; }
.diagram--dark .diagram__header h2 { color: var(--t-white); }
.diagram--dark .diagram__header p { color: var(--t-light); }
.diagram--dark .diagram__header .label { color: var(--lav-300); }

.diagram--dark .diagram__step {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
}

.diagram--dark .diagram__step h4 { color: var(--t-white); }
.diagram--dark .diagram__step p { color: var(--t-light); }
.diagram--dark .diagram__flow::before { opacity: 0.2; }

.diagram--dark .diagram__step:hover {
  background: rgba(167,139,250,0.08);
  border-color: rgba(167,139,250,0.25);
  box-shadow: 0 16px 48px rgba(139,92,246,0.2), 0 0 0 1px rgba(167,139,250,0.15);
  transform: translateY(-8px) scale(1.02);
}

.diagram--dark .diagram__step:hover h4 { color: var(--lav-300); }

.diagram--dark .diagram__step-num {
  box-shadow: 0 0 20px rgba(139,92,246,0.3);
}

.diagram--dark .diagram__step:hover .diagram__step-num {
  box-shadow: 0 0 30px rgba(139,92,246,0.5);
  transform: scale(1.1);
}

.diagram--dark .disclaimer { color: var(--t-mid); }
.diagram--dark .disclaimer-sep { background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent); }

/* =============================================
   PIPELINE — DARK INTERACTIVE CHART
   ============================================= */
.pipeline-overview {
  padding: var(--sec-pad) 0;
  background: var(--bg-void);
  position: relative; overflow: hidden;
}

.pipeline-overview__header { text-align: center; margin-bottom: 3rem; position: relative; z-index: 2; }
.pipeline-overview__header h2 { color: var(--t-white); }
.pipeline-overview__header p { max-width: 560px; margin: 0.75rem auto 0; color: var(--t-light); }
.pipeline-overview__header .label { color: var(--lav-300); }

.pipeline-chart-v2 { margin-bottom: 2rem; position: relative; z-index: 2; }

.pcv2__header {
  display: grid; grid-template-columns: 240px repeat(5, 1fr);
  gap: 4px; margin-bottom: 0.5rem;
}
.pcv2__label-col {
  font-size: 0.63rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--t-muted); padding: 0.65rem 0;
}
.pcv2__stage-col {
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--t-muted); padding: 0.65rem 0.5rem;
  text-align: center; border-bottom: 1px solid rgba(255,255,255,0.06);
}

.pcv2__row {
  display: grid; grid-template-columns: 240px repeat(5, 1fr);
  gap: 4px; align-items: center; padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: all 0.4s var(--ease);
  border-radius: 8px;
}

.pcv2__row:hover {
  background: rgba(167,139,250,0.06);
  transform: scale(1.015);
  z-index: 2;
}

.pcv2__row:hover .pcv2__cell--filled {
  box-shadow: 0 2px 24px rgba(139,92,246,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
  filter: brightness(1.15);
}

.pcv2__row:hover .pcv2__cell--current {
  box-shadow: 0 2px 32px rgba(139,92,246,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
  filter: brightness(1.2);
}

.pcv2__row:hover .pcv2__cell--current::after {
  opacity: 0.5;
  filter: blur(12px);
}

.pcv2__row:hover .pcv2__name {
  color: var(--lav-300);
}

.pcv2__row:hover .pcv2__cell {
  border-color: rgba(167,139,250,0.12);
}

.pcv2__row .pcv2__label-col { padding: 1rem 0; }
.pcv2__name { display: block; font-size: 0.92rem; font-weight: 600; color: var(--t-white); }
.pcv2__indication { display: block; font-size: 0.76rem; color: var(--t-mid); margin-top: 0.1rem; }

.pcv2__cell {
  height: 38px; border-radius: 6px;
  background: rgba(255,255,255,0.03);
  position: relative; transition: all 0.4s var(--ease);
  border: 1px solid rgba(255,255,255,0.04);
}

.pcv2__cell--filled {
  background: var(--grad);
  box-shadow: 0 2px 16px rgba(139,92,246,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
  border-color: transparent;
}

.pcv2__cell--current {
  background: var(--grad);
  box-shadow: 0 2px 20px rgba(139,92,246,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  border-color: transparent;
  animation: cell-glow 3s ease-in-out infinite;
  position: relative;
}

.pcv2__cell--current::after {
  content: '';
  position: absolute; inset: -2px; border-radius: 8px;
  background: var(--grad); opacity: 0.3;
  filter: blur(8px); z-index: -1;
  animation: cell-glow 3s ease-in-out infinite;
}

@keyframes cell-glow {
  0%, 100% { box-shadow: 0 2px 16px rgba(139,92,246,0.2); }
  50% { box-shadow: 0 2px 30px rgba(139,92,246,0.45); }
}

.pcv2__cell--current.pcv2__cell--violet {
  background: linear-gradient(135deg, var(--lav-500), var(--lav-600));
  animation: cell-glow-v 3s ease-in-out infinite;
}

.pcv2__cell--current.pcv2__cell--violet::after {
  background: linear-gradient(135deg, var(--lav-500), var(--lav-600));
}

@keyframes cell-glow-v {
  0%, 100% { box-shadow: 0 2px 16px rgba(124,58,237,0.2); }
  50% { box-shadow: 0 2px 30px rgba(124,58,237,0.45); }
}

.pcv2__cell--partial {
  background: linear-gradient(90deg, var(--lav-500) 60%, transparent 60%);
  display: flex; align-items: center; justify-content: center;
  border-color: rgba(139,92,246,0.2);
}
.pcv2__cell--partial.pcv2__cell--violet { background: linear-gradient(90deg, rgba(139,92,246,0.8) 55%, transparent 55%); }

.pcv2__cell--planned {
  background: linear-gradient(90deg, rgba(107,114,128,0.2) 20%, transparent 20%);
  display: flex; align-items: center; justify-content: center;
  border-color: rgba(255,255,255,0.04);
}

/* Interactive rows */
.pcv2__row--interactive {
  cursor: pointer;
  position: relative;
}

.pcv2__row--interactive:hover {
  transform: scale(1.025);
  background: rgba(167,139,250,0.08);
}

.pcv2__row--interactive:hover .pcv2__cell--filled,
.pcv2__row--interactive:hover .pcv2__cell--current {
  filter: brightness(1.2);
  box-shadow: 0 2px 28px rgba(139,92,246,0.45);
}

.pcv2__row--interactive:hover .pcv2__name { color: var(--lav-300); }

/* Dropdown description */
.pcv2__dropdown {
  grid-column: 1 / -1;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 1rem;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--t-light);
  transition: max-height 0.5s var(--ease), opacity 0.4s ease 0.05s, padding 0.5s var(--ease);
  border-top: 0px solid rgba(167,139,250,0.1);
}

.pcv2__row--open .pcv2__dropdown {
  max-height: 120px;
  opacity: 1;
  padding: 0.85rem 1rem;
  border-top-width: 1px;
}

.pcv2__row--open {
  background: rgba(167,139,250,0.06);
  border-radius: 8px;
}

.pcv2__cell-tag { font-size: 0.56rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: white; white-space: nowrap; }
.pcv2__cell--planned .pcv2__cell-tag { color: var(--t-muted); font-size: 0.53rem; }

/* Animated fill bars */
.pcv2__cell--filled,
.pcv2__cell--current { transform: scaleX(0); transform-origin: left; }
.pcv2__cell--filled.animate,
.pcv2__cell--current.animate { transform: scaleX(1); transition: transform 0.8s var(--ease); }

.pcv2__row:nth-child(2) .pcv2__cell--filled.animate,
.pcv2__row:nth-child(2) .pcv2__cell--current.animate { transition-delay: 0s; }
.pcv2__row:nth-child(3) .pcv2__cell--filled.animate,
.pcv2__row:nth-child(3) .pcv2__cell--current.animate { transition-delay: 0.15s; }
.pcv2__row:nth-child(4) .pcv2__cell--filled.animate,
.pcv2__row:nth-child(4) .pcv2__cell--current.animate { transition-delay: 0.3s; }
.pcv2__row:nth-child(5) .pcv2__cell--filled.animate,
.pcv2__row:nth-child(5) .pcv2__cell--current.animate { transition-delay: 0.45s; }

.pipeline-overview .disclaimer { color: var(--t-mid); }
.pipeline-overview .disclaimer-sep { background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent); }

@media (max-width: 768px) {
  .pcv2__header { display: none; }
  .pcv2__row, .pcv2__row--interactive {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .pcv2__row .pcv2__label-col { padding: 0 0 0.6rem 0; }
  .pcv2__name { font-size: 1rem; }
  .pcv2__indication { font-size: 0.8rem; }
  .pcv2__cell { display: none; }
  .pcv2__cell--current, .pcv2__cell--filled:last-of-type,
  .pcv2__cell--partial, .pcv2__cell--planned {
    display: flex;
    height: 32px;
    border-radius: 8px;
    margin-top: 0.25rem;
  }
  /* Show only the active/current cell as a status bar */
  .pcv2__cell--current, .pcv2__cell--partial, .pcv2__cell--planned {
    display: flex;
    width: 100%;
  }
  .pcv2__cell-tag { font-size: 0.6rem; }
  .pcv2__cell--planned .pcv2__cell-tag { font-size: 0.58rem; }
  .pcv2__dropdown {
    font-size: 0.8rem;
    padding: 0 0;
  }
  .pcv2__row--open .pcv2__dropdown {
    padding: 0.75rem 0 0;
    max-height: 160px;
    border-top: none;
  }
  .pcv2__row--interactive:hover {
    transform: none;
  }
}

/* Pipeline detail cards */
.pipeline-details { padding: var(--sec-pad) 0; }
.pipeline-card-detail {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center; padding: 3rem 0;
}
.pipeline-card-detail:nth-child(odd) { padding-left: 2rem; padding-right: 2rem; margin: 0 -2rem; }
.pipeline-card-detail:nth-child(even) { background: #F0ECFE; padding-left: 2rem; padding-right: 2rem; margin: 0 -2rem; }
.pipeline-card-detail:nth-child(4n+3) { background: #ECFBFE; padding-left: 2rem; padding-right: 2rem; margin: 0 -2rem; }
.pipeline-card-detail:nth-child(even) { direction: rtl; }
.pipeline-card-detail:nth-child(even) > * { direction: ltr; }

.pipeline-detail__visual {
  aspect-ratio: 16/10; border-radius: var(--r-lg); overflow: hidden;
  position: relative; box-shadow: var(--sh-lg); background: var(--bg-dark);
}
.pipeline-detail__visual-inner {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; position: relative; overflow: hidden;
}
.pipeline-detail__visual-inner img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.6;
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease), opacity 0.7s var(--ease);
}
.pipeline-detail__visual:hover img { transform: scale(1.06); filter: brightness(1.15); opacity: 0.75; }
.pipeline-detail__visual::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(34,211,238,0.04));
  opacity: 0; transition: opacity 0.6s var(--ease);
}
.pipeline-detail__visual:hover::after { opacity: 1; }

.pipeline-detail__badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  padding: 0.35rem 0.85rem; border-radius: var(--r-pill);
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(6,6,11,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: var(--lav-300); border: 1px solid rgba(167,139,250,0.25);
}
.pipeline-detail__badge--discovery { color: var(--ice-300); border-color: rgba(103,232,249,0.25); }
.pipeline-detail__badge--planned { color: var(--t-mid); border-color: rgba(255,255,255,0.12); }

.pipeline-detail__text .label { margin-bottom: 0.6rem; display: block; }
.pipeline-detail__text h3 { color: var(--t-heading); margin-bottom: 0.6rem; }
.pipeline-detail__text p { margin-bottom: 0.75rem; line-height: 1.8; font-size: 0.92rem; }
.pipeline-detail__text ul { list-style: none; margin-top: 0.75rem; }
.pipeline-detail__text ul li { padding: 0.4rem 0 0.4rem 1.5rem; position: relative; font-size: 0.88rem; }
.pipeline-detail__text ul li::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--lav-400);
}

@media (max-width: 768px) {
  .pipeline-card-detail, .pipeline-card-detail:nth-child(even) { grid-template-columns: 1fr; gap: 2rem; direction: ltr; }
}

/* DEVICE MOCKUP */
.device-mockup {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #06060B, #0B1120); padding: 2rem;
  position: relative; overflow: hidden;
}
.device {
  width: 85%; max-width: 380px;
  background: linear-gradient(145deg, #111827, #0B1120);
  border-radius: 20px; border: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.device__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.85rem; padding-bottom: 0.65rem; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.device__logo { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--t-white); opacity: 0.8; }
.device__status { display: flex; align-items: center; gap: 0.35rem; }
.device__status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #00e68a; box-shadow: 0 0 8px rgba(0,230,138,0.5);
  animation: glow-pulse 2s ease-in-out infinite;
}
@keyframes glow-pulse { 0%, 100% { box-shadow: 0 0 8px rgba(0,230,138,0.5); } 50% { box-shadow: 0 0 16px rgba(0,230,138,0.8); } }
.device__status-text { font-size: 0.52rem; font-weight: 600; color: #00e68a; letter-spacing: 0.08em; text-transform: uppercase; }
.device__screen {
  background: rgba(0,0,0,0.4); border-radius: 12px; padding: 1.1rem;
  border: 1px solid rgba(255,255,255,0.04); margin-bottom: 0.85rem;
}
.device__screen-label { font-size: 0.52rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t-muted); margin-bottom: 0.4rem; }
.device__screen-value { font-size: 1.8rem; font-weight: 700; color: var(--lav-300); line-height: 1; margin-bottom: 0.4rem; }
.device__screen-value span { font-size: 0.75rem; font-weight: 500; color: var(--t-mid); margin-left: 0.2rem; }
.device__waveform { height: 45px; position: relative; overflow: hidden; }
.device__waveform svg { width: 100%; height: 100%; }
.device__waveform-line {
  fill: none; stroke: var(--lav-400); stroke-width: 2; stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(167,139,250,0.4)); animation: ecg-draw 2.5s linear infinite;
}
@keyframes ecg-draw { 0% { stroke-dashoffset: 400; } 100% { stroke-dashoffset: 0; } }
.device__metrics { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.4rem; }
.device__metric {
  text-align: center; padding: 0.4rem; background: rgba(255,255,255,0.02);
  border-radius: 8px; border: 1px solid rgba(255,255,255,0.04);
}
.device__metric-val { font-size: 0.82rem; font-weight: 700; color: var(--t-white); line-height: 1; margin-bottom: 0.15rem; }
.device__metric-label { font-size: 0.48rem; color: var(--t-muted); letter-spacing: 0.08em; text-transform: uppercase; }

/* INVESTOR PORTAL */
.portal {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 7rem 2rem; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #0B1120 0%, #131B2E 40%, #0E1525 100%);
}
.portal__card { width: 100%; max-width: 440px; position: relative; z-index: 10; }
.portal__logo { text-align: center; margin-bottom: 2.5rem; }
.portal__logo-text { font-size: 1.1rem; font-weight: 500; color: var(--t-white); letter-spacing: 0.28em; text-transform: uppercase; }
.portal__box {
  background: rgba(15,20,35,0.85); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg); padding: 2.5rem 2rem;
  backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
}
.portal__box h2 { font-size: 1.15rem; color: var(--t-white); margin-bottom: 0.4rem; text-align: center; }
.portal__subtitle { text-align: center; color: var(--t-light); font-size: 0.85rem; margin-bottom: 1.75rem; }
.portal__form { display: flex; flex-direction: column; gap: 1.1rem; }
.portal__field label { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-light); margin-bottom: 0.35rem; }
.portal__field input {
  width: 100%; padding: 0.8rem 1rem; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08); border-radius: var(--r-sm);
  color: var(--t-white); font-size: 0.92rem; font-family: inherit; transition: all 0.3s ease; outline: none;
}
.portal__field input:focus { border-color: var(--lav-400); box-shadow: 0 0 0 3px rgba(167,139,250,0.15); background: rgba(255,255,255,0.06); }
.portal__field input::placeholder { color: var(--t-muted); }
.portal__submit { width: 100%; padding: 0.85rem; margin-top: 0.4rem; justify-content: center; }
.portal__lock-icon { display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.portal__lock-icon svg { width: 36px; height: 36px; stroke: var(--lav-300); }
.portal__notice {
  text-align: center; margin-top: 1.75rem; padding: 1.1rem;
  background: rgba(167,139,250,0.04); border: 1px solid rgba(167,139,250,0.1);
  border-radius: var(--r-sm); transition: all 0.4s ease;
}
.portal__notice p { font-size: 0.8rem; color: var(--t-light); line-height: 1.65; }
.portal__sec-disclaimer { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--b-dark); }
.portal__sec-disclaimer p { font-size: 0.75rem; color: var(--t-mid); opacity: 1; line-height: 1.65; text-align: center; }

/* SCROLL ANIMATIONS */
.reveal { opacity: 0; transform: translateY(35px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal--left { opacity: 0; transform: translateX(-35px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal--left.visible { opacity: 1; transform: translateX(0); }
.reveal--right { opacity: 0; transform: translateX(35px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal--right.visible { opacity: 1; transform: translateX(0); }
.reveal--scale { opacity: 0; transform: scale(0.95); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal--scale.visible { opacity: 1; transform: scale(1); }
.stagger > * { opacity: 0; transform: translateY(25px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.24s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.stagger.visible > * { opacity: 1; transform: translateY(0); }

/* Science timeline desktop */
.science-timeline-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
}

.science-timeline-step { text-align: center; }

/* Mobile arrows hidden on desktop */
.science-timeline-arrow { display: none; }

/* Science timeline mobile — clean 2x2 */
@media (max-width: 768px) {
  .science-timeline-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
  }
  .science-timeline-connector { display: none !important; }
  .science-timeline-arrow { display: none !important; }
  .science-timeline-step { text-align: center; }
}

/* Footer mobile cleanup */
@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
  }
  .footer__brand { text-align: center; }
  .footer__brand p { max-width: 100%; margin-left: auto; margin-right: auto; }
  .footer__col { text-align: center; }
  .footer__col:nth-of-type(2),
  .footer__col:nth-of-type(3) { display: none; }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
    padding-top: 1rem;
  }
  .footer__bottom-links { justify-content: center; }
  .footer__legal {
    margin-top: 1rem;
    padding-top: 1rem;
    text-align: center;
  }
  .footer__legal p {
    font-size: 0.58rem;
    line-height: 1.5;
  }
}

/* Pipeline chart mobile improvements */
@media (max-width: 768px) {
  .pcv2__row--interactive { cursor: pointer; }
  .pipeline-chart-v2 {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
  }
  .pcv2__dropdown {
    font-size: 0.75rem;
    line-height: 1.6;
  }
  .pcv2__row--open .pcv2__dropdown {
    max-height: 150px;
  }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
