/* =====================================================
   CO3 Civic Playground — landing page
   Palette & type drawn from co3socialcontract.eu
   ===================================================== */
:root {
  /* CO3 theme colours */
  --violet:        #654CFF;
  --violet-light:  #8C79FF;
  --violet-pale:   #B2A6FF;
  --violet-deep:   #5439A4;
  --violet-ink:    #2A1C52;
  --orange:        #F7AF1A;
  --tint:          #F2F0FF;
  --grey:          #B0B0B0;

  --bg:      #FFFFFF;
  --surface: #FFFFFF;
  --line:    #E2DEF7;
  --ink:     #241A45;
  --ink-soft:#5A5470;

  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(42,28,82,.06), 0 4px 14px rgba(42,28,82,.06);
  --shadow-md: 0 10px 30px rgba(42,28,82,.14);
  --ease: cubic-bezier(.16,1,.3,1);

  --font: 'Titillium Web', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, p { margin: 0; }
b { font-weight: 700; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 480px at 82% -12%, rgba(247,175,26,.22), transparent 60%),
    radial-gradient(900px 520px at 6% 118%, rgba(140,121,255,.30), transparent 62%),
    linear-gradient(150deg, var(--violet-ink) 0%, var(--violet-deep) 58%, var(--violet) 130%);
  color: #fff;
  padding: clamp(28px, 5vw, 56px) 24px clamp(56px, 9vw, 104px);
}
.hero-inner { max-width: var(--container); margin: 0 auto; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.brand .mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand-logo {
  height: 46px;
  width: auto;
  flex-shrink: 0;
  background: #fff;
  padding: 5px 7px;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0,0,0,.25);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-weight: 900; font-size: 20px; letter-spacing: .16em;
}
.brand-text em {
  font-style: normal; font-weight: 300; font-size: 12px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--violet-pale);
}
.brand:hover .brand-text em { color: #fff; }

.hero h1 {
  margin-top: clamp(40px, 7vw, 76px);
  font-weight: 900;
  font-size: clamp(34px, 6.4vw, 66px);
  line-height: 1.04;
  letter-spacing: -.01em;
  max-width: 15ch;
}
.lede {
  margin-top: 22px;
  max-width: 60ch;
  font-weight: 300;
  font-size: clamp(16px, 2.1vw, 20px);
  line-height: 1.65;
  color: rgba(255,255,255,.9);
}
.lede b { font-weight: 700; color: #fff; }
.hero-rule {
  width: 72px; height: 4px; border-radius: 4px;
  background: var(--orange);
  margin: 30px 0 16px;
}
.hero-note {
  font-size: 14px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: rgba(255,255,255,.72);
}

/* ---------- Tools ---------- */
main { max-width: var(--container); margin: 0 auto; padding: clamp(48px, 8vw, 88px) 24px 40px; }

.tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.tool {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 26px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  overflow: hidden;
}
.tool::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 5px;
  background: var(--accent, var(--violet));
}
.tool:hover, .tool:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent, var(--violet));
}
.tool--game       { --accent: var(--violet); }
.tool--explorer   { --accent: var(--violet-deep); }
.tool--indicators { --accent: var(--orange); }

.tool-index {
  font-size: 13px; font-weight: 700; letter-spacing: .18em;
  color: var(--accent, var(--violet));
  margin-bottom: 18px;
}
.tool h2 {
  font-weight: 700;
  font-size: clamp(21px, 2.6vw, 26px);
  line-height: 1.15;
  letter-spacing: -.01em;
}
.tool-kind {
  margin-top: 6px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.tool-desc {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  flex: 1;
}
.tool-cta {
  margin-top: 24px;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px; letter-spacing: .04em;
  color: var(--accent, var(--violet));
}
.tool-cta span { transition: transform .25s var(--ease); }
.tool:hover .tool-cta span, .tool:focus-visible .tool-cta span { transform: translateX(5px); }

.prototype-note {
  margin: 44px auto 0;
  max-width: 62ch;
  text-align: center;
  font-size: 13px;
  font-style: italic;
  color: var(--grey);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(64px, 10vw, 120px);
  background: var(--tint);
  border-top: 1px solid var(--line);
}
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 48px 24px 56px; text-align: center; }
.footer-title {
  font-weight: 700; font-size: 15px; letter-spacing: .01em; color: var(--violet-ink);
}
.footer-sub {
  margin-top: 10px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.7;
  max-width: 70ch; margin-left: auto; margin-right: auto;
}
.footer-sub a { color: var(--violet); font-weight: 700; text-decoration: none; }
.footer-sub a:hover { text-decoration: underline; }
.footer-disclaimer {
  margin-top: 18px; font-size: 11.5px; color: var(--grey); line-height: 1.6;
  max-width: 74ch; margin-left: auto; margin-right: auto;
}

/* ---------- Motion / small screens ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .tool:hover, .tool:focus-visible { transform: none; }
}
@media (max-width: 560px) {
  .hero { padding-left: 20px; padding-right: 20px; }
  main { padding-left: 20px; padding-right: 20px; }
  .tool { padding: 26px 22px; }
}
