/* ============================================================
   Bioscript Landing Page — styles.css
   Color palette mirrors the Chrome extension's design system
   ============================================================ */

/* === Variables === */
:root {
  --blue-50:  #EFF6FF;
  --blue-100: #DBEAFE;
  --blue-200: #BFDBFE;
  --blue-300: #93C5FD;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --slate-50:  #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;
  --slate-950: #020617;
  --white: #FFFFFF;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 4px 8px rgba(15,23,42,.06);
  --shadow-md: 0 4px 6px rgba(15,23,42,.04), 0 16px 32px rgba(15,23,42,.08);
  --shadow-lg: 0 8px 16px rgba(15,23,42,.04), 0 32px 64px rgba(15,23,42,.12);
  --shadow-xl: 0 20px 60px rgba(15,23,42,.18), 0 2px 4px rgba(15,23,42,.06);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1160px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); background: var(--white); color: var(--slate-900); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font); }

/* === Utilities === */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
section[id] { scroll-margin-top: 88px; }
#pricing { scroll-margin-top: 40px; }

/* ============================
   NAVIGATION
   ============================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 18px 0;
  transition: background .25s, box-shadow .25s, padding .25s;
}
.nav.scrolled {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--slate-200);
  padding: 12px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  display: flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 15px; letter-spacing: -.02em; color: #1E3A5F;
}
.nav-logo-img {
  height: 28px; width: auto; object-fit: contain;
}
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--slate-600);
  transition: color .15s; letter-spacing: -.01em;
}
.nav-links a:hover { color: var(--slate-900); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.btn-ghost {
  background: transparent; color: var(--slate-600); padding: 8px 16px;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
  cursor: pointer; border: none; transition: color .15s, background .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-ghost:hover { color: var(--slate-900); background: var(--slate-100); }
.btn-primary {
  background: var(--blue-600); color: white; padding: 9px 18px;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 650;
  cursor: pointer; border: none; display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s, transform .15s, box-shadow .15s;
  letter-spacing: -.01em;
}
.btn-primary:hover {
  background: var(--blue-700); transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,99,235,.4);
}
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 4px; color: var(--slate-700);
}

/* ============================
   HERO
   ============================ */
.hero {
  position: relative; overflow: hidden;
  padding: 168px 0 96px;
  background: var(--slate-50);
  background-image: radial-gradient(circle, rgba(15,23,42,.055) 1px, transparent 1px);
  background-size: 24px 24px;
}
.hero-glow {
  position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 640px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(37,99,235,.13) 0%, transparent 68%);
}
#comet-container { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 780px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--blue-50); border: 1px solid var(--blue-200);
  color: var(--blue-700); font-size: 12.5px; font-weight: 650;
  padding: 5px 13px; border-radius: 999px; margin-bottom: 30px;
  letter-spacing: .01em;
}
.badge-dot {
  width: 6px; height: 6px; background: var(--blue-600);
  border-radius: 50%; animation: badge-pulse 2.2s ease infinite;
}
.hero h1 {
  font-size: clamp(42px, 6.5vw, 76px); font-weight: 600;
  letter-spacing: -.035em; line-height: 1.08; color: var(--slate-900);
  margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(130deg, var(--blue-700) 0%, var(--blue-500) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: clamp(16px, 2.2vw, 19px); color: var(--slate-500);
  max-width: 550px; margin: 0 auto 40px; line-height: 1.7; letter-spacing: -.01em;
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.btn-hero {
  background: var(--blue-600); color: white; padding: 14px 28px;
  border-radius: var(--radius-md); font-size: 15px; font-weight: 700;
  letter-spacing: -.02em; cursor: pointer; border: none;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 18px rgba(37,99,235,.42), 0 1px 3px rgba(37,99,235,.25);
  transition: all .2s;
}
.btn-hero:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,99,235,.55); }
.btn-hero-outline {
  background: white; color: var(--slate-700); padding: 14px 28px;
  border-radius: var(--radius-md); font-size: 15px; font-weight: 600;
  letter-spacing: -.02em; cursor: pointer; border: 1px solid var(--slate-200);
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-sm); transition: all .2s;
}
.btn-hero-outline:hover { border-color: var(--slate-300); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.hero-note { font-size: 12.5px; color: var(--slate-400); letter-spacing: -.005em; }

/* --- Browser mockup --- */
.hero-mockup { position: relative; z-index: 2; margin: 56px auto 0; max-width: 960px; }
.hero-img {
  width: 100%; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--slate-200);
  display: block;
}

/* ============================
   SECTION SHARED
   ============================ */
.section-eyebrow {
  font-size: 12px; font-weight: 750; color: var(--blue-600);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px;
  display: block; text-align: center;
}
.section-title {
  font-size: clamp(28px, 4vw, 46px); font-weight: 600; color: var(--slate-900);
  letter-spacing: -.03em; line-height: 1.12; text-align: center; margin-bottom: 16px;
}
.section-sub {
  font-size: 17px; color: var(--slate-500); text-align: center;
  max-width: 520px; margin: 0 auto 60px; line-height: 1.65; letter-spacing: -.01em;
}

/* ============================
   FEATURES
   ============================ */
.features { padding: 104px 0; background: white; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--slate-50); border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl); padding: 32px; transition: transform .22s, box-shadow .22s, background .22s;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--blue-700), var(--blue-500));
  opacity: 0; transition: opacity .22s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); background: white; }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 50px; height: 50px; background: var(--blue-50);
  border: 1px solid var(--blue-100); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-600); margin-bottom: 20px;
}
.feature-card h3 { font-size: 18px; font-weight: 600; color: var(--slate-900); letter-spacing: -.02em; margin-bottom: 10px; }
.feature-card p { font-size: 14.5px; color: var(--slate-600); line-height: 1.68; }
.feature-link {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--blue-600); font-size: 13px; font-weight: 650;
  margin-top: 18px; transition: gap .15s;
}
.feature-card:hover .feature-link { gap: 8px; }

/* ============================
   WORKFLOW
   ============================ */
.workflow {
  padding: 104px 0;
  background: var(--slate-50);
  background-image: radial-gradient(circle, rgba(15,23,42,.048) 1px, transparent 1px);
  background-size: 24px 24px;
}
.workflow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; margin-top: 60px; }
.workflow-connector {
  position: absolute; top: 28px;
  left: calc(12.5% + 28px); right: calc(12.5% + 28px);
  border-top: 2px dashed var(--blue-200);
}
.workflow-step { text-align: center; }
.step-circle {
  width: 56px; height: 56px; background: white;
  border: 2px solid var(--blue-200); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 600; color: var(--blue-600);
  margin: 0 auto 20px; position: relative; z-index: 1;
  box-shadow: 0 0 0 7px var(--slate-50), 0 0 0 8px var(--blue-100);
  transition: all .22s;
}
.workflow-step:hover .step-circle { background: var(--blue-600); color: white; transform: scale(1.1); border-color: var(--blue-600); }
.workflow-step h3 { font-size: 17px; font-weight: 600; color: var(--slate-900); letter-spacing: -.02em; margin-bottom: 9px; }
.workflow-step p { font-size: 14px; color: var(--slate-500); line-height: 1.65; max-width: 220px; margin: 0 auto; }

/* ============================
   TRUSTED BY
   ============================ */
.trusted {
  padding: 60px 0;
  background: white;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}
.trusted-label {
  text-align: center; font-size: 12px; font-weight: 700;
  color: var(--slate-400); text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 40px;
}
.trusted-logos {
  display: flex; align-items: center; justify-content: center;
  gap: 52px; flex-wrap: wrap;
}
.institution-slot {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 48px; min-width: 100px;
}
.institution-slot img {
  display: none;
  max-height: 48px; max-width: 150px; width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.45;
  transition: filter .25s, opacity .25s;
}
.institution-slot img.loaded { display: block; }
.institution-slot img.loaded + .institution-placeholder { display: none; }
.institution-slot img.loaded:hover {
  filter: grayscale(0%);
  opacity: 1;
}
.institution-placeholder {
  height: 48px; min-width: 120px; background: var(--slate-100);
  border: 1.5px dashed var(--slate-300); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--slate-400); font-weight: 600;
  letter-spacing: .02em; padding: 0 16px;
}

/* ============================
   PRICING
   ============================ */
.pricing {
  padding: 104px 0;
  background: var(--slate-50);
  background-image: radial-gradient(circle, rgba(15,23,42,.048) 1px, transparent 1px);
  background-size: 24px 24px;
}
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 780px; margin: 60px auto 0; }
.pricing-card {
  background: white; border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow-sm);
}
.pricing-card.featured {
  background: var(--slate-900); border-color: var(--slate-900);
  box-shadow: var(--shadow-xl); position: relative;
}
.pricing-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue-600); color: white; font-size: 10.5px; font-weight: 750;
  padding: 4px 14px; border-radius: 999px; letter-spacing: .06em; white-space: nowrap;
}
.pricing-tier { font-size: 11.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-500); margin-bottom: 8px; }
.pricing-card.featured .pricing-tier { color: var(--slate-400); }
.pricing-price { font-size: 48px; font-weight: 600; color: var(--slate-900); letter-spacing: -.04em; line-height: 1; margin-bottom: 5px; }
.pricing-card.featured .pricing-price { color: white; }
.pricing-cadence { font-size: 13px; color: var(--slate-500); margin-bottom: 26px; }
.pricing-card.featured .pricing-cadence { color: var(--slate-400); }
.pricing-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 11px; }
.pricing-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--slate-600); }
.pricing-card.featured .pricing-features li { color: var(--slate-300); }
.check-icon {
  width: 18px; height: 18px; background: var(--blue-50); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; flex-shrink: 0; margin-top: 1px; color: var(--blue-600);
}
.pricing-card.featured .check-icon { background: rgba(37,99,235,.25); color: var(--blue-300); }
.btn-pricing {
  width: 100%; padding: 13px; border-radius: var(--radius-md); font-size: 14.5px;
  font-weight: 700; cursor: pointer; border: none; transition: all .2s;
  text-align: center; display: block; letter-spacing: -.01em;
}
.btn-pricing-free { background: var(--slate-100); color: var(--slate-700); }
.btn-pricing-free:hover { background: var(--slate-200); transform: translateY(-1px); }
.btn-pricing-pro { background: var(--blue-600); color: white; box-shadow: 0 4px 14px rgba(37,99,235,.45); }
.btn-pricing-pro:hover { background: var(--blue-500); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(37,99,235,.55); }

/* ============================
   FINAL CTA BANNER
   ============================ */
.cta-section {
  padding: 104px 0; background: var(--slate-900);
  position: relative; overflow: hidden; text-align: center;
}
.cta-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 800px; height: 500px; pointer-events: none;
  background: radial-gradient(ellipse, rgba(37,99,235,.28) 0%, transparent 68%);
}
.cta-section h2 {
  font-size: clamp(30px, 5vw, 52px); font-weight: 600; color: white;
  letter-spacing: -.03em; line-height: 1.1; margin-bottom: 16px; position: relative; z-index: 1;
}
.cta-section p {
  font-size: 17px; color: var(--slate-400); margin-bottom: 40px;
  position: relative; z-index: 1; letter-spacing: -.01em;
}
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.btn-cta-primary {
  background: var(--blue-600); color: white; padding: 15px 32px;
  border-radius: var(--radius-md); font-size: 15px; font-weight: 700;
  cursor: pointer; border: none; display: inline-flex; align-items: center; gap: 8px;
  letter-spacing: -.02em; transition: all .2s;
  box-shadow: 0 4px 18px rgba(37,99,235,.5);
}
.btn-cta-primary:hover { background: var(--blue-500); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,99,235,.6); }
.btn-cta-ghost {
  background: rgba(255,255,255,.08); color: var(--slate-300); padding: 15px 28px;
  border-radius: var(--radius-md); font-size: 15px; font-weight: 600; cursor: pointer;
  border: 1px solid rgba(255,255,255,.12); display: inline-flex; align-items: center; gap: 8px;
  transition: all .2s;
}
.btn-cta-ghost:hover { background: rgba(255,255,255,.14); color: white; }

/* ============================
   FOOTER
   ============================ */
.footer { background: var(--slate-950); padding: 56px 0 32px; border-top: 1px solid rgba(255,255,255,.06); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-logo { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; color: #DBEAFE; letter-spacing: -.02em; margin-bottom: 12px; }
.footer-logo-img {
  height: 26px; width: auto; object-fit: contain;
}
.footer-brand p { font-size: 13.5px; color: var(--slate-500); line-height: 1.65; max-width: 220px; }
.footer-col h4 { font-size: 11.5px; font-weight: 750; color: var(--slate-400); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13.5px; color: var(--slate-500); transition: color .15s; }
.footer-col ul li a:hover { color: white; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.06); }
.footer-bottom p { font-size: 12.5px; color: var(--slate-600); }

/* ============================
   SCROLL REVEAL
   ============================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

/* ============================
   KEYFRAMES
   ============================ */
@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.8); }
}
@keyframes comet-fall {
  0%   { transform: translateY(-80px); opacity: 0; }
  8%   { opacity: 1; }
  90%  { opacity: .9; }
  100% { transform: translateY(calc(100vh + 120px)); opacity: 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .workflow-steps { grid-template-columns: repeat(2, 1fr); }
  .workflow-connector { display: none; }
  .trusted-logos { gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .workflow-steps { grid-template-columns: 1fr; }
  .workflow-connector { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 60px; }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .trusted-logos { gap: 24px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn-hero, .btn-hero-outline { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
}
