:root {
  --bg: #0c0f12;
  --bg-alt: #11151a;
  --text: #e7eaee;
  --muted: #a9b1bd;
  --primary: #6ee7ff;
  --primary-2: #a78bfa;
  --card: #161b22;
  --border: #263143;
  --spacing-xl: 5rem;
  --spacing-xxl: 8rem;
}

/* Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section Spacing */
.cs-section {
  padding: var(--spacing-xl) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: #fff;
}

/* Typography Hierarchy */
h1, h2, h3 {
  line-height: 1.2;
}

/* Case Study Hero */
.cs-hero {
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}

.cs-hero-main {
  display: grid;
  grid-template-columns: 4fr 6fr; /* 40% text, 60% visuals */
  gap: 3rem;
  align-items: center;
}

.cs-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cs-genre {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.cs-hero-footer {
  display: flex;
  justify-content: space-between;
  padding: 2rem 0;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cs-stat {
  display: flex;
  flex-direction: column;
}

.cs-stat .label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.cs-stat .value {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

/* Grids & Visuals */
.cs-grid-2 {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: 4rem;
  align-items: flex-start;
}

.cs-visual-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.cs-visual-container img, 
.cs-visual-container video {
  width: 100%;
  height: auto;
  display: block;
}

.cs-visual-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cs-visual-stack .cs-visual-container {
  max-width: 100%;
}

/* Lists */
.cs-list {
  list-style: none;
}

.cs-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.cs-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.cs-list-inline {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.cs-list-inline li {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
}

/* Monetization Grid */
.cs-monetization-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cs-mon-col .label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.cs-mon-col .value {
  font-size: 1.125rem;
  font-weight: 500;
  color: #fff;
}

/* Challenge Cards */
.cs-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.cs-challenge-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, background 0.3s ease;
}

.cs-challenge-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
}

.cs-card-visual {
  height: 160px;
  background: #000;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.cs-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-challenge-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.cs-card-detail {
  margin-bottom: 1rem;
}

.cs-card-detail strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.cs-card-detail p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Roadmap */
.cs-roadmap-container {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.cs-roadmap-step {
  flex: 1;
  min-width: 250px;
  background: rgba(255, 255, 255, 0.03);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.cs-roadmap-step::after {
  content: "→";
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.5rem;
}

.cs-roadmap-step:last-child::after {
  display: none;
}

/* Learnings Grid */
.cs-learnings-grid {
  gap: 2rem;
}

.cs-learning-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.02);
  padding: 1.5rem;
  border-radius: 12px;
}

.cs-learning-icon {
  font-size: 1.5rem;
}

.cs-learning-text {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .cs-hero-main, .cs-grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .cs-hero-footer {
    flex-wrap: wrap;
    gap: 2rem;
  }
  
  .cs-monetization-grid {
    grid-template-columns: 1fr;
  }
  
  .cs-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Animations */
[data-scroll] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-scroll].in-view {
  opacity: 1;
  transform: translateY(0);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.2) blur(8px);
  background: linear-gradient(to bottom, rgba(12,15,18,.8), rgba(12,15,18,.4));
  border-bottom: 1px solid rgba(38,49,67,.4);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #0b0d10;
  font-weight: 800;
  text-decoration: none;
}
.nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 20px;
  padding: 8px 12px;
  border-radius: 8px;
}
.nav a:hover {
  background: rgba(110,231,255,.12);
}
.hero {
  padding: 72px 0 24px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  margin: 0 0 12px;
}
.hero-copy p {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 24px;
}
.hero-actions {
  display: flex;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  border-radius: 12px;
  background: #0f1318;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.btn.primary {
  border: none;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #0b0d10;
  font-weight: 600;
}
.hero-art {
  display: grid;
  place-items: center;
}
.orb {
  width: clamp(200px, 40vw, 420px);
  height: clamp(200px, 40vw, 420px);
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(255,255,255,.35), transparent),
    conic-gradient(from 210deg at 50% 50%, var(--primary), var(--primary-2), var(--primary));
  filter: blur(1px) saturate(1.2);
  box-shadow: inset 0 0 80px rgba(255,255,255,.2), 0 30px 120px rgba(103,232,249,.3);
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg) }
  50% { transform: translateY(-10px) rotate(4deg) }
}
.section {
  padding: 64px 0;
}
.section.alt {
  background: var(--bg-alt);
}
.section-head h2 {
  margin: 0 0 8px;
  font-size: 28px;
}
.section-head p {
  margin: 0 0 24px;
  color: var(--muted);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  display: grid;
  grid-template-rows: 160px 1fr auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  border-color: rgba(110,231,255,.4);
}
.card-media {
  background: linear-gradient(120deg, rgba(110,231,255,.15), rgba(167,139,250,.15));
  display: grid;
  place-items: center;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body {
  padding: 16px;
}
.card-title {
  font-weight: 600;
  margin: 0 0 6px;
}
.card-summary {
  color: var(--muted);
  margin: 0 0 12px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(110,231,255,.14);
  color: #c8f3ff;
}
.card-actions {
  padding: 12px 16px 16px;
  display: flex;
  justify-content: flex-end;
}
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.contact {
  display: flex;
  gap: 12px;
}
.modal {
  position: fixed;
  inset: 0;
  display: none;
}
.modal.show {
  display: grid;
  place-items: center;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
}
.modal-dialog {
  position: relative;
  width: min(900px, calc(100% - 32px));
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 30px 120px rgba(0,0,0,.5);
  overflow: hidden;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f1318;
  color: var(--text);
  cursor: pointer;
}
.modal-media {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(120deg, rgba(110,231,255,.15), rgba(167,139,250,.15));
}
.modal-body {
  padding: 16px;
}
.modal-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 12px 0;
}
.bullets {
  padding-left: 18px;
}
.links {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr }
  .cards { grid-template-columns: repeat(2, 1fr) }
}
@media (max-width: 620px) {
  .nav a { margin-left: 12px }
  .cards { grid-template-columns: 1fr }
  .modal-meta { grid-template-columns: 1fr }
  .contact { flex-direction: column }
}
