/* ---------------------------------------------------------------
   The Biogenic Archive — landing page styles
--------------------------------------------------------------- */

/* 1. Design tokens */
:root {
  --background: hsl(220 100% 99%);
  --foreground: hsl(220 51% 8%);
  --card: #ffffff;
  --primary: hsl(211 100% 50%);
  --primary-soft: hsl(211 100% 96%);
  --muted-foreground: hsl(220 18% 32%);
  --border: hsl(219 37% 90%);
  --destructive: hsl(350 85% 42%);
  --radius: 1.5rem;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Inter Tight', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max: 1200px;
}

/* 2. Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.05; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
em { color: var(--primary); font-style: italic; }
section { scroll-margin-top: 5rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.glass {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 40px -12px rgba(0, 123, 255, 0.15);
}



/* 4. Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 24px 64px;
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 123, 255, 0.07), transparent 65%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(64px); pointer-events: none; }
.blob-1 { top: 18%; left: 10%; width: 288px; height: 288px; background: rgba(0, 123, 255, 0.1); animation: float-a 13s ease-in-out infinite; }
.blob-2 { bottom: 15%; right: 8%; width: 320px; height: 320px; background: rgba(254, 205, 211, 0.5); animation: float-b 11s ease-in-out infinite; }
.blob-3 { top: 55%; left: 22%; width: 192px; height: 192px; background: rgba(165, 243, 252, 0.4); animation: pulse 9s ease-in-out infinite; }

@keyframes float-a { 50% { transform: translate(25px, -35px); } }
@keyframes float-b { 50% { transform: translate(-20px, 30px); } }
@keyframes pulse { 50% { transform: scale(1.15); } }

.hero-copy { position: relative; z-index: 10; animation: fade-up 0.9s ease both; }
.hero h1 { font-size: clamp(2.75rem, 9vw, 6rem); max-width: 900px; margin: 0 auto; }
.hero h1 em { display: inline-block; }
.hero-sub {
  margin: 24px auto 0;
  max-width: 560px;
  font-size: 18px;
  color: var(--muted-foreground);
}
.hero-media {
  position: relative;
  z-index: 0;
  margin-top: 40px;
  animation: fade-up 1s 0.2s ease both, respire 6s ease-in-out infinite;
}
.hero-media img {
  width: 288px; height: 288px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 40px 120px -30px rgba(0, 123, 255, 0.4);
}
@media (min-width: 640px) { .hero-media img { width: 384px; height: 384px; } }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.btn-primary { background: var(--primary); color: #fff; animation: respire 2.4s ease-in-out infinite; }
.btn-primary:hover { background: hsl(211 100% 45%); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; animation: none; }
.hero .btn { margin-top: 40px; position: relative; z-index: 10; }
.hero .btn svg { width: 16px; height: 16px; }

@keyframes respire { 50% { transform: scale(1.02); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } }

/* 5. Collection */
.collection { padding: 96px 0; }
.collection h2 { font-size: clamp(2rem, 6vw, 3.75rem); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 48px; }
.filters button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.2s;
}
.filters button:hover { border-color: var(--primary); color: var(--primary); }
.filters button.active { background: var(--foreground); color: var(--background); border-color: var(--foreground); }

.grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px -20px rgba(0, 123, 255, 0.3); }
.card-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #fff; }
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s ease;
  filter: hue-rotate(var(--hue, 0deg)) saturate(var(--sat, 1));
}
.card:hover .card-media img { transform: scale(1.1); }
.card-reveal {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 20px;
  background: linear-gradient(to top, rgba(6, 10, 20, 0.92), rgba(6, 10, 20, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.card:hover .card-reveal { opacity: 1; }
.card-reveal p { color: #fff; font-size: 14px; line-height: 1.6; transform: translateY(12px); transition: transform 0.5s ease; }
.card:hover .card-reveal p { transform: none; }
.badge {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(190, 18, 60, 0.9);
  color: #fff;
}
.card-body { padding: 24px; }
.card-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.card-body h3 { font-size: 24px; }
.card-foot { margin-top: 16px; display: flex; align-items: flex-end; justify-content: space-between; }
.price { font-size: 18px; font-weight: 600; }
.stock { font-family: var(--font-mono); font-size: 12px; color: var(--muted-foreground); }
.empty { padding: 48px 0; color: var(--muted-foreground); }

/* 6. Stats */
.stats { padding-bottom: 96px; }
.stats-inner {
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  padding: 40px;
  text-align: center;
}
@media (min-width: 640px) { .stats-inner { padding: 56px; } }
@media (min-width: 1024px) { .stats-inner { grid-template-columns: repeat(4, 1fr); } }
.stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.1;
}
.stat p { font-size: 14px; color: var(--muted-foreground); margin-top: 8px; }

/* 7. Why us */
.why { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 96px 0; }
.why h2 { font-size: clamp(2rem, 6vw, 3.75rem); max-width: 620px; margin-bottom: 56px; }
.why-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.why-card:hover {
  border-color: rgba(0, 123, 255, 0.4);
  box-shadow: 0 12px 40px -12px rgba(0, 123, 255, 0.2);
  transform: translateY(-8px);
}
.why-card svg { width: 32px; height: 32px; color: var(--primary); margin-bottom: 20px; transition: transform 0.5s; }
.why-card:hover svg { transform: scale(1.25) rotate(-6deg); }
.why-card h3 { font-size: 20px; margin-bottom: 8px; }
.why-card p { font-size: 14px; color: var(--muted-foreground); }

/* 8. Enquiry */
.enquiry { max-width: 900px; margin: 0 auto; padding: 96px 24px; text-align: center; }
.enquiry h2 { font-size: clamp(2rem, 6vw, 3.75rem); }
.enquiry > p { color: var(--muted-foreground); max-width: 520px; margin: 16px auto 48px; }
form { text-align: left; border-radius: var(--radius); padding: 32px; }
@media (min-width: 640px) { form { padding: 40px; } }
.row { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 16px; }
@media (min-width: 640px) { .row { grid-template-columns: 1fr 1fr; } }
input, textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--foreground);
  outline: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}
input::placeholder, textarea::placeholder { color: hsl(220 10% 60%); }
input:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2); }
textarea { resize: vertical; margin-bottom: 16px; }
.form-error { color: var(--destructive); font-size: 14px; margin-bottom: 16px; }
.form-success { border-radius: var(--radius); padding: 40px; text-align: center; }
.form-success svg { width: 40px; height: 40px; color: var(--primary); margin: 0 auto 16px; }
.form-success h3 { font-size: 24px; margin-bottom: 8px; }
.form-success p { color: var(--muted-foreground); }

/* 9. Footer + ticker */
footer { background: var(--foreground); color: var(--background); padding-bottom: 96px; }
.foot-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  padding: 64px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
@media (min-width: 640px) { .foot-grid { grid-template-columns: repeat(3, 1fr); } }
.foot-grid h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 16px;
  font-weight: 400;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.foot-grid li a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
}
.foot-grid li a:hover { color: var(--primary); }
.foot-about { font-size: 14px; color: rgba(255, 255, 255, 0.8); max-width: 320px; }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.foot-brand svg { width: 24px; height: 24px; color: var(--primary); }
.foot-brand span { font-family: var(--font-display); font-size: 20px; }
.copyright { font-family: var(--font-mono); font-size: 10px; color: rgba(255, 255, 255, 0.6); margin-top: 24px; }

.ticker {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 40;
  overflow: hidden;
  border-top: 1px solid rgba(219, 226, 238, 0.6);
  background: rgba(245, 249, 255, 0.85);
  backdrop-filter: blur(12px);
  pointer-events: none;
}
.ticker-track { display: flex; white-space: nowrap; padding: 8px 0; animation: ticker 40s linear infinite; }
.ticker-track span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
  padding: 0 32px;
}
.ticker-track span::after { content: " ·"; color: rgba(0, 123, 255, 0.6); }
@keyframes ticker { to { transform: translateX(-50%); } }
