@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

/* ============================================================
   Curious Kaizer — Apple Studio Design System & Bento Grid Engine
   Clean unbolded typography, Apple San Francisco / DM Sans stack,
   electric blue Bento cards, frosted glass, and seamless visual flow.
   ============================================================ */

:root {
  color-scheme: light;

  /* Native Apple San Francisco Signature Stack & DM Sans Fallback */
  --font-primary: 'DM Sans', -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "SF Pro", system-ui, -system-ui, sans-serif;
  --font-display: 'DM Sans', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "SF Pro", system-ui, -system-ui, sans-serif;
  --font-mono: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  /* Brand Color Palette - Curious Kaizer Electric Blue & Apple Slate */
  --blue-primary: #2563eb;
  --blue-electric: #1d6bf3;
  --blue-hover: #1d4ed8;
  --blue-soft: #eff6ff;
  --blue-glow: rgba(37, 99, 235, 0.25);
  --cyan-glow: rgba(56, 189, 248, 0.22);
  --purple-glow: rgba(147, 51, 234, 0.16);

  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #64748b;
  --border-light: rgba(0, 0, 0, 0.06);
  --border-subtle: rgba(0, 0, 0, 0.04);
  --bg-page: #f8fafc;

  /* Apple 3D Design System Shadows */
  --apple-3d-shadow-light:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 12px 32px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  --apple-3d-shadow-light-hover:
    0 4px 12px rgba(0, 0, 0, 0.06),
    0 20px 48px rgba(37, 99, 235, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  --apple-3d-shadow-dark:
    0 2px 4px rgba(0, 0, 0, 0.2),
    0 16px 40px rgba(15, 23, 42, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);

  --blue-bento-shadow:
    0 16px 36px rgba(29, 107, 243, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);

  --blue-bento-shadow-hover:
    0 24px 52px rgba(29, 107, 243, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 1.0625rem; /* 17px - Premium Apple readability */
  line-height: 1.7;
  font-weight: 400;
  color: var(--ink);
  background: 
    radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.03) 0%, transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(147, 51, 234, 0.02) 0%, transparent 45%),
    var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--blue-primary);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

a:hover {
  color: var(--blue-hover);
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.4);
  outline-offset: 3px;
}

/* Skip link */
.ck-skip {
  position: absolute;
  left: 20px;
  top: -100px;
  background: #ffffff;
  color: var(--ink);
  padding: 12px 24px;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.9rem;
  z-index: 999999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: top 0.2s ease;
}

.ck-skip:focus {
  top: 20px;
}

/* ============================================================
   TYPOGRAPHY BASE — CLEAN UNBOLDED APPLE WEIGHTS (300 / 400 / 500)
   No heavy or bulky 700/800 bold fonts. Clean, sleek, luxurious.
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500 !important; /* Clean unbolded Apple medium weight */
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.8rem);
  font-weight: 500 !important;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 500 !important;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.3rem;
  font-weight: 500 !important;
  letter-spacing: -0.02em;
}

p, li, span, label, input, select, textarea {
  font-family: var(--font-primary);
  font-weight: 400;
}

/* Layout container */
.ck-wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================================
   1. STICKY APPLE FROSTED GLASS NAVBAR WITH BRAND LOGO BOX
   ============================================================ */
.ck-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.ck-nav > div {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Curious Kaizer Branded Logo with Code Box */
.ck-brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ck-brand::before {
  content: '</>';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--blue-electric) 0%, #1557c0 100%);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.05em;
  box-shadow: 0 3px 10px rgba(29, 107, 243, 0.32);
}

.ck-brand:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.ck-links {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.ck-links a {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.95rem;
  color: #4b5563;
  text-decoration: none;
  padding: 6px 4px;
  position: relative;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.ck-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--blue-primary);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ck-links a:hover {
  color: var(--ink);
}

.ck-links a:hover::after,
.ck-links a[aria-current="page"]::after {
  width: 100%;
}

.ck-links a[aria-current="page"] {
  color: var(--blue-primary);
}

/* Contact CTA in Nav */
.ck-links a[href="/contact"] {
  background: #0f172a;
  color: #ffffff !important;
  padding: 9px 20px;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.92rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ck-links a[href="/contact"]::after {
  display: none;
}

.ck-links a[href="/contact"]:hover {
  background: var(--blue-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

/* ============================================================
   2. APPLE STUDIO HERO SECTION (.ck-hero)
   Seamless, airy, luminous hero matching Curious Kaizer homepage.
   Clean unbolded headings, subtle blue aura, and Apple pill buttons.
   ============================================================ */
.ck-hero {
  position: relative;
  overflow: hidden;
  background: 
    radial-gradient(90% 70% at 50% -10%, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0.02) 45%, transparent 75%),
    radial-gradient(60% 50% at 85% 15%, rgba(56, 189, 248, 0.06) 0%, transparent 65%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 60%, #f4f7fb 100%);
  color: var(--ink);
  padding: 68px 0 80px;
  border-bottom: 1px solid var(--border-light);
}

/* Subtle ambient background aura */
.ck-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.07) 0%, rgba(147, 51, 234, 0.04) 50%, transparent 75%);
  filter: blur(60px);
  pointer-events: none;
  border-radius: 50%;
}

.ck-breadcrumb {
  font-size: 13.5px;
  font-weight: 400;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.ck-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ck-breadcrumb a:hover {
  color: var(--blue-primary);
}

.ck-breadcrumb span {
  margin: 0 6px;
  color: #94a3b8;
}

.ck-breadcrumb span[aria-current="page"] {
  color: #334155;
  font-weight: 500;
}

/* Glowing Frosted Apple Pill Eyebrow Badge */
.ck-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--blue-primary);
  background: rgba(37, 99, 235, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(37, 99, 235, 0.16);
  padding: 6px 16px;
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.06);
  margin-bottom: 16px;
}

.ck-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-primary);
  box-shadow: 0 0 8px var(--blue-primary);
  display: inline-block;
  animation: pulseDot 2.2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

.ck-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.2vw, 3.8rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 500 !important; /* Apple clean unbolded medium weight */
  max-width: 900px;
  margin: 16px 0 20px;
  color: #0f172a;
}

.ck-lead {
  max-width: 800px;
  color: #475569;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.72;
  margin: 0 0 34px;
}

.ck-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Apple Pill Action Buttons */
.ck-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 9999px;
  text-decoration: none;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.04);
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.ck-button:hover {
  transform: translateY(-2px);
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.15);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  color: #0f172a;
}

.ck-button.primary {
  background: var(--blue-primary);
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.32);
}

.ck-button.primary:hover {
  background: var(--blue-hover);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.42);
  color: #ffffff;
}

/* ============================================================
   3. MAIN CONTENT LAYOUT SYSTEM
   ============================================================ */
main {
  padding: 60px 0 90px;
}

.ck-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}

/* Single column for landing pages like /markets or /industries */
.ck-layout.single-column,
main:not(:has(.ck-aside)) .ck-layout {
  grid-template-columns: 1fr;
}

/* ============================================================
   4. BENTO GRID ARCHITECTURE SYSTEM FOR ARTICLE SECTIONS (.ck-copy)
   Turns plain text pages into a stunning Curious Kaizer Bento Grid:
   - Section 1: Hero Electric Blue Bento Card (spans 2 cols)
   - Section 2 & 4: Apple Frosted Light 3D Cards
   - Section 3: Apple Obsidian Titanium Dark Bento Card
   ============================================================ */
.ck-copy {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  align-items: stretch;
  counter-reset: bento-step;
}

/* Default Section Bento Card */
.ck-copy section {
  margin: 0;
  padding: 38px 34px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  counter-increment: bento-step;
}

/* Step Number Badge */
.ck-copy section::after {
  content: "0" counter(bento-step);
  position: absolute;
  top: 26px;
  right: 28px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 9999px;
  pointer-events: none;
}

.ck-copy section h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500 !important;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  padding-right: 48px; /* space for badge */
}

.ck-copy section h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500 !important;
  letter-spacing: -0.02em;
  margin: 20px 0 10px;
}

.ck-copy section p {
  margin: 0 0 16px;
  font-size: 1.04rem;
  line-height: 1.74;
}

.ck-copy section p:last-child {
  margin-bottom: 0;
}

.ck-copy section ul {
  margin: 0 0 18px 20px;
  padding: 0;
}

.ck-copy section li {
  margin-bottom: 8px;
  font-size: 1.02rem;
  line-height: 1.65;
}

/* ------------------------------------------------------------
   CARD THEME 1: HERO ELECTRIC BLUE BENTO CARD (:nth-child(4n+1))
   Homepage signature electric blue with concentric radar circles
   ------------------------------------------------------------ */
.ck-copy section:nth-child(4n+1) {
  grid-column: span 2; /* Hero feature card spans both columns */
  background: linear-gradient(135deg, #1d6bf3 0%, #1557c0 100%);
  color: #ffffff;
  box-shadow: var(--blue-bento-shadow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ck-copy section:nth-child(4n+1)::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 280px;
  height: 280px;
  background-image: url("data:image/svg+xml,%3Csvg width='280' height='280' viewBox='0 0 280 280' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='140' cy='140' r='40' stroke='rgba(255,255,255,0.18)' stroke-width='1.5'/%3E%3Ccircle cx='140' cy='140' r='80' stroke='rgba(255,255,255,0.12)' stroke-width='1.5' stroke-dasharray='4 4'/%3E%3Ccircle cx='140' cy='140' r='120' stroke='rgba(255,255,255,0.08)' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  opacity: 0.9;
}

.ck-copy section:nth-child(4n+1)::after {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.ck-copy section:nth-child(4n+1) h2,
.ck-copy section:nth-child(4n+1) h3 {
  color: #ffffff;
  font-weight: 500 !important;
}

.ck-copy section:nth-child(4n+1) p {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
}

.ck-copy section:nth-child(4n+1) a {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ck-copy section:nth-child(4n+1):hover {
  transform: translateY(-5px);
  box-shadow: var(--blue-bento-shadow-hover);
}

/* ------------------------------------------------------------
   CARD THEME 2: APPLE FROSTED LIGHT 3D CARD (:nth-child(4n+2))
   Clean, luminous Apple card with 3D inset shadow
   ------------------------------------------------------------ */
.ck-copy section:nth-child(4n+2) {
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: var(--apple-3d-shadow-light);
  color: var(--ink);
}

.ck-copy section:nth-child(4n+2)::after {
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue-primary);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.ck-copy section:nth-child(4n+2) h2 {
  color: #0f172a;
}

.ck-copy section:nth-child(4n+2) p {
  color: #4b5563;
}

.ck-copy section:nth-child(4n+2):hover {
  transform: translateY(-5px);
  box-shadow: var(--apple-3d-shadow-light-hover);
  border-color: rgba(37, 99, 235, 0.2);
}

/* ------------------------------------------------------------
   CARD THEME 3: APPLE OBSIDIAN TITANIUM DARK CARD (:nth-child(4n+3))
   High-contrast Apple Pro aesthetic with subtle ambient cyan/blue glow
   ------------------------------------------------------------ */
.ck-copy section:nth-child(4n+3) {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--apple-3d-shadow-dark);
  color: #f8fafc;
}

.ck-copy section:nth-child(4n+3)::before {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.ck-copy section:nth-child(4n+3)::after {
  background: rgba(255, 255, 255, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.ck-copy section:nth-child(4n+3) h2,
.ck-copy section:nth-child(4n+3) h3 {
  color: #ffffff;
}

.ck-copy section:nth-child(4n+3) p {
  color: #cbd5e1;
}

.ck-copy section:nth-child(4n+3) a {
  color: #38bdf8;
}

.ck-copy section:nth-child(4n+3):hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.35);
  border-color: rgba(56, 189, 248, 0.3);
}

/* ------------------------------------------------------------
   CARD THEME 4: APPLE SOFT SKY FROSTED CARD (:nth-child(4n+4))
   Subtle azure tint with deep blue typography
   ------------------------------------------------------------ */
.ck-copy section:nth-child(4n+4) {
  background: linear-gradient(145deg, #ffffff 0%, #f0f6ff 100%);
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 12px 32px rgba(37, 99, 235, 0.06);
  color: var(--ink);
}

.ck-copy section:nth-child(4n+4)::after {
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue-primary);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.ck-copy section:nth-child(4n+4) h2 {
  color: #1e3a8a;
}

.ck-copy section:nth-child(4n+4) p {
  color: #3b4d6a;
}

.ck-copy section:nth-child(4n+4):hover {
  transform: translateY(-5px);
  box-shadow: var(--apple-3d-shadow-light-hover);
  border-color: rgba(37, 99, 235, 0.25);
}

/* Share Buttons Bar inside .ck-copy */
.ck-share {
  grid-column: span 2;
  margin: 16px 0 0;
  padding: 24px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: var(--apple-3d-shadow-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ck-share button {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 9999px;
  border: 1px solid var(--border-light);
  background: rgba(15, 23, 42, 0.04);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ck-share button:hover {
  background: var(--blue-primary);
  color: #ffffff;
  border-color: var(--blue-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

#share-status {
  font-size: 13px;
  color: #10b981;
  font-weight: 500;
  margin-left: 8px;
}

/* ============================================================
   5. BENTO GRID DIRECTORY SYSTEM (.ck-cards > a.ck-card)
   Used on /industries, /guides, /markets, etc.
   ============================================================ */
.ck-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 10px;
}

.ck-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 38px 34px;
  border-radius: 24px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ck-card h2,
.ck-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500 !important;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}

.ck-card p {
  font-size: 1.02rem;
  line-height: 1.72;
  margin: 0;
}

/* Card 1: Electric Blue Bento Card */
.ck-card:nth-child(4n+1) {
  background: linear-gradient(135deg, #1d6bf3 0%, #1557c0 100%);
  color: #ffffff;
  box-shadow: var(--blue-bento-shadow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ck-card:nth-child(4n+1)::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 260px;
  height: 260px;
  background-image: url("data:image/svg+xml,%3Csvg width='260' height='260' viewBox='0 0 260 260' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='130' cy='130' r='36' stroke='rgba(255,255,255,0.18)' stroke-width='1.5'/%3E%3Ccircle cx='130' cy='130' r='72' stroke='rgba(255,255,255,0.12)' stroke-width='1.5' stroke-dasharray='4 4'/%3E%3Ccircle cx='130' cy='130' r='108' stroke='rgba(255,255,255,0.08)' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}

.ck-card:nth-child(4n+1) h2,
.ck-card:nth-child(4n+1) h3 {
  color: #ffffff;
}

.ck-card:nth-child(4n+1) p {
  color: rgba(255, 255, 255, 0.92);
}

.ck-card:nth-child(4n+1):hover {
  transform: translateY(-6px);
  box-shadow: var(--blue-bento-shadow-hover);
}

/* Card 2: Apple Light 3D Card */
.ck-card:nth-child(4n+2) {
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: var(--apple-3d-shadow-light);
  color: var(--ink);
}

.ck-card:nth-child(4n+2) h2,
.ck-card:nth-child(4n+2) h3 {
  color: #0f172a;
}

.ck-card:nth-child(4n+2) p {
  color: #4b5563;
}

.ck-card:nth-child(4n+2):hover {
  transform: translateY(-6px);
  box-shadow: var(--apple-3d-shadow-light-hover);
  border-color: rgba(37, 99, 235, 0.2);
}

/* Card 3: Obsidian Titanium Dark Bento Card */
.ck-card:nth-child(4n+3) {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--apple-3d-shadow-dark);
  color: #f8fafc;
}

.ck-card:nth-child(4n+3)::before {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.ck-card:nth-child(4n+3) h2,
.ck-card:nth-child(4n+3) h3 {
  color: #ffffff;
}

.ck-card:nth-child(4n+3) p {
  color: #cbd5e1;
}

.ck-card:nth-child(4n+3):hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.35);
  border-color: rgba(56, 189, 248, 0.3);
}

/* Card 4: Soft Sky Frosted Card */
.ck-card:nth-child(4n+4) {
  background: linear-gradient(145deg, #ffffff 0%, #f0f6ff 100%);
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 12px 32px rgba(37, 99, 235, 0.06);
  color: var(--ink);
}

.ck-card:nth-child(4n+4) h2,
.ck-card:nth-child(4n+4) h3 {
  color: #1e3a8a;
}

.ck-card:nth-child(4n+4) p {
  color: #3b4d6a;
}

.ck-card:nth-child(4n+4):hover {
  transform: translateY(-6px);
  box-shadow: var(--apple-3d-shadow-light-hover);
  border-color: rgba(37, 99, 235, 0.25);
}

/* ============================================================
   6. APPLE STUDIO SIDEBAR (.ck-aside)
   Frosted glass widget with interactive pill link items.
   ============================================================ */
.ck-aside {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 34px 28px;
  box-shadow: var(--apple-3d-shadow-light);
  position: sticky;
  top: 90px;
}

.ck-aside h2 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 500 !important;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: #0f172a;
}

.ck-aside ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ck-aside li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid rgba(15, 23, 42, 0.04);
  color: #1e293b;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ck-aside li a::after {
  content: '→';
  font-family: var(--font-mono);
  font-size: 13px;
  opacity: 0.4;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ck-aside li a:hover {
  background: #eff6ff;
  color: var(--blue-primary);
  border-color: rgba(37, 99, 235, 0.18);
  transform: translateX(3px);
}

.ck-aside li a:hover::after {
  opacity: 1;
  transform: translateX(2px);
}

.ck-aside p {
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
  margin: 0 0 16px;
}

.ck-aside a[href="/contact"] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 20px;
  border-radius: 9999px;
  background: #0f172a;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 24px;
}

.ck-aside a[href="/contact"]:hover {
  background: var(--blue-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.32);
}

/* Custom Styled Select for Market Planning */
.ck-region {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  margin-bottom: 12px;
}

.ck-region select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-primary);
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ck-region select:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.ck-aside small {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
  display: block;
}

/* ============================================================
   7. PROJECT PLANNER WIDGETS (project-planner.html)
   ============================================================ */
.ck-planner fieldset {
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 28px 24px;
  margin-bottom: 24px;
  background: #ffffff;
  box-shadow: var(--apple-3d-shadow-light);
}

.ck-planner legend {
  font-family: var(--font-display);
  font-weight: 500 !important;
  font-size: 1.2rem;
  color: #0f172a;
  padding: 0 10px;
}

.ck-planner label {
  display: block;
  font-weight: 500;
  font-size: 14px;
  color: #334155;
  margin-top: 14px;
  margin-bottom: 6px;
}

.ck-planner input,
.ck-planner select,
.ck-planner textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  font-family: var(--font-primary);
  font-size: 15px;
  color: var(--ink);
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ck-planner input:focus,
.ck-planner select:focus,
.ck-planner textarea:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.ck-output {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  color: #334155;
  box-shadow: var(--apple-3d-shadow-light);
}

/* ============================================================
   8. COMPACT CARD-FREE ECOSYSTEM DIRECTORY (.ck-ecosystem-discovery)
   Clean, compact layout without cards, seamlessly above the footer
   ============================================================ */
.ck-ecosystem-discovery {
  margin: 32px 0 10px;
  padding: 28px 24px;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  border-radius: 20px;
}

.ck-ecosystem-header {
  margin-bottom: 20px;
}

.ck-ecosystem-header h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500 !important;
  color: #0f172a;
  margin-bottom: 4px;
}

.ck-ecosystem-header p {
  color: #64748b;
  font-size: 14px;
  margin: 0;
}

.ck-ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.ck-ecosystem-card {
  padding: 10px 8px;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ck-ecosystem-card h3 {
  font-size: 0.95rem;
  font-weight: 600 !important;
  color: #0f172a;
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ck-ecosystem-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ck-ecosystem-card li a {
  font-size: 13.5px;
  color: #475569;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-block;
  padding: 2px 0;
}

.ck-ecosystem-card li a:hover {
  color: var(--blue-primary);
  transform: translateX(3px);
}

/* ============================================================
   9. APPLE STUDIO FOOTER (.ck-footer)
   ============================================================ */
.ck-footer {
  border-top: 1px solid var(--border-light);
  background: #ffffff;
  padding: 38px 0;
  text-align: center;
}

.ck-footer p {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 12px;
}

.ck-footer a {
  margin: 0 12px;
  font-size: 14px;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ck-footer a:hover {
  color: var(--blue-primary);
}

/* ============================================================
   10. RESPONSIVE MEDIA QUERIES
   ============================================================ */
@media (max-width: 992px) {
  .ck-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ck-aside {
    position: static;
  }

  .ck-copy {
    grid-template-columns: 1fr;
  }

  .ck-copy section:nth-child(4n+1) {
    grid-column: span 1;
  }

  .ck-share {
    grid-column: span 1;
  }

  .ck-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .ck-hero {
    padding: 50px 0 60px;
  }

  .ck-wrap {
    padding: 0 20px;
  }

  .ck-nav > div {
    padding: 12px 20px;
  }

  .ck-links {
    display: none; /* Can be toggled if menu exists */
  }

  .ck-copy section {
    padding: 30px 24px;
  }

  .ck-card {
    padding: 30px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
