/* Bioceuticals.AI site shell styles.
 * Depends on design tokens in styles.css (tokens/*.css).
 */

:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--bc-text-body);
  line-height: var(--bc-leading-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--bc-restore-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--bc-dur-base) var(--bc-ease-out);
}

a:hover {
  color: var(--bc-ink);
}

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

main {
  min-height: 60vh;
}

.bc-shell {
  max-width: var(--bc-page-max);
  margin-inline: auto;
  padding-inline: var(--bc-gutter);
}

/* Header & nav */

.bc-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 248, 241, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-default);
}

.bc-header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bc-space-lg);
}

.bc-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--bc-space-sm);
  text-decoration: none;
  color: var(--text-body);
}

.bc-brand-mark {
  width: 24px;
  height: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 1px;
}

.bc-brand-mark span {
  border-radius: var(--bc-radius-module);
  background: var(--signal-restored);
}

.bc-brand-mark span.bc-disrupted {
  background: var(--signal-disrupted);
  opacity: 0.6;
}

.bc-brand-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.bc-brand-name span {
  color: var(--text-muted);
}

.bc-nav-toggle {
  display: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--bc-radius-pill);
  background: transparent;
  color: var(--text-body);
  font: 500 14px var(--font-body);
  padding-inline: 14px;
  height: 38px;
  cursor: pointer;
}

.bc-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}

.bc-nav a {
  text-decoration: none;
  color: var(--text-secondary);
}

.bc-nav a:hover {
  color: var(--bc-restore-deep);
}

.bc-nav a.bc-nav-cta {
  padding-inline: 18px;
  height: 38px;
  border-radius: var(--bc-radius-pill);
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--text-body);
  color: var(--surface-page);
  font-weight: 500;
}

.bc-nav a.bc-nav-cta:hover {
  background: var(--bc-restore-deep);
  border-color: var(--bc-restore-deep);
}

@media (max-width: 880px) {
  .bc-header-inner {
    height: 64px;
  }

  .bc-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .bc-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    padding: 8px var(--bc-gutter) 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background: rgba(251, 248, 241, 0.98);
    border-bottom: 1px solid var(--border-default);
    transform-origin: top;
    transform: scaleY(0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--bc-dur-base) var(--bc-ease-out),
      transform var(--bc-dur-base) var(--bc-ease-out);
  }

  .bc-nav a.bc-nav-cta {
    align-self: stretch;
    justify-content: center;
  }

  html[data-nav-open="true"] .bc-nav {
    opacity: 1;
    pointer-events: auto;
    transform: scaleY(1);
  }
}

/* Sections */

.bc-section {
  border-top: 1px solid var(--border-default);
  padding-block: clamp(56px, 7vw, 96px);
}

.bc-section-alt {
  background: var(--surface-alt);
}

.bc-section-inverse {
  background: var(--surface-inverse);
  color: var(--text-inverse);
}

.bc-section-noborder {
  border-top: none;
}

.bc-kicker {
  font-family: var(--font-body);
  font-size: var(--bc-text-eyebrow);
  font-weight: 500;
  letter-spacing: var(--bc-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--bc-restore-deep);
  margin-bottom: var(--bc-space-sm);
}

.bc-kicker-muted {
  color: var(--text-muted);
}

.bc-eyebrow-inverse {
  color: var(--bc-restore-bright);
}

.bc-h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--bc-text-h1);
  line-height: var(--bc-leading-display);
  letter-spacing: var(--bc-tracking-display);
  text-wrap: balance;
}

.bc-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--bc-text-h2);
  line-height: var(--bc-leading-heading);
  letter-spacing: var(--bc-tracking-heading);
  text-wrap: balance;
}

.bc-h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--bc-text-h3);
  line-height: var(--bc-leading-heading);
}

.bc-lede {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--bc-text-lede);
  line-height: 1.45;
  color: var(--text-secondary);
  max-width: var(--bc-measure);
  text-wrap: pretty;
}

.bc-body {
  margin: 0;
  font-size: var(--bc-text-body);
  line-height: var(--bc-leading-body);
  color: var(--text-secondary);
  max-width: var(--bc-measure);
}

.bc-stat-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding-inline: 12px;
  border-radius: var(--bc-radius-pill);
  background: var(--bc-caution-tint);
  color: var(--bc-caution);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bc-stat-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--bc-caution);
}

.bc-grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 32px;
}

.bc-grid-three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 24px;
}

.bc-card {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--bc-radius-card);
  padding: 24px;
}

.bc-card-compact {
  padding: 18px 20px;
}

.bc-card:hover {
  border-color: var(--border-strong);
}

.bc-stat-number {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--bc-text-stat);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.bc-stat-caption {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary);
}

/* Hero */

.bc-hero {
  padding-block: clamp(56px, 8vw, 112px);
}

.bc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.bc-hero-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bc-button,
.bc-button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding-inline: 24px;
  border-radius: var(--bc-radius-pill);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
}

.bc-button {
  border: none;
  background: var(--text-body);
  color: var(--surface-page);
}

.bc-button:hover {
  background: var(--bc-restore-deep);
}

.bc-button-outline {
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-body);
}

.bc-button-outline:hover {
  background: var(--text-body);
  color: var(--surface-page);
}

.bc-hero-qr {
  background: var(--surface-card);
  border-radius: var(--bc-radius-frame);
  border: 1px solid var(--border-default);
  padding: var(--bc-space-lg);
  min-height: 320px;
}

.bc-hero-qr rna-qr-3d {
  display: block;
  width: 100%;
  height: min(420px, 60vh);
}

@media (max-width: 960px) {
  .bc-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .bc-hero-qr {
    padding: var(--bc-space-md);
  }
}

/* Lists */

.bc-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: var(--bc-text-body);
  color: var(--text-secondary);
}

.bc-list li {
  margin-bottom: 0.55rem;
}

/* Timeline */

.bc-timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 20px;
}

.bc-timeline-item {
  border-top: 2px solid var(--bc-restore);
  padding-top: 12px;
}

.bc-timeline-year {
  font-family: var(--font-display);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.bc-timeline-body {
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* Footer */

.bc-footer {
  border-top: 1px solid var(--border-default);
  background: var(--surface-inverse);
  color: var(--text-inverse);
}

.bc-footer-inner {
  padding-block: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bc-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.bc-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

.bc-footer-links a {
  color: var(--text-inverse-muted);
  text-decoration: none;
}

.bc-footer-links a:hover {
  color: var(--text-inverse);
}

.bc-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--bc-line-inverse);
  font-size: 13px;
  color: var(--text-inverse-muted);
}

.bc-footer-bottom strong {
  font-weight: 500;
  color: var(--text-inverse);
}

@media (max-width: 720px) {
  .bc-footer-inner {
    padding-block: 28px 24px;
  }

  .bc-footer-top {
    align-items: flex-start;
  }
}

/* ---- figures / imagery ---- */
.bc-figure { margin: 28px 0 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(20, 32, 27, 0.10); background: #06110c; }
.bc-figure img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.bc-figure figcaption { font-size: 13px; line-height: 1.5; color: #5f6f67; padding: 10px 14px; background: #fff; }
.bc-figure-photo img { aspect-ratio: 4 / 3; }
.bc-figure-portrait img { aspect-ratio: 3 / 4; object-position: top; }
.bc-figure-hero { margin: 0 0 16px; }
.bc-figure-tight { margin: 0 0 8px; }
.bc-figure-tight img { aspect-ratio: 16 / 10; }
.bc-figure-banner { margin: 0 0 8px; }
.bc-figure-banner img { aspect-ratio: 21 / 9; }
.bc-section-inverse .bc-figure figcaption { background: transparent; color: rgba(255,255,255,0.7); }
.bc-portrait { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top; border-radius: 10px; margin-bottom: 14px; }
@media (max-width: 720px) { .bc-grid-two > .bc-figure { margin-top: 16px; } }

/* ---- pull quote ---- */
.bc-quote { margin: 28px 0 0; padding: 22px 26px; border-left: 3px solid var(--bc-restore, #2f8a5f); background: rgba(47, 138, 95, 0.06); border-radius: 0 12px 12px 0; max-width: 820px; }
.bc-quote p { margin: 0; font-family: var(--font-display, Georgia, serif); font-size: clamp(19px, 2.1vw, 24px); line-height: 1.45; color: var(--bc-ink, #14201b); }
.bc-quote footer { margin-top: 12px; font-size: 14px; color: #5f6f67; letter-spacing: 0.02em; }
