/* ── Portfolio Case Study Design System ── */

:root {
  /* Colours */
  --cs-bg: #0f0f11;
  --cs-surface: #16161a;
  --cs-surface-hover: #1c1c21;
  --cs-card: #0d0d0f;
  --cs-card-hover: #111114;
  --cs-icon-wrap: #1e1e22;
  --cs-accent: #4c5cf8;
  --cs-accent-glow: rgba(76, 92, 248, 0.18);
  --cs-text: #ffffff;
  --cs-text-2: #a3a3a9;
  --cs-text-3: #6b6b73;
  --cs-text-muted: #8a8a93;
  --cs-text-dim: #888891;
  --cs-border: rgba(255, 255, 255, 0.07);
  --cs-border-hover: rgba(255, 255, 255, 0.13);
  --cs-border-card: rgba(255, 255, 255, 0.10);
  --cs-border-outline: rgba(255, 255, 255, 0.06);
  --cs-infographic-bg: rgba(16, 16, 22, 0.95);
  --cs-tag-bg: rgba(255, 255, 255, 0.05);
  --cs-tag-text: rgba(255, 255, 255, 0.8);

  /* Typography */
  --cs-font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  --cs-text-hero: 40px;
  --cs-text-h2: 26px;
  --cs-text-body: 16px;
  --cs-text-card-title: 17px;
  --cs-text-card-desc: 13.5px;
  --cs-text-label: 11px;
  --cs-text-meta: 12px;
  --cs-leading-body: 1.85;
  --cs-tracking-hero: -0.03em;
  --cs-tracking-h2: -0.015em;
  --cs-tracking-label: 0.15em;

  /* Spacing & layout */
  --cs-nav-height: 60px;
  --cs-max-width: 1440px;
  --cs-content-width: 1100px;
  --cs-side-padding: 45px;
  --cs-sidebar-width: 180px;
  --cs-section-gap: 14px;
  --cs-problem-grid-gap: 20px;

  /* Radii */
  --cs-radius-card: 24px;
  --cs-radius-icon: 14px;
  --cs-radius-infographic: 28px;
  --cs-radius-pill: 100px;

  /* Motion */
  --cs-ease: cubic-bezier(0.2, 1, 0.2, 1);
  --cs-duration: 1000ms;
}

/* ── Base ── */
body {
  background-color: var(--cs-bg);
  color: var(--cs-text);
  font-family: var(--cs-font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

/* ── Navigation ── */
.glass-nav {
  background: rgba(15, 15, 17, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* ── Section label (eyebrow) ── */
.cs-section-label {
  font-size: var(--cs-text-label);
  font-weight: 700;
  letter-spacing: var(--cs-tracking-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  margin-bottom: 8px;
}

/* ── Problem cards ── */
.problem-static-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--cs-problem-grid-gap);
}

@media (min-width: 768px) {
  .problem-static-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .problem-static-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ia-options-grid.problem-static-grid {
  margin-top: 0;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .ia-options-grid.problem-static-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .ia-options-grid.problem-static-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.problem-static-card {
  background: var(--cs-card);
  border: 1px solid var(--cs-border-card);
  border-radius: var(--cs-radius-card);
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 18px;
  transition: background 0.25s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.problem-static-card:hover {
  background: var(--cs-card-hover);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 16px 40px rgba(0, 0, 0, 0.4);
}

.problem-card-img-header {
  width: 100%;
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 8px;
}

.problem-card-img-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.problem-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.problem-card-icon-wrap {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: var(--cs-icon-wrap);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--cs-radius-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
}

.problem-card-title {
  font-size: var(--cs-text-card-title);
  font-weight: 700;
  color: var(--cs-text);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.problem-card-desc {
  font-size: var(--cs-text-card-desc);
  line-height: 1.7;
  color: var(--cs-text-dim);
}

.ai-tool-logo-squircle {
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-radius: 28%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.ai-tool-logo-squircle--md {
  width: 18px;
  height: 18px;
}

.ai-tool-logo-squircle img {
  display: block;
  object-fit: contain;
}

/* Tuned per asset so visible glyph matches Lovable (~16px tag icon) */
.ai-tool-logo-squircle--cursor img {
  width: 14px;
  height: 14px;
}

.ai-tool-logo-squircle--chatgpt img {
  width: 16px;
  height: 16px;
  transform: scale(1.75);
}

.ai-tool-logo-squircle--figma img {
  width: 16px;
  height: 16px;
  transform: scale(1.9);
}

.ai-tool-logo-squircle--md.ai-tool-logo-squircle--cursor img {
  width: 16px;
  height: 16px;
}

.ai-tool-logo-squircle--md.ai-tool-logo-squircle--figma img {
  width: 18px;
  height: 18px;
  transform: scale(1.9);
}

.ai-tool-logo-squircle--clarity img {
  width: 14px;
  height: 14px;
}

.cs-infographic-panel {
  background: var(--cs-infographic-bg);
  border-radius: var(--cs-radius-infographic);
  border: 1px solid var(--cs-border);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  user-select: none;
}
