/* AIGA Therapeutics — Website Stylesheet */
:root {
  --navy:      #0D1B4E;
  --navy-mid:  #162354;
  --navy-dark: #080F2B;
  --cyan:      #00AEEF;
  --cyan-light:#29D9F5;
  --cyan-pale: rgba(0,174,239,0.12);
  --white:     #FFFFFF;
  --off-white: #F4F8FC;
  --text:      #1A2340;
  --text-mid:  #4A5470;
  --text-light:#8A96B8;
  --border:    rgba(0,174,239,0.2);
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 32px rgba(13,27,78,0.14);
  --shadow-lg: 0 12px 60px rgba(13,27,78,0.22);
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
  --nav-h:     72px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
h1, h2, h3, h4, h5 { font-family: 'Montserrat', sans-serif; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { line-height: 1.75; color: var(--text-mid); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section   { padding: 100px 0; position: relative; }
.centered  { text-align: center; }
.section-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px; display: inline-block; }
.section-label.light { color: var(--cyan-light); }
.section-header { margin-bottom: 64px; }
.section-header h2 { margin-bottom: 16px; }
.section-desc { max-width: 620px; margin: 0 auto; font-size: 1.05rem; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: 50px; font-size: 0.95rem; font-weight: 600; transition: var(--transition); letter-spacing: 0.02em; }
.btn-primary { background: linear-gradient(135deg, var(--cyan), #0080C9); color: var(--white); box-shadow: 0 4px 20px rgba(0,174,239,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,174,239,0.5); }
.btn-ghost { background: rgba(255,255,255,0.1); color: var(--white); border: 2px solid rgba(255,255,255,0.4); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); border-color: var(--white); }
.full-width { width: 100%; justify-content: center; }
.gradient-text { background: linear-gradient(135deg, var(--cyan-light), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* NAV */
#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-h); transition: background var(--transition), box-shadow var(--transition); }
#navbar.scrolled { background: rgba(8,15,43,0.96); box-shadow: 0 2px 24px rgba(0,0,0,0.25); backdrop-filter: blur(16px); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 40px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(0,174,239,0.3)); }
.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a { color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 500; transition: color var(--transition); position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--cyan); transform: scaleX(0); transition: transform var(--transition); }
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { background: linear-gradient(135deg, #00AEEF, #0080C9) !important; color: #FFFFFF !important; padding: 10px 24px; border-radius: 50px; font-weight: 600 !important; display: inline-flex; align-items: center; }
.nav-cta::after { display: none !important; }
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: white; border-radius: 2px; transition: var(--transition); }

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 50%, #0A2060 100%); overflow: hidden; }
#hexCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.35; }
.hero-content { position: relative; z-index: 2; max-width: 760px; padding: 120px 24px 80px; margin: 0 auto; text-align: center; }
.hero-badge { display: inline-block; padding: 8px 20px; background: rgba(0,174,239,0.15); border: 1px solid rgba(0,174,239,0.4); border-radius: 50px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan-light); margin-bottom: 28px; backdrop-filter: blur(8px); }
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,0.72); margin-bottom: 44px; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); z-index: 2; }
.hero-scroll span { display: block; width: 24px; height: 40px; border: 2px solid rgba(255,255,255,0.3); border-radius: 12px; position: relative; }
.hero-scroll span::after { content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background: var(--cyan); border-radius: 2px; animation: scrollPulse 1.8s ease-in-out infinite; }
@keyframes scrollPulse { 0% { transform: translateX(-50%) translateY(0); opacity: 1; } 100% { transform: translateX(-50%) translateY(16px); opacity: 0; } }

/* STATS */
.stats-bar { background: linear-gradient(135deg, var(--navy), #1A2E70); display: flex; align-items: center; justify-content: center; gap: 0; padding: 36px 32px; flex-wrap: wrap; row-gap: 32px; }
.stat { flex: 1; min-width: 160px; text-align: center; padding: 0 24px; }
.stat-num { font-family: 'Montserrat', sans-serif; font-size: 2.4rem; font-weight: 800; color: var(--cyan); line-height: 1; }
.stat-unit { font-family: 'Montserrat', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--cyan-light); }
.stat-label { display: block; font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-top: 8px; max-width: 140px; margin-left: auto; margin-right: auto; line-height: 1.4; }
.stat-divider { width: 1px; height: 60px; background: rgba(255,255,255,0.12); flex-shrink: 0; }

/* ABOUT */
.about-section { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-text h2 { margin-bottom: 20px; }
.about-text p { margin-bottom: 16px; }
.about-text .btn { margin-top: 16px; }
.hex-card-grid { display: flex; flex-direction: column; gap: 16px; }
.hex-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 18px;
  align-items: center;
  transition: var(--transition);
}
.hex-card:hover { border-color: var(--cyan); border-left-color: var(--cyan); box-shadow: var(--shadow); transform: translateX(6px); }
.hex-icon { width: 42px; height: 42px; background: linear-gradient(135deg, var(--cyan), #0080C9); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1rem; flex-shrink: 0; }
.hex-body { display: flex; flex-direction: column; gap: 4px; }
.hex-card h4 { margin: 0; font-size: 1rem; }
.hex-card p  { font-size: 0.88rem; margin: 0; line-height: 1.55; }

/* SCIENCE */
.science-section { background: var(--navy-dark); color: var(--white); overflow: hidden; }
.science-bg { position: absolute; inset: 0; background: url('assets/hero-bg.png') center/cover no-repeat; opacity: 0.07; }
.science-section .section-desc { color: rgba(255,255,255,0.65); }
.science-section h2 { color: var(--white); }
.science-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 64px; }
.sci-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); padding: 36px 28px; position: relative; transition: var(--transition); }
.sci-card:hover { background: rgba(0,174,239,0.08); border-color: rgba(0,174,239,0.4); transform: translateY(-4px); }
.sci-card.featured { background: rgba(0,174,239,0.1); border-color: rgba(0,174,239,0.5); }
.sci-card-icon { width: 56px; height: 56px; color: var(--cyan); margin-bottom: 20px; }
.sci-card h3 { color: var(--white); margin-bottom: 12px; }
.sci-card p  { color: rgba(255,255,255,0.65); font-size: 0.95rem; }
.card-tag { position: absolute; top: 20px; right: 20px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); background: rgba(0,174,239,0.15); border: 1px solid rgba(0,174,239,0.3); padding: 4px 10px; border-radius: 50px; }
.science-explainer { display: flex; align-items: flex-start; gap: 8px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-lg); padding: 40px 32px; flex-wrap: wrap; }
.explainer-step { flex: 1; min-width: 160px; }
.step-num { font-family: 'Montserrat', sans-serif; font-size: 2rem; font-weight: 800; color: rgba(0,174,239,0.25); line-height: 1; margin-bottom: 12px; }
.explainer-step h4 { color: var(--cyan); margin-bottom: 8px; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.explainer-step p  { color: rgba(255,255,255,0.55); font-size: 0.88rem; }
.explainer-arrow { font-size: 1.5rem; color: rgba(0,174,239,0.4); padding-top: 36px; flex-shrink: 0; }

/* PIPELINE */
.pipeline-section { background: var(--off-white); }
.pipeline-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--white); }
.pipeline-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.pipeline-table thead { background: linear-gradient(135deg, var(--navy), #1A2E70); color: var(--white); }
.pipeline-table th { padding: 16px 20px; text-align: left; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.75); }
.phase-header { text-align: center; border-left: 1px solid rgba(255,255,255,0.15); }
.phase-row th { padding: 8px 20px; font-size: 0.72rem; }
.phase-label { text-align: center; color: rgba(255,255,255,0.55); }
.pipeline-table tbody tr { border-bottom: 1px solid rgba(0,0,0,0.06); transition: background var(--transition); }
.pipeline-table tbody tr:hover { background: rgba(0,174,239,0.04); }
.pipeline-table td { padding: 20px 20px; font-size: 0.92rem; color: var(--text-mid); vertical-align: middle; }
.prog-name { font-weight: 700; color: var(--navy) !important; font-family: 'Montserrat', sans-serif; }
.undisclosed { color: var(--text-light) !important; font-style: italic; font-size: 0.85rem; }
.phase-bar { height: 8px; border-radius: 4px; background: rgba(0,0,0,0.08); width: 80%; margin: 0 auto; }
.phase-bar.active { background: linear-gradient(90deg, var(--cyan), #0080C9); }
.phase-bar.p33 { background: linear-gradient(90deg, var(--cyan) 33%, rgba(0,0,0,0.08) 33%); }
.phase-bar.p50 { background: linear-gradient(90deg, var(--cyan) 50%, rgba(0,0,0,0.08) 50%); }
.phase-bar.p15 { background: linear-gradient(90deg, var(--cyan) 15%, rgba(0,0,0,0.08) 15%); }
.pipeline-legend { display: flex; gap: 24px; justify-content: flex-end; margin-top: 20px; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-mid); }
.legend-dot { width: 12px; height: 12px; border-radius: 3px; background: rgba(0,0,0,0.12); }
.legend-dot.active { background: linear-gradient(90deg, var(--cyan), #0080C9); }
.pipeline-disclaimer { margin-top: 24px; font-size: 0.78rem; color: var(--text-light); font-style: italic; }

/* WHY ALPHA */
.why-section { background: var(--navy); color: var(--white); }
.why-bg { position: absolute; inset: 0; background: url('assets/hero-bg.png') center/cover no-repeat; opacity: 0.04; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.why-text h2 { color: var(--white); margin-bottom: 32px; }
.why-list { display: flex; flex-direction: column; gap: 28px; }
.why-list li { display: flex; gap: 18px; align-items: flex-start; }
.why-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.why-list strong { display: block; color: var(--white); margin-bottom: 4px; font-size: 1rem; }
.why-list p { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin: 0; }
.comparison-cards { display: flex; flex-direction: column; gap: 20px; }
.compare-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.compare-card.alpha-card { background: rgba(0,174,239,0.1); border-color: rgba(0,174,239,0.45); }
.compare-header { padding: 14px 24px; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.compare-header.beta { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.65); }
.compare-header.alpha { background: linear-gradient(135deg, rgba(0,174,239,0.35), rgba(0,128,201,0.35)); color: var(--cyan-light); }
.compare-card ul { padding: 16px 24px 20px; display: flex; flex-direction: column; gap: 10px; }
.compare-card li { font-size: 0.88rem; color: rgba(255,255,255,0.65); padding-left: 16px; position: relative; }
.compare-card li::before { content: '·'; position: absolute; left: 4px; color: var(--text-light); }
.compare-card.alpha-card li { color: rgba(255,255,255,0.85); }
.compare-card.alpha-card li::before { color: var(--cyan); }

/* ── HOW RLT WORKS ─────────────────────────────────────── */
.rlt-section { background: var(--navy-dark); color: var(--white); overflow: hidden; }
.rlt-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 60% 50%, rgba(0,174,239,0.07) 0%, transparent 70%); }

.rlt-canvas-wrap {
  position: relative;
  width: 100%;
  height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(0,174,239,0.15);
  margin-bottom: 56px;
}
#rltCanvas { width: 100%; height: 100%; display: block; }
.rlt-phase-label {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8,15,43,0.82);
  border: 1px solid rgba(0,174,239,0.3);
  color: var(--cyan-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  transition: opacity 0.4s ease;
}

.rlt-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.rlt-step {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
}
.rlt-step.active {
  background: rgba(0,174,239,0.1);
  border-color: rgba(0,174,239,0.5);
  box-shadow: 0 0 24px rgba(0,174,239,0.15);
}
.rlt-step-icon {
  width: 48px;
  height: 48px;
  color: var(--cyan);
  opacity: 0.6;
  transition: opacity var(--transition);
}
.rlt-step.active .rlt-step-icon { opacity: 1; }
.rlt-step-body {}
.rlt-step-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: rgba(0,174,239,0.2);
  line-height: 1;
  margin-bottom: 8px;
  transition: color var(--transition);
}
.rlt-step.active .rlt-step-num { color: rgba(0,174,239,0.5); }
.rlt-step h4 { color: var(--white); margin-bottom: 8px; font-size: 1rem; }
.rlt-step p  { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin: 0; line-height: 1.6; }

.rlt-callout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(0,174,239,0.06);
  border: 1px solid rgba(0,174,239,0.2);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}
.rlt-callout-icon { font-size: 2rem; flex-shrink: 0; margin-top: 2px; }
.rlt-callout strong { display: block; color: var(--white); font-size: 1rem; margin-bottom: 6px; }
.rlt-callout p { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin: 0; }

/* CONTACT (email only) */
.contact-section { background: var(--white); }
.contact-centered {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.contact-centered h2 { margin-bottom: 16px; }
.contact-centered p { margin-bottom: 36px; }
.contact-link-big {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--navy);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 18px 36px;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.contact-link-big:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.contact-link-big .contact-icon {
  width: 36px;
  height: 36px;
  background: rgba(0,174,239,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-note { font-size: 0.82rem; color: var(--text-light); margin-top: 4px; }

/* FOOTER */
footer { background: var(--navy-dark); color: rgba(255,255,255,0.65); padding-top: 64px; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px 48px; display: flex; gap: 80px; flex-wrap: wrap; }
.footer-brand { flex: 2; min-width: 220px; }
.footer-logo { height: 36px; object-fit: contain; margin-bottom: 20px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 300px; }
.footer-links { display: flex; gap: 64px; flex: 1; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; min-width: 120px; }
.footer-col h5 { color: var(--white); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.footer-col a { font-size: 0.88rem; color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 24px; text-align: center; font-size: 0.78rem; }
.footer-disclaimer { color: rgba(255,255,255,0.3); margin-top: 6px; }

/* SCROLL ANIMATIONS */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .about-grid, .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .science-cards { grid-template-columns: 1fr; }
  .stat-divider { display: none; }
  .stats-bar { gap: 32px; }
  .explainer-arrow { display: none; }
  .science-explainer { gap: 32px; }
  .rlt-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  :root { --nav-h: 60px; }

  #navbar {
    /* No backdrop-filter here — it creates a stacking context that traps
       position:fixed children (the mobile menu) inside the navbar bar.
       Solid background is sufficient at mobile sizes. */
    background: rgba(8,15,43,0.97);
    box-shadow: 0 2px 24px rgba(0,0,0,0.3);
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8,15,43,0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 9999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; }
  .nav-toggle { display: flex; position: relative; z-index: 10000; }

  /* Hamburger → X animation */
  .nav-toggle span { transition: transform 0.28s ease, opacity 0.28s ease; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .footer-inner { gap: 40px; }
  .pipeline-legend { justify-content: flex-start; }
  .rlt-steps { grid-template-columns: 1fr; }
  .rlt-canvas-wrap { height: 240px; }
  .rlt-callout { flex-direction: column; }
  .contact-link-big { font-size: 0.92rem; padding: 15px 24px; }
}
