/* ───────────────────────────────────────────
   Olitt Design Tokens
   Shared CSS variables and base styles for
   all Olitt Gutenberg blocks.
   ─────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Space+Grotesk:wght@300..700&display=swap');

:root {
  /* Core palette (Light mode defaults for Olitt blocks) */
  --background: 0 0% 100%;
  --foreground: 240 10% 10%;
  --card: 0 0% 100%;
  --card-foreground: 240 10% 10%;
  --popover: 0 0% 100%;
  --popover-foreground: 240 10% 10%;
  --primary: 262 83% 58%;
  --primary-foreground: 0 0% 100%;
  --secondary: 260 60% 96%;
  --secondary-foreground: 262 83% 40%;
  --muted: 240 5% 96%;
  --muted-foreground: 240 5% 46%;
  --accent: 262 60% 94%;
  --accent-foreground: 262 83% 40%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --border: 240 6% 90%;
  --input: 240 6% 90%;
  --ring: 262 83% 58%;
  --radius: 0.75rem;

  /* Olitt brand tokens */
  --olitt-dark: 250 30% 8%;
  --olitt-dark-muted: 250 20% 14%;
  --olitt-purple: 262 83% 58%;
  --olitt-purple-glow: 270 90% 65%;
  --olitt-indigo: 240 60% 55%;
  --olitt-green: 155 70% 45%;
}

/* ── Base typography & layout ── */
.olitt-block {
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
}

.olitt-block h1,
.olitt-block h2,
.olitt-block h3,
.olitt-block h4,
.olitt-block h5,
.olitt-block h6 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

/* ── Common utilities ── */
.olitt-gradient-text {
  background: linear-gradient(90deg, hsl(var(--olitt-purple)), hsl(var(--olitt-purple-glow)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.olitt-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: none;
  font-weight: 600;
  font-size: 0.875rem;
  color: #fff;
  background: linear-gradient(90deg, hsl(var(--olitt-purple)), hsl(var(--olitt-purple-glow)));
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
  box-shadow: 0 4px 20px hsl(var(--olitt-purple) / 0.3);
}

.olitt-btn-primary:hover {
  opacity: 0.9;
}

.olitt-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--border));
  font-weight: 600;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
}

.olitt-btn-outline:hover {
  background: hsl(var(--muted));
}

/* ── Section spacing ── */
.olitt-section {
  padding: 4rem 1.5rem;
}

@media (min-width: 768px) {
  .olitt-section {
    padding: 6rem 1.5rem;
  }
}

.olitt-section-inner {
  max-width: 80rem;
  margin: 0 auto;
}

.olitt-section-inner--narrow {
  max-width: 64rem;
}

.olitt-section-inner--tight {
  max-width: 48rem;
}

/* ── Section header ── */
.olitt-section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.olitt-section-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0 0 1rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .olitt-section-header h2 {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .olitt-section-header h2 {
    font-size: 3rem;
  }
}

.olitt-section-header p {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 36rem;
  margin: 0 auto;
}

/* ── Card base ── */
.olitt-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 1.5rem;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.olitt-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border-color: hsl(var(--olitt-purple) / 0.2);
}