/* ================================================================
   DSM MORPH THEME — Shared design system
   Bold brutalist → Glass luxury scroll transformation
   Palette: Fuchsia-red, rich gold, cyan accents
   ================================================================ */

:root {
  --fuchsia: #ff1a6c;
  --fuchsia-deep: #d9005a;
  --fuchsia-glow: 0 0 10px rgba(255, 26, 108, 0.5), 0 0 30px rgba(255, 26, 108, 0.15);
  --gold: #ffb800;
  --gold-bright: #ffd000;
  --gold-glow: 0 0 8px rgba(255, 184, 0, 0.5), 0 0 24px rgba(255, 184, 0, 0.15);
  --cyan: #00e5ff;
  --cyan-dim: rgba(0, 229, 255, 0.6);
  --cyan-glow: 0 0 8px rgba(0, 229, 255, 0.4), 0 0 20px rgba(0, 229, 255, 0.12);
  --bg: #050507;
  --bg2: #0c0c10;
  --bg3: #111116;
  --text: #f0eef2;
  --text-dim: rgba(240, 238, 242, 0.5);
  --text-mid: rgba(240, 238, 242, 0.72);
  --mono: 'JetBrains Mono', monospace;
  --display: 'Rajdhani', sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --radius: 10px;
  --container: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ================================================================
   SCROLL REVEAL SYSTEM
   ================================================================ */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

.reveal-left {
  opacity: 0; transform: translateX(-60px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.in-view { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0; transform: translateX(60px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.in-view { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0; transform: scale(0.92);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-scale.in-view { opacity: 1; transform: scale(1); }

/* ================================================================
   HEADER — Gold bar that morphs to glass on scroll
   ================================================================ */
.m-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 80px; background: var(--gold);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  transition: all 0.5s ease;
}
.m-header.scrolled {
  background: rgba(5, 5, 7, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 26, 108, 0.12);
}
.m-header .logo-area {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none;
  background: rgba(5, 5, 8, 0.95);
  padding: 0.5rem 1.2rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 184, 0, 0.15);
  transition: all 0.3s ease;
}
.m-header .logo-area:hover {
  border-color: rgba(255, 184, 0, 0.4);
  box-shadow: 0 0 15px rgba(255, 184, 0, 0.2);
}
.m-header .logo-area img {
  height: 52px; width: auto;
  transition: filter 0.5s;
}
.m-header .logo-area .logo-text {
  font-family: var(--display);
  font-size: 2rem; font-weight: 700;
  color: var(--gold); letter-spacing: 0.12em;
  transition: color 0.5s;
}
.m-header.scrolled .logo-area .logo-text { color: var(--fuchsia); }
.m-header.scrolled .logo-area img {
  filter: drop-shadow(0 0 6px rgba(255, 26, 108, 0.4));
}
.m-header nav { display: flex; gap: 1.8rem; }
.m-header nav a {
  color: var(--bg); text-decoration: none;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  transition: all 0.4s;
}
.m-header.scrolled nav a { color: var(--text-dim); }
.m-header.scrolled nav a:hover { color: var(--gold); }
.m-header nav a:hover { opacity: 0.6; }

/* Mobile hamburger */
.m-header .mobile-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 4px; flex-direction: column; gap: 5px;
}
.m-header .mobile-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--bg); transition: all 0.3s;
}
.m-header.scrolled .mobile-toggle span { background: var(--text); }

/* Mobile sidebar */
.m-mobile-sidebar {
  display: none; position: fixed; top: 0; left: 0;
  width: 280px; height: 100vh;
  background: rgba(5, 5, 7, 0.96);
  backdrop-filter: blur(20px);
  z-index: 2000; transform: translateX(-100%);
  transition: transform 0.3s ease;
  border-right: 1px solid rgba(255, 26, 108, 0.12);
  overflow-y: auto; padding: 2rem 0;
}
.m-mobile-sidebar.active { transform: translateX(0); }
.m-mobile-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1999; opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.m-mobile-overlay.active { opacity: 1; pointer-events: auto; }
.m-mobile-sidebar .mob-logo {
  text-align: center; padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255, 26, 108, 0.1);
  margin-bottom: 1rem;
}
.m-mobile-sidebar .mob-logo img { height: 48px; }
.m-mobile-sidebar .mob-nav { list-style: none; padding: 0; }
.m-mobile-sidebar .mob-nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.m-mobile-sidebar .mob-nav a {
  display: block; padding: 1rem 1.5rem;
  color: var(--text-dim); text-decoration: none;
  font-size: 0.95rem; font-weight: 500;
  transition: all 0.2s;
}
.m-mobile-sidebar .mob-nav a:hover {
  color: var(--gold); background: rgba(255, 184, 0, 0.04);
}
body.sidebar-open { overflow: hidden; }

/* ================================================================
   SHARED BUTTONS
   ================================================================ */
.btn-solid {
  background: var(--fuchsia); color: #fff; border: none;
  padding: 1rem 2.5rem; font-size: 0.88rem; font-weight: 700;
  cursor: pointer; text-transform: uppercase; letter-spacing: 0.08em;
  transition: all 0.3s; text-decoration: none; display: inline-block;
}
.btn-solid:hover {
  background: #ff3381;
  box-shadow: 0 0 30px rgba(255, 26, 108, 0.35);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent; color: var(--gold);
  border: 2px solid var(--gold); padding: 1rem 2.5rem;
  font-size: 0.88rem; font-weight: 700; cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.08em;
  transition: all 0.3s; text-decoration: none; display: inline-block;
}
.btn-outline:hover {
  background: var(--gold); color: var(--bg);
}

/* ================================================================
   HERO PANEL — Brutalist split
   ================================================================ */
.hero-panel {
  min-height: 100vh;
  display: flex; align-items: stretch;
  padding-top: 80px; position: relative;
}
.hero-left {
  flex: 1.3; display: flex; flex-direction: column;
  justify-content: center; padding: 4rem 4rem 4rem 3rem;
  position: relative;
}
.hero-right {
  flex: 0.7;
  background: linear-gradient(170deg, rgba(255, 26, 108, 0.07), rgba(255, 184, 0, 0.03));
  border-left: 4px solid var(--fuchsia);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 3rem 2rem; position: relative;
}
.hero-logo {
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 2px solid rgba(255, 184, 0, 0.2);
  border-radius: var(--radius);
  transition: all 0.4s ease;
}
.hero-logo:hover {
  border-color: var(--gold);
  box-shadow: var(--gold-glow);
  transform: translateY(-4px);
}
.hero-logo-img {
  width: 340px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 20px rgba(255, 184, 0, 0.3));
  transition: filter 0.4s ease;
}
.hero-logo:hover .hero-logo-img {
  filter: drop-shadow(0 0 30px rgba(255, 184, 0, 0.6));
}
.hero-micro {
  font-family: var(--mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--gold); margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 700; line-height: 0.92; margin-bottom: 2rem;
}
.hero-title .w-fuchsia {
  color: var(--fuchsia); text-shadow: 0 0 50px rgba(255, 26, 108, 0.2);
}
.hero-title .w-gold { color: var(--gold); }
.hero-title .w-text { color: var(--text); }
.hero-desc {
  font-size: 1.1rem; color: var(--text-dim);
  max-width: 480px; margin-bottom: 2.5rem; line-height: 1.75;
}
.hero-btns { display: flex; gap: 1rem; }
.hero-stat {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 26, 108, 0.1);
  border-radius: 0; padding: 1.5rem 2rem;
  width: 100%; max-width: 300px; margin-bottom: 0.75rem;
}
.hero-stat .stat-num {
  font-family: var(--display);
  font-size: 2.5rem; font-weight: 700;
  color: var(--gold-bright); line-height: 1;
}
.hero-stat .stat-label {
  font-size: 0.82rem; color: var(--text-dim); margin-top: 0.3rem;
}

/* ================================================================
   FUCHSIA BAND + MELT
   ================================================================ */
.fuchsia-band {
  background: var(--fuchsia);
  padding: 1.1rem 2rem;
  display: flex; align-items: center; justify-content: center;
  gap: 2.5rem; flex-wrap: wrap;
}
.fuchsia-band span {
  font-family: var(--display);
  font-size: 0.95rem; font-weight: 700;
  color: var(--bg); text-transform: uppercase; letter-spacing: 0.1em;
}
.fuchsia-melt {
  height: 80px;
  background: linear-gradient(to bottom, var(--fuchsia), var(--bg));
}

/* ================================================================
   DEMO PANEL — Borders softening
   ================================================================ */
.demo-panel {
  display: flex; align-items: stretch; min-height: 520px;
}
.demo-text {
  flex: 1; padding: 4rem 3rem;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--bg2);
  border-right: 1px solid rgba(0, 229, 255, 0.2);
  box-shadow: inset -20px 0 40px -20px rgba(0, 229, 255, 0.03);
}
.demo-text h2 {
  font-family: var(--display);
  font-size: 2.8rem; font-weight: 700;
  color: var(--text); margin-bottom: 1rem; line-height: 1.05;
}
.demo-text p {
  color: var(--text-dim); max-width: 400px;
  margin-bottom: 1.5rem; font-size: 1.05rem;
}
.transport-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.transport-tags span {
  font-family: var(--mono); font-size: 0.68rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 4px; color: var(--cyan); letter-spacing: 0.05em;
}
.demo-video {
  flex: 1.3; display: flex; align-items: center;
  justify-content: center; padding: 3rem; background: #06060a;
}
.cinema-frame {
  width: 100%; max-width: 680px;
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.12);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.06), 0 25px 70px rgba(0, 0, 0, 0.5);
  line-height: 0;
}
.cinema-frame video { width: 100%; display: block; }

/* ================================================================
   TRANSITION BRIDGES
   ================================================================ */
.transition-bridge {
  height: 120px; position: relative;
  background: linear-gradient(to bottom, #06060a, var(--bg));
  overflow: hidden;
}
.transition-bridge .sweep-line {
  position: absolute; top: 50%; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--cyan) 20%, var(--fuchsia) 50%, var(--gold) 80%, transparent 100%);
  opacity: 0; transition: opacity 1s ease;
}
.transition-bridge.in-view .sweep-line { opacity: 0.6; }

.glass-emergence {
  height: 160px; position: relative; background: var(--bg); overflow: hidden;
}
.glass-emergence .morph-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 0.65rem;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--text-dim); opacity: 0; transition: opacity 1.2s ease 0.5s;
}
.glass-emergence.in-view .morph-indicator { opacity: 0.4; }

/* ================================================================
   FEATURES — Metamorphosis grid
   ================================================================ */
.features-panel {
  max-width: var(--container); margin: 0 auto; padding: 6rem 2rem;
}
.features-panel .section-label {
  font-family: var(--mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--gold); margin-bottom: 1rem;
}
.features-panel h2 {
  font-family: var(--display);
  font-size: 3rem; font-weight: 700; color: var(--text);
  margin-bottom: 1rem; max-width: 600px; line-height: 1.05;
}
.features-panel .section-sub {
  color: var(--text-dim); max-width: 500px;
  margin-bottom: 3.5rem; font-size: 1.05rem;
}
.morph-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
}
.morph-cell {
  padding: 2.5rem; border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px; margin: 4px;
  position: relative; transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.morph-cell .cell-num {
  font-family: var(--mono); font-size: 0.68rem;
  color: var(--fuchsia); margin-bottom: 1rem; letter-spacing: 0.1em;
  transition: color 0.8s;
}
.morph-cell h3 {
  font-family: var(--display); font-size: 1.3rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.6rem;
}
.morph-cell p { color: var(--text-dim); font-size: 0.92rem; line-height: 1.6; }
.morph-cell::before {
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  border-radius: 14px 14px 0 0; opacity: 0; transition: opacity 0.4s;
  z-index: 1;
}
.morph-cell:hover::before { opacity: 1; }
.morph-cell:hover {
  background: rgba(255, 26, 108, 0.03); border-color: rgba(255, 26, 108, 0.08);
}
.morph-cell:hover,
.morph-cell.transitional:hover { box-shadow: inset -3px 0 0 var(--gold); }

/* Top-edge glow colors: Row 1 = gold,fuchsia,gold | Row 2 = fuchsia,gold,fuchsia | Row 3 = gold,fuchsia,gold */
.morph-cell:nth-child(1)::before,
.morph-cell:nth-child(3)::before,
.morph-cell:nth-child(5)::before,
.morph-cell:nth-child(7)::before,
.morph-cell:nth-child(9)::before {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.morph-cell:nth-child(2)::before,
.morph-cell:nth-child(4)::before,
.morph-cell:nth-child(6)::before,
.morph-cell:nth-child(8)::before {
  background: linear-gradient(90deg, transparent, var(--fuchsia), transparent);
}

/* Transitional cells (mid-morph) */
.morph-cell.transitional {
  border-radius: 14px; margin: 4px;
  background: rgba(255, 255, 255, 0.008); border-color: rgba(255, 255, 255, 0.05);
}
.morph-cell.transitional .cell-num { color: #cc4488; }

/* Glass cells (fully morphed) */
.morph-cell.glass {
  background: rgba(255, 255, 255, 0.015);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px; margin: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.morph-cell.glass:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 26, 108, 0.12);
  transform: translateY(-4px);
  box-shadow: inset -3px 0 0 var(--gold), 0 16px 40px rgba(0, 0, 0, 0.3);
}
.morph-cell.glass .cell-num { color: var(--cyan); }

/* ================================================================
   TECH PANEL — Full luxury glass
   ================================================================ */
.tech-panel {
  max-width: var(--container); margin: 0 auto; padding: 5rem 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.tech-visual {
  background: rgba(255, 255, 255, 0.015);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 229, 255, 0.08);
  border-radius: 18px; padding: 2rem; min-height: 400px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.04), 0 20px 60px rgba(0, 0, 0, 0.3);
}
.tech-visual::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(0, 229, 255, 0.015) 39px, rgba(0, 229, 255, 0.015) 40px);
  pointer-events: none;
}
.tech-content .section-eyebrow {
  font-family: var(--mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--fuchsia); margin-bottom: 1rem;
}
.tech-content h2 {
  font-family: var(--display); font-size: 2.5rem; font-weight: 700;
  color: var(--text); margin-bottom: 1.5rem; line-height: 1.1;
}
.tech-content ul { list-style: none; padding: 0; }
.tech-content li {
  padding: 1rem 0 1rem 1.5rem; position: relative;
  color: var(--text-mid); font-size: 1.05rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.tech-content li::before {
  content: ''; position: absolute; left: 0; top: 1.55rem;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--fuchsia); box-shadow: 0 0 8px rgba(255, 26, 108, 0.4);
}
.tech-content li:nth-child(even)::before {
  background: var(--gold); box-shadow: 0 0 8px rgba(255, 184, 0, 0.4);
}

/* ================================================================
   PAPERS PANEL
   ================================================================ */
.papers-panel {
  padding: 6rem 2rem; max-width: var(--container); margin: 0 auto;
}
.papers-panel .section-eyebrow {
  font-family: var(--mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--gold); margin-bottom: 1rem;
}
.papers-panel h2 {
  font-family: var(--display); font-size: 2.8rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.75rem;
}
.papers-panel .papers-sub {
  color: var(--text-dim); margin-bottom: 2.5rem; font-size: 1rem;
}
.featured-paper {
  background: linear-gradient(135deg, rgba(255, 26, 108, 0.05), rgba(255, 184, 0, 0.03));
  border: 1px solid rgba(255, 26, 108, 0.12);
  border-radius: 16px; padding: 3rem; text-align: center;
  margin-bottom: 2.5rem; backdrop-filter: blur(8px);
}
.featured-paper h3 {
  font-family: var(--display); font-size: 1.8rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.6rem;
}
.featured-paper p {
  color: var(--text-dim); max-width: 550px;
  margin: 0 auto 2rem; line-height: 1.6; font-size: 0.98rem;
}
.paper-scroll {
  display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 1rem;
  scrollbar-width: thin; scrollbar-color: var(--fuchsia) transparent;
}
.paper-scroll::-webkit-scrollbar { height: 4px; }
.paper-scroll::-webkit-scrollbar-thumb { background: var(--fuchsia); border-radius: 2px; }
.paper-card {
  min-width: 270px; max-width: 290px;
  background: rgba(255, 255, 255, 0.015); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 184, 0, 0.06);
  border-radius: 12px; padding: 1.75rem; flex-shrink: 0; transition: all 0.3s;
}
.paper-card:hover {
  border-color: rgba(255, 184, 0, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.paper-card h4 {
  font-family: var(--display); font-size: 1.05rem; font-weight: 600;
  color: var(--text); margin-bottom: 0.4rem; line-height: 1.3;
}
.paper-card .pc-date {
  font-family: var(--mono); font-size: 0.7rem;
  color: var(--text-dim); margin-bottom: 1rem;
}
.paper-card .pc-link {
  font-size: 0.85rem; color: var(--gold);
  text-decoration: none; font-weight: 600; transition: text-shadow 0.2s;
}
.paper-card .pc-link:hover { text-shadow: var(--gold-glow); }

/* ================================================================
   PODCAST PANEL
   ================================================================ */
.podcast-panel {
  padding: 6rem 2rem;
  background: linear-gradient(180deg, var(--bg), var(--bg2));
  position: relative; overflow: hidden;
}
.podcast-panel::before {
  content: ''; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255, 26, 108, 0.04), transparent 60%);
  pointer-events: none;
}
.podcast-inner {
  max-width: 800px; margin: 0 auto; text-align: center; position: relative; z-index: 1;
}
.podcast-inner .section-eyebrow {
  font-family: var(--mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--cyan); margin-bottom: 1rem;
}
.podcast-inner h2 {
  font-family: var(--display); font-size: 2.5rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.5rem;
}
.podcast-inner .podcast-sub { color: var(--text-dim); margin-bottom: 3rem; }
.podcast-player-frame {
  background: rgba(255, 255, 255, 0.02); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 26, 108, 0.08);
  border-radius: 16px; padding: 2rem;
}
.podcast-player-frame select {
  background: rgba(255, 26, 108, 0.06);
  border: 1px solid rgba(255, 26, 108, 0.15);
  border-radius: 8px; color: var(--text);
  padding: 0.7rem 1rem; font-size: 0.9rem;
  width: 100%; max-width: 380px;
  cursor: pointer; margin-bottom: 1.5rem;
  font-family: var(--body); appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23ff1a6c' viewBox='0 0 16 16'%3e%3cpath d='M8 13.1l4.2-4.2L11 7.7 8 10.7 5 7.7 3.8 8.9 8 13.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px; padding-right: 36px;
}
.podcast-player-frame audio { width: 100%; margin-bottom: 1rem; border-radius: 8px; }
.podcast-ep-title {
  font-family: var(--display); font-size: 1.2rem; font-weight: 600;
  color: var(--gold); margin-bottom: 0.4rem;
}
.podcast-ep-desc { font-size: 0.9rem; color: var(--text-dim); line-height: 1.6; }

/* ================================================================
   INFOGRAPHICS
   ================================================================ */
/* Architecture Diagram — Desktop Only with Hover Magnification */
.architecture-diagram-panel {
  max-width: 1400px; margin: 0 auto; padding: 5rem 2rem;
}
.architecture-diagram-panel h2 {
  font-family: var(--display); font-size: 2.2rem; font-weight: 700;
  color: var(--text); margin-bottom: 1rem; text-align: center;
}
.diagram-subtitle {
  text-align: center; color: var(--text-dim);
  font-size: 0.9rem; margin-bottom: 2.5rem;
}
.diagram-container {
  position: relative; width: 100%; max-width: 1400px;
  margin: 0 auto; background: var(--bg2);
  border: 1px solid rgba(255, 26, 108, 0.12);
  border-radius: var(--radius); overflow: hidden;
  cursor: none;
}
.arch-svg {
  width: 100%; height: auto; display: block;
}

/* Magnified copy of SVG */
.arch-svg-magnified {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; opacity: 0;
  transform-origin: 0 0;
}

/* Magnifying lens that reveals the zoomed content */
.zoom-lens {
  position: absolute;
  width: 450px; height: 450px;
  border: 5px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 40px rgba(255, 184, 0, 0.9),
              0 0 80px rgba(255, 184, 0, 0.4);
  z-index: 200;
  display: none;
  overflow: hidden;
  background: #050508;
  clip-path: circle(50%);
}
.diagram-container:hover .zoom-lens {
  display: block;
}

.zoom-lens svg {
  position: absolute;
  top: 0; left: 0;
  transform-origin: 0 0;
}

/* Mobile: Hide diagram completely */
@media (max-width: 900px) {
  .architecture-diagram-panel {
    display: none;
  }
}

/* ================================================================
   FOOTER — Gold returns
   ================================================================ */
.m-footer {
  background: var(--gold); padding: 0.75rem 2rem;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 0.75rem;
}
.m-footer .footer-brand {
  font-family: var(--display); font-size: 2.2rem; font-weight: 700;
  color: var(--gold); letter-spacing: 0.1em;
  display: flex; align-items: center; gap: 0.75rem;
  background: rgba(5, 5, 8, 0.95);
  padding: 0.6rem 1.4rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 184, 0, 0.25);
}
.m-footer .footer-logo { height: 48px; width: auto; }
.m-footer .footer-links { display: flex; gap: 1.5rem; }
.m-footer .footer-links a {
  color: var(--bg); text-decoration: none;
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.03em; transition: opacity 0.2s;
}
.m-footer .footer-links a:hover { opacity: 0.6; }
.m-footer .footer-copy {
  font-size: 0.8rem; color: rgba(5, 5, 7, 0.6);
  width: 100%; text-align: center; margin-top: 0;
}

/* ================================================================
   DOCS PAGES — Sidebar layout (usecasedocs, manifesto)
   ================================================================ */
.docs-layout {
  display: flex; min-height: 100vh; padding-top: 80px;
}
.docs-sidebar-morph {
  width: 260px; position: fixed; top: 80px; bottom: 0; left: 0;
  background: rgba(5, 5, 7, 0.95);
  backdrop-filter: blur(16px);
  border-right: 1px solid rgba(255, 26, 108, 0.08);
  overflow-y: auto; z-index: 100;
  padding: 2rem 0;
  transition: transform 0.3s ease;
}
.docs-sidebar-morph .sidebar-brand {
  text-align: center; padding: 0 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 26, 108, 0.08);
  margin-bottom: 1.5rem;
}
.docs-sidebar-morph .sidebar-brand img { height: 48px; }
.docs-sidebar-morph .sidebar-nav {
  list-style: none; padding: 0 0.75rem;
}
.docs-sidebar-morph .sidebar-nav li { margin-bottom: 0.25rem; }
.docs-sidebar-morph .sidebar-nav a {
  display: block; padding: 0.65rem 1rem;
  color: var(--text-dim); text-decoration: none;
  font-size: 0.88rem; font-weight: 500;
  border-radius: 6px; transition: all 0.2s;
}
.docs-sidebar-morph .sidebar-nav a:hover {
  color: var(--text); background: rgba(255, 26, 108, 0.04);
}
.docs-sidebar-morph .sidebar-nav a.active {
  color: var(--gold); background: rgba(255, 184, 0, 0.06);
  border-left: 2px solid var(--gold);
}
.docs-sidebar-morph .sidebar-divider {
  height: 1px; background: rgba(255, 26, 108, 0.06);
  margin: 1rem 0.75rem;
}
.docs-sidebar-morph .sidebar-back {
  display: block; padding: 0.75rem 1rem; margin: 1rem 0.75rem 0;
  color: var(--cyan); text-decoration: none; font-size: 0.85rem;
  font-weight: 500; border-top: 1px solid rgba(0, 229, 255, 0.06);
  padding-top: 1rem;
}
.docs-sidebar-morph .sidebar-back:hover { color: var(--gold); }

.docs-main-morph {
  flex: 1; margin-left: 260px;
  display: flex; flex-direction: column; min-height: calc(100vh - 80px);
}
.docs-content-morph {
  max-width: 860px; width: calc(100% - 4rem);
  margin: 2.5rem auto; padding: 2.5rem;
  background: var(--bg2); border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  flex: 1;
}
.docs-content-morph h1 {
  font-family: var(--display); font-size: 2.5rem; font-weight: 700;
  color: var(--fuchsia); margin-bottom: 0.5rem;
}
.docs-content-morph h2 {
  font-family: var(--display); font-size: 1.6rem; font-weight: 700;
  color: var(--gold); margin: 2rem 0 1rem;
}
.docs-content-morph h3 {
  font-family: var(--display); font-size: 1.25rem; font-weight: 600;
  color: var(--cyan); margin: 1.5rem 0 0.75rem;
}
.docs-content-morph p {
  color: var(--text-mid); margin-bottom: 1.2rem; line-height: 1.8;
}
.docs-content-morph ul, .docs-content-morph ol {
  color: var(--text-mid); margin-bottom: 1.2rem; padding-left: 1.5rem;
}
.docs-content-morph li { margin-bottom: 0.6rem; line-height: 1.7; }
.docs-content-morph strong { color: var(--text); }
.docs-content-morph a { color: var(--fuchsia); text-decoration: none; }
.docs-content-morph a:hover { text-shadow: var(--fuchsia-glow); }
.docs-content-morph code {
  font-family: var(--mono); background: rgba(255, 26, 108, 0.06);
  padding: 0.15rem 0.4rem; border-radius: 4px;
  font-size: 0.88em; color: var(--cyan);
}
.docs-content-morph pre {
  background: rgba(0, 0, 0, 0.4); padding: 1.25rem;
  border-radius: 10px; overflow-x: auto;
  border: 1px solid rgba(0, 229, 255, 0.08);
  margin-bottom: 1.5rem;
}
.docs-content-morph pre code {
  background: none; padding: 0; font-size: 0.85rem;
}
.docs-content-morph img {
  max-width: 100%; height: auto; border-radius: 8px;
}

/* Docs sidebar toggle button */
.docs-sidebar-toggle {
  display: none; position: fixed; top: 94px; left: 12px; z-index: 200;
  background: rgba(5, 5, 7, 0.9); border: 1px solid var(--cyan);
  border-radius: 6px; padding: 8px 10px; cursor: pointer;
  transition: all 0.3s ease;
}
.docs-sidebar-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--text); margin: 4px 0;
  transition: all 0.3s ease;
}
.docs-sidebar-toggle:hover { border-color: var(--gold); }
.docs-sidebar-toggle:hover span { background: var(--gold); }

/* ================================================================
   dBTC PANEL — Deterministic Bitcoin
   ================================================================ */
.dbtc-panel {
  padding: 6rem 2rem; max-width: var(--container); margin: 0 auto;
}
.dbtc-panel .section-eyebrow {
  font-family: var(--mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--gold); margin-bottom: 1rem;
}
.dbtc-panel h2 {
  font-family: var(--display); font-size: 4rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.5rem; line-height: 1;
  background: linear-gradient(135deg, #f7931a, #ffb800, #ffd000);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dbtc-tagline {
  font-family: var(--mono); font-size: 1rem;
  color: var(--text-mid); margin-bottom: 1.5rem; letter-spacing: 0.05em;
}
.dbtc-desc {
  color: var(--text-dim); max-width: 520px;
  line-height: 1.7; font-size: 1rem; margin-bottom: 2rem;
}
.dbtc-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.dbtc-hero-row {
  display: flex; align-items: center; gap: 4rem; margin-bottom: 4rem;
}
.dbtc-text-col { flex: 1; }
.dbtc-logo-col { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.dbtc-logo-placeholder {
  width: 220px; height: 220px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 147, 26, 0.08) 0%, transparent 70%);
  border: 1px solid rgba(247, 147, 26, 0.12);
  box-shadow: 0 0 60px rgba(247, 147, 26, 0.06), 0 0 120px rgba(247, 147, 26, 0.03);
  transition: all 0.4s ease;
}
.dbtc-logo-placeholder:hover {
  border-color: rgba(247, 147, 26, 0.25);
  box-shadow: 0 0 80px rgba(247, 147, 26, 0.1), 0 0 160px rgba(247, 147, 26, 0.05);
}
.dbtc-logo-img {
  width: 190px; height: 190px; object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(247, 147, 26, 0.3));
}

/* dBTC Keg & Tap Callout */
.dbtc-keg-callout {
  display: flex; align-items: stretch; gap: 0;
  margin-bottom: 4rem; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(247, 147, 26, 0.1);
  background: rgba(247, 147, 26, 0.02);
}
.dbtc-keg-left, .dbtc-keg-right {
  flex: 1; padding: 2.5rem;
}
.dbtc-keg-left {
  background: rgba(247, 147, 26, 0.04);
}
.dbtc-keg-label {
  font-family: var(--mono); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: #f7931a; margin-bottom: 0.75rem; font-weight: 700;
}
.dbtc-keg-callout p {
  color: var(--text-mid); font-size: 0.95rem; line-height: 1.7; margin: 0;
}
.dbtc-keg-divider {
  width: 1px; background: rgba(247, 147, 26, 0.1); flex-shrink: 0;
}

/* dBTC Feature Cards */
.dbtc-features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin-bottom: 4rem;
}
.dbtc-card {
  background: rgba(255, 255, 255, 0.015);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px; padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.dbtc-card:hover {
  background: rgba(247, 147, 26, 0.03);
  border-color: rgba(247, 147, 26, 0.12);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), inset -3px 0 0 #f7931a;
}
.dbtc-card-icon {
  font-size: 1.8rem; margin-bottom: 1rem;
  filter: grayscale(1) brightness(2);
}
.dbtc-card h3 {
  font-family: var(--display); font-size: 1.3rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.6rem;
}
.dbtc-card p {
  color: var(--text-dim); font-size: 0.92rem; line-height: 1.6;
}

/* dBTC Architecture Flow */
.dbtc-architecture {
  background: linear-gradient(135deg, rgba(247, 147, 26, 0.04), rgba(255, 184, 0, 0.02));
  border: 1px solid rgba(247, 147, 26, 0.08);
  border-radius: 16px; padding: 3rem; margin-bottom: 3rem;
  backdrop-filter: blur(8px);
}
.dbtc-architecture h3 {
  font-family: var(--display); font-size: 1.6rem; font-weight: 700;
  color: var(--text); margin-bottom: 2rem; text-align: center;
}
.dbtc-flow {
  display: flex; align-items: stretch; gap: 1rem; justify-content: center;
}
.dbtc-step {
  flex: 1; max-width: 280px; padding: 1.5rem;
  background: rgba(5, 5, 7, 0.6); border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.dbtc-step-num {
  font-family: var(--mono); font-size: 0.68rem;
  color: #f7931a; margin-bottom: 0.5rem; letter-spacing: 0.1em;
}
.dbtc-step-label {
  font-family: var(--display); font-size: 1.1rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.5rem; letter-spacing: 0.1em;
}
.dbtc-step-desc {
  color: var(--text-dim); font-size: 0.85rem; line-height: 1.6;
}
.dbtc-flow-arrow {
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #f7931a; opacity: 0.5;
  font-family: var(--mono);
}

/* dBTC Differentiators Bar */
.dbtc-differentiators {
  display: flex; flex-wrap: wrap; gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.04); border-radius: 14px;
  overflow: hidden;
}
.dbtc-diff-item {
  flex: 1; min-width: 140px; padding: 1.2rem 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  text-align: center;
  transition: background 0.3s;
}
.dbtc-diff-item:last-child { border-right: none; }
.dbtc-diff-item:hover { background: rgba(247, 147, 26, 0.03); }
.dbtc-diff-label {
  display: block; font-family: var(--mono); font-size: 0.65rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-dim); margin-bottom: 0.4rem;
}
.dbtc-diff-value {
  display: block; font-family: var(--display); font-size: 1.1rem;
  font-weight: 700; color: #f7931a;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .hero-panel { flex-direction: column; }
  .hero-left { padding: 3rem 2rem; }
  .hero-right { border-left: none; border-top: 4px solid var(--fuchsia); padding: 2rem; }
  .hero-logo { margin-bottom: 2rem; padding: 1.5rem; }
  .hero-logo-img { width: 250px; }
  .demo-panel { flex-direction: column; }
  .demo-text { border-right: none; border-bottom: 1px solid rgba(0, 229, 255, 0.15); box-shadow: none; }
  .demo-video { padding: 2rem; }
  .morph-grid { grid-template-columns: 1fr; }
  .morph-cell.glass { margin: 4px 0; }
  .morph-cell.transitional { margin: 2px 0; }
  .tech-panel { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 0; overflow: hidden; max-width: 100%; box-sizing: border-box; margin: 0; }
  .tech-visual { min-height: 250px; width: calc(100% - 1rem); max-width: calc(100vw - 1rem); overflow: hidden; border-radius: 12px; padding: 0; box-sizing: border-box; margin: 0 auto; border: none; }
  .tech-visual::before { display: none; }
  .tech-visual canvas { width: 100% !important; height: 250px !important; max-width: 100%; display: block; }
  .tech-content { padding: 0 1rem; }
  .tech-content h2 { font-size: 1.8rem; }
  .infographic-row { flex-direction: column; }
  .infographic-thumb { max-width: 100%; }
  /* dBTC responsive */
  .dbtc-keg-callout { flex-direction: column; }
  .dbtc-keg-left { border-right: none; }
  .dbtc-keg-divider { width: 100%; height: 1px; }
  .dbtc-hero-row { flex-direction: column; gap: 2rem; text-align: center; }
  .dbtc-desc { max-width: 100%; }
  .dbtc-btns { justify-content: center; }
  .dbtc-features { grid-template-columns: 1fr; }
  .dbtc-flow { flex-direction: column; align-items: center; }
  .dbtc-flow-arrow { transform: rotate(90deg); }
  .dbtc-step { max-width: 100%; }
  .dbtc-differentiators { flex-direction: column; }
  .dbtc-diff-item { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
  .dbtc-diff-item:last-child { border-bottom: none; }
  .dbtc-logo-placeholder { width: 160px; height: 160px; }
  .dbtc-logo-img { width: 135px; height: 135px; }
  .dbtc-panel h2 { font-size: 3rem; }

  .m-header { padding: 0 1rem; height: 56px; }
  .m-header .logo-area { padding: 0.3rem 0.7rem; }
  .m-header .logo-area img { height: 28px; }
  .m-header .logo-area .logo-text { font-size: 1.1rem; }
  .m-header nav { display: none; }
  .m-header .mobile-toggle { display: flex; }
  .m-mobile-sidebar { display: block; }
  .m-mobile-overlay { display: block; }
  .m-footer { flex-direction: column; text-align: center; padding: 1.25rem 1rem; gap: 0.75rem; }
  .m-footer .footer-brand { font-size: 1rem; }
  .m-footer .footer-links { justify-content: center; flex-wrap: wrap; gap: 0.75rem 1rem; }
  .m-footer .footer-links a { font-size: 0.8rem; }
  .m-footer .footer-copy { font-size: 0.72rem; margin-top: 0.25rem; }

  /* Docs sidebar */
  .docs-sidebar-morph { transform: translateX(-100%); }
  .docs-sidebar-morph.active { transform: translateX(0); z-index: 150; }
  .docs-main-morph { margin-left: 0; }
  .docs-content-morph { margin: 1rem; width: calc(100% - 2rem); padding: 1.25rem; padding-top: 4.5rem; }
  .docs-content-morph h1 { font-size: 1.75rem; }
  .docs-content-morph h2 { font-size: 1.3rem; }
  .docs-content-morph h3 { font-size: 1.1rem; }
  .docs-content-morph p { font-size: 0.95rem; line-height: 1.7; }
  .docs-content-morph ul, .docs-content-morph ol { padding-left: 1.25rem; font-size: 0.95rem; }
  .docs-content-morph pre { padding: 0.75rem; font-size: 0.8rem; }
  .docs-content-morph pre code { font-size: 0.78rem; word-wrap: break-word; white-space: pre-wrap; }
  .docs-content-morph img { border-radius: 6px; }
  .docs-content-morph table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; font-size: 0.85rem; }
  .mermaid-container { padding: 0.75rem; margin: 1rem 0; overflow-x: auto; }
  .mermaid svg { max-width: 100%; height: auto !important; }
  .docs-sidebar-toggle { display: block !important; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.8rem; }
  .hero-btns { flex-direction: column; }
  .hero-logo { padding: 1rem; margin-bottom: 1.5rem; }
  .hero-logo-img { width: 200px; }
  .btn-solid, .btn-outline { width: 100%; text-align: center; }
  .fuchsia-band { gap: 1rem; }
  .fuchsia-band span { font-size: 0.75rem; }
  .docs-content-morph { margin: 0.5rem; width: calc(100% - 1rem); padding: 1rem; border-radius: 8px; }
  .docs-content-morph h1 { font-size: 1.5rem; }
  .docs-content-morph h2 { font-size: 1.15rem; margin: 1.5rem 0 0.75rem; }
  .docs-content-morph h3 { font-size: 1rem; }
  .docs-content-morph p, .docs-content-morph li { font-size: 0.9rem; }
  .m-footer { padding: 1rem 0.75rem; gap: 0.5rem; }
  .m-footer .footer-brand { font-size: 0.9rem; }
  .m-footer .footer-links { gap: 0.5rem 0.75rem; }
  .m-footer .footer-links a { font-size: 0.75rem; }
  .m-footer .footer-copy { font-size: 0.68rem; }
}
