/* demos.css - matches Rikosa hero colors and card look */

/* Brand palette - identical to Tailwind config on the site */
:root {
  --brand-50: #f0f7ff;
  --brand-100: #dceeff;
  --brand-200: #bfe0ff;
  --brand-300: #95ccff;
  --brand-400: #62b0ff;
  --brand-500: #3494ff; /* close to your Tailwind brand-600 visual on white */
  --brand-600: #1f7be6;
  --brand-700: #1862b4;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-600: #475569;
  --shadow-soft: 0 10px 30px rgba(2, 6, 23, 0.08);
  --radius-xl: 16px;
}

/* Optional - ensure the page background aligns with home */
body {
  background: #ffffff;
  color: #0f172a;
}

/* Force the header CTA to use brand colors on this page */
/* Fix: only target the main CTA button in header, not the nav link */
header a[href*="#contact"].inline-flex {
  background-color: var(--brand-500) !important;
  color: #fff !important;
}
header a[href*="#contact"].inline-flex:hover {
  background-color: var(--brand-600) !important;
}

/* Grid wrapper */
.demos-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Card polish to match home cards */
.demo-card {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  background: #fff;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.demo-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: var(--slate-300);
}

/* Thumbnail consistency */
.demo-card img {
  width: 100%;
  height: 176px;
  object-fit: cover;
  display: block;
  background: var(--slate-100);
}

/* Card body text polish */
.demo-card .title {
  margin: 0;
  font-weight: 700;
  font-size: 18px;
}
.demo-card .desc {
  margin: 4px 0 0;
  color: var(--slate-600);
  font-size: 14px;
}

/* CTA pill */
.demo-cta {
  margin-top: 10px;
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--brand-400);
  color: var(--brand-500);
  background: var(--brand-50);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.demo-cta:hover,
.demo-card:hover .demo-cta {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: #fff;
  box-shadow: 0 6px 18px rgba(31, 123, 230, 0.25);
}

/* Tailored build card hero-like area */
.tailored-hero {
  width: 100%;
  height: 176px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
      900px 380px at 50% -10%,
      rgba(52, 148, 255, 0.12),
      transparent
    ),
    var(--slate-50);
  text-align: center;
  padding: 0 24px;
}

/* Center the tailored build button on all sizes */
.tailored-hero + .p-4 {
  display: flex;
  justify-content: center;
  align-items: center;
}
.tailored-hero + .p-4 .demo-cta {
  text-align: center;
}

/* Optional surface utility */
.card-surface {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

/* Accessibility focus */
a:focus-visible,
button:focus-visible,
.demo-cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 148, 255, 0.35);
  border-radius: 10px;
}
