/* ============================================================
   Peptalyx Insights – Professional Research Education Site
   ============================================================ */

:root {
  --navy: #070e1c;
  --navy-2: #0c1629;
  --navy-3: #121f38;
  --card: rgba(18, 31, 56, 0.72);
  --border: rgba(148, 163, 184, 0.12);
  --border-hover: rgba(96, 165, 250, 0.35);
  --accent: #3b82f6;
  --accent-2: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.32);
  --teal: #14b8a6;
  --teal-soft: #2dd4bf;
  --purple: #8b5cf6;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --white: #ffffff;
  --radius: 16px;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --max: 1100px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--navy);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

/* ---------- Particles ---------- */
.bg-particles {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.bg-particles span {
  position: absolute; width: 4px; height: 4px; background: var(--accent-2);
  border-radius: 50%; opacity: 0.14; animation: float 18s infinite ease-in-out;
}
.bg-particles span:nth-child(1) { top: 15%; left: 10%; width: 6px; height: 6px; }
.bg-particles span:nth-child(2) { top: 65%; left: 80%; animation-delay: 3s; background: var(--teal-soft); }
.bg-particles span:nth-child(3) { top: 40%; left: 25%; animation-delay: 6s; width: 3px; height: 3px; }
.bg-particles span:nth-child(4) { top: 80%; left: 40%; animation-delay: 2s; background: var(--purple); }
.bg-particles span:nth-child(5) { top: 25%; left: 70%; animation-delay: 8s; width: 5px; height: 5px; }
.bg-particles span:nth-child(6) { top: 55%; left: 55%; animation-delay: 4s; background: var(--teal); }

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.12; }
  50% { transform: translateY(-40px) translateX(20px); opacity: 0.26; }
}

/* ---------- Banner ---------- */
.research-banner {
  position: relative; z-index: 50;
  background: linear-gradient(90deg, #0f766e, #0d9488, #0f766e);
  background-size: 200% 100%;
  animation: bannerShift 8s ease infinite;
  color: white; text-align: center;
  padding: 0.65rem 1rem; font-size: 0.875rem; font-weight: 500;
}
@keyframes bannerShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.research-banner a {
  color: #ccfbf1; text-decoration: underline; text-underline-offset: 3px; font-weight: 600;
}
.research-banner a:hover { color: white; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 14, 28, 0.88);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--white);
  font-weight: 600; font-size: 1.15rem; letter-spacing: -0.02em;
}
.logo-mark {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  border-radius: 9px; display: grid; place-items: center;
  font-size: 0.95rem; font-weight: 700; color: white;
  box-shadow: 0 4px 12px var(--accent-glow);
  transition: transform var(--transition);
}
.logo:hover .logo-mark { transform: scale(1.05); }

nav { display: flex; gap: 1.75rem; align-items: center; }
nav a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.925rem; font-weight: 500; position: relative;
  transition: color var(--transition);
}
nav a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--accent-2);
  border-radius: 2px; transition: width var(--transition);
}
nav a:hover, nav a.active { color: var(--white); }
nav a:hover::after, nav a.active::after { width: 100%; }

.nav-cta {
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: white !important; padding: 0.45rem 1.1rem;
  border-radius: 8px; font-size: 0.875rem;
  box-shadow: 0 4px 12px var(--accent-glow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--accent-glow);
  color: white !important;
}

.menu-toggle {
  display: none; background: none; border: none;
  color: var(--text); font-size: 1.5rem; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 1;
  padding: 4.5rem 1.5rem 5.5rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 10%, rgba(59, 130, 246, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(139, 92, 246, 0.1), transparent 50%),
    linear-gradient(180deg, var(--navy), var(--navy-2));
}

.hero-grid {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content { max-width: 520px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-2);
  margin-bottom: 1.25rem; padding: 0.35rem 0.85rem;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 999px;
}
.hero-eyebrow::before {
  content: ''; width: 7px; height: 7px;
  background: var(--teal-soft); border-radius: 50%;
  box-shadow: 0 0 8px var(--teal-soft);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; } 50% { opacity: 0.45; }
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 500; line-height: 1.15;
  color: var(--white); margin-bottom: 1.2rem;
  letter-spacing: -0.025em;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--accent-2), var(--teal-soft));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.1rem; color: var(--text-muted);
  margin-bottom: 2rem; line-height: 1.7;
}

.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero-visual {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.hero-visual img {
  width: 100%; height: 380px; object-fit: cover;
  display: block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.5rem; border-radius: 10px;
  font-weight: 600; font-size: 0.935rem;
  text-decoration: none; transition: all var(--transition);
  border: none; cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: white; box-shadow: 0 5px 18px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px var(--accent-glow);
}
.btn-secondary {
  background: rgba(255,255,255,0.04); color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(148,163,184,0.28);
  transform: translateY(-1px);
}

/* ---------- Safety Card ---------- */
.safety-wrap {
  position: relative; z-index: 10;
  max-width: var(--max); margin: -2.5rem auto 0;
  padding: 0 1.5rem;
}
.safety-card {
  background: rgba(18, 31, 56, 0.9);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: var(--radius);
  padding: 1.5rem 1.85rem;
  display: flex; gap: 1.25rem; align-items: flex-start;
  box-shadow: var(--shadow);
}
.safety-icon {
  flex-shrink: 0; width: 44px; height: 44px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--teal-soft); border-radius: 11px;
  display: grid; place-items: center; font-size: 1.3rem;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.safety-card h2 {
  font-size: 1.05rem; font-weight: 600; color: var(--white); margin-bottom: 0.35rem;
}
.safety-card p { font-size: 0.935rem; color: var(--text-muted); line-height: 1.65; }
.safety-card a {
  color: var(--teal-soft); text-decoration: underline;
  text-underline-offset: 2px; font-weight: 500;
}

/* ---------- Sections ---------- */
.section {
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto;
  padding: 4.5rem 1.5rem;
}
.section-header {
  text-align: center; margin-bottom: 2.75rem;
}
.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 500; color: var(--white);
  margin-bottom: 0.7rem; letter-spacing: -0.02em;
}
.section-header p {
  color: var(--text-muted); max-width: 500px;
  margin: 0 auto; font-size: 1.05rem;
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}
.feature-card {
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -12px rgba(0,0,0,0.35);
}
.feature-icon {
  width: 48px; height: 48px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-2); border-radius: 12px;
  display: grid; place-items: center; font-size: 1.35rem;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(59, 130, 246, 0.18);
}
.feature-card h3 {
  font-size: 1.1rem; font-weight: 600; color: var(--white); margin-bottom: 0.45rem;
}
.feature-card p {
  font-size: 0.935rem; color: var(--text-muted); line-height: 1.65;
}

/* ---------- Image sections (image centered, content centered below) ---------- */
.image-section {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 2.5rem 1.5rem 4.5rem;
}

.image-section-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.image-frame {
  width: 100%;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.image-frame img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.image-frame:hover img {
  transform: scale(1.03);
}

.image-content {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 500;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.image-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.image-content .check-list {
  list-style: none;
  margin: 1.4rem auto 1.75rem;
  text-align: left;
  display: inline-block;
}

.image-content .check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  font-size: 0.975rem;
}

.image-content .check-list li::before {
  content: '✓';
  color: var(--teal-soft);
  font-weight: 700;
  flex-shrink: 0;
}

.image-content .btn {
  margin-top: 0.5rem;
}

/* ---------- CTA ---------- */
.cta-band {
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto 3.5rem;
  padding: 0 1.5rem;
}
.cta-inner {
  background: linear-gradient(135deg, rgba(59,130,246,0.13), rgba(139,92,246,0.1));
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 18px; padding: 3rem 2.25rem; text-align: center;
}
.cta-inner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--white); margin-bottom: 0.7rem;
}
.cta-inner p {
  color: var(--text-muted); max-width: 460px;
  margin: 0 auto 1.75rem;
}
.cta-actions {
  display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap;
}

/* ---------- Legal Pages ---------- */
.legal-hero {
  position: relative; z-index: 1;
  padding: 3.75rem 1.5rem 2.75rem; text-align: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(59,130,246,0.1), transparent),
    linear-gradient(180deg, var(--navy-2), var(--navy));
  border-bottom: 1px solid var(--border);
}
.legal-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 500; color: var(--white);
  margin-bottom: 0.7rem; letter-spacing: -0.02em;
}
.legal-hero p { color: var(--text-muted); font-size: 1.05rem; }

.legal-content {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.legal-content h2 {
  font-size: 1.3rem; font-weight: 600; color: var(--white);
  margin: 2.4rem 0 0.9rem; padding-top: 0.3rem;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 {
  font-size: 1.05rem; font-weight: 600; color: var(--accent-2);
  margin: 1.6rem 0 0.55rem;
}
.legal-content p, .legal-content li {
  color: var(--text-muted); margin-bottom: 0.9rem; line-height: 1.7;
}
.legal-content ul { padding-left: 1.35rem; margin-bottom: 1.2rem; }
.legal-content li { margin-bottom: 0.45rem; }
.legal-content strong { color: var(--text); }
.legal-content a {
  color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px;
}
.highlight-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.26);
  border-radius: 11px; padding: 1.25rem 1.5rem; margin: 1.6rem 0;
}
.highlight-box p { margin-bottom: 0; color: #a7f3d0; }
.warning-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.26);
  border-radius: 11px; padding: 1.25rem 1.5rem; margin: 1.6rem 0;
}
.warning-box p { margin-bottom: 0; color: #fca5a5; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--navy-2); padding: 3.25rem 1.5rem 1.75rem;
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem;
}
.footer-brand p {
  color: var(--text-muted); font-size: 0.9rem;
  margin-top: 0.8rem; max-width: 280px; line-height: 1.6;
}
.footer-col h4 {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--text-muted); margin-bottom: 1rem;
}
.footer-col a {
  display: block; color: var(--text); text-decoration: none;
  font-size: 0.925rem; margin-bottom: 0.55rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom {
  max-width: var(--max); margin: 2.5rem auto 0;
  padding-top: 1.4rem; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.75rem;
  font-size: 0.85rem; color: var(--text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .hero-visual img { height: 280px; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero { padding: 3.25rem 1.25rem 4.5rem; }
  .image-frame img { height: 260px; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(12, 22, 41, 0.98); backdrop-filter: blur(14px);
    flex-direction: column; padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border); gap: 1rem;
  }
  nav.open { display: flex; }
  .safety-wrap { margin-top: -1.5rem; }
  .safety-card { flex-direction: column; padding: 1.3rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .cta-inner { padding: 2.25rem 1.4rem; }
}


/* ==========================================================
   HERO IMAGE: FULL-WIDTH, ABOVE CENTRED HERO CONTENT
   To change the image, update the img src in index.html.
   ========================================================== */
.hero {
  padding: 0 0 4.5rem;
  text-align: center;
}
.hero-bg {
  pointer-events: none;
}
.hero-image-section {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto 2.5rem;
  padding: 0;
  overflow: hidden;
}
.hero-image-section img {
  display: block;
  width: 100%;
  max-width: none;
  height: clamp(260px, 42vw, 560px);
  margin: 0;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 900px);
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}
.hero-content .hero-eyebrow {
  margin-left: auto;
  margin-right: auto;
}
.hero-content h1,
.hero-content .hero-lead {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.hero-content .hero-lead {
  max-width: 760px;
}
.hero-actions {
  justify-content: center;
}
@media (max-width: 768px) {
  .hero { padding-bottom: 3rem; }
  .hero-image-section { margin-bottom: 1.75rem; }
  .hero-image-section img { height: clamp(220px, 58vw, 340px); }
  .hero-content { width: calc(100% - 2rem); }
  .hero-actions { align-items: center; }
}
