
/* ----- CONSOLE‑THEMED VARIABLES & RESETS ----- */
:root {
    --bg-dark: #0a0f1a;
    --bg-darker: #050811;
    --bg-card: #111827;
    --bg-card-light: #1f2937;
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-glow: rgba(14, 165, 233, 0.15);
    --secondary: #10b981;
    --secondary-dark: #059669;
    --secondary-glow: rgba(16, 185, 129, 0.15);
    --accent: #8b5cf6;
    --accent-dark: #7c3aed;
    --accent-glow: rgba(139, 92, 246, 0.15);
    --text-primary: #f0f0f0;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --border: #374151;
    --border-light: #4b5563;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 12px;
    --radius-lg: 16px;
    --grid-bg: linear-gradient(rgba(14, 165, 233, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
    --grid-size: 30px;
    /* console accents */
    --console-cyan: #5ff0d0;
    --console-green: #8aff80;
    --console-prompt: #7a9bcb;
}

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

body {
    background: #0a0f1a;
    font-family: 'Space Grotesk', 'Fira Code', monospace, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem 0.5rem 0.4rem;
}

/* main stage – now fully responsive */
.stage {
    width: 100%;
    max-width: 95vw;
    min-width: 95vw;
    height: auto;
    min-height: 90vh;
    border-radius: 2.5rem;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: background 1.2s ease;
}

.none-important { display: none !important; }

/* deep radial gradients (unchanged) */
.stage.bg-1 { background: radial-gradient(circle at 20% 30%, #1a3a5f, #0f2a44, #051a2b); }
.stage.bg-2 { background: radial-gradient(circle at 80% 70%, #3e2b5f, #281b40, #130a20); }
.stage.bg-3 { background: radial-gradient(circle at 30% 80%, #1b4f4f, #0f3737, #042020); }
.stage.bg-4 { background: radial-gradient(circle at 70% 20%, #5f3a1a, #442b0f, #2b1a05); }
.stage.bg-5 { background: radial-gradient(circle at 40% 60%, #5f2b1a, #401d0f, #2b1005); }
.stage.bg-6 { background: radial-gradient(circle at 60% 40%, #4f4f1a, #36360f, #1f1f05); }
.stage.bg-7 { background: radial-gradient(circle at 50% 50%, #1a2f3f, #0e1e2b, #031018); } /* new thanks scene */

.stage::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(600px circle at var(--x, 30%) var(--y, 50%), rgba(255,255,255,0.08) 0%, transparent 60%);
    mix-blend-mode: overlay;
    z-index: 1;
}

/* ----- TOP BAR (console‑style remains clean) ----- */
.top {
    padding: 1rem 2.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
    position: relative;
    z-index: 10;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.02em;
}
.logo i { color: var(--console-cyan); filter: drop-shadow(0 0 8px currentColor); }
.logo span { color: #fff; font-weight: 500; }

.logo-privci {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 45px;
}
.logo-privci img {
    height: 100%;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}
.logo-privci:hover img { opacity: 0.9; }

.scene-tag {
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    padding: 0.3rem 1.4rem;
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.15);
    font-weight: 500;
    font-size: 0.95rem;
    font-family: 'Fira Code', monospace;
    color: var(--console-cyan);
}

/* ----- MAIN CONTENT (responsive grid) ----- */
.content {
    flex: 1;
    position: relative;
    overflow: hidden;
    z-index: 5;
}

.scene {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s;
    padding: 2rem 2.4rem 2.2rem;
    overflow-y: auto;
    scrollbar-width: none;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.scene.active {
    opacity: 1;
    visibility: visible;
}

/* responsive grid with console‑like cards */
.scene-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.8fr; /* default for scene1/2/3 */
    gap: 1rem;
    width: 100%;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s 0.3s, transform 0.8s 0.3s;
    align-items: center;
}
.scene-grid.five { grid-template-columns: repeat(5, 1fr); }
.scene-grid.three { grid-template-columns: 1fr 1fr 2.3fr; }
.scene-grid.thankyou { grid-template-columns: 1fr; text-align: center; }

.scene.active .scene-grid {
    opacity: 1;
    transform: translateY(0);
}

/* ----- CONSOLE‑STYLE CARDS (machine intelligent) ----- */
.callout {
    background: rgba(0, 20, 20, 0.7);
    backdrop-filter: blur(16px) saturate(180%);
    border-radius: 1.2rem;
    padding: 1.8rem 1.5rem;
    box-shadow: 0 0 0 1px rgba(90, 240, 200, 0.2), 0 20px 30px -15px black;
    color: var(--text-primary);
    border: 1px solid rgba(90, 240, 200, 0.15);
    transition: all 0.2s, transform 0.2s ease;
    font-family: 'Fira Code', monospace;
}
.callout.zoom {
    transform: scale(1.02);
    box-shadow: 0 0 0 2px var(--console-cyan), 0 0 30px var(--console-cyan);
    transition: transform 0.15s cubic-bezier(0.2, 0.9, 0.3, 1.2), box-shadow 0.15s;
    z-index: 10;
}
.callout .icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--console-cyan);
    background: none;
    -webkit-text-fill-color: var(--console-cyan);
    background: linear-gradient(135deg, #fff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.callout h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
    color: #fff;
    border-bottom: 1px dashed rgba(90, 240, 200, 0.3);
    padding-bottom: 0.4rem;
}
.callout p {
    color: rgba(220, 255, 240, 0.9);
    line-height: 1.5;
    font-weight: 400;
    font-size: 0.95rem;
}
.stat {
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(145deg, #ffffff, #d0d0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    line-height: 1;
}
.badge {
    background: rgba(0, 40, 40, 0.8);
    color: var(--console-cyan);
    border-radius: 40px;
    padding: 0.2rem 1rem;
    font-size: 0.75rem;
    display: inline-block;
    margin-top: 0.5rem;
    border: 1px solid var(--console-cyan);
}

/* media block (console style) */
.media-block {
    align-self: center;
    width: 100%;
    background: rgba(0, 10, 10, 0.6);
    border: 2px solid rgba(90, 240, 200, 0.2);
    border-radius: 8px;
    padding: 0.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transform: rotate(-1deg);
}
.media-block img {
    max-height: 280px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 4px;
    filter: contrast(1.1) brightness(0.9);
}

/* thank you scene specific */
/* thank you scene specific */
.thankyou-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.thankyou-content h2 {
  font-size: 4rem;
  font-weight: 500;
  color: var(--console-cyan);
  margin-bottom: 1rem;
  font-family: 'Fira Code', monospace;
}

.thankyou-content p {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

/* CTA button */
.cta-button {
  background: transparent;
  border: 2px solid var(--console-cyan);
  color: var(--console-cyan);
  padding: 1rem 3.2rem;
  font-size: 1.4rem;
  border-radius: 4rem;
  font-family: 'Fira Code', monospace;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 18px rgba(90,240,200,0.25);
  text-decoration: none;
  display: inline-block;
}

.cta-button:hover {
  background: var(--console-cyan);
  color: #000;
  box-shadow: 0 0 24px var(--console-cyan);
}

/* Subtext */
.cta-subtext {
  margin-top: 1.4rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  font-family: 'Inter', system-ui, sans-serif;
}

.cta-subtext span {
  color: var(--console-cyan);
  font-weight: 500;
}


/* ----- STAGE OVERLAYS (unchanged structure) ----- */
.stage-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(30px) saturate(200%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease, visibility 1.2s;
    border-radius: inherit;
    pointer-events: none;
}
.stage-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.overlay-content {
    margin-top: -10%;
    text-align: center;
    transform: translateY(30px);
    transition: transform 0.9s 0.2s cubic-bezier(0.2, 0.9, 0.3, 1);
    max-width: 800px;
    padding: 2rem;
}
.stage-overlay.show .overlay-content { transform: translateY(0); }
.overlay-content .number {
    font-size: 3.5rem;
    font-weight: 500;
    color: rgba(90,240,200,0.2);
    margin-bottom: 0.5rem;
    letter-spacing: 4px;
    font-family: 'Fira Code', monospace;
}
.overlay-content h2 {
    font-size: 4rem;
    font-weight: 500;
    color: var(--console-cyan);
    margin-bottom: 1rem;
    line-height: 1.2;
    font-family: 'Fira Code', monospace;
}
.overlay-content p {
    font-size: 1.6rem;
    color: rgba(255,255,255,0.8);
    font-weight: 300;
}

/* ----- NARRATION PANEL (system console) ----- */
.narration {
    margin: 0 2.2rem 1.2rem 2.2rem;
    background: rgba(0, 20, 20, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 0.8rem;
    padding: 1.2rem 2rem;
    display: flex;
    gap: 1.2rem;
    align-items: center;
    border-left: 2px solid #5ff0d1b4;;
    border-right: 2px solid #5ff0d1b4;;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    /*box-shadow: 0 0 20px rgba(90,240,200,0.2);*/
    color: var(--console-cyan);
    position: relative;
    z-index: 15;
    min-height: 5.5rem;
    font-family: 'Fira Code', monospace;
}
.narration i {
    font-size: 2.2rem;
    color: var(--console-cyan);
    opacity: 0.8;
}
.typewriter {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 400;
    min-height: 4rem;
    word-break: break-word;
    color: #d0f0e0;
}
.typewriter::before {
    content: '> ';
    color: var(--console-cyan);
    font-weight: 500;
}
.cursor {
    display: inline-block;
    width: 10px;
    height: 1.4em;
    background: var(--console-cyan);
    vertical-align: middle;
    margin-left: 4px;
    animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ----- FOOTER (console) ----- */
.footer {
    padding: 0.8rem 2.2rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    border-top: 1px solid rgba(90,240,200,0.2);
    background: rgba(0,10,10,0.4);
    backdrop-filter: blur(12px);
    position: relative;
    z-index: 15;
    flex-wrap: wrap;
}
.dot {
    width: 14px;
    height: 14px;
    border-radius: 20px;
    background: rgba(90,240,200,0.2);
    transition: 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
    cursor: pointer;
    border: 1px solid rgba(90,240,200,0.2);
}
.dot.active {
    width: 48px;
    background: var(--console-cyan);
    box-shadow: 0 0 20px var(--console-cyan);
    border-color: var(--console-cyan);
}
.nav-btn, .replay {
    background: rgba(0,20,20,0.7);
    border: 1px solid var(--console-cyan);
    color: var(--console-cyan);
    border-radius: 40px;
    padding: 0.5rem 1.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    backdrop-filter: blur(5px);
    font-family: 'Fira Code', monospace;
}
.nav-btn:disabled {
    opacity: 0.2;
    border-color: rgba(90,240,200,0.2);
    color: rgba(90,240,200,0.3);
    cursor: default;
    pointer-events: none;
}
.nav-btn:hover:not(:disabled), .replay:hover {
    background: var(--console-cyan);
    color: #000;
    box-shadow: 0 0 20px var(--console-cyan);
}
.replay { margin-left: auto; }

/* ----- RESPONSIVE BREAKPOINTS (enhanced) ----- */
@media (max-width: 1200px) {
    .scene-grid { gap: 0.8rem; }
    .callout h3 { font-size: 1.3rem; }
    .callout p { font-size: 0.9rem; }
}
@media (max-width: 1024px) {
    .scene-grid { grid-template-columns: repeat(2, 1fr); }
    .scene-grid.five { grid-template-columns: repeat(3, 1fr); }
    .scene-grid.three { grid-template-columns: 1fr 1fr; }
    .media-block { grid-column: span 2; }
    .overlay-content h2 { font-size: 3rem; }
    .footer { gap: 0.8rem; }
}
@media (max-width: 768px) {
    .top { padding: 1rem; }
    .scene { padding: 1rem; }
    .scene-grid, .scene-grid.five, .scene-grid.three { grid-template-columns: 1fr; }
    .media-block { grid-column: span 1; }
    .callout { padding: 1.5rem; }
    .callout h3 { font-size: 1.4rem; }
    .overlay-content h2 { font-size: 2.4rem; }
    .overlay-content p { font-size: 1.2rem; }
    .narration { margin: 0 1rem 1rem; padding: 1rem; }
    .footer { padding: 0.8rem 1rem; }
    .dot.active { width: 32px; }
    .nav-btn, .replay { padding: 0.4rem 1rem; }
    .thankyou-content h2 { font-size: 2.8rem; }
}
@media (max-width: 480px) {
    .logo { font-size: 1.4rem; }
    .scene-tag { font-size: 0.75rem; }
    .dot { width: 10px; height: 10px; }
    .dot.active { width: 28px; }
}

/* zoom animation – no layout shift */
.callout {
    will-change: transform;
}

/* ===== ADDITIONAL STYLES FOR SUMMARY FLOWCHART (scene 7) ===== */

.flow-panel {
  position: relative;
  background: rgba(10,20,20,0.85);
  border-radius: 0.5rem;
  padding: 3rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  font-family: 'Inter', system-ui, sans-serif;
}

/* APIR + COM-B as background context */
.apir-bg,
.comb-bg {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2rem;
  opacity: 0.08;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  pointer-events: none;
}

.apir-bg { top: 1rem; }
.comb-bg { bottom: 1rem; }

/* Flow grid */
.flow-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1.4fr auto 1fr auto 1fr;
  align-items: center;
  gap: 1.2rem;
}

/* Arrows */
.flow-arrow-big {
  font-size: 2rem;
  color: rgba(79,208,192,0.6);
}

/* Nodes */
.flow-node {
  border-radius: 1.8rem;
  padding: 1.6rem 1.2rem;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

/* Node colour coding */
.flow-node.risk {
  background: linear-gradient(135deg, #1b2f2f, #0f1f1f);
}

.flow-node.scan {
  background: linear-gradient(135deg, #123a3a, #0a2a2a);
}

.flow-node.insight {
  background: linear-gradient(135deg, #153f3f, #0e2f2f);
}

.flow-node.intervene {
  background: linear-gradient(135deg, #1a3a2f, #0f2a22);
}

.flow-node.impact {
  background: linear-gradient(135deg, #1f4035, #102a22);
}

/* Icons */
.node-icon {
  font-size: 2.6rem;
  color: #8ae0d0;
  margin-bottom: 0.6rem;
}

/* Titles */
.node-title {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.3rem;
}

/* Keywords */
.keywords {
  font-size: 0.8rem;
  color: #b0f0e0;
  opacity: 0.9;
}

/* Split node */
.split-node {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.split-part {
  background: rgba(255,255,255,0.04);
  border-radius: 1.4rem;
  padding: 0.8rem;
}

/* Responsive */
@media (max-width: 1000px) {
  .flow-grid {
    grid-template-columns: 1fr;
  }
  .flow-arrow-big {
    transform: rotate(90deg);
  }
}


/* distinct background for summary scene */
.stage.bg-7 { background: radial-gradient(circle at 30% 70%, #135353, #0a3333, #021212); }
.stage.bg-8 { background: radial-gradient(circle at 50% 50%, #1a2f3f, #0e1e2b, #031018); }

