:root {
  --bg-obsidian: #06080D;
  --bg-surface: #0C1018;
  --bg-card: #111724;
  --bg-elevated: #172033;
  --border-line: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(245, 158, 11, 0.45);
  --text-white: #F8FAFC;
  --text-slate: #94A3B8;
  --text-muted: #64748B;
  --amber-main: #F59E0B;
  --amber-light: #FDE047;
  --max-desktop: 1240px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-obsidian);
  background-image: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.07) 0%, transparent 55%);
  color: var(--text-white);
  font-family: 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* 1240px True Responsive Container */
.nrm-container {
  width: 100%;
  max-width: var(--max-desktop);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .nrm-container {
    padding: 0 16px;
  }
}

/* Sticky Glass Navbar */
.nrm-navbar {
  position: sticky;
  top: 0;
  z-index: 80;
  height: 74px;
  background: rgba(6, 8, 13, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-line);
  display: flex;
  align-items: center;
}

.nrm-navbar-inner {
  width: 100%;
  max-width: var(--max-desktop);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nrm-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-white);
  flex-shrink: 0;
}

.nrm-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  padding: 2px;
}

.nrm-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #F59E0B, #EA580C);
  color: #06080D;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nrm-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nrm-nav-links button,
.nrm-nav-links a {
  background: none;
  border: none;
  color: var(--text-slate);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease;
}

.nrm-nav-links button:hover,
.nrm-nav-links a:hover {
  color: var(--amber-main);
}

@media (max-width: 960px) {
  .nrm-nav-links {
    display: none;
  }
}

/* Global Canvas Containment (Prevents 1080px Overflow Everywhere!) */
.canvas-stage-box {
  width: 100%;
  max-width: 370px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  background: #04060A;
  border: 1px solid var(--border-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  position: relative;
}

.canvas-stage-box canvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  display: block;
}

/* Hero Split Layout (Balanced 7:5 Desktop Ratio) */
.hero-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
  padding: 56px 0 48px;
}

@media (max-width: 960px) {
  .hero-split-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 32px 0;
  }
}

/* Interactive Click-to-Open Bento Cards */
.showcase-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1024px) {
  .showcase-bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .showcase-bento-grid {
    grid-template-columns: 1fr;
  }
}

.interactive-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: 20px;
  padding: 22px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.interactive-tile:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

/* Buttons */
.btn-primary-amber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #06080D;
  font-weight: 800;
  font-size: 13.5px;
  padding: 11px 20px;
  border-radius: 12px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.22);
  white-space: nowrap;
}

.btn-primary-amber:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.35);
}

.btn-outline-slate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-card);
  color: var(--text-white);
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-line);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-outline-slate:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
}

/* Interactive Click-to-Open Modal / Drawer Backdrop */
.nrm-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(3, 5, 9, 0.82);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.nrm-modal-card {
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-hover);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Scroll-to-Top Floating Button */
.scroll-top-btn {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 95;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hover);
  color: var(--amber-light);
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Live Signal Pill */
.signal-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #34D399;
  font-size: 12px;
  font-weight: 700;
}

.signal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}