/* ============================================
   Water LLM — Global Styles
   Paste into: Design > Custom CSS
   ============================================ */

/* --- CSS Variables --- */
:root {
  --purple: #7C5CFC;
  --purple-dark: #5A3ED9;
  --cyan: #00D4FF;
  --cyan-dark: #00B8DB;
  --navy: #1a1a2e;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6B7280;
  --gray-300: #D1D5DB;
  --gray-100: #F3F4F6;
  --white: #FFFFFF;
  --gradient: linear-gradient(135deg, var(--purple), var(--cyan));
  --gradient-subtle: linear-gradient(135deg, var(--purple), #4A8BF5, var(--cyan));
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 1140px;
  --section-pad: 100px 24px;
  --section-pad-mobile: 64px 20px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
.wl-page * { box-sizing: border-box; margin: 0; padding: 0; }

.wl-page {
  font-family: var(--font-main);
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wl-page img { max-width: 100%; height: auto; display: block; }
.wl-page a { text-decoration: none; color: inherit; }

/* --- Layout --- */
.wl-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.wl-section {
  padding: var(--section-pad);
}

@media (max-width: 768px) {
  .wl-section { padding: var(--section-pad-mobile); }
}

/* --- Typography --- */
.wl-h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--gray-900);
}

.wl-h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--gray-900);
}

.wl-h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--gray-900);
}

.wl-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 640px;
}

.wl-text-center { text-align: center; }
.wl-mx-auto { margin-left: auto; margin-right: auto; }

/* --- Buttons --- */
.wl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.wl-btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(124, 92, 252, 0.35);
}

.wl-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(124, 92, 252, 0.45);
}

.wl-btn-secondary {
  background: var(--white);
  color: var(--gray-900);
  border: 1.5px solid var(--gray-300);
}

/* `.wl-page a { color: inherit }` above has specificity (0,1,1) and was
   beating the (0,1,0) button rules, so every CTA rendered with dark text —
   including white-on-gradient buttons and the outline button sitting on the
   dark gradient band. These (0,2,1) rules restore the intended colours. */
.wl-page a.wl-btn-primary { color: var(--white); }
.wl-page a.wl-btn-secondary { color: var(--gray-900); }
.wl-page a.wl-btn-cta-light { color: var(--purple-dark); }
.wl-page a.wl-btn-cta-outline { color: var(--white); }

.wl-btn-secondary:hover {
  border-color: var(--purple);
  color: var(--purple);
  transform: translateY(-2px);
}

.wl-btn-ghost {
  background: transparent;
  color: var(--purple);
  padding: 14px 16px;
}

.wl-btn-ghost:hover {
  background: rgba(124, 92, 252, 0.06);
}

/* --- Cards --- */
.wl-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: all var(--transition);
}

.wl-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
  transform: translateY(-3px);
}

/* --- Grids --- */
.wl-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

.wl-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

@media (max-width: 768px) {
  .wl-grid-2,
  .wl-grid-3,
  .wl-grid-4 { grid-template-columns: 1fr; }
}

/* --- Gradient Accents --- */
.wl-gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wl-gradient-border {
  position: relative;
  border: none;
}

.wl-gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: var(--radius);
  background: var(--gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* --- Divider --- */
.wl-divider {
  width: 60px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
  border: none;
}

/* --- Icon circles --- */
.wl-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124,92,252,0.1), rgba(0,212,255,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

/* --- Badge/Pill --- */
.wl-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(124,92,252,0.08), rgba(0,212,255,0.08));
  border: 1px solid rgba(124,92,252,0.15);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--purple);
}
