/* ============================================================
   Pharma Hack Days — design system
   Dark "lab molecule" theme. Different UI, same architecture
   as a classic multi-page hackathon marketing site.
   ============================================================ */

:root {
  --bg: #070b14;
  --bg-soft: #0c1424;
  --card: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #e8edf7;
  --muted: #96a3be;
  --accent: #37e6c3;
  --accent-2: #8b7cff;
  --accent-3: #4ea8ff;
  --grad: linear-gradient(120deg, var(--accent), var(--accent-3) 55%, var(--accent-2));
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(55, 230, 195, 0.3); }

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; font-weight: 600; }

.wrap { width: min(1120px, 92%); margin: 0 auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 20, 0.78);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand .logo { width: 30px; height: 30px; flex: none; }
.brand em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a:not(.btn) {
  color: var(--muted); font-size: 0.92rem; font-weight: 500;
  text-decoration: none; transition: color 0.2s;
}
.main-nav a:not(.btn):hover,
.main-nav a.active { color: var(--text); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-strong);
  border-radius: 8px; color: var(--text); font-size: 1.2rem;
  padding: 4px 12px; cursor: pointer;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 12px 26px; border-radius: 999px; text-decoration: none;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #04120e; box-shadow: 0 8px 30px rgba(55, 230, 195, 0.25); }
.btn-primary:hover { box-shadow: 0 12px 38px rgba(139, 124, 255, 0.35); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--card-hover); }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }

/* ---------- hero ---------- */
.hero {
  position: relative; padding: 110px 0 90px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg .orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
}
.orb-a { width: 480px; height: 480px; background: rgba(55, 230, 195, 0.18); top: -160px; left: -120px; }
.orb-b { width: 520px; height: 520px; background: rgba(139, 124, 255, 0.16); bottom: -220px; right: -140px; }
.hero-bg .grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 30%, transparent 75%);
}
.hero .molecule { position: absolute; right: 4%; top: 60px; width: 380px; opacity: 0.5; z-index: -1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(55, 230, 195, 0.35);
  background: rgba(55, 230, 195, 0.07);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 26px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem); font-weight: 700; letter-spacing: -0.02em;
}
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead {
  max-width: 640px; margin: 22px 0 34px; color: var(--muted); font-size: 1.15rem;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.countdown {
  display: flex; gap: 12px; margin-top: 44px; flex-wrap: wrap;
}
.countdown .unit {
  min-width: 86px; text-align: center; padding: 12px 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.countdown .num { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; }
.countdown .lbl { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }

/* ---------- stats strip ---------- */
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 70px;
}
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-align: center;
}
.stat .num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { color: var(--muted); font-size: 0.88rem; margin-top: 2px; }

/* ---------- sections ---------- */
.section { padding: 90px 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  display: block; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -0.01em; }
.section-head p { color: var(--muted); margin-top: 14px; }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); background: var(--card-hover); border-color: var(--line-strong); }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(55, 230, 195, 0.1); border: 1px solid rgba(55, 230, 195, 0.25);
  font-size: 1.3rem; margin-bottom: 18px;
}
.card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.94rem; }
.card .tag {
  display: inline-block; margin-top: 14px; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2);
}

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 8px 18px; font-size: 0.88rem; color: var(--muted); background: var(--card);
}

/* ---------- split (two-column w/ visual) ---------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.split .visual { position: relative; }
.split .visual .frame {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--card);
}

/* ---------- schedule ---------- */
.sched-day h3 { margin: 26px 0 14px; font-size: 1.2rem; color: var(--accent); }
.sched-row {
  display: grid; grid-template-columns: 130px 1fr; gap: 20px;
  padding: 14px 18px; border-bottom: 1px solid var(--line); align-items: baseline;
}
.sched-row:last-child { border-bottom: none; }
.sched-row .time { font-family: var(--font-display); font-weight: 600; color: var(--accent-3); font-size: 0.92rem; }
.sched-row .what strong { display: block; font-weight: 600; }
.sched-row .what span { color: var(--muted); font-size: 0.9rem; }
.sched-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 22px 16px; }

/* ---------- accordion (FAQ) ---------- */
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 18px 22px; font-family: var(--font-display);
  font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 22px 20px; color: var(--muted); font-size: 0.95rem; }

/* ---------- partner tiers ---------- */
.tier { text-align: center; }
.tier .tier-name {
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 18px;
}
.tier-platinum .tier-name { color: #cfd8ea; }
.tier-gold .tier-name { color: #e8c15a; }
.tier-academic .tier-name { color: var(--accent-3); }
.tier-ecosystem .tier-name { color: var(--accent-2); }
.logo-slot {
  border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
  min-height: 92px; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.85rem; background: rgba(255, 255, 255, 0.02);
}
.logo-slot.tall { min-height: 130px; }

/* ---------- forms ---------- */
.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); color: var(--text); padding: 12px 14px;
  font-family: var(--font-body); font-size: 0.95rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(55, 230, 195, 0.15);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 12px; }

/* newsletter band */
.newsletter {
  background: linear-gradient(140deg, rgba(55, 230, 195, 0.09), rgba(139, 124, 255, 0.09));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 46px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 34px; align-items: center;
}
.newsletter h2 { font-size: 1.6rem; }
.newsletter p { color: var(--muted); margin-top: 8px; }
.newsletter form { display: flex; gap: 10px; }
.newsletter input {
  flex: 1; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-strong);
  border-radius: 999px; color: var(--text); padding: 12px 20px; font-size: 0.95rem;
}
.newsletter input:focus { outline: none; border-color: var(--accent); }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center; padding: 100px 0; position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.cta-band p { color: var(--muted); max-width: 560px; margin: 16px auto 32px; }

/* ---------- page hero (subpages) ---------- */
.page-hero { padding: 80px 0 50px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
.page-hero .lead { color: var(--muted); max-width: 640px; margin-top: 16px; font-size: 1.08rem; }

/* ---------- fact list ---------- */
.facts { display: grid; gap: 0; }
.fact {
  display: grid; grid-template-columns: 150px 1fr; gap: 18px;
  padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem;
}
.fact:last-child { border-bottom: none; }
.fact .k { color: var(--muted); }
.fact .v { font-weight: 500; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); background: var(--bg-soft);
  padding: 64px 0 30px; margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text); font-size: 0.92rem; text-decoration: none; opacity: 0.85; }
.footer-grid a:hover { opacity: 1; color: var(--accent); }
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin: 14px 0 18px; max-width: 300px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px;
  color: var(--muted); font-size: 0.83rem;
}

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- legal pages ---------- */
.legal h2 { margin: 36px 0 12px; font-size: 1.3rem; }
.legal p, .legal li { color: var(--muted); max-width: 720px; }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal strong { color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .newsletter { grid-template-columns: 1fr; padding: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .molecule { display: none; }
}

@media (max-width: 700px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(7, 11, 20, 0.97); border-bottom: 1px solid var(--line);
    padding: 10px 4%;
  }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .main-nav .btn { margin: 14px 4px; justify-content: center; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .fact { grid-template-columns: 1fr; gap: 2px; }
  .sched-row { grid-template-columns: 1fr; gap: 4px; }
  .newsletter form { flex-direction: column; }
  .section { padding: 64px 0; }
}
