/* ============================================================
   NEXRAY.IN — Global CSS
   Light Theme | Blue #0038FF + Neon Green #CCFF00 Palette
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

/* ── Theme Definitions ─────────────────────────────────────── */
:root {
  --brand:          #0038FF; /* Hero Blue */
  --brand-dim:      rgba(0,56,255,0.10);
  --brand-glow:     rgba(0,56,255,0.20);
  --brand-gradient: linear-gradient(135deg, #0038FF, #CCFF00);
  --accent:         #CCFF00; /* Hero Neon Green */
  --bg:             #fafafa;
  --bg-2:           #f1f5f9;
  --bg-card:        rgba(0,0,0,0.03);
  --bg-card-h:      rgba(0,0,0,0.06);
  --glass:          rgba(255,255,255,0.85);
  --glass-b:        rgba(0,0,0,0.08);
  --text:           #0f172a;
  --text-2:         #334155;
  --text-3:         #64748b;
  --shadow:         0 4px 24px rgba(0,0,0,0.08);
  --shadow-brand:   0 8px 30px rgba(0,56,255,0.18);
  --radius:         16px;
  --radius-sm:      8px;
  --radius-lg:      24px;
  --radius-full:    9999px;
  --nav-h:          72px;
  --bg-grid:        radial-gradient(circle at center, rgba(0,0,0,0.05) 1.5px, transparent 1.5px);
  color-scheme: light;
}

/* ── Reset ─────────────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-font-smoothing:antialiased;font-size:16px;overflow-x:hidden}
body{
  font-family:'Inter',system-ui,sans-serif;
  background-color: var(--bg);
  background-image: var(--bg-grid);
  background-size: 30px 30px;
  background-position: center;
  color:var(--text);
  line-height:1.75;
  min-height:100vh;
  overflow-x:hidden;
  transition:background-color .3s,color .3s;
  font-weight: 500;
}
img,video{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
ul,ol{list-style:none}
button,input,textarea,select{font:inherit;cursor:pointer}

/* ── Typography Overrides for Headings ──────────────────────── */
h1, h2, h3, h4, h5, h6, .stage-card-title, .content-heading, #hero-heading {
  font-family: 'Fira Code', 'Courier New', monospace !important;
  letter-spacing: -0.05em !important;
  font-weight: 900 !important; /* Maximum boldness for headers */
  color: var(--text);
}
.text-accent-safe {
  color: #a8d600; /* Slightly deeper green for better contrast on white */
  text-shadow: 0 0 1px rgba(0,0,0,0.1);
}

/* Scrollbar */
::-webkit-scrollbar{width:5px}

/* Global Social Removal */
.footer-social, .social-share-bar, .floating-share {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
::-webkit-scrollbar-track{background:var(--bg-2)}
::-webkit-scrollbar-thumb{background:var(--brand);border-radius:99px}
::selection{background:var(--brand);color:#fff}

/* ── Lucide Icons ───────────────────────────────────────────── */
.icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.icon svg{width:1em;height:1em;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.icon-sm svg{width:16px;height:16px}
.icon-md svg{width:20px;height:20px}
.icon-lg svg{width:24px;height:24px}
.icon-xl svg{width:32px;height:32px}
.icon-brand{color:var(--brand)}

/* ── Navigation ─────────────────────────────────────────────── */
.nav{
  position:fixed;top:0;left:0;right:0;
  height:var(--nav-h);
  z-index:1000;
  padding:0 1.5rem;
  display:flex;align-items:center;justify-content:space-between;
  background:rgba(255,255,255,0.65);
  backdrop-filter:blur(24px) saturate(180%);
  -webkit-backdrop-filter:blur(24px) saturate(180%);
  border-bottom:2px solid #CCFF00;
  box-shadow:0 4px 30px rgba(0,56,255,0.06);
  transition:background .3s,border-color .3s,box-shadow .3s,transform .3s ease;
}
.nav.nav-hidden {
  transform: translateY(-100%);
}

.nav-logo{display:flex;align-items:center;gap:.5rem;font-weight:900;font-size:1.3rem;letter-spacing:-.03em}
.nav-links a { font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--brand); }
.nav-links a.active { color: var(--brand); }
.nav-logo .logo-icon{
  width:34px;height:34px;
  background:var(--brand-gradient);
  border-radius:9px;
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:.9rem;
  box-shadow:var(--shadow-brand);
}
.nav-logo .logo-accent{color:var(--brand)}

.nav-links{display:flex;align-items:center;gap:.25rem}
.nav-links a{
  padding:6px 13px;border-radius:var(--radius-full);
  font-size:.85rem;font-weight:500;color:var(--text-2);
  transition:all .2s;white-space:nowrap;
}
.nav-links a:hover,.nav-links a.active{color:var(--brand);background:var(--brand-dim)}
.nav-cta{
  padding:8px 18px !important;
  background:var(--brand-gradient) !important;
  color:#fff !important;font-weight:600 !important;
  border-radius:var(--radius-full) !important;
  box-shadow:var(--shadow-brand);
  transition:transform .25s,box-shadow .25s !important;
}
.nav-cta:hover{box-shadow:0 0 20px var(--brand-glow)!important}

/* Theme toggle */
.theme-toggle{
  display:flex;gap:4px;
  background:var(--bg-card);
  border:1px solid var(--glass-b);
  border-radius:var(--radius-full);
  padding:3px;
}
.theme-btn{
  border:none;background:none;
  padding:5px 10px;border-radius:var(--radius-full);
  font-size:.75rem;font-weight:600;
  color:var(--text-2);transition:all .2s;
  display:flex;align-items:center;gap:4px;
}
.theme-btn.active{background:var(--brand);color:#fff;box-shadow:var(--shadow-brand)}
.theme-btn:hover:not(.active){background:var(--bg-card-h);color:var(--text)}

/* Sign in button */
.btn-signin{
  display:flex;align-items:center;gap:.5rem;
  padding:7px 14px;
  background:var(--glass);
  border:1px solid var(--glass-b);
  border-radius:var(--radius-full);
  font-size:.82rem;font-weight:600;color:var(--text);
  transition:all .2s;
}
.btn-signin:hover{border-color:var(--brand);color:var(--brand)}

/* User avatar */
.user-avatar{
  width:32px;height:32px;border-radius:50%;
  object-fit:cover;border:2px solid var(--brand);
  cursor:pointer;
}

/* Hamburger */
.nav-hamburger{display:none;flex-direction:column;gap:5px;background:none;border:none;padding:4px}
.nav-hamburger span{display:block;width:22px;height:2px;background:var(--text);border-radius:2px;transition:all .3s}
.nav-mobile{
  display:none;position:fixed;top:var(--nav-h);left:0;right:0;
  background:var(--bg);backdrop-filter:blur(20px);
  padding:1rem 1.5rem;flex-direction:column;gap:.5rem;
  border-bottom:1px solid var(--glass-b);z-index:999;
}
.nav-mobile.open{display:flex}
.nav-mobile a{
  padding:.625rem .875rem;border-radius:var(--radius);
  color:var(--text-2);font-weight:500;
  display:flex;align-items:center;gap:.625rem;font-size:.9rem;
  transition:all .2s;
}
.nav-mobile a:hover{color:var(--brand);background:var(--brand-dim)}

/* Progress bar */
.progress-bar{position:fixed;top:var(--nav-h);left:0;right:0;height:2px;background:var(--glass-b);z-index:999}
.progress-fill{height:100%;background:var(--brand-gradient);width:0%;transition:width 80ms linear;box-shadow:0 0 8px var(--brand-glow)}

/* Page wrapper */
.page-wrapper{padding-top:var(--nav-h)}

/* ── Layout Utilities ───────────────────────────────────────── */
.section{padding:5rem 1.5rem;max-width:1180px;margin:0 auto}
.section-sm{padding:3.5rem 1.5rem;max-width:1180px;margin:0 auto}
.container{max-width:1180px;margin:0 auto;padding:0 1.5rem}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:1.25rem}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem}
.grid-auto{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.25rem}
.flex{display:flex}.flex-center{display:flex;align-items:center;justify-content:center}
.flex-between{display:flex;align-items:center;justify-content:space-between}
.flex-wrap{flex-wrap:wrap}
.gap-sm{gap:.5rem}.gap-md{gap:1rem}.gap-lg{gap:1.5rem}
.text-center{text-align:center}
.mt-sm{margin-top:.5rem}.mt-md{margin-top:1rem}.mt-lg{margin-top:1.5rem}
.mt-xl{margin-top:2rem}.mt-2xl{margin-top:3rem}.mt-3xl{margin-top:4rem}
.mb-sm{margin-bottom:.5rem}.mb-md{margin-bottom:1rem}.mb-lg{margin-bottom:1.5rem}
.mb-xl{margin-bottom:2rem}.mb-2xl{margin-bottom:3rem}

/* ── Glass Card ─────────────────────────────────────────────── */
.glass-card{
  background:var(--glass);
  border:1px solid rgba(255,255,255,0.12);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.05), 0 4px 20px rgba(0,0,0,0.15);
  border-radius:var(--radius-lg);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  padding:1.75rem;
  transition:all .25s;
}
.glass-card:hover{
  background:var(--bg-card-h);
  border-color:var(--brand);
  box-shadow:var(--shadow-brand);
}

.stage-card-title { font-weight: 900 !important; font-size: 1.15rem; margin-bottom: 0.5rem; }
.stage-card-desc { font-weight: 600; font-size: 0.9rem; line-height: 1.6; }

/* ── Buttons (Premium Marketing Setup) ───────────────────────── */
.btn{
  display:inline-flex;align-items:center;gap:.6rem;
  padding:12px 28px;border:none;border-radius:30px;
  font-size:.92rem;font-weight:800;cursor:pointer;
  transition:all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Native spring physics */
  white-space:nowrap;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 200%;
}

.btn:active {
  transform: scale(0.92);
}

.btn-primary{
  background:var(--brand-gradient);
  color:#fff !important;
  box-shadow: 0 4px 14px var(--brand-glow), inset 0px -2px 0px rgba(0,0,0,0.15);
}
.btn-primary:hover{
  box-shadow: 0 10px 30px var(--brand-glow), inset 0px -2px 0px rgba(0,0,0,0.15);
  transform: translateY(-3px) scale(1.02);
}

.btn-secondary{
  background:#ffffff;
  border:2px solid var(--brand);
  color:var(--brand) !important;
  backdrop-filter:blur(12px);
}
.btn-secondary:hover{
  background: var(--brand);
  color: #ffffff !important;
}

.btn-outline{background:transparent;border:1.5px solid var(--brand);color:var(--brand)}
.btn-outline:hover{background:var(--brand-dim);}
.btn-sm{padding:7px 16px;font-size:.8rem}
.btn-lg{padding:15px 36px;font-size:1.05rem}
.btn-full{width:100%;justify-content:center}

/* Canvas — Bright & immersive for top notch branding */
#hero-canvas, #stage-canvas, .hero-canvas {
  opacity: 0.35 !important;
  pointer-events: none;
  filter: blur(0px);
}

/* ── Tags / Badges ──────────────────────────────────────────── */
.badge{
  display:inline-flex;align-items:center;gap:6px;
  padding:5px 12px;border-radius:var(--radius-full);
  font-size:.75rem;font-weight:900; /* Max bold for badges */
  letter-spacing:.05em;
  text-transform: uppercase;
}
.badge-brand{background:var(--brand-dim);color:var(--brand);border:1px solid var(--brand-glow)}
.badge-green{background:rgba(204,255,0,0.15);color:#5a7a00;border:1px solid rgba(204,255,0,0.4)}
.badge-yellow{background:rgba(204,255,0,0.12);color:#6b8000;border:1px solid rgba(204,255,0,0.3)}
.badge-red{background:rgba(239,68,68,.10);color:#dc2626;border:1px solid rgba(239,68,68,.2)}
.badge-blue{background:rgba(0,56,255,.10);color:#0038FF;border:1px solid rgba(0,56,255,.25)}
.badge-purple{background:rgba(0,56,255,.08);color:#0038FF;border:1px solid rgba(0,56,255,.2)}
.badge-muted{background:var(--bg-card);color:var(--text-2);border:1px solid var(--glass-b)}

/* Level badges — using brand palette */
.level-beginner{background:rgba(204,255,0,0.15);color:#4a6300;border:1px solid rgba(204,255,0,0.45)}
.level-intermediate{background:rgba(0,56,255,0.10);color:#0038FF;border:1px solid rgba(0,56,255,0.3)}
.level-advanced{background:rgba(239,68,68,.10);color:#dc2626;border:1px solid rgba(239,68,68,.2)}

/* XP badge */
.xp-badge{
  display:inline-flex;align-items:center;gap:4px;
  background:#CCFF00;color:#2a3f00;
  border:1px solid rgba(0,0,0,0.12);
  padding:3px 10px;border-radius:var(--radius-full);
  font-size:.7rem;font-weight:800;
}

/* ── Stage Hero ─────────────────────────────────────────────── */
.stage-hero{
  background:linear-gradient(180deg,var(--bg-2) 0%,var(--bg) 100%);
  padding:5rem 1.5rem 4rem;
  text-align:center;
  position:relative;overflow:hidden;
}
.stage-hero canvas{position:absolute;inset:0;z-index:0;pointer-events:none}
.stage-hero .hero-content{position:relative;z-index:1;max-width:760px;margin:0 auto}
.stage-badge{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:7px 18px;
  background:var(--brand-dim);
  border:1px solid var(--brand-glow);
  border-radius:var(--radius-full);
  color:var(--brand);font-size:.72rem;font-weight:700;
  text-transform:uppercase;letter-spacing:.08em;
  margin-bottom:1.25rem;
}
.stage-title{
  font-family:'Space Grotesk',sans-serif;
  font-size:clamp(2.2rem,5vw,3.8rem);
  font-weight:900;line-height:1.1;
  background:linear-gradient(135deg,var(--text) 0%,var(--brand) 100%);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;
  margin-bottom:1rem;
}
.stage-desc{font-size:1.05rem;color:var(--text-2);max-width:580px;margin:0 auto 1.5rem;line-height:1.8}
.stage-meta{display:flex;align-items:center;justify-content:center;gap:2rem;flex-wrap:wrap;color:var(--text-2);font-size:.85rem}
.stage-meta-item{display:flex;align-items:center;gap:.375rem}

/* ── Code Blocks ────────────────────────────────────────────── */
.code-block{background:#ffffff;border:1px solid #e2e8f0;border-radius:var(--radius);overflow:hidden;margin:1.5rem 0;box-shadow:0 4px 6px -1px rgba(0,0,0,0.05);}.code-header{background:#f8fafc;padding:.75rem 1.25rem;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;align-items:center;}
.code-dots{display:flex;gap:5px}
.code-dots span{width:11px;height:11px;border-radius:50%}
.code-dots span:nth-child(1){background:#ff5f57}
.code-dots span:nth-child(2){background:#febc2e}
.code-dots span:nth-child(3){background:#CCFF00}
.code-lang{font-size:.68rem;color:#CCFF00;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.code-copy{
  background:none;border:1px solid rgba(204,255,0,0.3);
  color:#CCFF00;padding:3px 9px;border-radius:var(--radius-sm);
  font-size:.7rem;cursor:pointer;transition:all .2s;
}
.code-copy:hover{border-color:#CCFF00;background:rgba(204,255,0,0.1)}
.code-content{padding:1.25rem;overflow-x:auto;font-size:.82rem;line-height:1.85;color:var(--text);background:rgba(255,255,255,0.03);border:1px solid var(--glass-b);border-radius:0 0 var(--radius) var(--radius);}

/* Syntax colors - Light Theme Friendly High Contrast */
.kw{color:#0038FF;font-weight:700}   /* Blue keywords */
.str{color:#0b7e3f}                  /* Green strings */
.num{color:#ea580c}                  /* Orange numbers */
.cmt{color:#64748b;font-style:italic}/* Slate comments */
.fn{color:#2563eb}                   /* Bright blue functions */
.tag-hl{color:#d33}                  /* Flat red tags */
.attr{color:#4f46e5}                 /* Indigo attributes */

/* ── Callouts ───────────────────────────────────────────────── */
.callout{
  display:flex;gap:1rem;padding:1.25rem 1.5rem;
  border-radius:var(--radius);margin:1.25rem 0;
  font-size:.88rem;line-height:1.8;
}
.callout-icon{font-size:1.25rem;flex-shrink:0;margin-top:2px}
.callout-tip{background:rgba(34,197,94,.07);border:1px solid rgba(34,197,94,.18)}
.callout-info{background:rgba(59,130,246,.07);border:1px solid rgba(59,130,246,.18)}
.callout-warning{background:rgba(245,158,11,.07);border:1px solid rgba(245,158,11,.18)}
.callout-danger{background:rgba(239,68,68,.07);border:1px solid rgba(239,68,68,.18)}
.callout-pro{background:rgba(0,56,255,.07);border:1px solid rgba(0,56,255,.18)}
.callout-tip .callout-head{color:#4ade80}.callout-info .callout-head{color:#60a5fa}
.callout-warning .callout-head{color:#fbbf24}.callout-danger .callout-head{color:#f87171}
.callout-pro .callout-head{color:var(--brand)}
.callout-head{font-weight:700;margin-bottom:3px;font-size:.9rem}
.callout-body{color:var(--text-2)}

/* ── Step Cards ─────────────────────────────────────────────── */
.step-card{
  display:flex;gap:1.25rem;padding:1.5rem;
  background:var(--glass);border:1px solid var(--glass-b);
  border-radius:var(--radius-lg);margin-bottom:1rem;
  transition:all .25s;
}
.step-card:hover{border-color:rgba(0,56,255,.3);background:var(--brand-dim);}
.step-number{
  flex-shrink:0;width:44px;height:44px;
  background:var(--brand-gradient);border-radius:var(--radius);
  display:flex;align-items:center;justify-content:center;
  font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:1.1rem;color:#fff;
  box-shadow:var(--shadow-brand);
}
.step-content h3{font-size:1rem;font-weight:700;margin-bottom:.25rem}
.step-content p{color:var(--text-2);font-size:.875rem;line-height:1.8}

/* ── TOC ────────────────────────────────────────────────────── */
.toc{
  background:var(--glass);border:1px solid var(--glass-b);
  border-radius:var(--radius-lg);padding:1.5rem;margin-bottom:2rem;
}
.toc-title{font-size:.95rem;font-weight:700;margin-bottom:.875rem;color:var(--brand)}
.toc-list{display:flex;flex-direction:column;gap:2px}
.toc-list a{
  display:flex;align-items:center;gap:.5rem;
  color:var(--text-2);font-size:.85rem;padding:5px 9px;
  border-radius:var(--radius-sm);transition:all .15s;
}
.toc-list a:hover{color:var(--brand);background:var(--brand-dim)}
.toc-list a::before{content:'';width:5px;height:5px;border-radius:50%;background:var(--brand);flex-shrink:0;opacity:.6}

/* ── Feature List ───────────────────────────────────────────── */
.feature-list{display:flex;flex-direction:column;gap:.625rem}
.feature-item{display:flex;align-items:center;gap:.625rem;color:var(--text-2);font-size:.875rem}
.feature-item::before{
  content:'';width:20px;height:20px;
  background:#CCFF00;border:1px solid rgba(0,0,0,0.12);
  border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-size:.65rem;color:#2a3f00;flex-shrink:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a3f00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size:12px;background-repeat:no-repeat;background-position:center;
}

/* ── Guide Nav ──────────────────────────────────────────────── */
.guide-nav{
  display:flex;justify-content:space-between;align-items:center;
  gap:1rem;padding:2.5rem 1.5rem;
  border-top:1px solid var(--glass-b);margin-top:3rem;
}
.guide-nav-btn{
  display:flex;align-items:center;gap:.75rem;
  padding:1rem 1.25rem;
  background:var(--glass);border:1px solid var(--glass-b);
  border-radius:var(--radius-lg);color:var(--text-2);
  font-size:.85rem;font-weight:600;transition:all .25s;
  max-width:240px;
}
.guide-nav-btn:hover{border-color:var(--brand);color:var(--brand);background:var(--brand-dim);}
.guide-nav-btn.next{margin-left:auto;text-align:right}
.guide-nav-btn .nav-arrow{font-size:1.1em}
.guide-nav-btn .nav-label{font-size:.72rem;color:var(--text-3);display:block;font-weight:400}

/* ── Scroll Reveal Animations ───────────────────────────────── */
.reveal{opacity:0;transform:translateY(30px);transition:opacity .6s ease,transform .6s ease}
.reveal.revealed{opacity:1;transform:none}
.reveal-left{opacity:0;transform:translateX(-30px);transition:opacity .6s ease,transform .6s ease}
.reveal-left.revealed{opacity:1;transform:none}
.reveal-right{opacity:0;transform:translateX(30px);transition:opacity .6s ease,transform .6s ease}
.reveal-right.revealed{opacity:1;transform:none}
/* Stagger children */
.stagger-children > *{opacity:0;transform:translateY(24px);transition:opacity .5s ease,transform .5s ease}
.stagger-children.revealed > *:nth-child(1){opacity:1;transform:none;transition-delay:.05s}
.stagger-children.revealed > *:nth-child(2){opacity:1;transform:none;transition-delay:.12s}
.stagger-children.revealed > *:nth-child(3){opacity:1;transform:none;transition-delay:.19s}
.stagger-children.revealed > *:nth-child(4){opacity:1;transform:none;transition-delay:.26s}
.stagger-children.revealed > *:nth-child(5){opacity:1;transform:none;transition-delay:.33s}
.stagger-children.revealed > *:nth-child(6){opacity:1;transform:none;transition-delay:.40s}
.stagger-children.revealed > *:nth-child(7){opacity:1;transform:none;transition-delay:.47s}
.stagger-children.revealed > *:nth-child(8){opacity:1;transform:none;transition-delay:.54s}

/* Keyframes */
@keyframes fadeInUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@keyframes pulse-glow{0%,100%{box-shadow:var(--shadow-brand)}50%{box-shadow:0 0 50px var(--brand-glow)}}
@keyframes spin{from{transform:rotate(0)}to{transform:rotate(360deg)}}
@keyframes shimmer{0%{background-position:-200% center}100%{background-position:200% center}}

.float-anim{animation:float 4s ease-in-out infinite}
.pulse-anim{animation:pulse-glow 2.5s ease infinite}
.spin-anim{animation:spin 10s linear infinite}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes dev-badge-pulse {
  0% { transform: scale(1); box-shadow: 0 0 10px rgba(220,38,38,0.5); }
  50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(220,38,38,0.8); }
  100% { transform: scale(1); box-shadow: 0 0 10px rgba(220,38,38,0.5); }
}

/* ── Skeleton Loading ───────────────────────────────────────── */
.skeleton{
  background:linear-gradient(90deg,var(--bg-card) 25%,var(--bg-card-h) 37%,var(--bg-card) 63%);
  background-size:400% 100%;
  animation:shimmer 1.4s ease infinite;
  border-radius:var(--radius-sm);
}

/* ── Divider ────────────────────────────────────────────────── */
.divider{height:1px;background:var(--glass-b);margin:2.5rem 0}

/* ── Content Typography ─────────────────────────────────────── */
h2.content-heading{
  font-family:'Space Grotesk',sans-serif;
  font-size:clamp(1.4rem,3vw,1.9rem);
  font-weight:900; /* Bolder headings */
  margin:2.5rem 0 .875rem;
  color:var(--text);scroll-margin-top:90px;
  display:flex;align-items:center;gap:.625rem;
}
h3.content-subheading{font-size:1.15rem;font-weight:800;margin:1.75rem 0 .5rem;display:flex;align-items:center;gap:.5rem}
p.content-text{color:var(--text-2);font-size:1rem;line-height:1.9;margin-bottom:.875rem; font-weight: 500;}
code{
  font-family:'Fira Code',monospace;font-size:.85em;
  background:var(--bg-card-h);border:1px solid var(--glass-b);
  padding:2px 7px;border-radius:5px;color:var(--brand);
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer{
  background:var(--bg-2);border-top:1px solid var(--glass-b);
  padding:5rem 1.5rem 2.5rem; /* More breathing room */
}
.footer-grid{
  display:grid;grid-template-columns:2fr repeat(3,1fr);
  gap:2.5rem;max-width:1180px;margin:0 auto 2rem;
}
.footer-brand .brand-desc{color:var(--text-2);font-size:.9rem;line-height:1.8;margin:.875rem 0 1.25rem; font-weight: 500;}
.footer-col h4{font-size:.8rem;font-weight:900;color:var(--text);margin-bottom:1.25rem;text-transform:uppercase;letter-spacing:.1em}
.footer-col a{display:flex;align-items:center;gap:.375rem;color:var(--text-2);font-size:.9rem;padding:6px 0;transition:all .2s; font-weight: 700;}
.footer-col a:hover{color:var(--brand);}
.footer-bottom{
  max-width:1180px;margin:0 auto;padding-top:2rem;
  border-top:1px solid var(--glass-b);
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1.5rem;
  color:var(--text-3);font-size:.85rem; font-weight: 700;
}
.footer-bottom a{color:var(--text-2);transition:color .2s; font-weight: 800;}
.footer-bottom a:hover{color:var(--brand)}
.footer-legal{display:flex;gap:1.25rem;flex-wrap:wrap}


/* ── Mission Statement / Highlight Blocks ───────────────────── */
.highlight-block{
  position:relative;padding:2.5rem;
  border-radius:var(--radius-lg);
  background:var(--glass);border:1px solid var(--glass-b);
  overflow:hidden;
}
.highlight-block::before{
  content:'';position:absolute;top:0;left:0;right:0;height:3px;
  background:var(--brand-gradient);
}

/* ── Stage Card (for homepage) ──────────────────────────────── */
.stage-card{
  background:#ffffff;
  border:1px solid rgba(0,56,255,0.12);
  box-shadow:0 2px 16px rgba(0,0,0,0.06);
  border-radius:var(--radius-lg);
  padding:1.5rem;
  transition:all .25s cubic-bezier(.34,1.56,.64,1);
  display:flex;flex-direction:column;gap:.875rem;
  cursor:pointer;text-decoration:none;color:inherit;
  position:relative;overflow:hidden;
}
.stage-card::after{
  content:'';position:absolute;inset:0;
  background:var(--brand-gradient);opacity:0;
  transition:opacity .25s;z-index:0;pointer-events:none;
}
.stage-card:hover{
  border-color:rgba(0,56,255,.35);
  box-shadow:0 8px 30px rgba(0,56,255,0.18), inset 0 0 0 1px rgba(0,56,255,0.1);
  transform: translateY(-3px);
}
.stage-card > *{position:relative;z-index:1}
.stage-card-icon{
  width:48px;height:48px;
  background:var(--brand-dim);border:1px solid var(--brand-glow);
  border-radius:var(--radius);
  display:flex;align-items:center;justify-content:center;
  color:var(--brand);font-size:1.2rem;
}
.stage-card-num{font-size:.72rem;font-weight:700;color:var(--text-3);text-transform:uppercase;letter-spacing:.06em}
.stage-card-title{font-family:'Space Grotesk',sans-serif;font-size:1.1rem;font-weight:700}
.stage-card-desc{color:var(--text-2);font-size:.83rem;line-height:1.7;flex:1}
.stage-card-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.5rem}
.stage-card-meta{display:flex;align-items:center;gap:.375rem;color:var(--text-3);font-size:.75rem}
.stage-card-arrow{color:var(--brand);display:flex;align-items:center;transition:transform .2s}
.stage-card:hover .stage-card-arrow{transform:translateX(4px)}

/* ── Blog Cards ─────────────────────────────────────────────── */
.blog-card{
  background:var(--glass);border:1px solid var(--glass-b);
  border-radius:var(--radius-lg);overflow:hidden;
  transition:all .25s;display:flex;flex-direction:column;
}
.blog-card:hover{box-shadow:var(--shadow-brand);border-color:rgba(0,56,255,.25)}
.blog-card-img{width:100%;aspect-ratio:16/9;object-fit:cover;background:var(--bg-2)}
.blog-card-body{padding:1.25rem;display:flex;flex-direction:column;gap:.625rem;flex:1}
.blog-card-title{font-weight:700;font-size:1rem;line-height:1.45}
.blog-card-excerpt{color:var(--text-2);font-size:.83rem;line-height:1.7;flex:1}
.blog-card-footer{display:flex;align-items:center;justify-content:space-between;font-size:.75rem;color:var(--text-3);padding-top:.625rem;border-top:1px solid var(--glass-b);margin-top:.25rem}

/* ── Auth / Form ────────────────────────────────────────────── */
.auth-card{
  max-width:420px;margin:0 auto;
  background:var(--glass);border:1px solid var(--glass-b);
  border-radius:var(--radius-lg);padding:2.5rem;
}
.form-group{display:flex;flex-direction:column;gap:.375rem;margin-bottom:1rem}
.form-label{font-size:.83rem;font-weight:600;color:var(--text-2)}
.form-input,.form-textarea,.form-select{
  background:var(--bg-card);border:1px solid var(--glass-b);
  border-radius:var(--radius);padding:.75rem 1rem;
  color:var(--text);font-size:.9rem;font-family:inherit;
  transition:border-color .2s,box-shadow .2s;outline:none;
  -webkit-appearance:none;appearance:none;
}
.form-input:focus,.form-textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-dim)}
.form-textarea{resize:vertical;min-height:120px}
.form-select option{background:var(--bg-2);color:var(--text)}
.form-divider{display:flex;align-items:center;gap:.875rem;margin:1.25rem 0;color:var(--text-3);font-size:.8rem}
.form-divider::before,.form-divider::after{content:'';flex:1;height:1px;background:var(--glass-b)}

/* Google button */
.btn-google{
  display:flex;align-items:center;justify-content:center;gap:.625rem;
  width:100%;padding:.75rem;
  background:var(--glass);border:1px solid var(--glass-b);
  border-radius:var(--radius);font-size:.9rem;font-weight:600;
  color:var(--text);transition:all .2s;
}
.btn-google:hover{border-color:var(--brand);box-shadow:var(--shadow-brand)}

/* ── Admin ──────────────────────────────────────────────────── */
.admin-sidebar{
  width:240px;flex-shrink:0;
  background:var(--bg-2);border-right:1px solid var(--glass-b);
  padding:1.5rem 1rem;display:flex;flex-direction:column;gap:.25rem;
  min-height:100vh;
}
.admin-nav-item{
  display:flex;align-items:center;gap:.625rem;
  padding:.625rem .875rem;border-radius:var(--radius);
  color:var(--text-2);font-size:.875rem;font-weight:500;
  transition:all .2s;cursor:pointer;
}
.admin-nav-item:hover,.admin-nav-item.active{background:var(--brand-dim);color:var(--brand)}
.admin-main{flex:1;padding:2rem;overflow-y:auto}
.stat-card{
  background:var(--glass);border:1px solid var(--glass-b);
  border-radius:var(--radius-lg);padding:1.5rem;
  display:flex;flex-direction:column;gap:.375rem;
}
.stat-value{font-family:'Space Grotesk',sans-serif;font-size:2rem;font-weight:800;color:var(--brand)}
.stat-label{color:var(--text-2);font-size:.83rem}
.stat-change{font-size:.75rem;color:#4ade80;display:flex;align-items:center;gap:.25rem}

/* ── Progress Track ─────────────────────────────────────────── */
.progress-track{
  display:flex;gap:0;position:relative;
}
.progress-track::before{
  content:'';position:absolute;top:20px;left:20px;right:20px;height:2px;
  background:var(--glass-b);z-index:0;
}
.progress-step{
  flex:1;display:flex;flex-direction:column;align-items:center;gap:.5rem;
  position:relative;z-index:1;
}
.progress-step-dot{
  width:40px;height:40px;border-radius:50%;
  background:var(--bg-card);border:2px solid var(--glass-b);
  display:flex;align-items:center;justify-content:center;
  font-size:.8rem;font-weight:700;color:var(--text-2);
  transition:all .3s;
}
.progress-step.done .progress-step-dot{background:var(--brand-gradient);border-color:transparent;color:#fff}
.progress-step.active .progress-step-dot{border-color:var(--brand);color:var(--brand);box-shadow:0 0 0 6px var(--brand-dim)}
.progress-step-label{font-size:.7rem;color:var(--text-3);text-align:center;max-width:70px}
.progress-step.done .progress-step-label{color:var(--brand)}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width:1024px){
  .grid-4{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:768px){
  .nav-links,.nav-cta,.theme-toggle{display:none}
  .nav-hamburger{display:flex}
  .grid-2,.grid-3,.grid-4{grid-template-columns:1fr; gap: 1.5rem;}
  .guide-nav{flex-direction:column; gap: 1rem;}
  .guide-nav-btn{max-width:100%;width:100%;justify-content:center; padding: 1.25rem;}
  .section{padding:4rem 1.5rem} /* Bolder padding for mobile spacing */
  .footer-grid{grid-template-columns:1fr}
  .admin-sidebar{display:none}
  .stage-meta{gap:1rem}
  html{font-size: 16px;} /* Minimum 16px for mobile readability */
  /* Touch-friendly tap targets */
  .nav-mobile a{min-height:44px;padding:.75rem .875rem}
  .btn{min-height:44px}
  .footer-col a{min-height:44px;align-items:center}
}
@media (max-width:480px){
  .hero-actions{flex-direction:column}
  .btn{width:100%;justify-content:center; font-weight: 800;}
  .footer-legal{flex-direction:column;gap:1.5rem; text-align: center;}
  .stage-hero { min-height: 50vh !important; }
  h1 { font-size: 2.5rem !important; }
}

/* ── Hide scrollbar (optional) ──────────────────────────────── */
.hide-scroll{-ms-overflow-style:none;scrollbar-width:none}
.hide-scroll::-webkit-scrollbar{display:none}

/* ── Custom UI Enhancements ─────────────────────────────────── */
/* Custom Cursor — orange arrow */
@media (pointer: fine) {
  body,
  a, button, input, textarea, select, .stage-card, .btn {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='26' viewBox='0 0 22 26'%3E%3Cpolygon points='2,2 2,22 8,16 12,24 15,23 11,15 19,15' fill='%23f97316' stroke='%23fff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 2 2, auto !important;
  }
  #custom-cursor { display: none !important; }
}

/* Loading Screen */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--glass-b);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: loader-spin 1s linear infinite;
  margin-bottom: 20px;
}
@keyframes loader-spin { 
  100% { transform: rotate(360deg); } 
}
.loader-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
  margin-top: 0;
  letter-spacing: 0.02em;
  text-align: center;
  max-width: 220px;
  line-height: 1.5;
}

/* Pop showcase */
.pop-showcase {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.pop-showcase:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: var(--shadow-brand);
  z-index: 10;
}

/* Showcase Components */
.showcase-layer-btn {
  position: relative;
  display: flex;
  height: 50px;
  width: 180px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  background: var(--brand);
  box-shadow: 8px 8px 0px rgba(255,255,255,0.1);
  transition: all 0.3s ease;
  z-index: 10;
}
.showcase-layer-btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, transparent, transparent, #fff);
  animation: spin-slow 4s linear infinite;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}
.showcase-layer-btn:hover {
  transform: translateY(5px);
  box-shadow: 3px 3px 0px rgba(255,255,255,0.2);
}
.showcase-layer-btn:hover::before {
  opacity: 1;
}
.showcase-layer-btn span {
  font-weight: 600;
  color: #fff;
  transition: color 0.3s;
}

@keyframes spin-slow {
  100% { transform: rotate(360deg); }
}


/* -- Mobile Navigation Dock ---------------------------------- */
.static-dock-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 0.75rem calc(1.25rem + env(safe-area-inset-bottom));
  z-index: 2000;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.static-dock {
  background: rgba(15, 15, 20, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 0.6rem;
  display: flex;
  gap: 0.4rem;
  pointer-events: auto;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.mobile-dock-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 20px;
}

.mobile-dock-btn:active {
  background: rgba(255, 255, 255, 0.05);
  transform: scale(0.92);
}

.mobile-dock-btn svg {
  width: 22px;
  height: 22px;
}

.mobile-dock-dot {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  background: var(--brand);
  border-radius: 50%;
  opacity: 1;
  transition: opacity 0.2s;
  display: none;
}

/* -- Logo Image ---------------------------------------------- */
.nav-logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-brand .nav-logo-img {
  height: 64px;
}

/* -- Mobile Layout Architecture (Redesigned) ------------------- */
@media (max-width: 768px) {
  /* Prevent horizontal scroll while maintaining natural flow */
  html, body {
    overflow-x: hidden;
    width: 100%;
    /* Subtle touch target and smooth scrolling optimizations */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
  
  /* Proper framing and margins */
  .container {
    width: 100%;
    margin: 0 auto;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    box-sizing: border-box;
  }
  
  /* Reduced vertical rhythms for mobile compactness */
  .section {
    padding: 3rem 1.25rem !important;
    width: 100%;
    box-sizing: border-box;
  }

  /* Fluid typography scaling for readability grids */
  h1 { font-size: 2.25rem !important; line-height: 1.15; }
  h2 { font-size: 1.75rem !important; line-height: 1.25; }
  h3 { font-size: 1.25rem !important; line-height: 1.35; }
  p { font-size: 1rem !important; line-height: 1.6; word-break: break-word; }
  
  /* Hide the bottom dock on mobile to save screen real-estate */
  .static-dock, .static-dock-wrapper {
    display: none !important;
  }
  
  /* Standard Grid Collapse (for structural layout like Hero/CTA) */
  .grid-2, .hero-grid, .cta-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem !important;
    width: 100%;
    box-sizing: border-box;
  }

  /* Horizontal Snap-Scroll Slider (for repetative cards, less vertical scrolling!) */
  .grid-3, .grid-4 {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem !important;
    padding-bottom: 1.5rem; /* Room for shadow */
    margin-right: -1.25rem; /* Bleed to edge */
    padding-right: 1.25rem;
    -ms-overflow-style: none; /* IE/Edge */
    scrollbar-width: none;    /* Firefox */
  }
  .grid-3::-webkit-scrollbar, .grid-4::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
  }
  
  /* Framed Cards */
  .glass-card, .stage-card, .feature-card, .step-card {
    /* If inside a snap-scroll container, fix width to 85% to peek next card */
    width: 100%;
    box-sizing: border-box;
    padding: 1.5rem !important;
    border-radius: var(--radius-lg, 20px);
    margin-bottom: 0.5rem;
  }
  
  .grid-3 > .glass-card, .grid-3 > .stage-card, .grid-3 > .feature-card, .grid-3 > .step-card,
  .grid-4 > .glass-card, .grid-4 > .stage-card, .grid-4 > .feature-card, .grid-4 > .step-card {
     flex: 0 0 85%;
     scroll-snap-align: center;
     margin-bottom: 0;
  }
  
  /* Interactive Elements */
  img, svg, canvas, video {
    max-width: 100%;
    height: auto;
  }

  .nav-links {
    gap: 1rem;
  }

  .btn, .theme-btn {
    width: 100%;
    justify-content: center;
  }
}



/* -- Futuristic Micro-Interactions (Antigravity Aesthetic) -- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
  50% { box-shadow: 0 0 15px 0 rgba(249, 115, 22, 0.4); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Fluid Hover Effects for SVG Icons */
svg {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.3s ease;
}

button:hover svg, a:hover svg, .stage-card:hover svg {
  transform: scale(1.15) translateY(-2px);
}

.nav-links a:hover svg, .static-dock a:hover svg {
  transform: scale(1.15) translateY(-3px);
  stroke: var(--brand);
}

/* Enhanced Glassmorphic Containers */
.glass-card, .stage-card, .feature-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.glass-card::before, .stage-card::before {
  content: "";
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.03), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s;
}

.glass-card:hover::before, .stage-card:hover::before {
  left: 200%;
}

.glass-card:hover, .stage-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--brand-glow);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), inset 0 0 0 1px var(--brand-glow);
}

/* Smooth Image Loading */
img {
  transition: opacity 0.5s ease-in;
}
img[loading] {
  opacity: 0;
}
img.loaded {
  opacity: 1;
}



/* -- App.js Styles: PWA Banner, Swipe Arrows, Mascot, Reveal - */

/* PWA Install Banner */
#pwa-install-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 3000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0 1rem calc(1rem + env(safe-area-inset-bottom));
}
#pwa-install-banner.visible { transform: translateY(0); }
.pwa-banner-content {
  background: #ffffff;
  border: 1px solid var(--glass-b);
  border-radius: 20px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  box-shadow: 0 -4px 60px rgba(0,56,255,0.1), 0 8px 32px rgba(0,0,0,0.1);
  max-width: 600px;
  margin: 0 auto;
}
.pwa-banner-logo { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; flex-shrink: 0; background-color: var(--brand); padding: 4px; }
.pwa-banner-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pwa-banner-text strong { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.pwa-banner-text span { font-size: 0.78rem; color: var(--text-2); }
.pwa-install-btn {
  background: var(--brand); color: #fff;
  border: none; border-radius: 10px;
  padding: 8px 20px; font-weight: 700; font-size: 0.9rem;
  cursor: pointer; flex-shrink: 0;
  transition: transform 0.15s, box-shadow 0.2s;
}
.pwa-install-btn:active { transform: scale(0.95); }
.pwa-dismiss-btn {
  background: none; border: none; color: var(--text-2 , #94a3b8);
  cursor: pointer; font-size: 1rem; padding: 4px; flex-shrink: 0;
}

/* Animated Reading Progress Mascot */
#progress-mascot {
  position: absolute;
  top: -20px;
  width: 40px;
  height: 40px;
  pointer-events: none;
  transition: left 0.2s linear;
}
.mascot-svg { width: 100%; height: 100%; }
.progress-bar { position: relative; }

/* Walking animation */
@keyframes walk-legs {
  0%, 100% { transform: rotate(-15deg); }
  50% { transform: rotate(15deg); }
}
.mascot-leg-l { animation: walk-legs 0.5s ease-in-out infinite; transform-origin: 17px 22px; }
.mascot-leg-r { animation: walk-legs 0.5s ease-in-out 0.25s infinite reverse; transform-origin: 23px 22px; }
.mascot-arm-l { animation: walk-legs 0.5s ease-in-out 0.25s infinite; transform-origin: 14px 19px; }
.mascot-arm-r { animation: walk-legs 0.5s ease-in-out infinite reverse; transform-origin: 26px 19px; }

/* Swipe Navigation Arrows (Mobile) */
.swipe-hint-arrows {
  position: fixed;
  bottom: 100px;
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 0.5rem;
  z-index: 1500;
  pointer-events: none;
}
.swipe-arrow {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(15, 15, 20, 0.88);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 40px;
  padding: 10px 16px;
  color: var(--brand, #f97316);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(16px);
  pointer-events: auto;
  transition: all 0.2s;
  animation: float 4s ease-in-out infinite;
}
.swipe-arrow:active { transform: scale(0.94); }
.swipe-arrow svg { width: 18px; height: 18px; }

/* Swipe Page Transition */
.swipe-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.swipe-transition.swipe-right { background: linear-gradient(to right, rgba(249,115,22,0.15), transparent); }
.swipe-transition.swipe-left  { background: linear-gradient(to left,  rgba(249,115,22,0.15), transparent); }
.swipe-transition.active { opacity: 1; }

/* Scroll Reveal */
.reveal-hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal-visible {
  opacity: 1 !important;
  transform: none !important;
}

/* SVG Illustration Blocks */
.illustration-block {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  margin: 3rem 0;
  padding: 2.5rem;
  background: var(--bg-card, rgba(255,255,255,0.02));
  border: 1px solid var(--glass-b, rgba(255,255,255,0.07));
  border-radius: var(--radius, 16px);
}
.illustration-block.reverse { flex-direction: row-reverse; }
.illustration-block .illus-svg { flex-shrink: 0; width: 220px; }
.illustration-block .illus-text { flex: 1; }
.illustration-block .illus-text h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.75rem; }
.illustration-block .illus-text p { color: var(--text-2, #94a3b8); line-height: 1.7; }
.illustration-block .illus-text ul { list-style: none; padding: 0; margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.illustration-block .illus-text ul li { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.illustration-block .illus-text ul li::before { content: "?"; color: var(--brand, #f97316); }

@media (max-width: 768px) {
  .illustration-block, .illustration-block.reverse {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  .illustration-block .illus-svg { width: 100%; max-width: 200px; margin: 0 auto; }
}

/* ══════════════════════════════════════════════════════════════
   NEXRAY – Mobile Hero Fix  (resolves empty-space on phones)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero-redesign { min-height: 100svh !important; padding-top: var(--nav-h) !important; }
  .hero-redesign main {
    padding-top: 1.5rem !important;
    padding-bottom: 2.5rem !important;
    min-height: unset !important;
    align-items: center !important;
    justify-content: center !important;
  }
}
@media (max-width: 640px) {
  .section { padding: 2rem 1.25rem !important; }
  h2 { font-size: clamp(1.6rem, 8vw, 2.4rem) !important; }
  h3 { font-size: clamp(1.1rem, 5vw, 1.5rem) !important; }
  .grid-2,.grid-3 { grid-template-columns: 1fr !important; }
}

/* ══════════════════════════════════════════════════════════════
   NEXRAY Brand Buddy – coding element cards for stage pages
   ══════════════════════════════════════════════════════════════ */
.nxr-brand-buddy {
  display:flex;align-items:center;gap:1.25rem;
  background:var(--glass);border:1.5px solid var(--glass-b);
  border-left:4px solid var(--brand);border-radius:var(--radius);
  padding:1rem 1.5rem;margin:2rem 0;position:relative;overflow:hidden;
}
.nxr-brand-buddy::after {
  content:'';position:absolute;top:0;right:0;bottom:0;width:3px;
  background:var(--accent);border-radius:0 var(--radius) var(--radius) 0;
}
.nxr-brand-buddy-icon {
  width:52px;height:52px;background:var(--brand-gradient);
  border-radius:var(--radius-sm);display:flex;align-items:center;
  justify-content:center;flex-shrink:0;box-shadow:var(--shadow-brand);
}
.nxr-brand-buddy-icon svg { width:28px;height:28px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round; }
.nxr-brand-buddy-text { flex:1; }
.nxr-brand-buddy-text strong { display:block;font-weight:800;font-size:.95rem;color:var(--text);margin-bottom:3px; }
.nxr-brand-buddy-text span { font-size:.82rem;color:var(--text-3); }

.nxr-tip {
  display:flex;gap:1rem;align-items:flex-start;
  padding:1.1rem 1.4rem;background:rgba(0,56,255,.05);
  border:1.5px solid rgba(0,56,255,.15);border-radius:var(--radius);
  margin:1.5rem 0;font-size:.88rem;line-height:1.7;
}
.nxr-tip-icon {
  width:36px;height:36px;flex-shrink:0;background:var(--brand);
  border-radius:50%;display:flex;align-items:center;justify-content:center;
}
.nxr-tip-icon svg { width:18px;height:18px;stroke:#fff;fill:none;stroke-width:2.5; }
.nxr-tip-body strong { display:block;font-weight:800;font-size:.9rem;margin-bottom:4px;color:var(--brand); }
.nxr-tip-body p { color:var(--text-2); }

.nxr-code-label {
  display:inline-flex;align-items:center;gap:6px;background:var(--brand);color:#fff;
  font-size:.7rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;
  padding:4px 10px;border-radius:var(--radius-sm);margin-bottom:.5rem;
}

/* Scroll-reveal helpers */
.reveal { opacity:0;transform:translateY(30px);transition:opacity .7s ease,transform .7s ease; }
.reveal-left { opacity:0;transform:translateX(-40px);transition:opacity .7s ease,transform .7s ease; }
.reveal-right { opacity:0;transform:translateX(40px);transition:opacity .7s ease,transform .7s ease; }
.reveal.revealed,.reveal-left.revealed,.reveal-right.revealed { opacity:1;transform:none; }


/* ══════════════════════════════════════════════════════════════
   NEXRAY – Production Fixes & Branding Enhancements
   ══════════════════════════════════════════════════════════════ */

/* ── Avatar fixes ────────────────────────────────────────── */
.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand);
  background: var(--bg-card);
  /* Prevent white flash while loading */
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><circle cx='12' cy='12' r='12' fill='%23f1f5f9'/><circle cx='12' cy='8' r='4' fill='%230038FF'/><path d='M12 14c-4.42 0-8 3.58-8 8h16c0-4.42-3.58-8-8-8z' fill='%230038FF'/></svg>");
  background-size: cover;
}

/* ── Nav user profile link ───────────────────────────────── */
.nav-user-profile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  padding: 4px 10px 4px 12px;
  border: 1px solid var(--glass-b);
  border-radius: var(--radius-full);
  background: var(--glass);
  transition: all 0.2s;
}
.nav-user-profile:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}
.nav-user-profile .user-avatar {
  width: 28px;
  height: 28px;
}
.hide-mobile {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

/* ── Branding: stronger CTA buttons ─────────────────────── */
.btn-primary {
  background: var(--brand);
  background-image: linear-gradient(135deg, #0038FF 0%, #0052ff 100%);
  color: #fff;
  border: none;
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  background: #0030e0;
  background-image: linear-gradient(135deg, #0030e0 0%, #0045e0 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 56, 255, 0.35);
}

/* ── Stage cards: stronger hover ────────────────────────── */
.stage-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.stage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 56, 255, 0.12);
  border-color: var(--brand);
}

/* ── Glass card refinements ──────────────────────────────── */
.glass-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 56, 255, 0.10);
}

/* ── Improve footer ─────────────────────────────────────── */
.footer-col:empty { display: none; }

/* ── Nav id placeholder fix ─────────────────────────────── */
#nav-user-block { display: flex; align-items: center; }

/* ── Improved focus ring for accessibility ──────────────── */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* ── Loading state for auth buttons ─────────────────────── */
.btn[disabled], .btn.loading {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Better mobile nav ──────────────────────────────────── */
/* The native nav-hamburger and nav-mobile are replaced by the sidebar toggle from sidebar.js */
.nav-hamburger { display: none !important; }
.nav-mobile { display: none !important; }
@media (max-width: 768px) {
  .hide-mobile { display: none; }
  .nav-links { display: none; }
}
@media (min-width: 769px) {
  .nav-links { display: flex; }
}

/* ── Branding: improve nav border accent ─────────────────── */
.nav {
  border-bottom: 2px solid #CCFF00;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* ── Profile avatar ring default state ──────────────────── */
.profile-avatar-ring {
  background: linear-gradient(135deg, var(--brand-dim), rgba(204,255,0,0.1));
}
.profile-avatar-ring img {
  background: var(--bg-card);
}

/* ── Auth card improvements ──────────────────────────────── */
.auth-card {
  animation: slideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Smooth page transitions ─────────────────────────────── */
body {
  animation: pageFadeIn 0.3s ease;
}
@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Better scrollbar ────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #0030e0; }

/* ══════════════════════════════════════════════════════════════
   NEXRAY — Site Polish: Sidebar, Dark Mode, Breadcrumbs
   ══════════════════════════════════════════════════════════════ */

/* ── Layout & Scrolling Fixes ──────────────────────────────── */
html, body { min-height: 100%; overflow-y: auto; }

/* ── Dark Mode Variables ───────────────────────────────────── */
html.dark { color-scheme: dark; }
.dark {
  --brand:          #5b89ff;
  --brand-dim:      rgba(91,137,255,0.12);
  --brand-glow:     rgba(91,137,255,0.22);
  --brand-gradient: linear-gradient(135deg,#5b89ff,#b3ff00);
  --accent:         #c8f000;
  --bg:             #080d1a;
  --bg-2:           #0d1426;
  --bg-card:        rgba(255,255,255,0.04);
  --bg-card-h:      rgba(255,255,255,0.07);
  --glass:          rgba(13,20,38,0.90);
  --glass-b:        rgba(255,255,255,0.08);
  --text:           #e8eeff;
  --text-2:         #8fa3cc;
  --text-3:         #566680;
  --shadow:         0 4px 24px rgba(0,0,0,0.4);
  --shadow-brand:   0 8px 30px rgba(91,137,255,0.25);
  --bg-grid:        radial-gradient(circle at center,rgba(255,255,255,0.04) 1.5px,transparent 1.5px);
}
.dark .nav { background:rgba(8,13,26,0.85); border-bottom-color:rgba(91,137,255,0.35); }
.dark .stage-card { background:#0d1426; border-color:rgba(91,137,255,0.15); }
.dark .auth-card { background:rgba(13,20,38,0.95); border-color:rgba(91,137,255,0.15); }
.dark code { background:rgba(91,137,255,0.08); border-color:rgba(91,137,255,0.15); }
.dark .btn-secondary { background:transparent; border-color:var(--brand); color:var(--brand)!important; }
.dark .btn-secondary:hover { background:var(--brand); color:#fff!important; }
.dark .footer { background:var(--bg-2); border-top-color:var(--glass-b); }
.dark .callout-info,.dark .callout-tip,.dark .callout-warning,.dark .callout-danger { background:var(--bg-card); }

/* ── Sidebar Drawer ────────────────────────────────────────── */
.nxr-sidebar {
  position:fixed; top:0; left:0; width:272px; height:100%;
  background:var(--bg); border-right:1px solid var(--glass-b);
  z-index:1200; overflow-y:auto; display:flex; flex-direction:column;
  box-shadow:4px 0 40px rgba(0,0,0,0.12);
  transform:translateX(-100%);
  transition:transform 0.3s cubic-bezier(0.4,0,0.2,1);
  overscroll-behavior:contain;
}
.nxr-sidebar.open { transform:translateX(0); }
.nxr-sb-handle{
  position:absolute; right:-26px; top:74px;
  width:30px; height:64px; border-radius:0 14px 14px 0;
  border:1px solid var(--glass-b); border-left:none;
  background:var(--bg); color:var(--text);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; box-shadow:6px 0 16px rgba(0,0,0,0.15);
  padding:0;
}
.nxr-sb-handle img{
  width:28px; height:28px; object-fit:cover;
  border-radius:0 14px 14px 0;
  transform:translateX(4px);
}
.nxr-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,0.45);
  z-index:1199; opacity:0; pointer-events:none;
  transition:opacity 0.3s; backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);
}
.nxr-overlay.open { opacity:1; pointer-events:auto; }

.nxr-sb-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:1.125rem 1rem 1rem; border-bottom:1px solid var(--glass-b); flex-shrink:0;
}
.nxr-sb-logo {
  display:flex; align-items:center; gap:0.5rem; text-decoration:none;
  font-family:'Arial Black',Impact,sans-serif; font-weight:900;
  font-size:1.1rem; letter-spacing:1px; color:var(--text); text-transform:uppercase;
}
.nxr-sb-logo img { height:28px; width:auto; border-radius:6px; }
.nxr-sb-logo strong { color:var(--brand); }

.nxr-sb-search { position:relative; margin:0.875rem 0.875rem 0.5rem; flex-shrink:0; }
.nxr-sb-search-icon {
  position:absolute; left:10px; top:50%; transform:translateY(-50%);
  color:var(--text-3); pointer-events:none; display:flex;
}
.nxr-sb-search-input {
  width:100%; padding:8px 10px 8px 34px;
  background:var(--bg-card); border:1px solid var(--glass-b);
  border-radius:var(--radius); color:var(--text);
  font-size:0.875rem; font-family:inherit; outline:none;
  transition:border-color 0.2s,box-shadow 0.2s;
}
.nxr-sb-search-input:focus { border-color:var(--brand); box-shadow:0 0 0 3px var(--brand-dim); }
.nxr-sb-search-input::placeholder { color:var(--text-3); }

.nxr-sb-nav { flex:1; padding:0.5rem 0.75rem; display:flex; flex-direction:column; gap:2px; }
.nxr-sb-item {
  display:flex; align-items:center; gap:0.625rem;
  padding:0.625rem 0.75rem; border-radius:var(--radius);
  color:var(--text-2); font-size:0.875rem; font-weight:500;
  text-decoration:none; transition:all 0.15s; position:relative;
}
.nxr-sb-item:hover { color:var(--brand); background:var(--brand-dim); }
.nxr-sb-item.active { color:var(--brand); background:var(--brand-dim); font-weight:700; }
.nxr-sb-item-icon { display:flex; align-items:center; flex-shrink:0; color:inherit; }
.nxr-sb-active-dot {
  position:absolute; right:0.75rem; width:6px; height:6px;
  border-radius:50%; background:var(--brand);
}
.nxr-sb-divider {
  display:flex; align-items:center; gap:0.5rem;
  padding:0.875rem 0.75rem 0.375rem;
  font-size:0.7rem; font-weight:800; text-transform:uppercase;
  letter-spacing:0.08em; color:var(--text-3);
}
.nxr-sb-divider::after { content:''; flex:1; height:1px; background:var(--glass-b); }

.nxr-sb-footer {
  flex-shrink:0; padding:0.75rem;
  border-top:1px solid var(--glass-b);
  display:flex; flex-direction:column; gap:4px;
}
.nxr-sb-dark-btn {
  display:flex; align-items:center; gap:0.625rem;
  padding:0.625rem 0.75rem; border-radius:var(--radius);
  color:var(--text-2); font-size:0.875rem; font-weight:500;
  background:none; border:none; cursor:pointer;
  transition:all 0.15s; width:100%; text-align:left;
}
.nxr-sb-dark-btn:hover { color:var(--brand); background:var(--brand-dim); }

/* ── Nav Controls (dark mode, notifications, sidebar toggle) ─ */
.nxr-nav-controls { display:flex; align-items:center; gap:4px; }
.nxr-nav-btn {
  display:flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:var(--radius-full);
  background:none; border:none; color:var(--text-2); cursor:pointer;
  transition:all 0.2s; position:relative;
}
.nxr-nav-btn:hover { background:var(--brand-dim); color:var(--brand); }

/* ── Notifications Panel ───────────────────────────────────── */
.nxr-notif-wrapper { position:relative; }
.nxr-notif-badge {
  position:absolute; top:4px; right:4px;
  width:16px; height:16px; background:#ef4444;
  border-radius:50%; border:2px solid var(--bg);
  font-size:0.6rem; font-weight:800; color:#fff;
  display:flex; align-items:center; justify-content:center;
  pointer-events:none;
}
.nxr-notif-panel {
  position:absolute; top:calc(100% + 8px); right:0;
  width:300px; background:var(--bg);
  border:1px solid var(--glass-b); border-radius:var(--radius-lg);
  box-shadow:var(--shadow); z-index:1300; overflow:hidden;
}
.nxr-notif-panel[hidden] { display:none; }
.nxr-notif-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:0.875rem 1rem 0.75rem; border-bottom:1px solid var(--glass-b);
}
.nxr-notif-title { font-size:0.875rem; font-weight:700; color:var(--text); }
.nxr-notif-mark-read {
  font-size:0.75rem; color:var(--brand); background:none;
  border:none; cursor:pointer; font-weight:600; padding:0;
}
.nxr-notif-mark-read:hover { text-decoration:underline; }
.nxr-notif-item {
  display:flex; gap:0.75rem; padding:0.875rem 1rem;
  border-bottom:1px solid var(--glass-b); transition:background 0.15s;
}
.nxr-notif-item:last-of-type { border-bottom:none; }
.nxr-notif-item:hover { background:var(--bg-card); }
.nxr-notif-dot { width:8px; height:8px; min-width:8px; border-radius:50%; background:var(--brand); margin-top:5px; }
.nxr-notif-dot.read { background:var(--text-3); }
.nxr-notif-text { font-size:0.82rem; color:var(--text-2); line-height:1.55; }
.nxr-notif-time { font-size:0.72rem; color:var(--text-3); margin-top:3px; }
.nxr-notif-footer { padding:0.75rem 1rem; border-top:1px solid var(--glass-b); text-align:center; }
.nxr-notif-footer a { font-size:0.8rem; color:var(--brand); font-weight:600; }
.nxr-notif-footer a:hover { text-decoration:underline; }

/* ── Profile Dropdown ──────────────────────────────────────── */
.nxr-profile-wrapper { position:relative; }
.nxr-pd-avatar-sm {
  width:28px; height:28px; border-radius:50%;
  object-fit:cover; border:2px solid var(--brand);
}
.nxr-profile-dropdown {
  position:absolute; top:calc(100% + 8px); right:0;
  width:220px; background:var(--bg);
  border:1px solid var(--glass-b); border-radius:var(--radius-lg);
  box-shadow:var(--shadow); z-index:1300; overflow:hidden;
}
.nxr-profile-dropdown[hidden] { display:none; }
.nxr-pd-header { display:flex; align-items:center; gap:0.75rem; padding:0.875rem 1rem; }
.nxr-pd-avatar { width:38px; height:38px; border-radius:50%; object-fit:cover; border:2px solid var(--brand); flex-shrink:0; }
.nxr-pd-name { font-weight:700; font-size:0.875rem; color:var(--text); }
.nxr-pd-email { font-size:0.75rem; color:var(--text-3); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:130px; }
.nxr-pd-divider { height:1px; background:var(--glass-b); }
.nxr-pd-item {
  display:flex; align-items:center; gap:0.625rem;
  padding:0.625rem 1rem; color:var(--text-2);
  font-size:0.875rem; font-weight:500; text-decoration:none;
  transition:all 0.15s; background:none; border:none;
  width:100%; text-align:left; cursor:pointer;
}
.nxr-pd-item:hover { background:var(--brand-dim); color:var(--brand); }
.nxr-pd-item.danger:hover { background:rgba(239,68,68,0.08); color:#dc2626; }

/* ── Breadcrumbs ───────────────────────────────────────────── */
.nxr-breadcrumbs {
  display:flex; align-items:center; gap:0.375rem;
  padding:0.625rem 1.5rem; font-size:0.82rem;
  color:var(--text-3); background:var(--bg-2);
  border-bottom:1px solid var(--glass-b); flex-wrap:wrap;
}
.nxr-bc-home { display:flex; align-items:center; color:var(--brand); transition:opacity 0.15s; }
.nxr-bc-home:hover { opacity:0.75; }
.nxr-bc-sep { color:var(--text-3); line-height:1; opacity:0.5; }
.nxr-bc-link { color:var(--text-2); font-weight:500; transition:color 0.15s; }
.nxr-bc-link:hover { color:var(--brand); }
.nxr-bc-text { color:var(--text-2); font-weight:500; }
.nxr-bc-current { color:var(--text); font-weight:700; }

/* ── Value Highlights (index.html) ────────────────────────── */
.nxr-value-highlights {
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:1.25rem; padding:3.5rem 1.5rem;
  max-width:1180px; margin:0 auto;
}
.nxr-vh-item {
  display:flex; flex-direction:column; align-items:flex-start;
  gap:0.75rem; padding:1.5rem;
  background:var(--bg); border:1px solid var(--glass-b);
  border-radius:var(--radius-lg); transition:all 0.3s;
}
.nxr-vh-item:hover { border-color:var(--brand-glow); box-shadow:var(--shadow-brand); transform:translateY(-3px); }
.nxr-vh-icon {
  width:44px; height:44px; border-radius:var(--radius);
  background:var(--brand-dim); border:1px solid var(--brand-glow);
  display:flex; align-items:center; justify-content:center; color:var(--brand);
}
.nxr-vh-title { font-weight:800; font-size:1rem; color:var(--text); }
.nxr-vh-desc { font-size:0.85rem; color:var(--text-2); line-height:1.65; }

/* Responsive adjustments */
@media (max-width:768px) {
  .nxr-value-highlights { grid-template-columns:repeat(2,1fr); padding:2.5rem 1.25rem; }
  .nxr-notif-panel { width:calc(100vw - 2rem); right:-40px; }
  .nxr-profile-dropdown { right:-20px; }
  .nxr-sidebar{
    left:auto; right:0;
    transform:translateX(100%);
    border-right:none;
    border-left:1px solid var(--glass-b);
  }
  .nxr-sidebar.open{ transform:translateX(0); }
  .nxr-sb-handle{ display:none; }
}
@media (max-width:480px) {
  .nxr-value-highlights { grid-template-columns:1fr; }
}

/* ── Desktop: Edge-triggered sidebar (left) ───────────────── */
@media (min-width: 1024px) {
  .nxr-sidebar { z-index: 900; }
  .nxr-overlay { display: none !important; }
}

/* ── Mobile: stage/feature cards responsive fix ───────────── */
@media (max-width: 768px) {
  /* Ensure stage/feature grids wrap properly instead of compressing */
  .grid-auto {
    grid-template-columns: 1fr !important;
  }
  .stage-card {
    min-width: 0;
    width: 100%;
  }
  /* Hero feature boxes: allow wrapping and prevent overflow */
  .max-w-1280px {
    overflow: visible;
  }
  [class*="grid-cols-"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  /* SVG and icon auto-resize */
  svg {
    max-width: 100%;
    height: auto;
  }
  img {
    max-width: 100%;
    height: auto;
  }
}
