/* =========================================================================
   MESH EDITOR - MARKETING LANDING PAGE STYLES
   Futuristic 3D Cybernetic Theme inspired by App 3D Loading Indicators
   ========================================================================= */

:root {
  --bg-primary: #0f1218;
  --bg-panel: rgba(22, 27, 34, 0.92);
  --bg-header: rgba(30, 37, 48, 0.95);
  --bg-dark: #161b22;
  --bg-hover: rgba(255, 255, 255, 0.08);
  --border-color: rgba(255, 255, 255, 0.12);
  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --text-muted: #8b949e;
  --accent-color: #58a6ff;
  --accent-hover: #79c0ff;
  --accent-active: #1f6feb;
  --success-color: #3fb950;
  --warning-color: #d29922;
  --danger-color: #f85149;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-elevated: 0 12px 32px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.4);
  --glow-cyan: 0 0 24px rgba(88, 166, 255, 0.4);
  --glow-blue: 0 0 30px rgba(31, 111, 235, 0.55);
}

@property --arc-start {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@property --arc-end {
  syntax: '<angle>';
  inherits: false;
  initial-value: 158deg;
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(31, 111, 235, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 85% 30%, rgba(88, 166, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 15% 70%, rgba(31, 111, 235, 0.1) 0%, transparent 50%),
    var(--bg-primary);
}

/* =========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================= */

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
  text-shadow: 0 0 8px rgba(88, 166, 255, 0.4);
}

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

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #79c0ff 50%, var(--accent-active) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #79c0ff 0%, #58a6ff 60%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =========================================================================
   TOP NAVIGATION
   ========================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header .container {
  max-width: 1440px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-icon {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 10px rgba(88, 166, 255, 0.6));
}

.brand-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(31, 111, 235, 0.25);
  border: 1px solid rgba(88, 166, 255, 0.4);
  color: var(--accent-hover);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 20px);
  list-style: none;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  flex-shrink: 1;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* =========================================================================
   BUTTONS
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-active) 0%, #1754b5 100%);
  color: #ffffff;
  border-color: rgba(121, 192, 255, 0.35);
  box-shadow: 0 4px 18px rgba(31, 111, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-active) 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(31, 111, 235, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-secondary {
  background: var(--bg-dark);
  color: var(--text-primary);
  border-color: var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: rgba(88, 166, 255, 0.4);
  color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 20%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 80%
  );
  transform: rotate(25deg) translateY(-100%);
  transition: transform 0.65s ease;
}

.btn-glow:hover::after {
  transform: rotate(25deg) translateY(100%);
}

.btn-lg {
  padding: 13px 26px;
  font-size: 15px;
  border-radius: var(--radius-lg);
}

/* =========================================================================
   HERO SECTION & APP SCREENSHOT SHOWCASE
   ========================================================================= */

.hero {
  position: relative;
  padding: 70px 0 40px;
  overflow: hidden;
}

.hero-header-center {
  text-align: center;
  max-width: 1024px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(31, 111, 235, 0.16);
  border: 1px solid rgba(88, 166, 255, 0.3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent-hover);
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(31, 111, 235, 0.25);
}

.hero-title {
  font-size: 54px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.2px;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 34px;
  max-width: 680px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-install-cmd {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  background: rgba(16, 21, 30, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-install-cmd code {
  color: var(--accent-hover);
}

.btn-copy-cmd {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s, background 0.2s;
}

.btn-copy-cmd:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

/* Hero Screenshot Showcase Window Frame */
.hero-screenshot-wrapper {
  margin-top: 36px;
  position: relative;
  isolation: isolate;
}

.hero-screenshot-frame {
  position: relative;
  background: #131820;
  border: 1px solid rgba(88, 166, 255, 0.45);
  border-radius: var(--radius-lg);
  box-shadow:
    var(--shadow-elevated),
    0 0 70px rgba(31, 111, 235, 0.32),
    inset 0 0 24px rgba(31, 111, 235, 0.15);
  overflow: hidden;
}

.hero-screenshot-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-hover), #79c0ff, var(--accent-active), transparent);
  z-index: 10;
}

.hero-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
}

.hero-window-dots {
  display: flex;
  gap: 7px;
}

.hero-window-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-window-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-hover);
  background: rgba(31, 111, 235, 0.18);
  border: 1px solid rgba(88, 166, 255, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-window-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-hover);
  box-shadow: 0 0 8px var(--accent-hover);
}

.hero-screenshot-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  object-fit: cover;
  image-rendering: auto;
}

/* Jumbotron Carousel & 3D Interactive Showcase */
.hero-open-3d-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.4), rgba(88, 166, 255, 0.25));
  border: 1px solid rgba(88, 166, 255, 0.6);
  color: #fff;
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 14px rgba(31, 111, 235, 0.35);
}

.hero-open-3d-btn:hover {
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.7), rgba(88, 166, 255, 0.45));
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(88, 166, 255, 0.5);
}

.hero-carousel-viewport {
  position: relative;
  width: 100%;
  background: #0b0e14;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}

.hero-carousel-viewport:has(.hero-carousel-slides:focus-visible) {
  outline: 2px solid var(--accent-hover);
  outline-offset: -2px;
}

.hero-carousel-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 620px;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: manipulation;
  background: #0b0e14;
}

.hero-carousel-slides::-webkit-scrollbar {
  display: none;
}

.hero-carousel-slides:focus-visible {
  outline: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-carousel-slides {
    scroll-behavior: smooth;
  }
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Hover Overlay Pill in Showcase */
.hero-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: scale(0.96);
  z-index: 4;
}

.hero-carousel-viewport:hover .hero-hover-overlay {
  opacity: 1;
  transform: scale(1);
}

.hero-hover-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(13, 17, 23, 0.88);
  border: 1px solid rgba(88, 166, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 35px rgba(31, 111, 235, 0.4);
}

.hero-hover-cube-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(31, 111, 235, 0.35);
  border: 1px solid rgba(88, 166, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-hover);
  box-shadow: 0 0 18px rgba(88, 166, 255, 0.5);
}

.hero-hover-text {
  display: flex;
  flex-direction: column;
}

.hero-hover-text strong {
  font-size: 14px;
  color: #fff;
  letter-spacing: 0.3px;
}

.hero-hover-text span {
  font-size: 11px;
  color: var(--accent-hover);
}

/* Arrow controls */
.hero-carousel-arrow {
  position: absolute;
  top: calc(50% - 20px);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(13, 17, 23, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  z-index: 6;
  opacity: 0.55;
  transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-carousel-arrow:focus-visible,
.carousel-dot:focus-visible,
.hero-play-btn:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
  opacity: 1;
}

.hero-carousel-viewport:hover .hero-carousel-arrow {
  opacity: 0.9;
}

.hero-carousel-arrow:hover {
  opacity: 1;
  background: rgba(31, 111, 235, 0.8);
  border-color: var(--accent-hover);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 18px rgba(88, 166, 255, 0.6);
}

.hero-arrow-prev { left: 16px; }
.hero-arrow-next { right: 16px; }

/* Bottom Bar */
.hero-carousel-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(13, 17, 23, 0.85) 30%, rgba(13, 17, 23, 0.98) 100%);
  padding: 24px 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 5;
}

.hero-slide-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.hero-slide-index {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-hover);
  background: rgba(31, 111, 235, 0.2);
  border: 1px solid rgba(88, 166, 255, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.hero-slide-desc-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero-slide-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-slide-sub {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-carousel-indicators {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.carousel-dot.active,
.carousel-dot[aria-current="true"] {
  width: 24px;
  border-radius: 999px;
  background: var(--accent-hover);
  box-shadow: 0 0 10px var(--accent-hover);
}

.hero-carousel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hero-play-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.hero-play-btn:hover {
  color: #fff;
  background: var(--bg-hover);
  border-color: rgba(88, 166, 255, 0.4);
}

/* =========================================================================
   BABYLON.JS 3D PREVIEW MODAL
   ========================================================================= */

.babylon-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.25s;
  padding: 20px;
}

.babylon-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s;
}

.babylon-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 15, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.babylon-modal-window {
  position: relative;
  width: 94vw;
  max-width: 1240px;
  height: 88vh;
  max-height: 860px;
  background: #0f131a;
  border: 1px solid rgba(88, 166, 255, 0.45);
  border-radius: var(--radius-lg);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.85),
    0 0 60px rgba(31, 111, 235, 0.35),
    inset 0 0 30px rgba(31, 111, 235, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.babylon-modal.active .babylon-modal-window {
  transform: scale(1);
}

.babylon-modal-window::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-hover), #79c0ff, var(--accent-active), transparent);
  z-index: 10;
}

.babylon-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
  flex-shrink: 0;
}

.babylon-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-secondary);
  min-width: 0;
}

.babylon-modal-title svg {
  color: var(--accent-hover);
  flex-shrink: 0;
}

.babylon-modal-title strong {
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.babylon-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.modal-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 12px;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.modal-action-btn:hover {
  background: var(--bg-hover);
  border-color: rgba(88, 166, 255, 0.4);
  color: var(--accent-hover);
}

.modal-action-btn.active {
  background: rgba(31, 111, 235, 0.25);
  border-color: var(--accent-hover);
  color: #fff;
}

.modal-btn-sandbox {
  background: rgba(31, 111, 235, 0.18);
  border-color: rgba(88, 166, 255, 0.4);
  color: var(--accent-hover);
}

.modal-btn-sandbox:hover {
  background: rgba(31, 111, 235, 0.35);
  border-color: var(--accent-hover);
  color: #fff;
}

.modal-close-btn {
  padding: 6px 8px;
}

.modal-close-btn:hover {
  background: rgba(248, 81, 73, 0.2);
  border-color: var(--danger-color);
  color: var(--danger-color);
}

.babylon-modal-viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  background: radial-gradient(circle at 50% 50%, #151b25 0%, #0a0d13 80%);
  overflow: hidden;
}

#babylonModalCanvas {
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  touch-action: none;
}

.babylon-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 19, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 8;
  transition: opacity 0.2s ease;
}

.babylon-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(88, 166, 255, 0.2);
  border-top-color: var(--accent-hover);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.babylon-loading-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.babylon-viewport-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 6;
}

.viewport-nav-btn {
  pointer-events: auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(13, 17, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.viewport-nav-btn:hover {
  background: rgba(31, 111, 235, 0.85);
  border-color: var(--accent-hover);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 18px rgba(88, 166, 255, 0.55);
}

.babylon-viewport-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(13, 17, 23, 0.85) 40%, rgba(13, 17, 23, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
  z-index: 6;
}

.viewport-info-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.info-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success-color);
  box-shadow: 0 0 6px var(--success-color);
}

.viewport-hints {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
}

.viewport-hints kbd {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  padding: 1px 5px;
  font-family: inherit;
  color: var(--text-primary);
  font-size: 10px;
}

/* Model Selector Thumbnail Strip in Modal */
.babylon-modal-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-header);
  border-top: 1px solid var(--border-color);
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: thin;
}

.modal-strip-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 11.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.modal-strip-chip img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.modal-strip-chip:hover {
  background: var(--bg-hover);
  border-color: rgba(88, 166, 255, 0.4);
  color: var(--text-primary);
}

.modal-strip-chip.active {
  background: rgba(31, 111, 235, 0.3);
  border-color: var(--accent-hover);
  color: #fff;
  box-shadow: 0 0 10px rgba(88, 166, 255, 0.3);
}

@media (max-width: 768px) {
  .hero-carousel-slides {
    max-height: 380px;
  }
  .hero-slide-sub, .btn-text-responsive, .viewport-hints {
    display: none;
  }
  .babylon-modal-window {
    width: 98vw;
    height: 94vh;
  }
  .hero-carousel-bar {
    padding: 14px 12px 10px;
  }
}

.hero-screenshot-glow {
  position: absolute;
  top: 5%;
  left: 15%;
  right: 15%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(31, 111, 235, 0.28) 0%, transparent 70%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

.hero-screenshot-caption {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.caption-card {
  background: rgba(22, 27, 34, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.2s ease;
}

.caption-card:hover {
  border-color: rgba(88, 166, 255, 0.4);
  background: rgba(28, 34, 44, 0.85);
  transform: translateY(-2px);
}

.caption-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(31, 111, 235, 0.2);
  color: var(--accent-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.caption-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.caption-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .hero-screenshot-caption {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero-title {
    font-size: 40px;
  }
}

/* =========================================================================
   3D MESH HOLOGRAPHIC STAGE (INSPIRED DIRECTLY BY PROGRAM LOADERS)
   ========================================================================= */

.hero-visual-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--bg-panel);
  border: 1px solid rgba(88, 166, 255, 0.35);
  border-radius: var(--radius-lg);
  box-shadow:
    var(--shadow-elevated),
    0 0 50px rgba(31, 111, 235, 0.25),
    inset 0 0 30px rgba(31, 111, 235, 0.12);
  overflow: hidden;
}

.me-loader-ambient-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-active) 0%, rgba(31, 111, 235, 0) 70%);
  opacity: 0.35;
  filter: blur(48px);
  animation: meAmbientPulse 3.5s ease-in-out infinite alternate;
  pointer-events: none;
}

.me-mesh-stage {
  position: relative;
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
  margin-bottom: 24px;
}

.me-orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(31, 111, 235, 0.38);
  box-shadow:
    0 0 18px rgba(31, 111, 235, 0.35),
    inset 0 0 12px rgba(31, 111, 235, 0.18);
  transform-style: preserve-3d;
}

.me-orbit-ring-1 {
  width: 226px;
  height: 226px;
  border-top-color: var(--accent-active);
  border-bottom-color: var(--accent-active);
  animation: meOrbitSpin1 5.5s linear infinite;
}

.me-orbit-ring-2 {
  width: 192px;
  height: 192px;
  border-left-color: var(--accent-active);
  border-right-color: rgba(88, 166, 255, 0.85);
  border-style: dashed;
  animation: meOrbitSpin2 7s linear infinite reverse;
}

.me-orbit-ring-3 {
  width: 156px;
  height: 156px;
  border: 1px solid rgba(31, 111, 235, 0.45);
  border-top: 2.5px solid var(--accent-hover);
  animation: meOrbitSpin3 3.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.me-3d-scene {
  width: 96px;
  height: 96px;
  perspective: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.me-3d-mesh-assembly {
  position: relative;
  width: 80px;
  height: 80px;
  transform-style: preserve-3d;
  animation: meCubeRotate 7s linear infinite;
}

/* Triangulated 3D Wireframe Cube Faces */
.me-mesh-face {
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent-active);
  background: linear-gradient(
    135deg,
    rgba(31, 111, 235, 0.22) 0%,
    rgba(31, 111, 235, 0.08) 48.5%,
    var(--accent-active) 49.5%,
    var(--accent-active) 50.5%,
    rgba(31, 111, 235, 0.32) 51.5%,
    rgba(31, 111, 235, 0.1) 100%
  );
  box-shadow:
    0 0 16px rgba(31, 111, 235, 0.5),
    inset 0 0 14px rgba(31, 111, 235, 0.3);
  backface-visibility: visible;
}

.me-mesh-face::before,
.me-mesh-face::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--accent-active);
  box-shadow:
    0 0 12px var(--accent-active),
    0 0 4px #ffffff;
}

.me-mesh-face::before {
  top: -4px;
  left: -4px;
}

.me-mesh-face::after {
  bottom: -4px;
  right: -4px;
}

.me-mesh-face span {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(121, 192, 255, 0.4);
}

.me-face-front  { transform: rotateY(0deg) translateZ(40px); }
.me-face-back   { transform: rotateY(180deg) translateZ(40px); }
.me-face-right  { transform: rotateY(90deg) translateZ(40px); }
.me-face-left   { transform: rotateY(-90deg) translateZ(40px); }
.me-face-top    { transform: rotateX(90deg) translateZ(40px); }
.me-face-bottom { transform: rotateX(-90deg) translateZ(40px); }

/* Inner Counter-Rotating Octahedron */
.me-inner-octahedron {
  position: absolute;
  inset: 16px;
  transform-style: preserve-3d;
  animation: meInnerOctaSpin 4.2s linear infinite reverse;
}

.me-octa-plane {
  position: absolute;
  inset: 0;
  border: 1.8px solid #79c0ff;
  background: radial-gradient(circle, var(--accent-active) 10%, rgba(31, 111, 235, 0.28) 75%);
  box-shadow: 0 0 18px var(--accent-active);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.me-octa-1 { transform: rotateX(0deg) rotateY(0deg); }
.me-octa-2 { transform: rotateY(90deg); }
.me-octa-3 { transform: rotateX(90deg); }

/* Holographic Perspective Ground Grid */
.me-ground-holo-grid {
  position: absolute;
  bottom: -16px;
  width: 210px;
  height: 84px;
  transform: rotateX(72deg);
  border-radius: 50%;
  background-image:
    linear-gradient(to right, rgba(31, 111, 235, 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 111, 235, 0.5) 1px, transparent 1px);
  background-size: 16px 16px;
  box-shadow:
    0 0 32px rgba(31, 111, 235, 0.6),
    inset 0 0 24px rgba(31, 111, 235, 0.5);
  overflow: hidden;
  border: 1.5px solid var(--accent-active);
}

.me-laser-scan {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(to bottom, transparent, var(--accent-active), #79c0ff, transparent);
  box-shadow: 0 0 16px var(--accent-active);
  animation: meLaserSweep 2.2s ease-in-out infinite alternate;
}

/* Card Status Info Underneath 3D Mesh */
.visual-card-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}

.visual-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.visual-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-badge-active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--success-color);
  background: rgba(63, 185, 80, 0.15);
  border: 1px solid rgba(63, 185, 80, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
}

.status-badge-active::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success-color);
  box-shadow: 0 0 8px var(--success-color);
}

.shimmer-progress-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(31, 111, 235, 0.2);
  border: 1px solid rgba(88, 166, 255, 0.35);
  overflow: hidden;
  position: relative;
}

.shimmer-progress-fill {
  width: 78%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-active), #79c0ff);
  box-shadow: 0 0 12px var(--accent-active);
  position: relative;
  overflow: hidden;
}

.shimmer-progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: meBarShimmer 1.8s linear infinite;
}

/* =========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================= */

@keyframes meOrbitSpin1 {
  0% { transform: rotateX(65deg) rotateY(20deg) rotateZ(0deg); }
  100% { transform: rotateX(65deg) rotateY(20deg) rotateZ(360deg); }
}

@keyframes meOrbitSpin2 {
  0% { transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg); }
  100% { transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg); }
}

@keyframes meOrbitSpin3 {
  0% { transform: rotateX(80deg) rotateY(15deg) rotateZ(0deg); }
  100% { transform: rotateX(80deg) rotateY(15deg) rotateZ(360deg); }
}

@keyframes meCubeRotate {
  0% { transform: rotateX(-22deg) rotateY(0deg) rotateZ(0deg); }
  100% { transform: rotateX(-22deg) rotateY(360deg) rotateZ(0deg); }
}

@keyframes meInnerOctaSpin {
  0% { transform: rotateX(45deg) rotateY(0deg); }
  100% { transform: rotateX(45deg) rotateY(360deg); }
}

@keyframes meLaserSweep {
  0% { transform: translateY(0); opacity: 0.2; }
  50% { opacity: 0.95; }
  100% { transform: translateY(76px); opacity: 0.2; }
}

@keyframes meAmbientPulse {
  0% { transform: scale(0.92); opacity: 0.25; }
  100% { transform: scale(1.12); opacity: 0.45; }
}

@keyframes meBarShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .me-orbit-ring-1, .me-orbit-ring-2, .me-orbit-ring-3,
  .me-3d-mesh-assembly, .me-inner-octahedron,
  .me-laser-scan, .me-loader-ambient-glow, .shimmer-progress-fill::after {
    animation-duration: 30s !important;
  }
}

/* =========================================================================
   STATS BAR TICKER
   ========================================================================= */

.stats-bar {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(16, 21, 30, 0.6);
  padding: 24px 0;
  margin-bottom: 80px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 8px 16px;
}

.stat-val {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

/* =========================================================================
   OVERVIEW: WHAT YOU CAN DO WITH MESH EDITOR
   ========================================================================= */

.app-intro-card {
  background: var(--bg-panel);
  border: 1px solid rgba(88, 166, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-elevated), 0 0 40px rgba(31, 111, 235, 0.18);
  margin-bottom: 70px;
  position: relative;
  overflow: hidden;
}

.app-intro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-hover), #79c0ff, transparent);
}

.app-intro-lead {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.app-intro-sub {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.overview-bullet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 36px;
  list-style: none;
}

.overview-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.overview-bullet-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-hover);
  flex-shrink: 0;
  margin-top: 3px;
  filter: drop-shadow(0 0 6px rgba(88, 166, 255, 0.5));
}

.overview-bullet-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

.overview-footer-note {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.overview-footer-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.overview-footer-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(31, 111, 235, 0.15);
  border: 1px solid rgba(88, 166, 255, 0.3);
  color: var(--accent-hover);
}

@media (max-width: 1024px) {
  .overview-bullet-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .app-intro-card {
    padding: 32px 24px;
  }
}

/* =========================================================================
   SECTION HEADERS
   ========================================================================= */

.section {
  padding: 70px 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent-hover);
  background: rgba(31, 111, 235, 0.14);
  border: 1px solid rgba(88, 166, 255, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* =========================================================================
   CORE PILLAR 1: HUMAN + AI CO-CREATION
   ========================================================================= */

.ai-feature-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.feature-card {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all 0.28s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  border-color: rgba(88, 166, 255, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(31, 111, 235, 0.2);
  transform: translateY(-4px);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(31, 111, 235, 0.16);
  border: 1px solid rgba(88, 166, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-hover);
  font-size: 20px;
  margin-bottom: 20px;
}

.card-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  flex-grow: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.card-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

/* AI Mesh Agent Real Screenshot Showcase */
.ai-showcase-box {
  background: var(--bg-dark);
  border: 1px solid rgba(88, 166, 255, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
}

.ai-showcase-screenshot {
  display: block;
  width: 100%;
  height: auto;
}

.ai-dialog-preview {
  padding: 24px;
  border-right: 1px solid var(--border-color);
  background: rgba(16, 21, 30, 0.85);
  display: flex;
  flex-direction: column;
}

.ai-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.ai-dialog-title {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-chip-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.ai-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(31, 111, 235, 0.15);
  border: 1px solid rgba(88, 166, 255, 0.3);
  color: var(--accent-hover);
}

.ai-chat-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 13px;
  flex-grow: 1;
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  max-width: 90%;
  line-height: 1.5;
}

.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent-active) 0%, #1754b5 100%);
  color: #ffffff;
  border: 1px solid rgba(121, 192, 255, 0.3);
}

.chat-bubble.agent {
  align-self: flex-start;
  background: rgba(22, 27, 34, 0.95);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.chat-tool-execution {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  color: var(--accent-hover);
  background: rgba(15, 18, 24, 0.8);
  border: 1px solid rgba(31, 111, 235, 0.3);
  padding: 6px 10px;
  border-radius: 4px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-preview-viewport {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(31, 111, 235, 0.15) 0%, rgba(15, 18, 24, 0.9) 70%),
    repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(255, 255, 255, 0.03) 20px),
    repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(255, 255, 255, 0.03) 20px);
  position: relative;
  contain: layout paint;
}

.viewport-overlay-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 6px;
}

.viewport-tag {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

/* =========================================================================
   CORE PILLAR 2: PLATFORM ADAPTERS
   ========================================================================= */

.adapters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.adapter-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.adapter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-active), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.adapter-card:hover {
  border-color: rgba(88, 166, 255, 0.5);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.6), 0 0 24px rgba(31, 111, 235, 0.25);
  transform: translateY(-5px);
}

.adapter-card:hover::before {
  opacity: 1;
}

.adapter-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.adapter-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(31, 111, 235, 0.16);
  border: 1px solid rgba(88, 166, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-hover);
  font-size: 24px;
}

.adapter-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.adapter-sub {
  font-size: 12px;
  color: var(--accent-hover);
  font-weight: 600;
}

.adapter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 28px;
  flex-grow: 1;
}

.adapter-list li {
  font-size: 13.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.adapter-list li svg {
  color: var(--accent-hover);
  flex-shrink: 0;
  margin-top: 3px;
}

/* =========================================================================
   CORE PILLAR 3: MODULAR PLUGIN SYSTEM
   ========================================================================= */

.plugin-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.code-window {
  background: #0b0e14;
  border: 1px solid rgba(88, 166, 255, 0.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-elevated), 0 0 30px rgba(31, 111, 235, 0.18);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(22, 27, 34, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.code-title {
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  color: var(--text-muted);
}

.code-body {
  padding: 20px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.65;
  color: #e6edf3;
  overflow-x: auto;
}

.code-kw { color: #ff7b72; }
.code-fn { color: #d2a8ff; }
.code-str { color: #a5d6ff; }
.code-cm { color: #8b949e; font-style: italic; }
.code-obj { color: #79c0ff; }

/* =========================================================================
   DENRIM FORGE STYLE COMPREHENSIVE FEATURES GRID
   ========================================================================= */

.features-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  transition: all 0.24s ease;
}

.feature-box:hover {
  border-color: rgba(88, 166, 255, 0.4);
  background: rgba(28, 34, 44, 0.95);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.feature-box-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(31, 111, 235, 0.15);
  color: var(--accent-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 14px;
}

.feature-box-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-box-desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* =========================================================================
   ROADMAP: NEXT STEPS
   ========================================================================= */

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.roadmap-card {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.roadmap-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}

.badge-in-progress {
  background: rgba(210, 153, 34, 0.18);
  border: 1px solid rgba(210, 153, 34, 0.4);
  color: var(--warning-color);
}

.badge-upcoming {
  background: rgba(31, 111, 235, 0.18);
  border: 1px solid rgba(88, 166, 255, 0.4);
  color: var(--accent-hover);
}

.roadmap-step-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-hover);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.roadmap-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.roadmap-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.roadmap-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.roadmap-items li {
  font-size: 12.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.roadmap-items li svg {
  color: var(--accent-hover);
  flex-shrink: 0;
}

/* =========================================================================
   FOOTER & BOTTOM CTA
   ========================================================================= */

.cta-banner {
  margin: 60px 0 80px;
  padding: 60px 40px;
  background:
    radial-gradient(circle at 50% 50%, rgba(31, 111, 235, 0.28) 0%, rgba(16, 21, 30, 0.95) 70%),
    var(--bg-panel);
  border: 1px solid rgba(88, 166, 255, 0.4);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow:
    var(--shadow-elevated),
    0 0 60px rgba(31, 111, 235, 0.2);
}

.cta-banner-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

.cta-banner-sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 30px;
}

.site-footer {
  border-top: 1px solid var(--border-color);
  background: #090c10;
  padding: 48px 0 32px;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 24px;
}

.footer-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

/* =========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================= */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtitle {
    margin: 0 auto 34px;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .features-breakdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .plugin-section-grid {
    grid-template-columns: 1fr;
  }
  .adapters-grid,
  .roadmap-grid,
  .ai-feature-card-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1240px) {
  .nav-links {
    gap: 12px;
  }
  .nav-link {
    font-size: 13px;
  }
}

@media (max-width: 1060px) {
  .nav-links {
    gap: 8px;
  }
  .nav-link {
    font-size: 12px;
  }
  .brand-badge {
    display: none;
  }
}

@media (max-width: 890px) {
  .nav-links {
    gap: 6px;
    overflow-x: auto;
    max-width: 52vw;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 38px;
  }
  .ai-showcase-box {
    grid-template-columns: 1fr;
  }
  .ai-dialog-preview {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .features-breakdown-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .footer-copy {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

