/* The Build Log: shared styles for every page.
   One brand colour (#820AD1) plus neutrals. Change --brand to rebrand the whole site. */

:root {
  color-scheme: light only;
  --brand: #820AD1;
  --brand-dark: #6407A3;
  --brand-tint: #F4EBFB;
  --bg: #FFFFFF;
  --surface: #F7F5F9;
  --ink: #111111;
  --muted: #5F5B66;
  --line: #ECE8F0;
  --on-brand: #FFFFFF;
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* Top bar */
.nav {
  max-width: 1080px; margin: 0 auto; padding: 20px 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.logo {
  font-weight: 800; font-size: 18px; text-decoration: none;
  display: flex; align-items: center; gap: 10px; letter-spacing: -0.02em;
}
.logo .mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--brand);
  color: var(--on-brand); display: grid; place-items: center; font-size: 15px;
}
.nav-links { display: flex; gap: 22px; font-weight: 600; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover, .nav-links a.on { color: var(--brand); }

/* Hero */
.hero { background: var(--brand); color: var(--on-brand); }
.hero-inner { max-width: 1080px; margin: 0 auto; padding: 72px 16px 80px; }
.hero h1 {
  font-size: clamp(40px, 8vw, 76px); line-height: 1.02; letter-spacing: -0.04em;
  font-weight: 800; margin: 0 0 20px; max-width: 760px;
}
.hero p { font-size: clamp(17px, 2.2vw, 20px); max-width: 560px; margin: 0; opacity: .88; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  padding: 14px 24px; border-radius: 999px; border: 0; text-decoration: none;
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-light { background: var(--on-brand); color: #820AD1; }
.btn-ghost { background: transparent; color: var(--on-brand); box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.btn-brand { background: var(--brand); color: var(--on-brand); }
.btn-brand:hover { background: var(--brand-dark); }
.btn-soft { background: var(--brand-tint); color: var(--brand); }

/* Sections */
.section { max-width: 1080px; margin: 0 auto; padding: 64px 16px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section h2 { font-size: clamp(28px, 4.5vw, 40px); letter-spacing: -0.03em; line-height: 1.1; margin: 0; font-weight: 800; }
.section-head p { color: var(--muted); margin: 0; }

/* Project cards */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  background: var(--surface); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 12px; text-decoration: none;
  border: 1px solid transparent; transition: border-color .15s, transform .15s;
}
a.card:hover { border-color: var(--brand); transform: translateY(-2px); }
.card .top { display: flex; justify-content: space-between; align-items: center; }
.card .num { font-weight: 800; color: var(--brand); font-size: 15px; }
.pill { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.pill.live { background: var(--brand); color: var(--on-brand); }
.pill.soon { background: var(--bg); color: var(--muted); }
.card h3 { font-size: 21px; letter-spacing: -0.02em; margin: 4px 0 0; line-height: 1.25; }
.card p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bg); padding: 4px 10px; border-radius: 999px; }
.card .go { font-weight: 700; color: var(--brand); font-size: 15px; }

/* Stats strip */
.stats { display: flex; gap: 40px; margin-top: 40px; }
.stats b { display: block; font-size: 36px; letter-spacing: -0.03em; line-height: 1; }
.stats span { font-size: 14px; opacity: .8; }

/* Footer */
footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 1080px; margin: 0 auto; padding: 28px 16px 40px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--muted); font-size: 14px;
}
.footer-inner a { color: var(--brand); font-weight: 600; text-decoration: none; }

@media (max-width: 560px) {
  .nav-links { gap: 14px; font-size: 14px; }
  .hero-inner { padding: 48px 16px 56px; }
  .stats { gap: 28px; }
}

/* Nav sitting on the purple hero */
.hero .logo .mark { background: var(--on-brand); color: #820AD1; }
.hero .nav-links a { color: rgba(255,255,255,.75); }
.hero .nav-links a:hover, .hero .nav-links a.on { color: var(--on-brand); }

/* Signature purple stays exact in light and dark mode */
.hero { background: #820AD1; }

/* Landing page: purple all the way down, white cards on top */
body.landing { background: #820AD1; color: #FFFFFF; }
.landing .section h2 { color: #FFFFFF; }
.landing .section-head p { color: rgba(255,255,255,.75); }
.landing .card { background: #FFFFFF; color: #111111; }
.landing .card p { color: #5F5B66; }
.landing .card .num, .landing .card .go { color: #820AD1; }
.landing .tag { background: #F4EBFB; color: #6407A3; }
.landing .pill.live { background: #820AD1; color: #FFFFFF; }
.landing .pill.soon { background: #F4EBFB; color: #6407A3; }
.landing a.card:hover { border-color: transparent; box-shadow: 0 12px 32px rgba(40,0,70,.35); }
.landing footer { border-top: 1px solid rgba(255,255,255,.2); }
.landing .footer-inner { color: rgba(255,255,255,.75); }
.landing .footer-inner a { color: #FFFFFF; }
