/* Tailwind CSS is loaded via CDN in base.html */

:root {
  color-scheme: light;
}

/* Smooth scrolling for anchor jumps */
html:focus-within {
  scroll-behavior: smooth;
}

/* Background: subtle AI-oriented gradient + dot grid */
.ai-bg {
  background:
    radial-gradient(1000px 600px at 20% -10%, rgba(73, 135, 227, 0.14), transparent 60%),
    radial-gradient(900px 500px at 80% 0%, rgba(139, 191, 255, 0.12), transparent 55%),
    radial-gradient(900px 600px at 50% 110%, rgba(73, 135, 227, 0.10), transparent 60%),
    linear-gradient(to bottom, #ffffff, #f7f9fc);
}

.ai-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    radial-gradient(rgba(105, 119, 136, 0.18) 0.8px, transparent 0.8px);
  background-size: 22px 22px;
  background-position: 0 0;
  mask-image: radial-gradient(closest-side at 50% 30%, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

/* Nice selection */
::selection {
  background: rgba(73, 135, 227, 0.22);
}

/* Better default focus outlines */
:where(a, button, input, textarea, summary):focus-visible {
  outline: none;
}

/* Small utility styles for “AI cards” */
.ai-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(105, 119, 136, 0.25);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(8px);
}

.ai-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 1.25rem;
  padding: 1px;
  background: linear-gradient(
    120deg,
    rgba(73, 135, 227, 0.35),
    rgba(139, 191, 255, 0.18),
    rgba(255, 255, 255, 0)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.55;
}

/* CTA Card - Override for full visibility */
.cta-card {
  background: #4987e3 !important;
  backdrop-filter: none !important;
  border: none !important;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.15) !important;
}

.cta-card::before {
  display: none !important;
}

.ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  line-height: 1.2;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(105, 119, 136, 0.35);
  background: rgba(255, 255, 255, 0.7);
  color: rgba(30, 41, 59, 0.85);
  white-space: normal;
}

/* Gradient text that stays visible across browsers (with fallback) */
.ai-gradient-text {
  color: #4987e3; /* fallback when background-clip isn't supported */
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .ai-gradient-text {
    background: linear-gradient(90deg, #3a6bc7 0%, #4987e3 45%, #6ea8ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.ai-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(105, 119, 136, 0.45), transparent);
}

/* Buttons (consistent styling across templates) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem; /* ~rounded-xl */
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.btn:active {
  transform: translateY(0.5px);
}

.btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(73, 135, 227, 0.35), 0 0 0 5px rgba(255, 255, 255, 0.95);
}

.btn-primary {
  background: #4987e3; /* brand-600 */
  color: #ffffff;
  box-shadow: 0 10px 35px rgba(105, 119, 136, 0.10);
}

.btn-primary:hover {
  background: #3a6bc7; /* brand-700 */
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.92);
  color: rgba(30, 41, 59, 0.95); /* slate-800-ish */
  border: 1px solid rgba(105, 119, 136, 0.45);
  box-shadow: 0 2px 10px rgba(105, 119, 136, 0.06);
}

.btn-secondary:hover {
  background: rgba(248, 250, 252, 1); /* slate-50 */
  border-color: rgba(105, 119, 136, 0.6);
}

/* Improve default details/summary click area */
details > summary::-webkit-details-marker {
  display: none;
}

/* Increase the base font size */
html {
  font-size: 18px; /* Default was likely 16px */
}

/* Adjust scaling for larger text sizes */
.text-lg {
  font-size: 1.25rem; /* 20px */
}
.text-xl {
  font-size: 1.5rem; /* 24px */
}
.text-2xl {
  font-size: 1.875rem; /* 30px */
}
.text-3xl {
  font-size: 2.25rem; /* 36px */
}
.text-4xl {
  font-size: 3rem; /* 48px */
}
.text-5xl {
  font-size: 3.75rem; /* 60px */
}
.text-6xl {
  font-size: 4.5rem; /* 72px */
}