/* ==========================================================================
   DroneGuard AI - Minimalist Light Theme Stylesheet
   Clean, modern, high-contrast UI optimized for Mobile, Tablet & Desktop
   ========================================================================== */

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

:root {
  /* Minimalist Light Palette */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-muted: #e2e8f0;
  
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-active: #0284c7;
  
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  
  /* Modern Accent Colors */
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-subtle: #f0f9ff;
  --primary-border: #bae6fd;
  
  --emerald: #059669;
  --emerald-subtle: #ecfdf5;
  --emerald-border: #a7f3d0;
  
  --amber: #d97706;
  --amber-subtle: #fffbeb;
  --amber-border: #fde68a;
  
  --red: #dc2626;
  --red-subtle: #fef2f2;
  --red-border: #fecaca;
  
  /* Radii & Elevation */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 6px 16px -2px rgba(0, 0, 0, 0.08), 0 2px 6px -2px rgba(0, 0, 0, 0.04);
}

/* Global Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-page);
  color: var(--text-body);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace !important;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-page);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Layout container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 3.5rem 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.85rem 0;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: #0f172a;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.15rem;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-main);
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  transition: color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

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

.nav-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  white-space: nowrap;
}

.pill-badge.demo {
  background: var(--amber-subtle);
  border: 1px solid var(--amber-border);
  color: #b45309;
}

.pill-badge.model {
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  color: #0369a1;
}

/* Minimalist Cards & Panels */
.ai-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: all 0.2s ease;
  width: 100%;
}

.ai-panel:hover {
  border-color: var(--border-medium);
}

/* Section Header */
.section-header {
  margin-bottom: 2rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  border-radius: 9999px;
  color: var(--primary);
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.section-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  max-width: 700px;
  line-height: 1.6;
}

/* Hero Section */
.hero-section {
  padding: 2.75rem 0 1.5rem;
}

.hero-banner {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.25rem;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2.25rem;
  align-items: center;
  box-shadow: var(--shadow-card);
}

.hero-title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.22;
  color: var(--text-main);
  letter-spacing: -0.8px;
  margin-bottom: 0.85rem;
}

.hero-title span {
  color: var(--primary);
}

.hero-desc {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.45rem;
  background: var(--text-main);
  color: #ffffff;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-body);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: #94a3b8;
  color: var(--text-main);
}

.metrics-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.metric-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metric-label {
  font-size: 0.68rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.metric-val {
  font-size: 1.55rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.2;
  color: var(--text-main);
}

/* Interactive Sandbox Workspace */
.demo-sandbox-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Upload Panel */
.upload-panel {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.dropzone-container {
  border: 2px dashed var(--border-medium);
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  position: relative;
  transition: all 0.2s ease;
  width: 100%;
}

.dropzone-container.disabled {
  cursor: not-allowed;
  background: #f8fafc;
  border-color: #cbd5e1;
}

.dropzone-container.disabled:hover {
  background: #f1f5f9;
}

.dropzone-icon {
  width: 48px;
  height: 48px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--amber);
  margin: 0 auto 0.85rem;
  box-shadow: var(--shadow-sm);
}

.dropzone-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.dropzone-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.15rem;
  line-height: 1.4;
}

.btn-upload-disabled {
  width: 100%;
  padding: 0.7rem 1rem;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: not-allowed;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: var(--shadow-sm);
}

.btn-disabled-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.demo-notice-card {
  background: var(--amber-subtle);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.demo-notice-icon {
  color: var(--amber);
  font-size: 1.05rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.demo-notice-text {
  font-size: 0.78rem;
  color: #92400e;
  line-height: 1.5;
}

/* Detection Viewer Panel */
.viewer-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-light);
}

.viewer-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  min-width: 0;
}

.viewer-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.toggle-btn {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-body);
  padding: 0.38rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.toggle-btn:hover {
  background: var(--bg-subtle);
  border-color: #94a3b8;
}

.toggle-btn.active {
  background: var(--primary-subtle);
  border-color: var(--primary);
  color: var(--primary);
}

.slider-group {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-body);
  background: #ffffff;
  border: 1px solid var(--border-medium);
  padding: 0.32rem 0.65rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.slider-group input[type="range"] {
  width: 70px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Canvas Viewport (Mathematical Pixel-Perfect Container) */
.canvas-viewport-wrap {
  position: relative;
  width: 100%;
  background: #0f172a;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  overflow: hidden;
  line-height: 0;
  display: block;
}

.canvas-viewport-wrap img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  border-radius: calc(var(--radius-md) - 1px);
}

/* Bounding Box Overlay */
#boxesOverlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* YOLO Bounding Boxes */
.yolo-box {
  position: absolute;
  border: 2px solid #ef4444;
  background: rgba(239, 68, 68, 0.12);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.yolo-box.emerald {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.yolo-box.cyan {
  border-color: #0284c7;
  background: rgba(2, 132, 199, 0.12);
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.4);
}

.yolo-label {
  position: absolute;
  top: -22px;
  left: -2px;
  background: #ef4444;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.62rem, 1.8vw, 0.72rem);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px 3px 0 0;
  white-space: nowrap;
  line-height: 1.2;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.yolo-box.emerald .yolo-label {
  background: #10b981;
  color: #ffffff;
}

.yolo-box.cyan .yolo-label {
  background: #0284c7;
  color: #ffffff;
}

/* Inference Scanner Animation */
.scan-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
  box-shadow: 0 0 10px #38bdf8;
  top: 0;
  opacity: 0;
  pointer-events: none;
}

.scan-line.scanning {
  animation: scanSweep 0.55s ease-in-out forwards;
}

@keyframes scanSweep {
  0% { top: 0; opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* JSON Output Modal/Drawer Tab */
.json-view-container {
  background: #0f172a;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  padding: 1rem 1.15rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: #38bdf8;
  max-height: 380px;
  overflow-y: auto;
  white-space: pre-wrap;
  display: none;
  line-height: 1.5;
}

/* Telemetry Grid */
.telemetry-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.telemetry-tile {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  min-width: 0;
}

.telemetry-tile-label {
  font-size: 0.68rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.telemetry-tile-val {
  font-size: 1.05rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Pre-Processed Samples Section (Cards / Tiles) */
.samples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.sample-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.sample-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-hover);
}

.sample-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-border), var(--shadow-hover);
}

.sample-thumb-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  background: #0f172a;
  overflow: hidden;
}

.sample-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.sample-card:hover .sample-thumb-wrap img {
  transform: scale(1.04);
}

.sample-chip {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

.sample-conf-chip {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #059669;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

.sample-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.sample-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.sample-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border-light);
}

.sample-meta-tag {
  color: var(--primary);
  font-weight: 600;
}

/* Benchmarks Table */
.benchmark-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.benchmark-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.benchmark-table th {
  background: var(--bg-subtle);
  color: var(--text-main);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  text-align: left;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.76rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.benchmark-table td {
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-body);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}

.benchmark-table tr.highlight {
  background: var(--primary-subtle);
}

.benchmark-table tr.highlight td {
  color: var(--text-main);
  font-weight: 700;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: var(--shadow-card);
}

.feature-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.feature-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  font-size: 0.84rem;
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 90vw;
}

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

/* Footer */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 2.25rem 0;
  margin-top: 3.5rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

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

/* ==========================================================================
   Comprehensive Responsive Breakpoints (Tablet, Phablet & Mobile)
   ========================================================================== */

/* 1. Tablet Landscape & Small Laptops (992px - 1180px) */
@media (max-width: 1180px) {
  .hero-banner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.75rem;
    padding: 2.25rem 1.75rem;
  }
  .demo-sandbox-grid {
    grid-template-columns: 310px 1fr;
    gap: 1.25rem;
  }
}

/* 2. Tablet Portrait (768px - 991px) */
@media (max-width: 991px) {
  .header-nav {
    display: none;
  }
  
  .hero-banner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 2rem 1.5rem;
  }

  .metrics-summary-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }

  .demo-sandbox-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .samples-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }

  .telemetry-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
  }
}

/* 3. Phablets & Large Mobile (576px - 767px) */
@media (max-width: 767px) {
  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 2.25rem 0;
  }

  .section-header {
    margin-bottom: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-desc {
    font-size: 0.86rem;
  }

  .ai-panel {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
  }

  .hero-section {
    padding: 1.5rem 0 1rem;
  }

  .hero-banner {
    padding: 1.5rem 1.15rem;
    border-radius: var(--radius-lg);
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }

  .hero-desc {
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
  }

  .metrics-summary-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .metric-box {
    padding: 0.85rem;
  }

  .metric-val {
    font-size: 1.35rem;
  }

  .viewer-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .viewer-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    width: 100%;
  }

  .slider-group {
    grid-column: span 2;
    justify-content: space-between;
  }

  .telemetry-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .samples-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .sample-thumb-wrap {
    height: 190px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .toast-notice {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    font-size: 0.78rem;
    padding: 0.75rem 1rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* 4. Small Mobile Phones (320px - 575px) */
@media (max-width: 575px) {
  .site-header {
    padding: 0.65rem 0;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
    font-size: 1.05rem;
    border-radius: 8px;
  }

  .brand-title {
    font-size: 1.02rem;
  }

  .brand-subtitle {
    display: none;
  }

  .nav-badges .pill-badge.model {
    display: none;
  }

  .pill-badge {
    padding: 0.25rem 0.55rem;
    font-size: 0.68rem;
  }

  .hero-title {
    font-size: 1.45rem;
  }

  .metric-val {
    font-size: 1.25rem;
  }

  .viewer-controls {
    grid-template-columns: 1fr;
  }

  .slider-group {
    grid-column: span 1;
  }

  .telemetry-tile {
    padding: 0.6rem 0.75rem;
  }

  .telemetry-tile-label {
    font-size: 0.62rem;
  }

  .telemetry-tile-val {
    font-size: 0.92rem;
  }
}
