/* =====================================================
   Judica Systems — Final CSS (Dense, Non-Stretching)
   ===================================================== */

:root {
  --bg-main: #f5f7fa;
  --bg-dark: #0b1220;
  --bg-card: #0f172a;

  --text-primary: #0b0d12;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --text-invert: #f9fafb;

  --border-light: #e5e7eb;
  --accent: #2563eb;

  --radius: 22px;
}

/* ---------- Reset ---------- */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.55;
}

/* ---------- Layout ---------- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow {
  max-width: 760px;
}

.center {
  text-align: center;
}

/* ---------- Header ---------- */

/* ---------- Header ---------- */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 10px 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.brand-name {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.header-nav {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
}

.header-nav a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header-nav a:hover {
  text-decoration: underline;
}


.logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

/* ---------- Intro (Above-the-fold) ---------- */

.intro {
  padding: 20px 0 28px;
}

.intro h1 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px 0;
}

.intro-lead {
  font-size: 0.98rem;
  color: var(--text-secondary);
  margin: 0 0 10px 0;
}

.intro-points {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
}

.intro-points li {
  font-size: 0.92rem;
  margin-bottom: 4px;
  padding-left: 14px;
  position: relative;
}

.intro-points li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.intro-foot {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Capabilities ---------- */

.capabilities {
  padding: 20px 0 28px;
  border-top: 1px solid var(--border-light);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .cap-grid {
    grid-template-columns: 1fr;
  }
}

.cap-item h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 4px 0;
}

.cap-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- Products ---------- */

.section-muted {
  background: var(--bg-dark);
  color: var(--text-invert);
  padding: 40px 0;
}

.section-muted h2 {
  margin: 0 0 18px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  align-items: start; /* NO STRETCH */
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
  border-radius: var(--radius);
  padding: 26px 26px 30px;
  border: 1px solid rgba(255,255,255,0.05);
  display: block;        /* IMPORTANT */
  align-self: start;     /* IMPORTANT */
}

.product-card img {
  height: 96px;
  width: auto;
  margin: 0 0 12px 0;
}

.product-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #f9fafb;
}

.product-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #c7d2fe;
  margin: 0;
}

/* ---------- Custom Systems ---------- */

.section {
  padding: 36px 0;
}

.criteria {
  margin: 10px 0 14px;
  padding-left: 16px;
}

.criteria li {
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.quiet {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- CTA ---------- */

.section-cta {
  background: var(--bg-dark);
  color: var(--text-invert);
  padding: 40px 0;
}

.section-cta p {
  color: #d1d5db;
  margin-bottom: 16px;
}

.primary-cta {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.jude-demo-cta {
  padding: 110px 0;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(37,99,235,0.28), transparent 60%),
    radial-gradient(900px 500px at 80% 30%, rgba(56,189,248,0.14), transparent 55%),
    linear-gradient(180deg, #070b14 0%, #050916 100%);
}

.jude-demo-card {
  max-width: 980px;
  margin: 0 auto;
  padding: 90px 60px;
  border-radius: 24px;
  text-align: center;

  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  box-shadow:
    0 30px 80px rgba(0,0,0,0.55),
    inset 0 0 40px rgba(255,255,255,0.03);
}

.jude-demo-mark {
  margin-bottom: 30px;
}

.jude-demo-mark img {
  width: 170px;
  height: auto;
  opacity: 0.97;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,0.5));
}

.jude-demo-tagline {
  margin: 0 0 34px;
  font-size: 1.2rem;
  line-height: 1.6;
  letter-spacing: 0.4px;
  color: rgba(255,255,255,0.82);
}

.jude-demo-btn {
  display: inline-block;
  padding: 16px 38px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  color: #fff;

  background: linear-gradient(135deg, #2563eb, #1e40af);
  box-shadow: 0 14px 34px rgba(37,99,235,0.38);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.jude-demo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(37,99,235,0.48);
}

@media (max-width: 820px) {
  .jude-demo-card {
    padding: 70px 26px;
  }

  .jude-demo-mark img {
    width: 150px;
  }
}
/* ---------- Footer ---------- */

.site-footer {
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: #ffffff;
}