/* Justice sans frontières — design system shared with juge.ca
   (dark navy gradient + coral glassmorphism) */

:root {
  --navy-1: #1a1a2e;
  --navy-2: #16213e;
  --navy-3: #0f3460;
  --coral-1: #e94560;
  --coral-2: #ff6b6b;
  --text: #eaeaf2;
  --text-muted: #a0a8c0;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, var(--navy-1) 0%, var(--navy-2) 50%, var(--navy-3) 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--coral-2); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--coral-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--coral-1);
  color: #fff;
  padding: 12px 20px;
  z-index: 100;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(22, 33, 62, 0.8);
  border-bottom: 1px solid var(--glass-border);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  background: linear-gradient(90deg, var(--coral-1), var(--coral-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}
.site-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
}
.site-nav a:hover { color: var(--text); }
.lang-switch {
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 5px 14px;
  color: var(--text) !important;
  font-weight: 600;
  background: var(--glass);
}
.lang-switch:hover { border-color: var(--coral-1); }

/* Layout */
main { display: block; }
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 20px;
}
.section-title {
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--coral-1), var(--coral-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  width: fit-content;
}
.section-lead {
  color: var(--text-muted);
  max-width: 760px;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 96px 20px 72px;
}
.hero .domain {
  font-size: 0.85rem;
  color: var(--coral-1);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 1.2rem;
  background: linear-gradient(90deg, #ffffff, #c9d4ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.2rem;
}
.btn-primary {
  display: inline-block;
  padding: 15px 34px;
  background: linear-gradient(90deg, var(--coral-1), var(--coral-2));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(233, 69, 96, 0.4);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: #fff;
}
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* Resource lists */
.resource-group { margin-bottom: 2.2rem; }
.resource-group h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #fff;
  border-left: 4px solid var(--coral-1);
  padding-left: 12px;
}
.resource-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}
.resource-list li {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 18px 20px;
  transition: border-color 0.3s, transform 0.3s;
}
.resource-list li:hover {
  border-color: rgba(233, 69, 96, 0.5);
  transform: translateY(-2px);
}
.resource-list a {
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  display: block;
  margin-bottom: 4px;
}
.resource-list a:hover { color: var(--coral-2); }
.resource-list span {
  color: var(--text-muted);
  font-size: 0.88rem;
  display: block;
}

/* Ecosystem / juge.ca feature card */
.feature-card {
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.12), rgba(255, 107, 107, 0.06));
  border: 1px solid rgba(233, 69, 96, 0.35);
  border-radius: 18px;
  padding: 36px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.feature-card h3 { font-size: 1.5rem; color: #fff; }
.feature-card p { color: var(--text-muted); max-width: 700px; }

/* Waitlist form */
.form-container {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 32px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 560px;
}
.form-container input[type="email"] {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 15px;
}
.form-container button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(90deg, var(--coral-1), var(--coral-2));
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.form-container button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(233, 69, 96, 0.4);
}
.hs-form input { width: 100% !important; padding: 15px !important; border-radius: 8px !important; border: none !important; margin-bottom: 10px !important; }
.hs-form .hs-button { width: 100% !important; padding: 15px !important; background: linear-gradient(90deg, var(--coral-1), var(--coral-2)) !important; border: none !important; border-radius: 8px !important; font-weight: 600 !important; }
.hs-form label { color: var(--text-muted) !important; text-align: left !important; display: block !important; margin-bottom: 5px !important; }
.hs-error-msgs { color: var(--coral-2) !important; }
.submitted-message { color: #4ade80 !important; font-size: 1.2rem !important; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--glass-border);
  margin-top: 40px;
  padding: 40px 20px;
  text-align: center;
  color: #667;
  font-size: 0.88rem;
}
.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.site-footer nav a {
  color: var(--text-muted);
  text-decoration: none;
}
.site-footer nav a:hover { color: var(--text); }

.disclaimer {
  max-width: 760px;
  margin: 0 auto 16px;
  color: #778;
  font-size: 0.82rem;
}
