/* ==========================================================================
   UIverse Premium Component Grid & Layout Stylesheet
   Architecture Paradigm: Layered Low-Latency Neo-SaaS Design Configuration Registry
   ========================================================================== */

/* --- PLATFORM COMPILATION DESIGN TOKENS --- */
:root {
  /* Dimension Layout Threshold Boundaries */
  --sidebar-w-allocation: 295px;
  --navbar-h-allocation: 82px;

  /* Color Space Coordinate System (Luxury Dark Mode Standard) */
  --bg-dark-core: #04060c;
  --bg-surface-glass: rgba(13, 17, 31, 0.65);
  --bg-surface-card: #0d1222;
  --border-glass-low: rgba(255, 255, 255, 0.05);
  --border-glass-high: rgba(255, 255, 255, 0.15);

  /* Typography Contrast Scales */
  --text-primary-vibrant: #f8fafc;
  --text-muted-mid: #94a3b8;
  --text-dark-subtle: #475569;

  /* High-Fidelity Cyber Gradient Wave Accent Nodes */
  --accent-orange-core: #ff6b35;
  --accent-purple-core: #7c3aed;
  --accent-cyan-core: #06b6d4;
  --accent-pink-core: #ec4899;
  --accent-blue-core: #3b82f6;
  --accent-green-core: #10b981;
  --accent-yellow-core: #fbbf24;

  /* Dynamic Shape Constants */
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --transition-fluid-cubic: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-matrix-deep: 0 25px 50px -20px rgba(0, 0, 0, 0.7);
  --transform-hardware-acceleration: translate3d(0, 0, 0);
  --btn-bg: #1a2035;
  --btn-hover: #242c49;
}

/* --- STRUCTURE RESET AND Physics ENFORCEMENT --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.dark-matrix-theme {
  background-color: var(--bg-dark-core);
  color: var(--text-primary-vibrant);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  line-height: 1.65;
  transition: var(--transition-fluid-cubic);
  background-image: 
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.15) 0%, transparent 30%),
    radial-gradient(circle at bottom right, rgba(6, 182, 212, 0.1) 0%, transparent 30%);
}

.skip-link {
  position: absolute;
  top: -120px;
  left: 24px;
  background: var(--accent-purple-core);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  z-index: 100005;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
  transition: top 0.3s ease;
}
.skip-link:focus { top: 24px; }

.jetbrains-mono-string {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}

/* ==========================================================================
   GLOBAL SIDEBAR REGISTRY HOUSING PANEL
   ========================================================================== */
.sidebar {
  width: var(--sidebar-w-allocation);
  height: 100vh;
  background-color: #070912;
  border-right: 1px solid var(--border-glass-low);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
  top: 0; left: 0;
  z-index: 1050;
  transition: var(--transition-fluid-cubic);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 26px 32px;
  border-bottom: 1px solid var(--border-glass-low);
}

.sidebar-brand .brand-icon {
  font-size: 26px;
  color: var(--accent-orange-core);
  filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.3));
}

.sidebar-brand .brand-text {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.engine-badge {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-purple-core);
  margin-top: 1px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 24px 16px;
  scrollbar-width: thin;
}

.sidebar-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  color: var(--text-muted-mid);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-fluid-cubic);
  transform: var(--transform-hardware-acceleration);
}

.sidebar-nav li a i {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

.sidebar-nav li a:hover {
  background-color: rgba(255, 255, 255, 0.02);
  color: #ffffff;
  transform: translateX(4px);
}

.sidebar-nav li.active a {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.08) 0%, transparent 100%);
  color: var(--accent-purple-core);
  border-left: 3px solid var(--accent-purple-core);
  padding-left: 13px;
  font-weight: 600;
}
.sidebar-nav li.active a i { color: var(--accent-purple-core); }

.sidebar-footer {
  padding: 24px;
  border-top: 1px solid var(--border-glass-low);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.sidebar-footer a {
  flex: 1;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass-low);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted-mid);
  text-decoration: none;
  font-size: 15px;
  transition: var(--transition-fluid-cubic);
}

.sidebar-footer a:hover {
  background: var(--accent-purple-core);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

/* ==========================================================================
   INTEGRATED SYSTEM TOP NAVBAR SCHEMAS
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-w-allocation);
  right: 0;
  height: var(--navbar-h-allocation);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background-color: rgba(4, 6, 11, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-glass-low);
  z-index: 1000;
  transition: var(--transition-fluid-cubic);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary-vibrant);
  font-size: 22px;
  cursor: pointer;
}

.search-bar-shell {
  width: 480px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass-low);
  transition: var(--transition-fluid-cubic);
}
.search-bar-shell:focus-within {
  border-color: var(--accent-purple-core);
  background-color: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.15);
}

.search-bar-shell .search-icon { color: var(--text-dark-subtle); font-size: 15px; }
.search-bar-shell input {
  width: 100%;
  border: none;
  outline: none;
  background: none;
  color: var(--text-primary-vibrant);
  font-size: 14px;
}
.search-bar-shell input::placeholder { color: var(--text-dark-subtle); }

.nav-actions { display: flex; gap: 14px; }

.outline-btn, .primary-btn {
  border: none;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-fluid-cubic);
}

.outline-btn {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass-low);
  color: var(--text-primary-vibrant);
}
.outline-btn:hover { background-color: rgba(255, 255, 255, 0.06); border-color: var(--border-glass-high); }

.primary-btn {
  background: linear-gradient(135deg, var(--accent-purple-core), var(--accent-cyan-core));
  color: white;
  box-shadow: 0 6px 20px var(--accent-purple-glow);
}
.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.4);
}

/* ==========================================================================
   MAIN DYNAMIC VIEWPORT VIEW WRAPPERS
   ========================================================================== */
.main-home {
  margin-left: var(--sidebar-w-allocation);
  padding: calc(var(--navbar-h-allocation) + 50px) 50px 80px 50px;
  transition: var(--transition-fluid-cubic);
}

.hero-section { text-align: center; max-width: 880px; margin: 0 auto 56px auto; }
.hero-badge {
  display: inline-flex; padding: 6px 16px; border-radius: 100px;
  background-color: rgba(124, 58, 237, 0.06); border: 1px solid rgba(124, 58, 237, 0.15);
  color: #c084fc; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 20px;
}

.hero-section h1 { font-family: 'Syne', sans-serif; font-size: clamp(34px, 5.5vw, 76px); font-weight: 800; line-height: 1.05; letter-spacing: -1.5px; margin-bottom: 18px; }
.hero-section h1 span { background: linear-gradient(135deg, #c084fc, #60a5fa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-section p { color: var(--text-muted-mid); font-size: 18px; line-height: 1.75; }

/* SEGMENTED VIEW FILTERS SELECTORS ROW */
.filter-bar { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.filter-btn {
  border: none; padding: 12px 24px; border-radius: 999px; background-color: var(--bg-surface-card);
  border: 1px solid var(--border-glass-low); color: var(--text-muted-mid); cursor: pointer; font-size: 13px; font-weight: 700; transition: var(--transition-fluid-cubic);
}
.filter-btn.active, .filter-btn:hover { background: var(--accent-orange-core); color: white; border-color: transparent; box-shadow: 0 6px 15px rgba(255, 107, 53, 0.2); transform: translateY(-2px); }

/* ==========================================================================
   DISPLAY PLACEMENTS MATRICES GRID SECTOR
   ========================================================================== */
.sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
}

.section-card {
  background-color: var(--bg-surface-card);
  border: 1px solid var(--border-glass-low);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-matrix-deep);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition-fluid-cubic);
  position: relative;
  overflow: hidden;
  animation: componentEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes componentEntrance {
  from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); }
}

.section-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 107, 53, 0.25);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8);
}

.card-shimmer-track {
  position: absolute;
  top: 0; left: 0; right: 0; height: 100px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.section-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  font-size: 26px; color: white;
  margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Linear Chroma Shaders Mappings for Vector Icons Well */
.gradient-crimson { background: linear-gradient(135deg, #dc2626, #f87171); }
.gradient-blue    { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.gradient-purple  { background: linear-gradient(135deg, #7c3aed, #c084fc); }
.gradient-gold    { background: linear-gradient(135deg, #d97706, #fbbf24); }
.gradient-navy    { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.gradient-teal    { background: linear-gradient(135deg, #0d9488, #2dd4bf); }
.gradient-rose    { background: linear-gradient(135deg, #e11d48, #fda4af); }
.gradient-indigo  { background: linear-gradient(135deg, #4f46e5, #818cf8); }
.gradient-emerald { background: linear-gradient(135deg, #059669, #34d399); }
.gradient-yellow  { background: linear-gradient(135deg, #ca8a04, #fde047); }
.gradient-magenta { background: linear-gradient(135deg, #c026d3, #f572f6); }
.gradient-silver  { background: linear-gradient(135deg, #4b5563, #9ca3af); }
.gradient-aqua    { background: linear-gradient(135deg, #0891b2, #67e8f9); }
.gradient-platinum{ background: linear-gradient(135deg, #374151, #4b5563); }
.gradient-lavender{ background: linear-gradient(135deg, #6d28d9, #a78bfa); }

.card-tag-badge {
  width: max-content; padding: 2px 10px; border-radius: 4px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700;
  color: var(--accent-cyan-core); background-color: rgba(6,182,212,0.06);
  border: 1px solid rgba(6,182,212,0.15); letter-spacing: 0.5px;
}

.section-card h2 { font-family: "Syne", sans-serif; font-size: 24px; font-weight: 700; color: #ffffff; letter-spacing: -0.5px; margin: 8px 0; }
.section-card p { color: var(--text-muted-mid); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }

.view-blueprint-btn {
  margin-top: auto; text-decoration: none; color: var(--accent-purple-core);
  font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 8px;
  transition: var(--transition-fluid-cubic);
}
.view-blueprint-btn i { transition: transform 0.3s ease; }
.view-blueprint-btn:hover { color: #ffffff; }
.view-blueprint-btn:hover i { transform: translateX(4px); }

/* ==========================================================================
   PRODUCTION INTEGRATED ENVIRONMENT GLOBAL FOOTER
   ========================================================================== */
.footer {
  background-color: #03050a; border-top: 1px solid var(--border-glass-low);
  margin-left: var(--sidebar-w-allocation); padding: 80px 40px 30px 40px;
  transition: var(--transition-fluid-cubic);
}

.footer-container {
  max-width: 1600px; margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr repeat(3, 0.7fr) 1.3fr; gap: 40px;
}

@media (max-width: 1200px) {
  .footer-container { grid-template-columns: 1fr 1fr; gap: 40px; }
  .brand, .newsletter { grid-column: span 2; }
}

@media (max-width: 640px) {
  .footer-container { grid-template-columns: 1fr; }
  .brand, .newsletter { grid-column: span 1; }
}

.brand p { color: var(--text-muted-mid); font-size: 14px; line-height: 1.65; margin-top: 14px; }
.footer-logo { font-family: "Syne", sans-serif; font-size: 24px; font-weight: 800; color: var(--text-primary-vibrant); }

.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; background-color: rgba(255,255,255,0.02);
  border: 1px solid var(--border-glass-low); display: grid; place-items: center;
  color: var(--text-muted-mid); text-decoration: none; font-size: 15px; transition: var(--transition-fluid-cubic);
}
.socials a:hover { background-color: var(--accent-purple-core); color: white; border-color: transparent; transform: translateY(-3px); }

.footer-col h3 { font-family: "Syne", sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 24px; color: var(--text-primary-vibrant); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a { color: var(--text-muted-mid); text-decoration: none; font-size: 14px; transition: var(--transition-fluid-cubic); }
.footer-col ul a:hover { color: var(--accent-purple-core); padding-left: 4px; }

.newsletter p { font-size: 14px; color: var(--text-muted-mid); margin-bottom: 16px; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input { flex: 1; padding: 14px 16px; background-color: rgba(0, 0, 0, 0.2); border: 1px solid var(--border-glass-low); border-radius: var(--radius-sm); color: white; font-size: 13px; outline: none; transition: var(--transition-fluid-cubic); }
.newsletter-form input:focus { border-color: var(--accent-purple-core); }

.newsletter-form button { border: none; cursor: pointer; padding: 0 22px; border-radius: var(--radius-sm); background-color: var(--accent-purple-core); color: white; font-weight: 700; font-size: 13px; transition: var(--transition-fluid-cubic); }
.newsletter-form button:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3); }

.footer-bottom { max-width: 1600px; margin: 56px auto 0 auto; padding-top: 28px; border-top: 1px solid var(--border-glass-low); text-align: center; color: var(--text-dark-subtle); font-size: 13px; }

/* ==========================================================================
   VIEWPORT SECTOR RESPONSIVE MATRIX OVERRIDES BREAKPOINTS
   ========================================================================== */
@media (max-width: 1060px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.visible { transform: translateX(0); }
  .sidebar-backdrop.visible { display: block; }
  .navbar, .main-home, .footer { margin-left: 0; left: 0; }
  .menu-toggle { display: block; }
}

@media (max-width: 768px) {
  .navbar { height: auto; padding: 16px 24px; flex-direction: column; gap: 14px; align-items: stretch; position: absolute; }
  .search-bar-shell { width: 100%; }
  .nav-actions { width: 100%; justify-content: space-between; }
  .nav-actions button { flex: 1; }
  .main-home { padding-top: 180px; padding-left: 20px; padding-right: 20px; }
  .hero-section h1 { font-size: 34px; }
  .footer { padding-left: 20px; padding-right: 20px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { padding: 12px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}