/* Shadcn / Tailwind Dark Theme Tokens */
:root {
  --background: #09090b;
  --foreground: #fafafa;
  --muted: #27272a;
  --muted-foreground: #a1a1aa;
  --border: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(9, 9, 11, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  
  --accent-cyan: #00f2ff;
  --accent-magenta: #ff00ff;
  --accent-violet: #8a2be2;
  
  --font-sans: 'Outfit', sans-serif;
  --radius: 0.75rem;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Partículas Sutiles (Magic UI) */
.meteors-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--background);
  mask-image: linear-gradient(to bottom, white, transparent);
  -webkit-mask-image: linear-gradient(to bottom, white, transparent);
}

.meteor {
  position: absolute;
  top: -10px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 4px 1px rgba(0, 242, 255, 0.4);
  opacity: 0;
  animation: meteor 15s linear infinite;
}

@keyframes meteor {
  0% { transform: translateY(-10vh) translateX(0); opacity: 0; }
  10% { opacity: 0.15; }
  90% { opacity: 0.15; }
  100% { transform: translateY(110vh) translateX(-20vw); opacity: 0; }
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.glow-text {
  text-shadow: 0 0 20px var(--accent-cyan);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Bento Grid (Aceternity) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.bento-item {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.bento-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Distribución Equitativa del Grid */
.bento-col {
  grid-column: span 12;
}
@media (min-width: 768px) {
  .bento-col { grid-column: span 12; } /* Tablets, se apilan o poner a 6 si son pares */
}
@media (min-width: 1200px) {
  .bento-col { grid-column: span 4; } /* Desktop, 3 columnas iguales */
}
.bento-half {
  grid-column: span 12;
}
@media (min-width: 768px) {
  .bento-half { grid-column: span 6; } /* Mitad para 2 elementos */
}

/* Hover Glow Effect (Glow Tracking) */
.bento-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}
.bento-item:hover::before {
  opacity: 1;
}

/* Magic UI - Animated Gradient Border Button */
.magic-btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  background: #000;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  z-index: 1;
  overflow: hidden;
  transition: transform 0.2s ease;
  margin-top: auto;
}
.magic-btn:hover {
  transform: scale(1.02);
}
.magic-btn::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(0, 242, 255, 0.3) 25%, transparent 50%);
  animation: spin var(--spin-duration, 40s) linear infinite var(--spin-delay, 0s);
  z-index: -2;
}
.magic-btn::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: #09090b;
  border-radius: calc(var(--radius) - 2px);
  z-index: -1;
}

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

/* Aceternity 3D Tilt Card */
.tilt-card-wrapper {
  perspective: 1000px;
}
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.1s ease;
  will-change: transform;
  display: flex;
  flex-direction: column;
}
.tilt-card > * {
  transform: translateZ(30px); /* Hace que el contenido flote un poco */
}

/* Utilidades generales */
.section {
  padding: 50px 0;
}
.text-muted {
  color: var(--muted-foreground);
}
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(255,255,255,0.1);
  font-size: 0.75rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: #000000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-v2 {
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--foreground);
}

/* Hamburger Toggle Button */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
    transition: border-color 0.3s ease;
}

.menu-toggle:hover {
    border-color: var(--accent-cyan);
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--foreground);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Dropdown Nav Panel */
.nav-links {
    position: fixed;
    top: 80px;
    right: 0;
    width: 260px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    border-radius: 0 0 0 var(--radius);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 10px 40px rgba(0, 0, 0, 0.6);
    z-index: 99;
}

.nav-links.open {
    transform: translateX(0);
}

.nav-links a {
    text-decoration: none;
    color: var(--foreground);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding: 14px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-links a:hover {
    color: var(--accent-cyan);
    background: rgba(0, 242, 255, 0.05);
    padding-left: 36px;
}

/* ==========================================
   Interactive 3D Carousel & Hero Layout Styles
   ========================================== */

/* Hero Section (Vertical: Viewer Window + Info Panels) */
.hero-section {
    width: 100%;
    position: relative;
    background-color: #000;
    padding-top: 80px; /* Compensa header fijo */
}

/* 3D Viewer Window */
.hero-iframe {
    position: relative;
    display: block;
    width: 100%;
    height: 65vh;
    min-height: 450px;
    border: none;
    background: #000;
    z-index: 1;
    pointer-events: auto;
    transition: opacity 0.4s ease;
}

/* Hologram Scanlines (over viewer area) */
.scanlines {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    height: 65vh;
    min-height: 450px;
    pointer-events: none;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.3) 50%
    );
    background-size: 100% 4px;
    z-index: 5;
    opacity: 0.3;
}

/* Info Section Below Viewer */
.hero-overlay {
    position: relative;
    z-index: 10;
    pointer-events: none;
}

.hero-container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 0 3rem 0;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    align-items: start;
}

/* Panels */
.hero-left-panel {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: flex-start;
}

.hero-right-panel {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: flex-start;
}

/* Branding HUD */
.hero-branding {
    pointer-events: auto; /* Activa la selección en textos y hover */
}

.hero-branding h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    color: var(--foreground);
    text-shadow: 0 0 30px rgba(0, 242, 255, 0.5);
}

.branding-sub {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

/* Model Technical Stats Panel (Glassmorphism) */
.model-stats-panel {
    padding: 2rem;
    background: rgba(9, 9, 11, 0.55);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    pointer-events: auto; /* Interactividad completa */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 0 30px rgba(255, 255, 255, 0.02);
    transition: border-color 0.3s ease, padding 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.model-stats-panel:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.model-stats-panel.collapsed {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    width: 100%;
    transition: all 0.3s ease;
}

.stats-header:hover h3 {
    opacity: 0.85;
}

.stats-header.collapsed .dropdown-chevron {
    transform: rotate(-180deg); /* Collapsed points up */
}

.stats-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Stats Collapsible Container */
.stats-collapsible {
    max-height: 500px; /* Default height */
    opacity: 1;
    overflow: hidden;
    margin-top: 1.5rem;
    transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin-top 0.4s ease;
}

.stats-collapsible.collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
    margin-top: 0 !important;
    pointer-events: none !important;
}

.terminal-text {
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.8rem;
    min-height: 72px; /* Evita saltos de layout al cambiar texto */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    margin-bottom: 1.2rem;
}

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--muted-foreground);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.stat-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--foreground);
    letter-spacing: 0.5px;
}

/* LIVE Status Badge inside Stats */
.viewer-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--accent-cyan);
    backdrop-filter: blur(8px);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.4; }
    50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 12px var(--accent-cyan); }
    100% { transform: scale(0.9); opacity: 0.4; }
}

/* Selector Header (Collapsible Accordion) */
.selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.2rem;
    background: rgba(9, 9, 11, 0.45);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    cursor: pointer;
    user-select: none;
    pointer-events: auto;
    margin-bottom: 1rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.selector-header:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.selector-header h4 {
    font-size: 1rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.4);
}

.dropdown-chevron {
    color: var(--accent-cyan);
    font-size: 0.75rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: rotate(0deg); /* Points down when open */
}

.selector-header.collapsed .dropdown-chevron {
    transform: rotate(-180deg); /* Points up when collapsed */
}

/* Carousel Track (Vertical Stack with glass panels) */
.carousel-track {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    padding-right: 8px;
    max-height: 480px; /* Default height on desktop */
    opacity: 1;
    pointer-events: auto; /* Permite scroll y clicks */
    transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin 0.4s ease, padding 0.4s ease;
}

.carousel-track.collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    pointer-events: none !important;
}

/* Custom Cyberpunk Scrollbar */
.carousel-track::-webkit-scrollbar {
    width: 4px;
}

.carousel-track::-webkit-scrollbar-track {
    background: transparent;
}

.carousel-track::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
}

.carousel-track::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Carousel Card Base */
.carousel-item-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.1rem;
    background: rgba(9, 9, 11, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    cursor: pointer;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.carousel-item-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(6px);
    border-color: rgba(255, 255, 255, 0.18);
}

/* Glowing Border for Active State */
.card-glow-border {
    position: absolute;
    inset: 0;
    border: 1.5px solid transparent;
    border-radius: var(--radius);
    pointer-events: none;
    z-index: 1;
    transition: all 0.3s ease;
}

.carousel-item-card.active {
    background: rgba(255, 255, 255, 0.07);
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.carousel-item-card.active .card-glow-border {
    border-color: var(--accent-glow);
    box-shadow: inset 0 0 10px var(--accent-glow), 0 0 15px var(--accent-glow);
}

/* Mini 3D preview render container */
.card-mini-viewer {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    overflow: hidden;
    flex-shrink: 0;
}

.card-mini-viewer canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.card-category {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.card-info h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
}

.card-info p {
    font-size: 0.78rem;
    margin: 0;
    line-height: 1.3;
}

.card-format-badge {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--muted-foreground);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.carousel-item-card.active .card-format-badge {
    border-color: var(--accent-glow);
    color: var(--foreground);
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================
   Responsive Adaptation for Tablets & Mobile
   ========================================== */

@media (max-width: 1199px) {
    .hero-iframe {
        height: 50vh;
        min-height: 350px;
    }
    
    .scanlines {
        height: 50vh;
        min-height: 350px;
    }
    
    .hero-container {
        display: flex;
        flex-direction: column;
        padding: 1.5rem 0 2rem 0;
        gap: 1.5rem;
    }
    
    .hero-left-panel {
        width: 100%;
        gap: 1.5rem;
    }
    
    .hero-right-panel {
        width: 100%;
    }
    
    .hero-branding {
        text-align: center;
    }
    
    .hero-branding h1 {
        font-size: 2.2rem;
    }
    
    .branding-sub {
        font-size: 0.85rem;
    }
    
    .model-stats-panel {
        padding: 1.2rem;
    }
    
    .stats-header h3 {
        font-size: 1.3rem;
    }
    
    .terminal-text {
        font-size: 0.85rem;
        min-height: auto;
        margin-bottom: 1.2rem;
    }
    
    .stats-grid {
        gap: 1rem;
        padding-top: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .stat-value {
        font-size: 0.95rem;
    }
    
    /* Horizontal selector dock for mobile */
    .carousel-track {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        height: auto;
        max-height: 160px; /* Limits mobile card height */
        padding-bottom: 10px;
        padding-right: 0;
        width: 100%;
        scroll-snap-type: x mandatory;
        transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.4s ease, margin 0.4s ease;
    }
    
    .carousel-item-card {
        flex: 0 0 280px;
        scroll-snap-align: start;
    }
    
    .carousel-item-card:hover {
        transform: translateY(-4px);
    }
    
    .selector-header {
        margin-bottom: 0.75rem;
    }
}

/* ==========================================
   Intro Screen (Splash Screen) Styles
   ========================================== */
#intro-screen {
  position: fixed;
  inset: 0;
  background-color: #000000;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), visibility 1s ease;
  overflow: hidden;
}

#intro-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

#intro-logo {
  cursor: default;
  filter: drop-shadow(0 0 45px rgba(0, 242, 255, 0.4)) drop-shadow(0 0 15px rgba(255, 46, 209, 0.2));
  transition: transform 0.5s ease;
  margin: 0;
}

.intro-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: 0.15em;
  color: var(--foreground);
  margin-bottom: 2rem;
  text-transform: uppercase;
  animation: glowPulse 3s infinite alternate;
}

.intro-loader {
  width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.loader-bar-bg {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
}

.loader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: fillLoader 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.loader-text {
  font-size: 0.65rem;
  color: var(--muted-foreground);
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: blinkText 1.5s infinite;
}

@keyframes fillLoader {
  0% { width: 0%; }
  100% { width: 100%; }
}

@keyframes blinkText {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes glowPulse {
  0% { text-shadow: 0 0 10px rgba(0, 242, 255, 0.2); }
  100% { text-shadow: 0 0 25px rgba(0, 242, 255, 0.6), 0 0 10px rgba(255, 0, 255, 0.4); }
}

/* ==========================================
   Desktop Fullscreen HUD Overlay Layout (min-width: 1200px)
   ========================================== */
@media (min-width: 1200px) {
    .hero-section {
        height: 100vh;
        min-height: 650px;
        padding-top: 80px;
        overflow: hidden;
    }
    
    .hero-iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 1;
    }
    
    .scanlines {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 5;
    }
    
    .hero-overlay {
        position: absolute;
        inset: 0;
        z-index: 10;
        pointer-events: none;
        display: flex;
        align-items: stretch;
        padding-top: 110px;
        padding-bottom: 2.5rem;
    }
    
    .hero-container {
        width: 96%;
        max-width: 1700px;
        margin: 0 auto;
        padding: 0;
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 2.5rem;
        align-items: stretch;
        pointer-events: none;
    }
    
    .hero-left-panel {
        grid-column: span 5;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        justify-content: flex-start;
        align-self: flex-start;
        pointer-events: auto;
    }
    
    .hero-right-panel {
        grid-column: 9 / span 4; /* Floats to the far right, leaving columns 6, 7, 8 in the middle for 3D model */
        display: flex;
        flex-direction: column;
        gap: 1rem;
        justify-content: flex-start;
        align-self: flex-start;
        pointer-events: auto;
    }
    
    /* Hide top header branding on desktop to match target screenshot */
    .hero-branding {
        display: none !important;
    }
    
    /* Unified Model Selector Panel Card */
    .model-selector-panel {
        padding: 1.5rem;
        background: rgba(9, 9, 11, 0.55);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        pointer-events: auto;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 0 30px rgba(255, 255, 255, 0.02);
        transition: border-color 0.3s ease, padding 0.45s cubic-bezier(0.16, 1, 0.3, 1), gap 0.45s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
    }
    
    .model-selector-panel:hover {
        border-color: rgba(255, 255, 255, 0.15);
    }
    
    .model-selector-panel.collapsed {
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
        gap: 0;
    }
    
    .selector-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0;
        background: transparent !important;
        border: none !important;
        cursor: pointer;
        user-select: none;
        pointer-events: auto;
        margin-bottom: 0;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        width: 100%;
    }
    
    .selector-header:hover h4 {
        opacity: 0.85;
    }
    
    /* Compact Selector Cards on Desktop (Matches target design) */
    .card-mini-viewer {
        display: block !important;
        width: 54px;
        height: 54px;
    }
    
    .carousel-item-card {
        padding: 0.8rem 1.1rem;
        gap: 1rem;
        height: auto;
        background: rgba(9, 9, 11, 0.5);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        align-items: center;
    }
    
    .carousel-item-card:hover {
        background: rgba(255, 255, 255, 0.05);
        transform: translateX(6px);
        border-color: rgba(255, 255, 255, 0.18);
    }
    
    .carousel-item-card.active {
        background: rgba(255, 255, 255, 0.07);
    }
    
    .card-info {
        display: flex;
        flex-direction: column;
        gap: 2px;
        justify-content: center;
    }
    
    .card-info h5 {
        font-size: 0.95rem;
        font-weight: 600;
        margin: 0;
        line-height: 1.2;
    }
    
    .card-info p {
        display: block !important; /* Make sure description is visible */
        font-size: 0.75rem;
        color: var(--muted-foreground);
    }
    
    .carousel-track {
        max-height: 380px;
    }
}

/* ==========================================
   Responsive Adaptations for Shorter Screens (Low Height Viewports)
   ========================================== */
@media (min-width: 1200px) and (max-height: 850px) {
    .hero-overlay {
        padding-top: 90px;
        padding-bottom: 1.5rem;
    }
    
    .hero-container {
        gap: 1.2rem;
    }
    
    .hero-left-panel {
        gap: 0.8rem;
    }
    
    .model-stats-panel {
        padding: 1.2rem;
    }
    
    .model-selector-panel {
        padding: 1.2rem;
    }
    
    .terminal-text {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
        min-height: auto;
    }
    
    .card-mini-viewer {
        width: 44px !important;
        height: 44px !important;
    }
    
    .carousel-item-card {
        padding: 0.5rem 0.8rem;
        height: auto !important;
        gap: 0.8rem !important;
    }
    
    .card-info h5 {
        font-size: 0.85rem;
    }
    
    .card-info p {
        font-size: 0.7rem;
    }
    
    .carousel-track {
        max-height: 240px;
    }
}
