@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Premium Dark Console Color Palette */
  --bg-color: #161920;
  --card-color: #1a1e27;
  --shadow-dark: #0c0d11;
  --shadow-light: #20252f;
  
  /* Refined, Minimalist accents - Non-glowy, tactile metal feel */
  --accent-steel: #4a5c75;
  --accent-bronze: #bfa17a;
  --accent-silver: #cbd5e1;
  
  --led-active: #94a3b8;
  --led-inactive: #374151;
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #5e6675;
  
  --font-sans: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-tactile: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Scrollbar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Custom Scrollbar for physical rack feel */
::-webkit-scrollbar {
  width: 12px;
  background: var(--bg-color);
  box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
}

::-webkit-scrollbar-thumb {
  background: var(--card-color);
  border-radius: 6px;
  border: 3px solid var(--bg-color);
  box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Neumorphic Bevel Utilities */
.convex {
  background: var(--bg-color);
  box-shadow: 6px 6px 16px var(--shadow-dark), 
              -6px -6px 16px var(--shadow-light);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.convex-intense {
  background: var(--bg-color);
  box-shadow: 10px 10px 25px var(--shadow-dark), 
              -10px -10px 25px var(--shadow-light);
  border-radius: 24px;
}

.concave {
  background: var(--bg-color);
  box-shadow: inset 6px 6px 16px var(--shadow-dark), 
              inset -6px -6px 16px var(--shadow-light);
  border-radius: 20px;
}

.concave-panel {
  background: #13151c;
  box-shadow: inset 4px 4px 10px #090a0d, 
              inset -4px -4px 10px #1d202b;
  border-radius: 12px;
}

/* Tactile Clickable Elements */
.tactile-btn {
  background: var(--bg-color);
  border: none;
  border-radius: 14px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 4px 4px 10px var(--shadow-dark), 
              -4px -4px 10px var(--shadow-light);
  transition: var(--transition-tactile);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.tactile-btn:hover {
  transform: translateY(-1px);
  box-shadow: 5px 5px 12px var(--shadow-dark), 
              -5px -5px 12px var(--shadow-light);
  color: var(--accent-silver);
}

.tactile-btn:active, 
.tactile-btn.active {
  transform: translateY(1px);
  box-shadow: inset 3px 3px 8px var(--shadow-dark), 
              inset -3px -3px 8px var(--shadow-light);
  color: var(--accent-silver);
  background: #15181e;
}

.tactile-btn-bronze:hover {
  color: var(--accent-bronze);
}
.tactile-btn-bronze:active,
.tactile-btn-bronze.active {
  color: var(--accent-bronze);
}

/* Muted Status LEDs / Metal Pins */
.led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--led-inactive);
  display: inline-block;
  transition: var(--transition-smooth);
  box-shadow: inset 1px 1px 2px rgba(0,0,0,0.6);
}

.led-active {
  background-color: var(--accent-silver);
  box-shadow: 0 0 4px rgba(255,255,255,0.2);
}

.led-steel {
  background-color: var(--accent-steel);
}

/* Hardware Screws at corners */
.screw {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-color);
  box-shadow: inset 1px 1px 3px var(--shadow-dark), inset -1px -1px 3px var(--shadow-light);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screw::before {
  content: '';
  width: 8px;
  height: 1.5px;
  background: var(--text-muted);
  transform: rotate(45deg);
}

/* Header Console */
.header-console {
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--shadow-dark);
  background: var(--bg-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hamburger-btn {
  display: none;
  font-size: 20px;
  padding: 10px 14px;
}

.logo-panel {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 20px;
  color: var(--accent-silver);
  box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-text {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--accent-bronze);
}

.nav-links {
  display: flex;
  gap: 16px;
}

.nav-item {
  padding: 10px 20px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Main Container & Section Layouts */
.main-deck {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px;
}

.spa-view {
  display: none;
  animation: view-fade-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.spa-view.active-view {
  display: block;
}

@keyframes view-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-view-container {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.home-section {
  padding: 40px 0;
  scroll-margin-top: 100px;
}

/* Hero Section */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  padding-bottom: 20px;
}

@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.hero-content h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero-title-tree {
  display: flex;
  align-items: center;
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 24px;
  white-space: nowrap;
}

.tree-root { display: flex; align-items: center; }

.tree-branches {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.tree-branch-top, .tree-branch-bottom {
  display: flex;
  align-items: center;
}

.tree-dashes {
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: -2px;
}

.tree-bar {
  font-family: var(--font-mono);
  font-weight: 300;
  color: var(--text-muted);
  font-size: 72px;
  margin: 0 12px;
}

.font-robotic {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 2px;
}

.font-human {
  font-family: 'Caveat', cursive;
  font-size: 72px;
  font-weight: 700;
  transform: translateY(-8px);
}

.gradient-text-steel {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-steel));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-bronze {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-bronze));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-btn {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
}

/* Partners Module (Replacing Camera Aperture Module) */
.partners-module {
  height: 380px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.partners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
  flex: 1;
  align-content: center;
}

.partner-logo-card {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  user-select: none;
  transition: var(--transition-tactile);
}

.partner-logo-card:hover {
  transform: translateY(-1px);
}

.partner-img {
  max-height: 28px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1) brightness(0.9) contrast(1.1);
  opacity: 0.65;
  transition: var(--transition-smooth);
}

.partner-logo-card:hover .partner-img {
  filter: grayscale(0) brightness(1) contrast(1);
  opacity: 0.95;
}

/* Feature Grid */
.features-container {
  padding: 40px 0 20px 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-bronze);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.feature-card {
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.feature-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

/* Drive UI (Sample Dataset) */
.drive-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  min-height: 600px;
  margin-top: 20px;
}

@media (max-width: 868px) {
  .drive-layout {
    grid-template-columns: 1fr;
  }
}

.drive-sidebar {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drive-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drive-nav-item {
  width: 100%;
  padding: 12px 16px;
  justify-content: flex-start;
  font-size: 14px;
}

.drive-nav-item i {
  font-size: 16px;
}

.drive-storage-panel {
  padding: 16px;
}

.storage-bar-outer {
  height: 10px;
  border-radius: 5px;
  margin: 12px 0 8px 0;
}

.storage-bar-inner {
  height: 100%;
  border-radius: 5px;
  background: var(--accent-steel);
  width: 73%;
  transition: width 0.6s ease;
}

.storage-text {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

/* R2 Cloud Connector Panel */
.r2-connector-panel {
  padding: 14px;
}

.r2-url-input {
  font-size: 11px !important;
  padding: 10px 12px !important;
  font-family: var(--font-mono) !important;
}

.r2-connect-btn {
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

/* R2 connected state */
.r2-connected .r2-connector-panel {
  box-shadow: inset 4px 4px 10px var(--shadow-dark), inset -4px -4px 10px var(--shadow-light), 0 0 0 1px rgba(191, 161, 122, 0.15);
}

/* Video player inside modal */
.modal-video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  background: #000;
}

/* R2 file item badge */
.file-r2-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(191, 161, 122, 0.18);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--accent-bronze);
  letter-spacing: 1px;
}

.drive-main-panel {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.drive-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.drive-breadcrumbs {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.drive-breadcrumbs span.active-crumb {
  color: var(--accent-bronze);
}

.drive-search {
  padding: 10px 16px;
  border: none;
  font-family: var(--font-sans);
  color: var(--text-primary);
  width: 260px;
}

.drive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

/* Folder UI */
.folder-item {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition-tactile);
}

.folder-item:hover {
  transform: translateY(-2px);
}

.folder-icon-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.folder-icon {
  font-size: 32px;
  color: var(--accent-bronze);
}

.folder-name {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  width: 100%;
}

.folder-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* File List UI */
.file-item {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.file-thumbnail {
  height: 120px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.file-video-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--accent-bronze);
}

.file-item-name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  width: 100%;
}

.file-item-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Dataset Preview Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 13, 17, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active-modal {
  display: flex;
}

.console-modal {
  width: 100%;
  max-width: 800px;
  padding: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 18px;
}

.modal-maximize {
  position: absolute;
  top: 24px;
  right: 72px;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 16px;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr;
  }
}

.modal-preview-panel {
  border-radius: 16px;
  overflow: hidden;
  height: 240px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-preview-panel img,
.modal-preview-panel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-bronze);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-box {
  padding: 12px;
  text-align: center;
}

.stat-box-val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-bronze);
}

.stat-box-lbl {
  font-size: 11px;
  color: var(--text-muted);
}

/* Portal Card Layout (Single Centered Panel instead of side-by-side) */
.connect-console-card {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 40px;
  position: relative;
}

.portal-selector {
  display: flex;
  gap: 12px;
  padding: 6px;
  border-radius: 14px;
  margin-bottom: 24px;
}

.portal-tab {
  flex: 1;
  padding: 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.portal-tab.active {
  box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
  color: var(--accent-bronze);
}

.portal-content {
  display: none;
  animation: view-fade-in 0.3s ease-out;
}

.portal-content.active-portal {
  display: block;
}

.form-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--shadow-dark);
  padding-bottom: 16px;
}

.form-title {
  font-size: 22px;
  font-weight: 700;
}

/* Console Styled Switch */
.console-switch-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.switch-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.switch-label.active-label {
  color: var(--accent-bronze);
  font-weight: 700;
}

.console-switch-track {
  width: 60px;
  height: 28px;
  border-radius: 14px;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.console-switch-slider {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 4px;
  background: var(--text-muted);
  transition: var(--transition-tactile);
}

.console-switch-track.active-track .console-switch-slider {
  left: 34px;
  background: var(--accent-bronze);
}

/* Inputs & Form Styling */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.console-input {
  border: none;
  padding: 14px 18px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  width: 100%;
}

.console-input:focus {
  box-shadow: inset 4px 4px 10px var(--shadow-dark), 
              inset -4px -4px 10px var(--shadow-light),
              0 0 0 2px rgba(255,255,255,0.05);
}

.console-select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%239ca3af' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.console-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkbox-tile {
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.checkbox-tile input {
  display: none;
}

.checkbox-tile .custom-check {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox-tile input:checked + .custom-check {
  background: var(--accent-bronze);
}

.checkbox-tile input:checked + .custom-check::after {
  content: '✓';
  color: #12141a;
  font-weight: 800;
  font-size: 12px;
}

.checkbox-text {
  font-size: 13px;
  color: var(--text-secondary);
}

.checkbox-tile input:checked ~ .checkbox-text {
  color: var(--text-primary);
  font-weight: 600;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  margin-top: 10px;
}

/* Seller Form Toggle View Logic */
.seller-conditional {
  display: none;
}

.seller-conditional.active-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Open Source Section */
.opensource-banner {
  padding: 40px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 768px) {
  .opensource-banner {
    grid-template-columns: 1fr;
  }
}

.opensource-banner-content h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
}

.opensource-banner-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.os-metrics {
  display: flex;
  gap: 30px;
}

.os-metric-box {
  display: flex;
  flex-direction: column;
}

.os-metric-val {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-bronze);
}

.os-metric-lbl {
  font-size: 12px;
  color: var(--text-muted);
}

.github-telemetry {
  height: 200px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.os-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.os-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.os-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.os-card-title {
  font-size: 18px;
  font-weight: 700;
}

.os-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
}

/* Knowledge Center */
.knowledge-nav {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.knowledge-deck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.knowledge-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.k-category {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-steel);
  text-transform: uppercase;
}

.knowledge-card h3 {
  font-size: 20px;
  font-weight: 700;
}

.knowledge-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Creative Console Footer */
.footer-console {
  background: var(--bg-color);
  border-top: 2px solid var(--shadow-dark);
  padding: 60px 40px 30px 40px;
  position: relative;
  margin-top: 80px;
}

.footer-screws {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 15px;
  left: 20px;
  right: 20px;
}

.footer-deck {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

@media (max-width: 968px) {
  .footer-deck {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.footer-brand-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand-panel p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Analog Controls Footer Module */
.analog-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.knob-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.analog-knob {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transform: rotate(0deg);
  transition: transform 0.1s linear;
}

.knob-marker {
  width: 3px;
  height: 12px;
  background: var(--accent-bronze);
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 1px;
}

.knob-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.analog-sliders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--shadow-dark);
}

.slider-channel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slider-track {
  height: 8px;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
}

.slider-handle {
  width: 16px;
  height: 24px;
  border-radius: 4px;
  position: absolute;
  top: -8px;
  left: 45%;
  cursor: grab;
  transition: var(--transition-tactile);
}

.slider-handle:active {
  cursor: grabbing;
  box-shadow: inset 2px 2px 4px var(--shadow-dark), inset -2px -2px 4px var(--shadow-light);
}

/* Newsletter Panel */
.newsletter-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.newsletter-panel h4 {
  font-size: 16px;
  font-weight: 700;
}

.newsletter-input-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-btn {
  padding: 12px;
  font-weight: 700;
  width: 100%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--shadow-dark);
  font-size: 12px;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
}

/* Toast Alert styling */
.toast-alert {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 24px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-smooth);
}

.toast-alert.show-toast {
  transform: translateY(0);
  opacity: 1;
}

/* Knowledge category tab active styling */
.k-tab {
  padding: 8px 18px;
  font-size: 12px;
  text-transform: uppercase;
}

.k-tab.active {
  box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
  color: var(--accent-bronze);
}

/* POV Camera Viewfinder */
.pov-panel {
  padding: 24px;
  border-radius: 16px;
  position: relative;
}

.pov-lens {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  margin-top: 16px;
  position: relative;
  overflow: hidden;
  background: var(--bg-layer-1);
  box-shadow: inset 5px 5px 15px var(--shadow-dark),
              inset -5px -5px 15px var(--shadow-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pov-crosshair-v {
  position: absolute;
  width: 1px;
  height: 100%;
  background: rgba(191, 161, 122, 0.2);
}

.pov-crosshair-h {
  position: absolute;
  width: 100%;
  height: 1px;
  background: rgba(191, 161, 122, 0.2);
}

.pov-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-bronze);
  pointer-events: none;
}

.pov-top-left { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 6px; }
.pov-top-right { position: absolute; top: 12px; right: 12px; }
.pov-bottom-left { position: absolute; bottom: 12px; left: 12px; }
.pov-bottom-right { position: absolute; bottom: 12px; right: 12px; }

.pov-target-box {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  border: 1px solid rgba(191, 161, 122, 0.4);
  border-radius: 4px;
}
.pov-target-box::before, .pov-target-box::after {
  content: '';
  position: absolute;
  background: var(--accent-bronze);
}
.pov-target-box::before { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 2px; height: 2px; border-radius: 50%; }

.pov-glare {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(
    45deg,
    rgba(255,255,255,0) 40%,
    rgba(255,255,255,0.03) 50%,
    rgba(255,255,255,0) 60%
  );
  pointer-events: none;
  animation: glareSweep 8s infinite linear;
}

@keyframes glareSweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* Sensor Array Panel */
.sensor-array-panel {
  padding: 24px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sensor-lenses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sensor-lens-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.sensor-lens {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  background: var(--bg-layer-1);
  box-shadow: inset 8px 8px 16px var(--shadow-dark),
              inset -8px -8px 16px var(--shadow-light);
  border: 4px solid var(--bg-base);
}

/* Different lens tints */
.rgb-lens { background: radial-gradient(circle at center, #111, #000); }
.lidar-lens { background: radial-gradient(circle at center, #211, #000); }
.thermal-lens { background: radial-gradient(circle at center, #121, #000); }
.imu-lens { background: radial-gradient(circle at center, #112, #000); border-radius: 8px; }

.lens-glint {
  position: absolute;
  top: 15%;
  left: 15%;
  width: 30%;
  height: 30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
}

.sensor-status-feed {
  height: 60px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.6;
  overflow: hidden;
  position: relative;
}

.status-scroll {
  animation: feedScroll 6s infinite linear;
}

@keyframes feedScroll {
  0% { transform: translateY(100%); }
  100% { transform: translateY(-100%); }
}

/* ==========================================================================
   MOBILE OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 768px) {
  /* Header */
  .header-console {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    align-items: stretch;
  }
  .header-top {
    width: 100%;
  }
  .hamburger-btn {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .nav-links.show {
    display: flex;
  }
  .nav-item {
    font-size: 11px;
    padding: 8px 12px;
  }

  /* Typography & Hero Title Tree responsive fix */
  .hero-content h1 {
    font-size: 32px;
    letter-spacing: -0.5px;
  }
  .hero-title-tree {
    font-size: 32px;
    letter-spacing: -0.5px;
    flex-direction: column;
    align-items: flex-start;
    white-space: normal;
    line-height: 1.2;
  }
  .tree-root {
    font-size: 32px;
  }
  .tree-dashes {
    display: none;
  }
  .tree-bar {
    display: none;
  }
  .tree-branches {
    margin-left: 0;
    gap: 8px;
    margin-top: 8px;
    align-items: flex-start;
  }
  .tree-branch-top, .tree-branch-bottom {
    align-items: flex-start;
  }
  .font-human {
    font-size: 36px !important;
    transform: none !important;
  }
  .font-robotic {
    font-size: 24px !important;
  }
  .section-title {
    font-size: 28px;
  }

  /* Partners */
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Datasets */
  .drive-layout {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .drive-sidebar {
    padding: 12px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .drive-nav-list {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px; /* space for scrollbar */
    width: 100%;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }
  .drive-nav-item {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 10px 16px;
  }
  .drive-main-panel {
    padding: 16px !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .drive-breadcrumbs {
    flex-wrap: wrap !important;
    font-size: 11px !important;
  }
  .drive-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
  }
  .drive-header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .drive-search {
    width: 100% !important;
  }

  /* Connect Forms & Card padding adjustments */
  .connect-console-card {
    padding: 24px 16px !important;
  }
  .console-panels-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .console-checkbox-grid {
    grid-template-columns: 1fr;
  }
  .form-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  /* Knowledge */
  .knowledge-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  .knowledge-grid {
    grid-template-columns: 1fr;
  }

  /* Footer & Sensors */
  .sensor-lenses-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  /* Modals */
  .console-modal {
    width: 95% !important;
    max-height: 95vh !important;
    padding: 16px !important;
    overflow-y: auto !important;
  }
  .modal-preview-panel {
    height: 200px;
  }
  
  /* Cookies Banner Mobile Fix */
  #cookies-banner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    text-align: center;
  }
  #cookies-banner button {
    width: 100% !important;
  }
}


/* ============================================================================
   Jobs Page & Animated Boiling Tactile Button
   ============================================================================ */

/* Physical Tactile Jobs Keycap Button */
.tactile-btn-jobs {
  border: 1px solid rgba(191, 161, 122, 0.35) !important;
  background: linear-gradient(145deg, #1e222d, #141720) !important;
  box-shadow: 4px 4px 10px var(--shadow-dark), 
              -4px -4px 10px var(--shadow-light),
              inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  position: relative;
  transition: var(--transition-tactile);
}

.tactile-btn-jobs:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(191, 161, 122, 0.7) !important;
  box-shadow: 6px 7px 14px var(--shadow-dark), 
              -5px -5px 12px var(--shadow-light),
              0 0 12px rgba(191, 161, 122, 0.2) !important;
  color: var(--accent-bronze) !important;
}

.tactile-btn-jobs:active,
.tactile-btn-jobs.active {
  transform: translateY(2px) !important;
  box-shadow: inset 3px 3px 8px var(--shadow-dark), 
              inset -3px -3px 8px var(--shadow-light) !important;
  border-color: var(--accent-bronze) !important;
  color: var(--accent-bronze) !important;
}

/* Jobs SPA View Layout */
.jobs-banner-card {
  padding: 32px;
  margin-bottom: 36px;
  position: relative;
}

.jobs-banner-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.jobs-metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.jobs-metric-box {
  background: var(--bg-layer-2, #13151c);
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: inset 3px 3px 8px #090a0d, inset -3px -3px 8px #1d202b;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.jobs-metric-val {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-bronze);
}

.jobs-metric-lbl {
  font-size: 12px;
  color: var(--text-secondary);
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.job-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: var(--transition-smooth);
}

.job-card:hover {
  transform: translateY(-3px);
}

.job-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.job-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.job-company {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-bronze);
  letter-spacing: 1px;
}

.job-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #13151c;
  color: var(--text-secondary);
  box-shadow: inset 2px 2px 5px #090a0d, inset -2px -2px 5px #1d202b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.job-badge-bronze {
  color: var(--accent-bronze);
  border: 1px solid rgba(191, 161, 122, 0.2);
}

.job-badge-steel {
  color: var(--accent-silver);
  border: 1px solid rgba(203, 213, 225, 0.2);
}

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

.job-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.job-actions button {
  flex: 1;
  padding: 12px;
  font-size: 13px;
}

/* Job Detail Lists in Modal */
.job-section-heading {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-bronze);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 20px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.job-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.job-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.job-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-bronze);
  font-weight: bold;
}





