/* ============================================
   Inocul.us — Styles
   Design: Dark alchemist aesthetic, warm metallics
   Inspired by MomusDev / DewLogic design language
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand */
  --gold: #D4A03C;
  --gold-light: #E8C06A;
  --gold-dim: #A07A2E;
  --sage: #6B8E6B;
  --sage-light: #8BAF8B;
  --bronze: #CD7F32;

  /* Surfaces */
  --bg: #0F0F1E;
  --bg-raised: #1A1A2E;
  --bg-card: #16162A;
  --bg-card-hover: #1E1E36;
  --border: rgba(212, 160, 60, 0.12);
  --border-light: rgba(255, 255, 255, 0.06);

  /* Text */
  --text: #E8E4DC;
  --text-dim: #9A9688;
  --text-bright: #FFFAF0;

  /* Status */
  --active: #4CAF50;
  --resting: #42A5F5;
  --aging: #AB47BC;

  /* Layout */
  --max-w: 1140px;
  --nav-h: 64px;
  --section-pad: 120px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-bright);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.2rem; font-family: 'Inter', sans-serif; font-weight: 600; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: #0F0F1E;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(212, 160, 60, 0.25);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--gold-dim);
  color: var(--gold-light);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.store-icon {
  width: 20px;
  height: 20px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(15, 15, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.3s;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-img {
  height: 32px;
  width: auto;
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--text-bright);
}

.nav-cta {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gold);
  padding: 8px 20px;
  border: 1px solid var(--gold-dim);
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--bg);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-dim);
  border-radius: 1px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(15, 15, 30, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px;
  flex-direction: column;
  gap: 20px;
  z-index: 99;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a {
  font-size: 1rem;
  color: var(--text-dim);
}

.mobile-menu .mobile-cta {
  color: var(--gold);
  font-weight: 500;
}

.mobile-menu.open {
  display: flex;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 24px 60px;
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

.hero-logo {
  height: 80px;
  width: auto;
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 12px rgba(212, 160, 60, 0.15));
}

.hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-title {
  margin-bottom: 24px;
}

.hero-accent {
  color: var(--gold);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Hero Device Mockup --- */
.hero-visual {
  flex: 0 0 320px;
}

.hero-device {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 16px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(212, 160, 60, 0.06);
}

.device-screen {
  background: var(--bg);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.screen-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.screen-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
}

.screen-dot.active {
  background: var(--active);
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.4);
}

.screen-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-bright);
}

.screen-batch {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.batch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid var(--border-light);
}

.batch-emoji {
  font-size: 1.4rem;
}

.batch-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.batch-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-bright);
}

.batch-status {
  font-size: 0.72rem;
  font-weight: 500;
}

.status-active { color: var(--active); }
.status-resting { color: var(--resting); }
.status-aging { color: var(--aging); }

.screen-chart {
  padding: 12px;
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid var(--border-light);
}

.mini-chart {
  width: 100%;
  height: 50px;
}

.chart-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 6px;
  text-align: center;
}

/* --- Sections --- */
.section {
  padding: var(--section-pad) 24px;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 20px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 640px;
  line-height: 1.75;
  margin-bottom: 48px;
}

/* --- Features --- */
.features {
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(212, 160, 60, 0.2);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin-bottom: 10px;
  color: var(--text-bright);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* --- Instrument --- */
.instrument {
  background: var(--bg-raised);
}

.instrument-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.instrument-card {
  padding: 32px 28px;
  border-left: 2px solid var(--gold-dim);
}

.instrument-card h3 {
  color: var(--gold-light);
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.instrument-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.75;
}

/* --- Categories Strip --- */
.categories-strip {
  margin-top: 60px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.categories-track {
  display: flex;
  gap: 24px;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
}

.categories-track span {
  font-size: 0.88rem;
  color: var(--text-dim);
  padding: 8px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  flex-shrink: 0;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Governance --- */
.governance {
  background: var(--bg);
}

.governance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.governance-card {
  text-align: center;
  padding: 48px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.governance-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--text-bright);
  margin-bottom: 16px;
}

.governance-card p {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.governance-quote {
  margin-top: 56px;
  padding: 32px 40px;
  border-left: 3px solid var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  max-width: 800px;
}

/* --- Ownership / Pricing --- */
.ownership {
  background: var(--bg-raised);
}

.price-card {
  max-width: 560px;
  margin: 48px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 56px 48px;
  text-align: center;
}

.price-amount {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  margin-bottom: 8px;
}

.price-dollar {
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--gold);
  margin-top: 12px;
}

.price-value {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.price-cents {
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--gold);
  margin-top: 12px;
}

.price-label {
  font-size: 0.92rem;
  color: var(--text-dim);
  margin-bottom: 36px;
}

.price-features {
  list-style: none;
  text-align: left;
  margin-bottom: 36px;
}

.price-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  padding-left: 24px;
  position: relative;
}

.price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
}

.price-comparison {
  margin-bottom: 36px;
  padding: 24px;
  background: rgba(212, 160, 60, 0.06);
  border-radius: 10px;
}

.price-comparison p {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.price-comparison strong {
  color: var(--text-bright);
}

.price-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
  padding: 60px 24px 40px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  display: inline-block;
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 8px;
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 28px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-copy {
  margin-top: 28px;
  font-size: 0.75rem;
  color: var(--text-dim);
  opacity: 0.6;
}

/* --- Meet the Developer --- */
.developer {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.developer__card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2.5rem;
}

.developer__portrait-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 0 30px rgba(212, 160, 60, 0.15);
  margin-bottom: 1.5rem;
}

.developer__portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.developer__label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.developer__name {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 1.25rem;
}

.developer__quote {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--text-dim);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 2rem;
}

.developer__callout {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(212, 160, 60, 0.04);
  margin-bottom: 2rem;
  width: 100%;
  max-width: 480px;
}

.developer__callout svg {
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 2px;
}

.developer__callout-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.developer__callout-text {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.65;
  font-style: italic;
}

/* Lab Notebook Log */
.lab-log {
  width: 100%;
  max-width: 520px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg-raised);
  overflow: hidden;
  margin-bottom: 2rem;
  text-align: left;
  font-family: 'Inter', monospace;
}

.lab-log__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-bottom: 2px solid var(--gold-dim);
  background: rgba(212, 160, 60, 0.06);
}

.lab-log__title {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
}

.lab-log__id {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.lab-log__meta {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.7rem;
  font-family: monospace;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.lab-log__body {
  padding: 0.25rem 0;
}

.lab-log__row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.625rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.lab-log__row:last-child {
  border-bottom: none;
}

.lab-log__time {
  flex-shrink: 0;
  font-family: monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 2px;
  min-width: 2.5rem;
}

.lab-log__tag {
  flex-shrink: 0;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 2px;
  margin-top: 2px;
}

.lab-log__tag--pass {
  background: rgba(76, 175, 80, 0.15);
  color: var(--active);
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.lab-log__tag--note {
  background: rgba(212, 160, 60, 0.12);
  color: var(--gold-light);
  border: 1px solid rgba(212, 160, 60, 0.25);
}

.lab-log__text {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.55;
}

.lab-log__text strong {
  color: var(--text);
}

.lab-log__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-top: 2px solid var(--gold-dim);
  background: rgba(212, 160, 60, 0.04);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--active);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lab-log__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--active);
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.4);
}

.developer__sig {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--text-dim);
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .features-grid,
  .instrument-grid,
  .governance-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding-top: calc(var(--nav-h) + 60px);
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    flex: none;
    width: 100%;
    max-width: 340px;
  }
}

@media (max-width: 680px) {
  :root {
    --section-pad: 80px;
  }

  .nav-links, .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .features-grid,
  .instrument-grid,
  .governance-grid {
    grid-template-columns: 1fr;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .price-card {
    padding: 40px 28px;
  }

  .price-value {
    font-size: 3.5rem;
  }

  .governance-quote {
    padding: 24px;
    font-size: 1rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }

  .price-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-lg {
    justify-content: center;
  }
}
