/* ════════════════════════════════════════════════════════
   Claude Code Deep Dive - Full-bleed editorial dark page
   Inspired by apple.com product pages + the home "powered-section".
   ════════════════════════════════════════════════════════ */

.ccdd-page {
  --ccdd-bg-0: #0B0C12;
  --ccdd-bg-1: #13141C;
  --ccdd-bg-2: #1A1B27;
  --ccdd-bg-3: #161722;
  --ccdd-gold: #D4A574;
  --ccdd-gold-dim: rgba(212, 165, 116, 0.18);
  --ccdd-gold-faint: rgba(212, 165, 116, 0.08);
  --ccdd-ink-100: rgba(255, 255, 255, 0.96);
  --ccdd-ink-80:  rgba(255, 255, 255, 0.82);
  --ccdd-ink-60:  rgba(255, 255, 255, 0.60);
  --ccdd-ink-45:  rgba(255, 255, 255, 0.45);
  --ccdd-ink-30:  rgba(255, 255, 255, 0.30);
  --ccdd-line:    rgba(255, 255, 255, 0.08);
  --ccdd-line-soft: rgba(255, 255, 255, 0.05);
  --ccdd-surface: rgba(255, 255, 255, 0.03);
  --ccdd-surface-hover: rgba(255, 255, 255, 0.055);

  direction: rtl;
  color: var(--ccdd-ink-80);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212, 165, 116, 0.05) 0%, transparent 60%),
    linear-gradient(180deg, var(--ccdd-bg-0) 0%, var(--ccdd-bg-1) 30%, var(--ccdd-bg-3) 100%);
  font-family: var(--font-body);
  overflow: hidden; /* clip ambient glow */
}

.ccdd-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

/* ── Hero ──────────────────────────────────────────────── */

.ccdd-hero {
  position: relative;
  padding: 120px 0 110px;
  text-align: center;
  overflow: hidden;
}

.ccdd-hero-glow {
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 780px;
  background: radial-gradient(ellipse, rgba(212, 165, 116, 0.10) 0%, rgba(100, 98, 234, 0.04) 35%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(6px);
}

.ccdd-hero-grain {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}

.ccdd-badge {
  display: inline-block;
  padding: 7px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ccdd-gold);
  background: var(--ccdd-gold-faint);
  border: 1px solid var(--ccdd-gold-dim);
  border-radius: var(--radius-full);
  margin-bottom: 40px;
  font-family: var(--font-body);
}

.ccdd-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 44px;
  direction: ltr;
}

.ccdd-lockup-logo10x {
  height: 52px;
}

.ccdd-lockup-sep {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ccdd-ink-45);
  font-family: var(--font-body);
  margin: 18px 0 0 0;
}

/* The mark is a 1000x144 strip - nearly 7:1 - so a bare height is wider than a
   phone. max-height + max-width lets the browser honour whichever limit binds
   first and keeps the aspect ratio either way. */
.ccdd-lockup-cc {
  height: auto;
  width: auto;
  max-height: 96px;
  max-width: 100%;
  display: block;
  margin-top: 30px;
}

.ccdd-headline {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ccdd-ink-100);
  margin-bottom: 28px;
}

.ccdd-sub {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ccdd-ink-60);
  max-width: 680px;
  margin: 0 auto 44px;
  font-weight: 400;
  font-family: var(--font-body);
}

.ccdd-sub strong {
  color: var(--ccdd-ink-100);
  font-weight: 600;
}

.ccdd-hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid var(--ccdd-line);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--ccdd-ink-60);
  background: rgba(255, 255, 255, 0.02);
}

.ccdd-meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ccdd-gold);
  box-shadow: 0 0 10px rgba(212, 165, 116, 0.6);
}

.ccdd-hero-meta-logo {
  /* height: 0.95em !important; */
  display: inline-block;
  vertical-align: middle;
  top: 0 !important;
}

/* ── Pillars ──────────────────────────────────────────── */

.ccdd-pillars-wrap {
  position: relative;
  padding: 32px 0 80px;
  border-top: 1px solid var(--ccdd-line-soft);
}

.ccdd-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 48px;
}

.ccdd-pillar {
  padding: 36px 32px 34px;
  background: var(--ccdd-surface);
  border: 1px solid var(--ccdd-line);
  border-radius: var(--radius-lg);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.ccdd-pillar:hover {
  background: var(--ccdd-surface-hover);
  border-color: var(--ccdd-gold-dim);
  transform: translateY(-3px);
}

.ccdd-pillar-kicker {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ccdd-gold);
  margin-bottom: 18px;
}

.ccdd-pillar-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ccdd-ink-100);
  margin-bottom: 12px;
  line-height: 1.3;
}

.ccdd-pillar-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ccdd-ink-60);
  margin: 0;
}

/* ── Powered features (mirrors the home teaser; sits above the pillars) ── */

.ccdd-powered-wrap {
  position: relative;
  padding: 64px 0 0;
}

.ccdd-powered {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ccdd-feature {
  padding: 32px 28px 30px;
  background: var(--ccdd-surface);
  border: 1px solid var(--ccdd-line);
  border-radius: var(--radius-lg);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.ccdd-feature:hover {
  background: var(--ccdd-surface-hover);
  border-color: var(--ccdd-gold-dim);
  transform: translateY(-3px);
}

.ccdd-feature-icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--ccdd-gold-faint);
  border: 1px solid var(--ccdd-gold-dim);
  margin-bottom: 20px;
}

.ccdd-feature-icon {
  font-size: 22px;
  color: var(--ccdd-gold);
}

.ccdd-feature-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ccdd-ink-100);
  margin: 0 0 10px;
  line-height: 1.3;
}

.ccdd-feature-desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ccdd-ink-60);
  margin: 0;
}

/* ── Syllabus ─────────────────────────────────────────── */

.ccdd-syllabus {
  position: relative;
  padding: 100px 0 80px;
}

.ccdd-eyebrow {
  font-family: var(--font-body);
  font-size: 26.88px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ccdd-gold);
  margin-bottom: 18px;
  text-align: center;
}

.ccdd-section-title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ccdd-ink-100);
  text-align: center;
  margin-bottom: 22px;
}

.ccdd-section-sub {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ccdd-ink-60);
  max-width: 680px;
  margin: 0 auto 72px;
  text-align: center;
}

.ccdd-chapters {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--ccdd-line-soft);
  border: 1px solid var(--ccdd-line-soft);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.ccdd-chapter {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018) 0%, rgba(255, 255, 255, 0.008) 100%);
  padding: 40px 36px 36px;
  margin: 0;
  position: relative;
  transition: background 0.3s ease;
}

.ccdd-chapter:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(212, 165, 116, 0.015) 100%);
}

.ccdd-chapter-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ccdd-line);
}

.ccdd-chapter-num {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ccdd-gold);
  opacity: 0.85;
  min-width: 48px;
}

.ccdd-chapter-titles {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.ccdd-chapter-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ccdd-ink-45);
  font-family: var(--font-body);
}

.ccdd-chapter-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ccdd-ink-100);
}

.ccdd-chapter-subjects {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ccdd-chapter-subjects li {
  position: relative;
  padding-right: 18px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ccdd-ink-80);
  margin: 0;
}

.ccdd-chapter-subjects li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0.7em;
  width: 6px;
  height: 1px;
  background: var(--ccdd-gold);
  opacity: 0.7;
}

/* ── Stats ────────────────────────────────────────────── */

.ccdd-stats-wrap {
  padding: 30px 0 100px;
}

.ccdd-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding: 48px 32px;
  border-top: 1px solid var(--ccdd-line);
  border-bottom: 1px solid var(--ccdd-line);
}

.ccdd-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  min-width: 150px;
}

.ccdd-stat-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ccdd-ink-100);
  background: linear-gradient(180deg, #FFFFFF 0%, #D4A574 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* No text-transform here: the labels are Hebrew (case-less), so uppercase only
   ever reached the one Latin word in them - the course name - and printed it as
   "10X DEVELOPER". */
.ccdd-stat-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ccdd-ink-45);
  font-family: var(--font-body);
}

.ccdd-stat-div {
  width: 1px;
  height: 44px;
  background: var(--ccdd-line);
}

/* ── Prev / next module nav ───────────────────────────
   Mirrors ModuleView's .module-nav pattern, re-skinned for
   the dark editorial palette of the deep-dive page. */

.ccdd-module-nav-wrap {
  position: relative;
  padding: 24px 0 8px;
  border-top: 1px solid var(--ccdd-line-soft);
}

.ccdd-module-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ccdd-module-nav-spacer {
  display: block;
}

.ccdd-module-nav-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ccdd-line);
  background: var(--ccdd-surface);
  text-decoration: none;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.ccdd-module-nav-link:hover {
  border-color: rgba(212, 165, 116, 0.4);
  background: var(--ccdd-surface-hover);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 24px rgba(11, 12, 18, 0.45);
}

.ccdd-module-nav-direction {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ccdd-ink-45);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}

.ccdd-module-nav-direction i {
  font-size: 11px;
  color: var(--ccdd-gold);
  opacity: 0.85;
}

.ccdd-module-nav-link:hover .ccdd-module-nav-direction {
  color: var(--ccdd-ink-60);
}

.ccdd-module-nav-link:hover .ccdd-module-nav-direction i {
  opacity: 1;
}

.ccdd-module-nav-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ccdd-ink-100);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.ccdd-module-nav-prev {
  align-items: flex-end;
  text-align: end;
}

.ccdd-module-nav-next {
  align-items: flex-start;
  text-align: start;
}

/* ── CTA ──────────────────────────────────────────────── */

.ccdd-cta {
  position: relative;
  padding: 90px 0 130px;
  text-align: center;
}

.ccdd-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(212, 165, 116, 0.07) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.ccdd-cta-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ccdd-ink-100);
  margin-bottom: 24px;
}

.ccdd-cta-desc {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ccdd-ink-60);
  max-width: 620px;
  margin: 0 auto 44px;
}

.ccdd-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.ccdd-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 42px;
  background: var(--accent-warm);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 18px rgba(196, 85, 26, 0.28);
}

.ccdd-cta-primary:hover {
  background: var(--accent-warm-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 26px rgba(196, 85, 26, 0.4);
}

.ccdd-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ccdd-gold);
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  letter-spacing: 0.01em;
  font-family: var(--font-body);
}

.ccdd-cta-secondary:hover {
  opacity: 0.75;
  transform: translateX(-3px);
}

.ccdd-cta-secondary svg {
  flex-shrink: 0;
}

.ccdd-cta .logo-10x-inline {
  filter: brightness(1.15);
}

/* ── Tablet ───────────────────────────────────────────── */

@media (max-width: 1024px) {
  .ccdd-container { padding: 0 28px; }

  .ccdd-hero { padding: 88px 0 80px; }
  .ccdd-lockup-logo10x { height: 44px; }
  .ccdd-lockup-cc { max-height: 62px; }
  .ccdd-headline { font-size: 44px; }
  .ccdd-sub { font-size: 18px; }

  .ccdd-powered-wrap { padding: 48px 0 0; }
  .ccdd-powered { grid-template-columns: 1fr; gap: 14px; }

  .ccdd-pillars { grid-template-columns: 1fr; gap: 14px; padding-top: 32px; }
  .ccdd-pillar { padding: 30px 28px 28px; }

  .ccdd-syllabus { padding: 80px 0 60px; }
  .ccdd-section-title { font-size: 34px; }

  .ccdd-chapters { grid-template-columns: 1fr; }
  .ccdd-chapter { padding: 32px 28px; }

  .ccdd-stats { gap: 32px; padding: 40px 24px; flex-wrap: wrap; }
  .ccdd-stat-num { font-size: 42px; }

  .ccdd-cta-title { font-size: 32px; }
}

/* ── Phone ────────────────────────────────────────────── */

@media (max-width: 767px) {
  .ccdd-container { padding: 0 22px; }

  .ccdd-hero { padding: 56px 0 64px; }
  .ccdd-badge { margin-bottom: 28px; }
  .ccdd-lockup { gap: 10px; margin-bottom: 32px; }
  .ccdd-lockup-logo10x { height: 36px; }
  .ccdd-lockup-cc { max-height: 50px; }
  .ccdd-headline { font-size: 32px; letter-spacing: -0.02em; margin-bottom: 20px; }
  .ccdd-sub { font-size: 16.5px; margin-bottom: 32px; }
  .ccdd-hero-meta { font-size: 12px; padding: 7px 14px; }

  .ccdd-powered-wrap { padding: 40px 0 0; }
  .ccdd-feature-title { font-size: 18px; }

  .ccdd-pillars-wrap { padding: 24px 0 60px; }
  .ccdd-pillars { padding-top: 28px; }
  .ccdd-pillar-title { font-size: 20px; }
  .ccdd-pillar-desc { font-size: 14.5px; }

  .ccdd-syllabus { padding: 64px 0 48px; }
  .ccdd-section-title { font-size: 26px; }
  .ccdd-section-sub { font-size: 15.5px; margin-bottom: 48px; }

  .ccdd-chapter { padding: 28px 22px 26px; }
  .ccdd-chapter-head { gap: 14px; padding-bottom: 16px; margin-bottom: 18px; }
  .ccdd-chapter-num { font-size: 32px; min-width: 38px; }
  .ccdd-chapter-title { font-size: 18px; }
  .ccdd-chapter-subjects li { font-size: 14px; }

  .ccdd-stats-wrap { padding: 20px 0 64px; }
  /* A phone column is ~85px wide, and one of the three labels runs to four
     lines there. As a flex row that leaves the hairline dividers floating at
     the wrong height against a lopsided row, so on phones the stats become a
     top-aligned grid and the dividers step out. */
  .ccdd-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 16px;
    padding: 32px 16px;
  }
  .ccdd-stat { min-width: 0; }
  .ccdd-stat-num { font-size: 34px; }
  .ccdd-stat-label { font-size: 11.5px; }
  .ccdd-stat-div { display: none; }

  .ccdd-module-nav-wrap { padding: 16px 0 0; }
  .ccdd-module-nav { grid-template-columns: 1fr; gap: 12px; }
  .ccdd-module-nav-link { padding: 18px 20px; }
  .ccdd-module-nav-title { font-size: 15.5px; }

  .ccdd-cta { padding: 56px 0 88px; }
  .ccdd-cta-title { font-size: 26px; }
  .ccdd-cta-desc { font-size: 16px; margin-bottom: 32px; }
  .ccdd-cta-actions { flex-direction: column; gap: 20px; }
  .ccdd-cta-primary { width: 100%; max-width: 320px; }
}
