/* SHIONIKA ACADEMY v4 — 2026 Juicy Centroarts-Inspired Visual & Character System */
:root {
  --bg-hero: #05132E;
  --bg-light: #F4F8FF;
  --bg-surface: #FFFFFF;
  --ink-dark: #071330;
  --ink-body: #283A5E;
  --ink-muted: #5A6F94;

  --cyan: #00F5D4;
  --cyan-deep: #00A896;
  --sky: #00BBF9;
  --indigo: #4361EE;
  --indigo-deep: #3A0CA3;
  --violet: #7209B7;
  --orange: #FF6B00;
  --gold: #FFB800;
  --coral: #F72585;

  --border-light: rgba(14, 38, 86, 0.10);
  --shadow-sm: 0 8px 24px rgba(7, 19, 48, 0.06);
  --shadow-md: 0 18px 45px rgba(7, 19, 48, 0.11);
  --shadow-lg: 0 28px 70px rgba(5, 16, 42, 0.22);

  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 30px;
  --radius-xl: 38px;

  --font-display: 'Unbounded', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--bg-light);
  color: var(--ink-dark);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 15%, rgba(0, 187, 249, 0.08), transparent 35%),
    radial-gradient(circle at 90% 35%, rgba(255, 107, 0, 0.07), transparent 35%),
    radial-gradient(circle at 50% 80%, rgba(114, 9, 183, 0.06), transparent 40%),
    #F2F7FF;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1380px; margin: 0 auto; padding: 0 28px; }

/* TOP JUICY RIBBON */
.top-ribbon {
  background: linear-gradient(90deg, #061539 0%, #0B3878 35%, #560BAD 70%, #061539 100%);
  border-bottom: 1px solid rgba(0, 245, 212, 0.35);
  color: #E0F2FE;
  font-size: 0.78rem;
  padding: 8px 0;
  position: relative;
  z-index: 60;
}
.top-ribbon-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ribbon-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-weight: 700; color: #00F5D4; letter-spacing: 0.04em;
}
.ribbon-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #00F5D4; box-shadow: 0 0 12px #00F5D4;
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.65; }
}

/* FLOATING CRYSTAL HEADER */
.site-header {
  position: sticky; top: 0; z-index: 55;
  background: rgba(6, 18, 46, 0.88);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border-bottom: 1.5px solid rgba(0, 245, 212, 0.24);
  box-shadow: 0 12px 36px rgba(3, 10, 28, 0.35);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 18px; }
.brand-logo { display: flex; align-items: center; gap: 14px; }
.brand-emblem {
  width: 48px; height: 48px; border-radius: 16px;
  background: linear-gradient(135deg, #00F5D4 0%, #00BBF9 45%, #FF6B00 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 245, 212, 0.4), inset 0 2px 2px rgba(255,255,255,0.6);
  position: relative; flex-shrink: 0; overflow: hidden;
}
.brand-emblem img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; }
.brand-title {
  font-family: var(--font-display); font-weight: 900; font-size: 1.28rem;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #FFFFFF 0%, #00F5D4 55%, #FFD166 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.brand-sub { font-size: 0.73rem; color: #BAE6FD; font-weight: 600; margin-top: 2px; }

.main-nav {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  padding: 5px; border-radius: 999px;
  border: 1px solid rgba(0, 245, 212, 0.22);
}
.nav-link {
  padding: 8px 16px; border-radius: 999px;
  font-size: 0.86rem; font-weight: 700; color: #E0F2FE;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.nav-link:hover { color: #FFFFFF; background: rgba(0, 245, 212, 0.14); }
.nav-link.active {
  background: linear-gradient(135deg, #00F5D4 0%, #00BBF9 100%);
  color: #041028;
  box-shadow: 0 6px 20px rgba(0, 245, 212, 0.38);
}
.nav-progress-pill {
  font-family: var(--font-mono); font-size: 0.7rem; padding: 2px 8px;
  border-radius: 999px; background: linear-gradient(135deg, #FF6B00, #FFB800);
  color: #041028; font-weight: 800;
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; background: rgba(255, 255, 255, 0.08);
  border-radius: 999px; padding: 3px; border: 1px solid rgba(255, 255, 255, 0.18);
}
.lang-btn {
  padding: 5px 11px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 800; color: #BAE6FD;
}
.lang-btn.active { background: #00F5D4; color: #041028; }

/* JUICY 2026 TACTILE BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 16px;
  font-weight: 800; font-size: 0.95rem; cursor: pointer; border: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none; line-height: 1.2; position: relative;
}
.btn-primary {
  background: linear-gradient(135deg, #00F5D4 0%, #00BBF9 52%, #4361EE 100%);
  color: #041028;
  box-shadow: 0 12px 30px rgba(0, 245, 212, 0.38), inset 0 2px 1px rgba(255, 255, 255, 0.65);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0, 245, 212, 0.55), inset 0 2px 2px rgba(255, 255, 255, 0.8);
}
.btn-gold {
  background: linear-gradient(135deg, #FF6B00 0%, #FFB800 100%);
  color: #041028;
  box-shadow: 0 12px 30px rgba(255, 107, 0, 0.42), inset 0 2px 1px rgba(255, 255, 255, 0.65);
}
.btn-gold:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 40px rgba(255, 107, 0, 0.58);
}
.btn-glass {
  background: rgba(255, 255, 255, 0.11); color: #FFFFFF;
  border: 1.5px solid rgba(0, 245, 212, 0.42);
  backdrop-filter: blur(14px);
}
.btn-glass:hover {
  background: rgba(0, 245, 212, 0.22); border-color: #00F5D4;
  transform: translateY(-3px);
}
.btn-outline-dark {
  background: #FFFFFF; color: var(--ink-dark);
  border: 2px solid rgba(67, 97, 238, 0.22);
  box-shadow: var(--shadow-sm);
}
.btn-outline-dark:hover {
  border-color: var(--orange); background: #FFFDF7;
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.btn-sm { padding: 10px 18px; font-size: 0.84rem; border-radius: 13px; }

/* HERO STAGE — JUICY CENTROARTS ELECTRIC OCEAN & CYBER SUNSET */
.hero-stage {
  position: relative;
  background:
    radial-gradient(circle at 76% 32%, rgba(0, 245, 212, 0.34), transparent 38%),
    radial-gradient(circle at 82% 72%, rgba(255, 107, 0, 0.28), transparent 40%),
    radial-gradient(circle at 20% 20%, rgba(0, 187, 249, 0.28), transparent 45%),
    linear-gradient(135deg, #05132E 0%, #0B2B64 44%, #09418A 78%, #071E4A 100%);
  color: #FFFFFF;
  padding: 54px 0 76px;
  overflow: hidden;
  border-bottom: 3px solid rgba(0, 245, 212, 0.45);
}
.hero-stage::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0, 245, 212, 0.16) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  opacity: 0.45; pointer-events: none;
}
#shionika-3d-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none; opacity: 0.75;
}
.hero-grid {
  position: relative; z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.02fr);
  gap: 40px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 245, 212, 0.2), rgba(0, 187, 249, 0.2));
  border: 1.5px solid #00F5D4;
  color: #00F5D4; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.05em; margin-bottom: 18px;
  box-shadow: 0 0 24px rgba(0, 245, 212, 0.25);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.7vw, 4.4rem);
  font-weight: 900; line-height: 1.03; letter-spacing: -0.03em; margin-bottom: 14px;
}
.hero-title .grad-brand {
  background: linear-gradient(135deg, #FFFFFF 0%, #00F5D4 45%, #FFB800 85%, #FF6B00 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 28px rgba(0, 245, 212, 0.25));
}
.hero-slogan {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.62rem);
  font-weight: 800;
  color: #FFD166;
  margin-bottom: 18px; line-height: 1.3;
  text-shadow: 0 4px 18px rgba(0,0,0,0.4);
}
.hero-lead {
  font-size: 1.06rem; color: #E0F2FE; line-height: 1.65;
  max-width: 650px; margin-bottom: 26px; font-weight: 500;
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

/* LIVING ANIMATED CHARACTER STAGE ("ШІОН") */
.shion-character-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.shion-portal-card {
  position: relative;
  width: 100%;
  border-radius: 34px;
  background: linear-gradient(160deg, rgba(8, 25, 64, 0.85) 0%, rgba(12, 45, 98, 0.78) 100%);
  border: 2.5px solid rgba(0, 245, 212, 0.55);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 50px rgba(0, 245, 212, 0.25), inset 0 2px 2px rgba(255,255,255,0.28);
  padding: 20px;
  overflow: visible;
}
.shion-art-container {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  height: 430px;
  border: 2px solid rgba(255, 184, 0, 0.45);
  box-shadow: 0 18px 45px rgba(0,0,0,0.5);
  background: #04102A;
}
.shion-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  transform-origin: center center;
  animation: shionBreathing 4.2s ease-in-out infinite;
}
@keyframes shionBreathing {
  0%, 100% { transform: scale(1) translateY(0px); }
  50% { transform: scale(1.028) translateY(-6px); }
}

/* LIVE INTERACTIVE SVG OVERLAY ON SHION (EYES, BUTTERFLY, CUBE, ENERGY) */
.shion-live-svg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}
.shion-wing-l, .shion-wing-r {
  transform-origin: center center;
  animation: butterflyFlap 0.42s ease-in-out infinite alternate;
}
@keyframes butterflyFlap {
  0% { transform: scaleX(1) rotate(-4deg); }
  100% { transform: scaleX(0.45) rotate(8deg); }
}
.shion-butterfly-group {
  animation: butterflyFloat 5s ease-in-out infinite;
}
@keyframes butterflyFloat {
  0%, 100% { transform: translate(0px, 0px) rotate(-3deg); }
  33% { transform: translate(-12px, -14px) rotate(4deg); }
  66% { transform: translate(8px, -8px) rotate(-6deg); }
}
.shion-holo-cube-group {
  transform-origin: 120px 140px;
  animation: cubeLevitate 4.5s ease-in-out infinite;
}
@keyframes cubeLevitate {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(6deg); }
}

/* FLOATING BADGES AROUND SHION */
.shion-float-badge {
  position: absolute;
  z-index: 6;
  padding: 9px 15px;
  border-radius: 16px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.45);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.shion-float-badge.top-left {
  top: -14px; left: 20px;
  background: linear-gradient(135deg, #FF6B00, #FFB800);
  color: #041028;
}
.shion-float-badge.top-right {
  top: 16px; right: -12px;
  background: rgba(6, 20, 52, 0.92);
  border: 1.5px solid #00F5D4;
  color: #00F5D4;
}

/* SHION INTERACTIVE SPEECH BUBBLE & ACTION CONTROLLER */
.shion-speech-bubble {
  margin-top: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.97), rgba(224,242,254,0.97));
  color: #06122E;
  border-radius: 22px;
  padding: 16px 20px;
  border: 2px solid #00F5D4;
  box-shadow: 0 16px 36px rgba(0,0,0,0.35);
  position: relative;
}
.shion-speech-bubble::before {
  content: '';
  position: absolute;
  top: -10px; left: 42px;
  width: 18px; height: 18px;
  background: #FFFFFF;
  border-left: 2px solid #00F5D4;
  border-top: 2px solid #00F5D4;
  transform: rotate(45deg);
}
.shion-speech-header {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 800;
  color: #0077B6; margin-bottom: 6px;
}
.shion-speech-text {
  font-size: 0.92rem; font-weight: 700; color: #071330; line-height: 1.45;
  min-height: 42px;
}
.shion-action-pills {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.shion-action-btn {
  padding: 7px 13px; border-radius: 12px;
  border: 1.5px solid rgba(67, 97, 238, 0.28);
  background: #FFFFFF; color: #071330;
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 800;
  cursor: pointer; transition: all 0.2s ease;
}
.shion-action-btn:hover, .shion-action-btn.active {
  background: linear-gradient(135deg, #FF6B00, #FFB800);
  color: #041028; border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255, 107, 0, 0.35);
}

/* KPI BAND — SCULPTURAL COLORFUL CARDS */
.kpi-band {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px; margin-top: 38px; position: relative; z-index: 3;
}
.kpi-card {
  background: linear-gradient(155deg, rgba(10, 32, 78, 0.88), rgba(6, 19, 48, 0.92));
  backdrop-filter: blur(18px);
  border: 1.5px solid rgba(0, 245, 212, 0.35);
  border-radius: 24px; padding: 22px 24px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.kpi-card:hover { transform: translateY(-5px); border-color: #FFB800; }
.kpi-num {
  font-family: var(--font-display); font-size: 2.15rem; font-weight: 900;
  background: linear-gradient(135deg, #FFFFFF 0%, #00F5D4 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.kpi-card.gold { border-color: rgba(255, 184, 0, 0.55); }
.kpi-card.gold .kpi-num {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFD166 50%, #FF6B00 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.kpi-label { font-size: 0.92rem; font-weight: 800; color: #FFFFFF; margin-top: 8px; }
.kpi-sub { font-size: 0.78rem; color: #BAE6FD; margin-top: 4px; }

/* SECTIONS */
.section { padding: 84px 0; position: relative; }
.section-dark {
  background:
    radial-gradient(circle at 85% 20%, rgba(247, 37, 133, 0.22), transparent 40%),
    radial-gradient(circle at 15% 80%, rgba(0, 245, 212, 0.22), transparent 42%),
    linear-gradient(160deg, #091332 0%, #161F52 52%, #0B1330 100%);
  color: #FFFFFF;
}
.section-alt {
  background: linear-gradient(180deg, #E6F0FF 0%, #F4F8FF 100%);
}
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 42px; flex-wrap: wrap;
}
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.76rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
  background: linear-gradient(90deg, rgba(67, 97, 238, 0.14), rgba(0, 187, 249, 0.16));
  color: var(--indigo-deep); border: 1.5px solid rgba(67, 97, 238, 0.32);
  margin-bottom: 12px;
}
.section-dark .eyebrow-pill {
  background: rgba(0, 245, 212, 0.16); color: #00F5D4; border-color: #00F5D4;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.1vw, 2.75rem);
  font-weight: 900; letter-spacing: -0.025em; line-height: 1.14;
}
.section-subtitle { font-size: 1.05rem; color: var(--ink-body); max-width: 700px; margin-top: 10px; font-weight: 500; }
.section-dark .section-subtitle { color: #E0F2FE; }

/* COCKPIT SHELL */
.cockpit-shell {
  background: linear-gradient(160deg, rgba(12, 26, 68, 0.92), rgba(20, 18, 62, 0.92));
  border: 2px solid rgba(0, 245, 212, 0.42);
  border-radius: var(--radius-xl); padding: 34px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55);
}
.cockpit-tabs {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 28px; padding-bottom: 20px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.14);
}
.cockpit-tab {
  padding: 13px 22px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  color: #E0F2FE; font-weight: 800; font-size: 0.92rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px; transition: all 0.25s ease;
}
.cockpit-tab:hover { background: rgba(255, 255, 255, 0.14); color: #FFFFFF; transform: translateY(-2px); }
.cockpit-tab.active {
  background: linear-gradient(135deg, #FF6B00 0%, #FFB800 100%);
  color: #041028; border-color: transparent;
  box-shadow: 0 12px 28px rgba(255, 107, 0, 0.42);
}
.cockpit-panel { display: none; }
.cockpit-panel.active {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: 32px; align-items: start;
}

.pipeline-steps { display: flex; flex-direction: column; gap: 12px; margin: 18px 0; }
.pipeline-step {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 5px solid var(--cyan);
  border-radius: 16px; padding: 15px 18px;
}
.pipeline-step.gold { border-left-color: var(--gold); }
.pipeline-step.indigo { border-left-color: #F72585; }
.pipeline-step-head {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 700; color: #00F5D4; margin-bottom: 4px;
}
.pipeline-step h4 { font-size: 1rem; color: #FFFFFF; margin-bottom: 4px; }
.pipeline-step p { font-size: 0.86rem; color: #BAE6FD; }

/* PHONE SIMULATOR */
.phone-frame {
  width: 100%; max-width: 390px; margin: 0 auto;
  background: linear-gradient(165deg, #0B193D, #07112A);
  border: 6px solid #00BBF9; border-radius: 36px; padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 35px rgba(0, 187, 249, 0.3);
  color: #F8FAFC;
}
.phone-notch { width: 110px; height: 18px; background: #040B1C; border-radius: 999px; margin: 0 auto 16px; }
.pwa-task-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  margin-bottom: 10px; cursor: pointer; transition: all 0.2s ease;
}
.pwa-task-item.done { background: rgba(0, 245, 212, 0.2); border-color: #00F5D4; }
.pwa-task-item.done span { text-decoration: line-through; color: #94A3B8; }

/* 10-PART BENTO CARDS WITH PANORAMIC ILLUSTRATED HEADERS */
.parts-bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.part-card {
  background: #FFFFFF; border-radius: 28px;
  border: 2px solid rgba(14, 38, 86, 0.09);
  box-shadow: var(--shadow-md); overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s ease, border-color 0.32s ease;
}
.part-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 65px rgba(7, 19, 48, 0.18);
  border-color: var(--sky);
}
.part-banner {
  position: relative; height: 170px; overflow: hidden;
}
.part-banner img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.part-card:hover .part-banner img { transform: scale(1.06); }
.part-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,18,46,0.15) 0%, rgba(6,18,46,0.88) 100%);
  padding: 18px 24px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.part-num-badge {
  align-self: flex-start;
  padding: 6px 14px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.76rem; font-weight: 800;
  color: #041028; background: #00F5D4;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.part-banner-title {
  font-family: var(--font-display); font-size: 1.32rem; font-weight: 900;
  color: #FFFFFF; line-height: 1.22;
  text-shadow: 0 4px 14px rgba(0,0,0,0.5);
}
.part-card-body { padding: 20px 24px 24px; }
.part-summary { font-size: 0.94rem; color: var(--ink-body); margin-bottom: 16px; font-weight: 500; }
.part-lessons-list { display: flex; flex-direction: column; gap: 8px; }
.lesson-row-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; border-radius: 14px;
  background: #F4F8FF; border: 1.5px solid rgba(14, 38, 86, 0.07);
  font-size: 0.89rem; font-weight: 700; color: var(--ink-dark);
}
.lesson-row-link:hover {
  background: linear-gradient(90deg, #E0F2FE, #FFFBEB);
  border-color: var(--sky); transform: translateX(5px);
}
.lesson-code-pill {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 800;
  padding: 4px 10px; border-radius: 9px; flex-shrink: 0;
}
.lesson-done-indicator {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #CBD5E1; display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.7rem; flex-shrink: 0; color: transparent;
}
.lesson-done-indicator.completed { background: #10B981; border-color: #10B981; color: #FFFFFF; }

/* ANALYTICS & BOOKS */
.analytics-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; }
.analytics-card {
  background: #FFFFFF; border-radius: 28px;
  border: 2px solid var(--border-light); padding: 32px; box-shadow: var(--shadow-md);
}
.skill-bar-row { margin-bottom: 18px; }
.skill-bar-head { display: flex; justify-content: space-between; font-weight: 800; font-size: 0.9rem; margin-bottom: 6px; }
.skill-bar-track { height: 13px; background: #E2E8F0; border-radius: 999px; overflow: hidden; }
.skill-bar-fill { height: 100%; border-radius: 999px; }

.books-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.book-card {
  background: #FFFFFF; border-radius: 26px;
  border: 2px solid var(--border-light); padding: 22px;
  box-shadow: var(--shadow-md); display: flex; flex-direction: column; justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.book-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--orange); }
.book-cover-thumb { border-radius: 16px; overflow: hidden; margin-bottom: 16px; box-shadow: 0 14px 32px rgba(7, 19, 48, 0.18); }

/* LESSON LAYOUT */
.lesson-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px; align-items: start; }
.lesson-sidebar {
  position: sticky; top: 96px; background: #FFFFFF;
  border-radius: 26px; border: 2px solid var(--border-light); padding: 20px;
  max-height: calc(100vh - 120px); overflow-y: auto; box-shadow: var(--shadow-sm);
}
.lesson-main-card {
  background: #FFFFFF; border-radius: 28px; border: 2px solid var(--border-light);
  padding: 40px; box-shadow: var(--shadow-md); min-width: 0;
}
.prose h2 { font-family: var(--font-display); font-size: 1.45rem; color: var(--ink-dark); margin: 32px 0 14px; padding-bottom: 10px; border-bottom: 2px solid #E2E8F0; }
.prose h3 { font-size: 1.16rem; font-weight: 800; color: var(--indigo-deep); margin: 24px 0 10px; }
.prose p, .prose li { font-size: 1.02rem; color: var(--ink-body); line-height: 1.72; margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 18px; }
.prompt-terminal {
  background: #06122E; color: #E2E8F0; border-radius: 18px;
  border: 2px solid rgba(0, 245, 212, 0.45); margin: 20px 0; overflow: hidden;
  box-shadow: 0 16px 38px rgba(5, 16, 42, 0.3);
}
.prompt-terminal-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: rgba(0, 245, 212, 0.12);
  border-bottom: 1px solid rgba(0, 245, 212, 0.25);
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; color: #00F5D4;
}
.prompt-terminal pre { padding: 18px; font-family: var(--font-mono); font-size: 0.88rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word; overflow-x: auto; }
.orbit-pill {
  padding: 7px 13px; border-radius: 11px;
  background: rgba(255, 255, 255, 0.09); border: 1.5px solid rgba(0, 245, 212, 0.35);
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; color: #E2E8F0;
  cursor: pointer; transition: all 0.2s ease;
}
.orbit-pill:hover, .orbit-pill.active {
  background: #00F5D4; color: #041028; border-color: #00F5D4;
  box-shadow: 0 0 18px rgba(0, 245, 212, 0.45);
}

/* FLOATING SHION COMPANION WIDGET ON ALL PAGES */
.shion-companion-dock {
  position: fixed; bottom: 22px; right: 22px; z-index: 90;
  display: flex; align-items: flex-end; gap: 12px;
}
.shion-companion-bubble {
  background: #FFFFFF; color: #071330;
  border: 2px solid #00F5D4; border-radius: 18px;
  padding: 12px 16px; max-width: 270px;
  box-shadow: 0 16px 40px rgba(5, 16, 42, 0.35);
  font-size: 0.82rem; font-weight: 700; line-height: 1.4;
  display: none;
}
.shion-companion-dock.open .shion-companion-bubble { display: block; }
.shion-companion-avatar {
  width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(135deg, #00F5D4, #00BBF9, #FF6B00);
  padding: 3px; cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 245, 212, 0.45);
  transition: transform 0.25s ease;
  position: relative;
}
.shion-companion-avatar:hover { transform: scale(1.08) rotate(-4deg); }
.shion-companion-avatar img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  border-radius: 50%;
}

/* FOOTER */
.site-footer {
  background: linear-gradient(160deg, #040D24 0%, #091D4A 100%);
  color: #BAE6FD; padding: 68px 0 40px;
  border-top: 3px solid rgba(0, 245, 212, 0.4);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; margin-bottom: 44px; }
.footer-col h4 { font-family: var(--font-display); font-size: 0.94rem; color: #FFFFFF; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a:hover { color: #00F5D4; }
.seoq { max-width: 1380px; margin: 28px auto; padding: 20px 28px; border-radius: 18px; background: rgba(14, 38, 86, 0.05); font-size: 0.84rem; color: var(--ink-muted); }

@media (max-width: 1100px) {
  .hero-grid, .cockpit-panel.active, .analytics-grid, .lesson-layout { grid-template-columns: 1fr; }
  .parts-bento, .books-grid, .kpi-band, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lesson-sidebar { position: static; max-height: 360px; }
}
@media (max-width: 820px) {
  .container { padding: 0 16px; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; }
  .main-nav {
    order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap;
    border-radius: 14px; padding: 5px;
  }
  .nav-link { padding: 7px 12px; font-size: 0.8rem; flex-shrink: 0; }
  .parts-bento, .books-grid, .kpi-band, .footer-grid { grid-template-columns: 1fr; }
  .shion-art-container { height: 350px; }
}


/* v4.1 SEAMLESS HOLOGRAPHIC CHARACTER RIG & FLOATING TECH RUNES */
.shion-holo-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}
.shion-hud-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(0, 245, 212, 0.42);
  pointer-events: none;
}
.shion-hud-ring.r1 {
  width: 340px; height: 340px;
  top: -80px; right: -80px;
  animation: shionSpin 26s linear infinite;
}
.shion-hud-ring.r2 {
  width: 240px; height: 240px;
  bottom: -60px; left: -60px;
  border-color: rgba(255, 184, 0, 0.42);
  animation: shionSpinRev 20s linear infinite;
}
@keyframes shionSpin { to { transform: rotate(360deg); } }
@keyframes shionSpinRev { to { transform: rotate(-360deg); } }

/* Floating Tech Rune Chips around SHION */
.shion-tech-node {
  position: absolute;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: rgba(4, 15, 38, 0.84);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(0, 245, 212, 0.55);
  color: #00F5D4;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45), 0 0 14px rgba(0, 245, 212, 0.28);
  animation: shionNodeFloat 4.2s ease-in-out infinite;
}
.shion-tech-node.n1 { top: 18px; left: 16px; animation-delay: 0s; }
.shion-tech-node.n2 { bottom: 64px; left: 16px; border-color: #FFB800; color: #FFD166; animation-delay: -1.4s; }
.shion-tech-node.n3 { bottom: 20px; right: 16px; border-color: #00BBF9; color: #7DD3FC; animation-delay: -2.6s; }
@keyframes shionNodeFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* Rising Cyber Sparks */
.shion-spark {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #00F5D4;
  box-shadow: 0 0 12px #00F5D4, 0 0 22px #00BBF9;
  animation: shionSparkRise 4.5s ease-in-out infinite;
}
.shion-spark.s1 { left: 18%; bottom: 18%; animation-delay: 0s; }
.shion-spark.s2 { left: 82%; bottom: 26%; background: #FFB800; box-shadow: 0 0 12px #FFB800; animation-delay: -1.5s; }
.shion-spark.s3 { left: 74%; top: 28%; background: #00F5D4; animation-delay: -2.8s; }
.shion-spark.s4 { left: 26%; top: 34%; background: #FF6B00; box-shadow: 0 0 12px #FF6B00; animation-delay: -0.9s; }
@keyframes shionSparkRise {
  0%, 100% { transform: translateY(0) scale(0.8); opacity: 0.45; }
  50% { transform: translateY(-18px) scale(1.35); opacity: 1; }
}

/* Interactive Prompt Formula Overlay inside SHION Stage */
.shion-prompt-hud {
  position: absolute;
  inset: 16px;
  background: rgba(4, 14, 36, 0.90);
  backdrop-filter: blur(14px);
  border: 2px solid #FFB800;
  border-radius: 20px;
  padding: 20px;
  color: #FFFFFF;
  z-index: 5;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.65);
}
.shion-prompt-hud.active {
  display: flex;
  animation: shionHudPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes shionHudPop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.shion-prompt-step {
  background: rgba(255,255,255,0.07);
  border-left: 4px solid #00F5D4;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.82rem;
}
.shion-prompt-step strong {
  color: #FFD166;
  font-family: var(--font-mono);
}

/* Equalizer Bars in Speech Header */
.shion-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
  margin-right: 6px;
}
.shion-eq span {
  display: inline-block;
  width: 3px;
  background: #FF6B00;
  border-radius: 2px;
  animation: shionEqBounce 0.9s ease-in-out infinite;
}
.shion-eq span:nth-child(1) { height: 6px; animation-delay: 0s; }
.shion-eq span:nth-child(2) { height: 13px; animation-delay: -0.2s; background: #00A896; }
.shion-eq span:nth-child(3) { height: 9px; animation-delay: -0.4s; }
.shion-eq span:nth-child(4) { height: 14px; animation-delay: -0.6s; background: #4361EE; }
@keyframes shionEqBounce {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}

/* Inner Page SHION Mentor Banner */
.shion-mentor-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, rgba(6, 22, 58, 0.92), rgba(16, 36, 88, 0.92));
  border: 2px solid rgba(0, 245, 212, 0.45);
  border-radius: 24px;
  padding: 16px 24px;
  margin-top: 24px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}
.shion-mentor-strip-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.shion-mentor-strip-avatar {
  width: 64px; height: 64px;
  border-radius: 18px;
  object-fit: cover;
  object-position: center top;
  border: 2px solid #FFB800;
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.4);
  flex-shrink: 0;
}
@media (max-width: 820px) {
  .shion-mentor-strip { flex-direction: column; align-items: flex-start; }
  .shion-companion-dock { bottom: 14px; right: 14px; }
  .shion-companion-avatar { width: 54px; height: 54px; }
}
