/* ── BIOCODES — Style (OSCARS Purple Theme) ──────────────────── */

/* ── Self-hosted Fonts ────────────────────────────────────────── */
@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/ReadexPro-VariableFont.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/DMMono-Regular.woff2') format('woff2');
}

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f0eaf5;
  --color-text: #1a1a2e;
  --color-text-light: #6b6b80;
  --color-accent: #7B2D8E;
  --color-accent-hover: #5e1d6e;
  --color-accent-light: rgba(123, 45, 142, 0.08);
  --color-teal: #2a9d8f;
  --color-green: #6db82e;
  --color-border: #e5dfe8;
  --color-card: #ffffff;
  --color-dark-panel: #2d1b42;
  --font-stack: "Readex Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "DM Mono", monospace;
  --max-width: 1100px;
  --nav-height: 64px;
  --radius: 4px;
  --shadow: 0 2px 16px rgba(123, 45, 142, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-stack);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-hover);
}

ul {
  list-style-position: inside;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navbar ────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(249, 248, 244, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
}

.nav-logo:hover {
  color: var(--color-accent-hover);
}

.nav-menu {
  display: flex;
  gap: 28px;
}

.nav-link {
  color: var(--color-text-light);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link.active,
.nav-link:hover {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  padding: 140px 0 72px;
  text-align: center;
  background: linear-gradient(160deg, #f7f3fa 0%, #ede4f3 30%, #e8f0f8 60%, #f7f3fa 100%);
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-headline {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  color: var(--color-dark-panel);
}

.hero-sub {
  max-width: 680px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-meta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.meta-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 6px 14px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  color: var(--color-text-light);
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.7);
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-stack);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
  box-shadow: 0 4px 16px rgba(123, 45, 142, 0.25);
}

.btn-outline {
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  background: none;
}

.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* ── Sections ──────────────────────────────────────────────────── */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--color-dark-panel);
}

.section-sub {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
  color: var(--color-text-light);
  font-size: 1rem;
  line-height: 1.6;
}

/* ── Challenge cards ───────────────────────────────────────────── */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.challenge-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.challenge-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.challenge-challenge,
.challenge-solution,
.challenge-impact {
  border-top: none;
}

.challenge-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.challenge-heading {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-dark-panel);
}

.challenge-list {
  list-style: none;
}

.challenge-list li {
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.55;
  border-bottom: 1px solid var(--color-border);
}

.challenge-list li:last-child {
  border-bottom: none;
}

.challenge-list strong {
  color: var(--color-text);
}

/* ── ISCC section ──────────────────────────────────────────────── */
.iscc-levels {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.iscc-level {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 260px;
}

.level-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  margin-top: 6px;
}

.iscc-level strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.iscc-level p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin: 0;
}

.iscc-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.iscc-id-section {
  text-align: center;
}

.iscc-id-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-dark-panel);
}

.iscc-id-desc {
  max-width: 600px;
  margin: 0 auto 32px;
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.iscc-properties {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.iscc-property {
  text-align: center;
  padding: 16px;
}

.iscc-property strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: var(--color-dark-panel);
}

.iscc-property p {
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin: 0;
}

.flow-diagram {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(123, 45, 142, 0.09);
  border: 1px solid var(--color-border);
}

/* ── Features grid ─────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: rgba(123, 45, 142, 0.2);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-dark-panel);
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.55;
}

/* ── Tools ─────────────────────────────────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.tool-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.tool-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-left: 3px solid var(--color-accent);
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.tool-icon {
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  flex-shrink: 0;
}

.tool-name {
  font-size: 1.15rem;
  font-weight: 600;
  font-family: var(--font-mono);
  margin-bottom: 2px;
  color: var(--color-dark-panel);
}

.tool-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 10px;
  border-radius: 12px;
  letter-spacing: 0.02em;
}

.tool-status-green {
  background: rgba(109, 184, 46, 0.12);
  color: #3d7a14;
}

.tool-status-amber {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}

.tool-desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.tool-install {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.tool-install code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-dark-panel);
}

.tool-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 0.78rem;
}

.tool-meta-label {
  font-weight: 600;
  color: var(--color-text-light);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tool-platform,
.tool-format {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 8px;
  background: var(--color-bg-alt);
  border-radius: 4px;
  color: var(--color-text-light);
}

.tool-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tool-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-accent-light);
  border: 1px solid rgba(123, 45, 142, 0.12);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-accent);
  letter-spacing: 0.02em;
}

/* ── Integrations ──────────────────────────────────────────────── */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.integration-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.integration-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.integration-planned {
  opacity: 0.55;
}

.integration-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.integration-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

.integration-name {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.integration-name a {
  color: var(--color-dark-panel);
}

.integration-name a:hover {
  color: var(--color-accent);
}

.integration-status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 2px 10px;
  border-radius: 12px;
  letter-spacing: 0.02em;
}

.integration-status-available {
  background: rgba(109, 184, 46, 0.12);
  color: #3d7a14;
}

.integration-status-planned {
  background: rgba(139, 148, 158, 0.12);
  color: var(--color-text-light);
}

.integration-desc {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.55;
  margin-bottom: 12px;
}

.integration-caps {
  list-style: none;
  margin-bottom: 14px;
}

.integration-caps li {
  font-size: 0.82rem;
  color: var(--color-text-light);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.integration-caps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-teal);
}

.integration-planned .integration-caps li::before {
  background: var(--color-text-light);
}

.integration-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
}

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
  padding: 56px 0 0;
  border-top: none;
  background: #1c0e28;
  color: #b8a5c8;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-left {
  text-align: left;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.footer-logo img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
}

.footer-logo:hover {
  color: #c98adb;
}

.footer-tagline {
  font-size: 0.82rem;
  color: #b8a5c8;
  margin-bottom: 16px;
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-link {
  color: #b8a5c8;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #c98adb;
}

.footer-right {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-shrink: 0;
}

.footer-community h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-community a {
  display: block;
  font-size: 0.82rem;
  color: #b8a5c8;
  margin-bottom: 6px;
  transition: color 0.2s;
}

.footer-community a:hover {
  color: #c98adb;
}

.footer-logos {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-logos img {
  height: 56px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s;
  filter: brightness(1.6);
}

.footer-logos img:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-funding p,
.footer-goal p {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: #9382a5;
  letter-spacing: 0.02em;
}

.footer-funding a {
  color: #b8a5c8;
  text-decoration: underline;
}

.footer-funding a:hover {
  color: #c98adb;
}

/* ── Team ──────────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.team-group {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}

.team-group-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-dark-panel);
}

.team-group-name a {
  color: var(--color-dark-panel);
}

.team-group-name a:hover {
  color: var(--color-accent);
}

.team-members {
  list-style: none;
}

.team-member {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.team-member:last-child {
  border-bottom: none;
}

.team-member-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
}

.team-member-role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  letter-spacing: 0.02em;
}

.team-member-email {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-accent);
}

/* ── Legal page ───────────────────────────────────────────────── */
.legal-content {
  max-width: 720px;
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 28px 0 8px;
  color: var(--color-dark-panel);
}

.legal-content p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.65;
  margin-bottom: 12px;
}

.legal-content a {
  color: var(--color-accent);
}

.footer-legal {
  margin-top: 8px;
}

.footer-legal a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #9382a5;
  letter-spacing: 0.02em;
}

.footer-legal a:hover {
  color: #c98adb;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 12px 24px;
    width: 100%;
    text-align: center;
  }

  .hero {
    padding: 120px 0 48px;
  }

  .hero-headline {
    font-size: 2rem;
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .challenge-grid {
    grid-template-columns: 1fr;
  }

  .iscc-properties {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .integrations-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .footer-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
  }

  .footer-left {
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }

  .footer-right {
    flex-direction: column;
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .iscc-levels {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .iscc-properties {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    flex-direction: column;
    align-items: center;
  }
}
