@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Allura&family=Dancing+Script:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: #1e1f22; /* dark grey */
  color: #eaeaea;
  overflow-x: hidden;
}
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #8ab4f8, #c58af9, #fb7185);
  width: 0%;
  z-index: 100000;
  transition: width 0.1s ease;
  box-shadow: 0 0 20px rgba(138,180,248,0.8);
}
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}
.blob-bg {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
  background: radial-gradient(circle at 20% 30%, rgba(138,180,248,0.4), transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(197,138,249,0.4), transparent 40%),
              radial-gradient(circle at 50% 50%, rgba(251,113,133,0.3), transparent 50%);
  animation: blob-morph 20s ease-in-out infinite, blob-rotate 30s linear infinite;
  filter: blur(60px);
  transition: transform 0.3s ease-out;
}
@keyframes blob-morph {
  0%, 100% { transform: scale(1) translate(0, 0); }
  33% { transform: scale(1.1) translate(5%, -5%); }
  66% { transform: scale(0.95) translate(-5%, 5%); }
}
@keyframes blob-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, rgba(138,180,248,1), transparent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1000;
  animation: sparkle-fade 1s ease-out forwards;
}
@keyframes sparkle-fade {
  0% { opacity: 1; transform: scale(1) translateY(0); }
  100% { opacity: 0; transform: scale(2) translateY(-50px); }
}
@keyframes rainbow-bg {
  0% { background-color: #1e1f22; }
  16% { background-color: #8ab4f8; }
  33% { background-color: #c58af9; }
  50% { background-color: #fb7185; }
  66% { background-color: #a78bfa; }
  83% { background-color: #34d399; }
  100% { background-color: #1e1f22; }
}
h2, h3 {
  background: linear-gradient(135deg, #8ab4f8, #c58af9, #fb7185);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  filter: drop-shadow(0 0 10px rgba(138,180,248,0.5));
  animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(138,180,248,0.5)); }
  50% { filter: drop-shadow(0 0 25px rgba(197,138,249,0.8)); }
}
h2:hover, h3:hover {
  animation: pulse-glow 1s ease-in-out infinite, heading-float 0.6s ease;
  cursor: pointer;
}
@keyframes heading-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.floating-particle {
  position: absolute;
  font-size: 0.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #8ab4f8, #c58af9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  pointer-events: none;
  animation: float-away 2s ease-out forwards;
  z-index: 10000;
}
@keyframes float-away {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-100px) scale(0.5) rotate(20deg); }
}
.container-row { display: flex; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.card {
  background: rgba(44,46,51,0.65); /* glassy */
  border: 1px solid rgba(200,200,200,0.12);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.15), inset 0 2px 0 rgba(255,255,255,0.2), 0 0 40px rgba(138,180,248,0.15);
  backdrop-filter: blur(8px);
  flex: 1 1 300px;
  min-width: 260px;
  transform: translateY(0);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, transparent, rgba(138,180,248,0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 28px;
  z-index: -1;
  background: linear-gradient(60deg, 
    rgba(138,180,248,0.6) 0%,
    rgba(197,138,249,0.6) 25%,
    rgba(251,113,133,0.6) 50%,
    rgba(197,138,249,0.6) 75%,
    rgba(138,180,248,0.6) 100%);
  background-size: 300% 300%;
  animation: gradient-flow 3s ease infinite;
}
@keyframes gradient-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.card::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(138,180,248,0.6), transparent);
  border-radius: 50%;
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
  left: var(--ripple-x, 50%);
  top: var(--ripple-y, 50%);
  translate: -50% -50%;
}
.card.ripple::after {
  animation: ripple-effect 0.6s ease-out;
}
@keyframes ripple-effect {
  to { transform: scale(4); opacity: 0; }
}
.card:hover::before {
  opacity: 1;
}
.card:hover {
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.2), inset 0 2px 0 rgba(255,255,255,0.3), 0 0 60px rgba(138,180,248,0.4);
}
.plain {
  flex: 1 1 180px;
  min-width: 140px;
  font-size: 1.05rem;
  /* no background/frame; keeps previous position in the row */
}
.card.small { flex: 1 1 180px; min-width: 140px; font-size: 0.95em; }
.card.large { flex: 2 1 400px; min-width: 320px; font-size: 1.12em; }
.img-card {
  background: rgba(36,38,42,0.6);
  border: 1px solid rgba(200,200,200,0.12);
  border-radius: 28px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.15), inset 0 2px 0 rgba(255,255,255,0.2), 0 0 40px rgba(138,180,248,0.15);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 100%;
  width: 100%;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
  position: relative;
}
.img-card:hover {
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.2), inset 0 2px 0 rgba(255,255,255,0.3), 0 0 60px rgba(138,180,248,0.4);
}
.img-card img { 
  max-width: 50%; 
  border-radius: 18px; 
  background: #1f2023; 
  display: block; 
  margin: 0 auto; 
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s;
  filter: brightness(0.9);
}
.img-card:hover img {
  transform: scale(1.15);
  filter: brightness(1.1) drop-shadow(0 0 30px rgba(138,180,248,0.6));
}
.img-card img:active {
  transform: scale(1.25) rotate(5deg);
  transition: transform 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.matrix-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.5s;
}
.matrix-rain.active {
  opacity: 1;
}
.matrix-column {
  position: absolute;
  top: -100%;
  font-family: monospace;
  font-size: 20px;
  color: #8ab4f8;
  text-shadow: 0 0 5px #8ab4f8;
  animation: matrix-fall linear forwards;
}
@keyframes matrix-fall {
  to { top: 100%; }
}
.img-caption { color: #c9d1d9; margin-top: 0.5em; }
.header {
  position: sticky;
  top: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  background: #24262a;
  padding: 1rem 2rem;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
}
.logo {
  position: relative;
  overflow: hidden;
  font-family: 'Great Vibes', 'Allura', 'Dancing Script', cursive;
  font-size: 4.25rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #eaeaea;
  text-decoration: none;
  margin-right: 2rem;
  border-radius: 0;
  padding: 0;
  background: transparent;
  transition: transform 0.2s;
  text-rendering: optimizeLegibility;
}
.logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #24262a; /* cover text initially to match header */
  transform: translateX(0);
  animation: logo-reveal 1.8s ease forwards 200ms;
}
.logo::before {
  content: none;
  display: none;
}
@keyframes logo-reveal {
  to { transform: translateX(101%); }
}
.logo:hover { 
  transform: translateY(-1px);
  animation: logo-glitch 0.3s ease;
}
@keyframes logo-glitch {
  0%, 100% { text-shadow: 0 0 30px rgba(138,180,248,0.6); }
  25% { text-shadow: -3px 0 rgba(251,113,133,0.8), 3px 0 rgba(138,180,248,0.8); }
  50% { text-shadow: 3px 0 rgba(197,138,249,0.8), -3px 0 rgba(251,113,133,0.8); }
  75% { text-shadow: -2px 0 rgba(138,180,248,0.8), 2px 0 rgba(197,138,249,0.8); }
}
.nav {
  display: flex;
  gap: 1.5rem;
}
.nav a {
  color: #eaeaea;
  text-decoration: none;
  font-size: 1.1rem;
  border-radius: 12px;
  padding: 0.5em 1em;
  transition: background 0.2s, transform 0.2s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.nav a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(138,180,248,0.2), rgba(197,138,249,0.2));
  transform: translateX(-100%);
  transition: transform 0.3s;
}
.nav a:hover::before {
  transform: translateX(0);
}
.nav a:hover {
  background: #2b2d31;
  color: #c9d1d9;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(138,180,248,0.4);
}
.page {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
  position: relative;
  z-index: 10;
}

/* Logo Hero Section */
.logo-hero {
  text-align: center;
  padding: 4rem 0 2rem;
  position: relative;
}
.logo-text {
  font-family: 'Great Vibes', 'Allura', 'Dancing Script', cursive;
  font-size: 8rem;
  background: linear-gradient(135deg, #8ab4f8, #c58af9, #fb7185, #8ab4f8);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-flow 4s ease infinite;
  filter: drop-shadow(0 0 40px rgba(138,180,248,0.6));
}
@keyframes gradient-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Hero Section with Bitmoji */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 3rem 0;
  flex-wrap: wrap;
}

/* Key Concept Highlight */
.key-concept {
  font-size: 1.4em;
  font-weight: 800;
  background: linear-gradient(135deg, #8ab4f8, #c58af9, #fb7185);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-flow 3s ease infinite, pulse-glow 2s ease-in-out infinite;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  filter: drop-shadow(0 0 8px rgba(138,180,248,0.6));
}
@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(138,180,248,0.6)); }
  50% { filter: drop-shadow(0 0 16px rgba(138,180,248,0.9)) drop-shadow(0 0 24px rgba(197,138,249,0.6)); }
}

/* Floating Balance Statement */
.balance-statement {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  margin: -3rem 0;
  background: transparent;
  border: none;
  box-shadow: none;
  position: relative;
  z-index: 100;
}
.balance-line {
  font-family: 'Inter', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.2;
  color: #8ab4f8;
}
.balance-highlight {
  font-size: 5rem;
  color: #fb7185;
}
@keyframes pulse-scale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.bitmoji-container {
  flex: 0 0 300px;
  perspective: 1000px;
}
.bitmoji-character {
  width: 300px;
  height: 400px;
  position: relative;
  animation: bitmoji-bounce 2s ease-in-out infinite;
}
@keyframes bitmoji-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
.bitmoji-character {
  width: 400px;
  height: auto;
  animation: bitmoji-bounce 3s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}
@keyframes bitmoji-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Who Am I Section */
.who-am-i {
  flex: 1 1 400px;
  max-width: 500px;
}
.robot-typing {
  font-family: 'Courier New', monospace;
  font-size: 3rem;
  font-weight: 700;
  color: #8ab4f8;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-shadow: 0 0 10px rgba(138,180,248,0.5), 0 0 20px rgba(138,180,248,0.3);
}
.intro-text {
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 1.1rem;
  line-height: 1.55;
  color: #8ab4f8;
  letter-spacing: 0.05em;
  opacity: 1; /* handled via typing */
  white-space: pre-line;
  overflow: hidden;
  border-right: 2px solid #8ab4f8;
}
@keyframes fade-in {
  to { opacity: 1; }
}

/* Fix typo for main section class (if used) */
.main-section { margin-bottom: 2rem; }

/* Loading screen */
.loading-screen {
  position: fixed;
  inset: 0;
  background: #1e1f22;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s;
}
.logo-animation {
  font-family: 'Great Vibes', 'Allura', 'Dancing Script', cursive;
  font-size: 5rem;
  color: #8ab4f8;
  animation: logoFloat 2s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(138,180,248,0.6);
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
.loading-bar {
  width: 300px;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 2rem;
}
.loading-progress {
  height: 100%;
  background: linear-gradient(90deg, #8ab4f8, #c58af9, #fb7185);
  width: 0%;
  transition: width 0.3s;
  box-shadow: 0 0 20px rgba(138,180,248,0.8);
}

/* Scroll reveal animation */
.reveal { opacity: 0; visibility: hidden; transform: translateY(-120px) scale(0.85); transition: opacity 1000ms cubic-bezier(0.16, 1, 0.3, 1), transform 1000ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 1000ms; }
.reveal.visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); transition-delay: 0s; }

/* Typing animation for main title */
.page h1 {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin: 2rem 0;
  overflow: hidden;
  border-right: 3px solid #c9d1d9;
  white-space: nowrap;
  display: inline-block;
  width: 0; /* will animate when .start-type added */
}
.page h1.start-type {
  animation: typing 2.5s steps(30, end), blink-caret 0.75s step-end infinite;
}
#analysis-title { opacity:0; }
#analysis-title.start-type { opacity:1; transition: opacity 300ms ease; }
.page h1 .char {
  color: #c9d1d9;
  display: inline-block;
  animation: none;
}
.page h1.typed {
  width: 100%;
  border-right: none;
}
.page h1.typed .char {
  animation: color-spread 5s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
  animation-delay: calc(abs(var(--index) - 13) * 0.08s);
}
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: #c9d1d9; }
}
@keyframes color-spread {
  0% {
    color: #c9d1d9;
  }
  20% {
    color: #7dd3fc;
  }
  40% {
    color: #c084fc;
  }
  60% {
    color: #fb7185;
  }
  80% {
    color: #a78bfa;
  }
  100% {
    color: #8ab4f8;
  }
}
.title-container { text-align: center; }
.analysis-title-container { text-align:center; margin-top:6rem; }
@media (max-width: 600px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }
  .nav {
    gap: 0.75rem;
  }
}

/* --- TPO Squares Model --- */
.tpo-section { display:flex; justify-content:flex-start; padding: 2rem 0; }
.tpo-wrapper {
  width: 560px;
  max-width: 95vw;
  position: relative;
  padding: 0.5rem 5.5rem 0.5rem 0.25rem;
  margin-left: 0.5rem;
}
.tpo-axis {
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(200,200,200,0.2);
}
.tpo-grid { position: relative; }
.tpo-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 14px;
  gap: 2px;
  align-items: center;
  margin: 3px 0;
  min-height: 16px;
}
.tpo-cell {
  width: 14px;
  height: 14px;
  background: #3a3a3a;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.tpo-cell.light { background: #bfbfbf; }
.tpo-cell.mid { background: #4a4a4a; }
.tpo-cell.dark { background: #2a2a2a; }

/* Build silhouette using nth-child counts per row */
.tpo-row[data-row="-2"] { grid-template-columns: repeat(2, 14px); }
.tpo-row[data-row="-1"] { grid-template-columns: repeat(4, 14px); }
.tpo-row[data-row="0"] { grid-template-columns: repeat(8, 14px); }
.tpo-row[data-row="1"] { grid-template-columns: repeat(12, 14px); }
.tpo-row[data-row="2"] { grid-template-columns: repeat(16, 14px); }
.tpo-row[data-row="3"] { grid-template-columns: repeat(22, 14px); }
.tpo-row[data-row="4"] { grid-template-columns: repeat(28, 14px); }
.tpo-row[data-row="5"] { grid-template-columns: repeat(34, 14px); }
.tpo-row[data-row="6"] { grid-template-columns: repeat(40, 14px); }
.tpo-row[data-row="7"] { grid-template-columns: repeat(42, 14px); }
.tpo-row[data-row="8"] { grid-template-columns: repeat(36, 14px); }
.tpo-row[data-row="9"] { grid-template-columns: repeat(28, 14px); }
.tpo-row[data-row="10"] { grid-template-columns: repeat(22, 14px); }
.tpo-row[data-row="11"] { grid-template-columns: repeat(16, 14px); }
.tpo-row[data-row="12"] { grid-template-columns: repeat(12, 14px); }
.tpo-row[data-row="13"] { grid-template-columns: repeat(8, 14px); }
.tpo-row[data-row="14"] { grid-template-columns: repeat(4, 14px); }
.tpo-row[data-row="15"] { grid-template-columns: repeat(2, 14px); }

/* Right-side lines */
.tpo-lines {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}
.tpo-line {
  position: absolute;
  left: 6px; /* start near axis/profile start */
  right: 0;
  height: 2px;
  background: rgba(220,220,220,0.7);
}
.tpo-line .label {
  position: absolute;
  right: 0;
  top: -12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #c9d1d9;
}
.tpo-line.vpoc { top: calc((7 + 2) * (16px + 3px)); background: rgba(138, 180, 248, 0.85); }
.tpo-line.vah { top: calc((4 + 2) * (16px + 3px)); }
.tpo-line.val { top: calc((11 + 2) * (16px + 3px)); }

/* Comparison row: Market vs Volume Profile */
.compare-row { display:flex; align-items: stretch; gap: 1.25rem; margin: 1.75rem 0; }
.compare-card { padding: 1.25rem; min-height: 96px; display:flex; flex-direction:column; justify-content:center; }
.compare-card h3 { margin: 0 0 0.4rem 0; font-size: 1.25rem; }
.compare-separator { width: 1px; background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.06)); box-shadow: 0 0 18px rgba(138,180,248,0.03); border-radius: 2px; margin: 0.5rem 0; align-self: stretch; }

@media (max-width: 900px) {
  .compare-row { flex-direction: column; }
  .compare-separator { width: 100%; height: 1px; }
}

/* Key Concepts panel - different style (not card frames) */
.key-concepts-panel {
  margin: 2rem 0 2.5rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(180deg, rgba(40,42,46,0.6), rgba(30,31,34,0.5));
  border-left: 6px solid rgba(138,180,248,0.7);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
}
.key-concepts-panel .kc-header h2 {
  margin: 0 0 0.75rem 0;
  font-size: 1.6rem;
  color: #e6eefc;
  letter-spacing: -0.01em;
}
.key-concepts-panel .kc-grid {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.key-concepts-panel .kc-section {
  flex: 1 1 50%;
}
.key-concepts-panel .kc-section h3 {
  margin: 0 0 0.4rem 0;
  color: #cfe8ff;
  font-size: 1.05rem;
}
.key-concepts-panel .kc-section p {
  margin: 0;
  color: #c9d1d9;
  line-height: 1.5;
}
.key-concepts-panel .kc-note {
  margin-top: 0.9rem;
  color: #9fbadf;
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .key-concepts-panel .kc-grid { flex-direction: column; }
}

/* Insights large frame (prominent explanatory area) */
.insights-panel {
  margin: 2rem 0 3rem;
  padding: 1.5rem 1.5rem;
  background: linear-gradient(180deg, rgba(36,38,42,0.62), rgba(28,29,31,0.55));
  border-radius: 14px;
  border: 1px solid rgba(138,180,248,0.06);
  box-shadow: 0 18px 50px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
}
.insights-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.5rem;
  color: #eaf6ff;
}
.insights-body { padding-top: 0.25rem; }
.insights-list { list-style: disc; margin: 0; padding-left: 1.2rem; color: #d4e9ff; line-height: 1.55; }
.insights-list li { margin-bottom: 0.85rem; }
.insights-list strong { color: #ffffff; font-weight: 700; }

@media (max-width: 700px) {
  .insights-list { padding-left: 1rem; }
  .insights-panel { padding: 1rem; }
}

/* small blurb under page title */
.page-blurb { margin: 0.6rem 0 1.25rem; color: #c9d1d9; font-size: 1.05rem; line-height: 1.45; }
.page-blurb a { color: #8ab4f8; }

/* Structure trades subsection inside insights frame */
.structure-trades {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(40,42,46,0.04);
  border-left: 4px solid rgba(138,180,248,0.18);
  border-radius: 8px;
}
.structure-trades .structure-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.05rem;
  color: #dfeeff;
}
.structure-trades .structure-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #cfe8ff;
  line-height: 1.5;
}
.structure-trades .structure-list li { margin-bottom: 0.6rem; }

/* Bottom centered note */
.page-bottom-note {
  text-align: center;
  margin: 1.5rem 0 3rem;
  color: #cfe8ff;
  font-size: 1.05rem;
  padding: 0.5rem 1rem;
}
.page-bottom-note p { margin: 0; }

/* Protected pages: modal + link styles */
.protected-link {
  color: #8ab4f8;
  text-decoration: underline;
  cursor: pointer;
}
.protected-link:hover { color: #bfe6ff; }

/* Owner access modal */
.owner-modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 200000; visibility: hidden; opacity: 0; transition: opacity 200ms ease, visibility 200ms; }
.owner-modal.active { visibility: visible; opacity: 1; }
.owner-modal__bg { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.owner-modal__box { position: relative; z-index: 200001; background: linear-gradient(180deg, #121213, #1b1c1f); border-radius: 12px; padding: 1.1rem 1.2rem; width: 360px; max-width: 92%; box-shadow: 0 30px 80px rgba(0,0,0,0.7); border: 1px solid rgba(138,180,248,0.06); color: #e6f3ff; }
.owner-modal__box h3 { margin: 0 0 0.35rem 0; font-size: 1.05rem; color: #cfe8ff; }
.owner-modal__box p { margin: 0 0 0.6rem 0; color: #9fbadf; font-size: 0.95rem; }
.owner-modal__box input[type="password"] { width: 100%; padding: 0.6rem 0.7rem; border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); color: #e6f3ff; margin-bottom: 0.6rem; }
.owner-modal__actions { display:flex; gap:0.5rem; justify-content:flex-end; }
.owner-modal__actions button { padding: 0.55rem 0.9rem; border-radius: 8px; border: none; cursor: pointer; font-weight: 600; }
.owner-modal__actions button.unlock { background: linear-gradient(90deg, #8ab4f8, #c58af9); color: #0b1220; }
.owner-modal__actions button.cancel { background: transparent; color: #cfe8ff; border: 1px solid rgba(255,255,255,0.04); }
.owner-pass-error { font-size: 0.9rem; color: #ffb4b4; }


/* Site footer (legal links) */
.site-footer {
  background: rgba(20,21,23,0.6);
  padding: 1rem 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 2rem;
}
.site-footer .footer-links { font-size: 0.98rem; }
.site-footer .footer-links a { color: #9fcdfb; text-decoration: underline; margin: 0 0.45rem; }
.site-footer .footer-links a:hover { color: #cfe8ff; }
.site-footer .footer-copyright { color: #9fbadf; margin-top: 0.45rem; font-size: 0.95rem; }

