/* ==========================================================================
   APPZELY — Enterprise AI & Computer Vision Platform
   Design System & Premium Stylesheet (Apple/Samsung Flagship Keynote Caliber)
   ========================================================================== */

/* --- CSS Reset & Box Sizing --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand Core: Titanium Void Palette */
  --bg-black: #06070a;
  --bg-dark: #0a0c12;
  --bg-surface: #10131d;
  --bg-surface-elevated: #161a29;
  --bg-card: rgba(22, 26, 41, 0.7);
  --bg-card-hover: rgba(30, 36, 56, 0.85);

  /* Brand Accents: Prismatic Violet, Laser Cyan, Cyber Fuchsia */
  --brand-violet: #8b5cf6;
  --brand-violet-glow: rgba(139, 92, 246, 0.4);
  --brand-cyan: #06b6d4;
  --brand-cyan-glow: rgba(6, 182, 212, 0.35);
  --brand-pink: #ec4899;
  --brand-amber: #f59e0b;
  --brand-emerald: #10b981;

  /* Gradients */
  --grad-prism: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #06b6d4 100%);
  --grad-prism-rev: linear-gradient(135deg, #06b6d4 0%, #6366f1 50%, #ec4899 100%);
  --grad-titanium: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 100%);
  --grad-hero-glow: radial-gradient(circle at 50% 30%, rgba(139, 92, 246, 0.18) 0%, rgba(6, 182, 212, 0.1) 40%, transparent 70%);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-highlight: #e2e8f0;

  /* Borders & Glass */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(139, 92, 246, 0.3);
  --glass-blur: blur(20px);

  /* Shadows */
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-elevated: 0 12px 40px rgba(0, 0, 0, 0.65);
  --shadow-prism: 0 0 35px rgba(139, 92, 246, 0.25);
  --shadow-cyan: 0 0 35px rgba(6, 182, 212, 0.25);

  /* Fonts */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --container-max: 1280px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --tr-fast: 0.15s ease;
  --tr-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --tr-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-black);
  color: var(--text-primary);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-black);
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Subtle Tech Grid Background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* --- Container Utility --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 1;
}

/* --- Fast 1s Preloader --- */
.preloader {
  position: fixed;
  inset: 0;
  background: #06070a;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.preloader-brand img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.6));
}

.preloader-progress {
  width: 220px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.preloader-bar {
  width: 0%;
  height: 100%;
  background: var(--grad-prism);
  border-radius: var(--radius-full);
  animation: preloader-load 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes preloader-load {
  0% { width: 0%; }
  60% { width: 75%; }
  100% { width: 100%; }
}

/* --- Navigation Header (Apple / Linear Keynote Caliber) --- */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px 0;
  background: rgba(6, 8, 14, 0.82);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  transition: padding var(--tr-smooth), background var(--tr-smooth), border var(--tr-smooth);
}

.header-nav.scrolled {
  padding: 8px 0;
  background: rgba(6, 8, 14, 0.94);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  border-bottom-color: rgba(139, 92, 246, 0.2);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform var(--tr-fast), opacity var(--tr-fast);
  flex-shrink: 0;
}

.brand-logo img {
  height: 48px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.25));
  transition: filter var(--tr-fast);
}

.brand-logo:hover img {
  filter: drop-shadow(0 0 22px rgba(139, 92, 246, 0.5));
}

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

/* Sleek Pill Capsule Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  padding: 4px 6px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-display);
  padding: 7px 15px;
  border-radius: var(--radius-full);
  transition: all var(--tr-fast);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: #ffffff;
  background: rgba(139, 92, 246, 0.22);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

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

.deck-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  transition: all var(--tr-fast);
}

.deck-link-btn:hover {
  color: #ffffff;
  border-color: var(--brand-violet);
  background: rgba(139, 92, 246, 0.15);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.25);
}

/* Mobile / Tablet Drawer BASE RULE */
.mobile-drawer {
  display: none;
}

.mobile-drawer.open {
  display: flex !important;
}

body.drawer-open {
  overflow: hidden;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: #ffffff;
  background: var(--grad-prism);
  border: none;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
  transition: transform var(--tr-fast), box-shadow var(--tr-fast), filter var(--tr-fast);
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.55);
  filter: brightness(1.08);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--tr-fast);
  white-space: nowrap;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Language Switch */
.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--tr-fast);
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

/* Mobile Hamburger Button (iOS optimized) */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px;
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   HERO SECTION — Apple Keynote / Samsung Product Launch Caliber
   ========================================================================== */
.hero-section {
  position: relative;
  padding-top: 150px;
  padding-bottom: 90px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 15%, rgba(139, 92, 246, 0.12) 0%, rgba(6, 182, 212, 0.06) 35%, transparent 70%);
}

.hero-glow-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
}

.hero-glow-1 {
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, #8b5cf6 0%, #6366f1 50%, transparent 70%);
}

.hero-glow-2 {
  top: 300px;
  right: -100px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
}

.hero-content {
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c084fc;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(56, 189, 248, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.2vw, 4.2rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

.grad-text {
  background: var(--grad-prism);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.68;
  max-width: 800px;
  margin: 0 auto 36px auto;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.hero-trust-bar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-trust-bar i {
  color: #38bdf8;
}

/* --- Hero Product Showcase Stage --- */
.hero-stage {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  padding: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 60px rgba(139, 92, 246, 0.18);
  overflow: visible;
}

.hero-stage-inner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.hero-stage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-stage:hover .hero-stage-img {
  transform: scale(1.02);
}

/* Laser Scan Line Effect across Hardware */
.hero-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, #a855f7, transparent);
  box-shadow: 0 0 16px #38bdf8;
  opacity: 0.8;
  animation: laser-scan 4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes laser-scan {
  0% { top: 5%; opacity: 0.2; }
  50% { opacity: 0.9; }
  100% { top: 92%; opacity: 0.2; }
}

/* Floating Telemetry Chips */
.telemetry-badge {
  position: absolute;
  padding: 10px 18px;
  background: rgba(10, 12, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  animation: float-telemetry 5s ease-in-out infinite;
}

.telemetry-left {
  top: 18%;
  left: -20px;
  border-left: 3px solid #38bdf8;
}

.telemetry-right {
  bottom: 22%;
  right: -20px;
  border-right: 3px solid #a855f7;
  animation-delay: -2.5s;
}

.telemetry-badge .icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.telemetry-badge.telemetry-left .icon-box {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
}

.telemetry-badge.telemetry-right .icon-box {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.telemetry-badge .meta-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.telemetry-badge .meta-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-display);
}

@keyframes float-telemetry {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* ==========================================================================
   METRICS & PERFORMANCE STRIP
   ========================================================================== */
.metrics-section {
  padding: 60px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 12, 18, 0.6);
}

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

.metric-item {
  text-align: center;
  padding: 16px;
  position: relative;
}

.metric-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--border-subtle);
}

.metric-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  background: var(--grad-prism);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.metric-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   INTERACTIVE AI SIMULATOR / INSPECTOR WIDGET (Live Playground)
   ========================================================================== */
.simulator-section {
  padding: 100px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 54px auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

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

.sim-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}

.sim-nav {
  display: flex;
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px;
  gap: 8px;
  overflow-x: auto;
}

.sim-tab-btn {
  flex: 1;
  min-width: 220px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--tr-fast);
}

.sim-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.sim-tab-btn.active {
  color: #ffffff;
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
}

.sim-tab-btn i {
  color: var(--brand-violet);
}

.sim-tab-btn.active i {
  color: #38bdf8;
}

.sim-viewport {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  min-height: 480px;
}

.sim-media-pane {
  position: relative;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sim-media-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dynamic AI Overlays in Simulator */
.ai-hud-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ai-hud-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.hud-pill {
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #38bdf8;
  backdrop-filter: blur(10px);
}

.hud-bounding-box {
  position: absolute;
  border: 2px solid #10b981;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px;
  transition: all 0.4s ease;
}

.hud-bounding-box.warning {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
}

.hud-bounding-box.critical {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

.box-tag {
  background: #10b981;
  color: #000000;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 2px;
  align-self: flex-start;
  letter-spacing: 0.05em;
}

.box-tag.warning {
  background: #f59e0b;
}

.box-tag.critical {
  background: #ef4444;
  color: #ffffff;
}

.sim-info-pane {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-surface-elevated);
}

.sim-info-header h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.sim-info-header p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.sim-stats-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.stat-row .stat-name {
  color: var(--text-muted);
}

.stat-row .stat-value {
  font-weight: 700;
  font-family: var(--font-display);
  color: #ffffff;
}

.stat-value.ok {
  color: #34d399;
}

.stat-value.warning {
  color: #fbbf24;
}

.sim-live-log {
  background: #06070a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  color: #a3e635;
  line-height: 1.5;
  max-height: 100px;
  overflow-y: auto;
}

/* ==========================================================================
   THREE PILLARS — Enterprise AI Product Architecture
   ========================================================================== */
.pillars-section {
  padding: 100px 0;
  position: relative;
}

.pillar-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 56px;
  transition: border-color var(--tr-smooth), box-shadow var(--tr-smooth);
}

.pillar-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(139, 92, 246, 0.15);
}

.pillar-card.reverse {
  grid-template-columns: 1fr 1.15fr;
}

.pillar-card.reverse .pillar-img-col {
  order: 2;
}

.pillar-card.reverse .pillar-info-col {
  order: 1;
}

.pillar-img-col {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
}

.pillar-img-col img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--tr-smooth);
}

.pillar-card:hover .pillar-img-col img {
  transform: scale(1.03);
}

.pillar-info-col {
  display: flex;
  flex-direction: column;
}

.pillar-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-violet);
  margin-bottom: 12px;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.015em;
}

.pillar-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.68;
  margin-bottom: 24px;
}

.pillar-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.pillar-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.94rem;
  color: var(--text-highlight);
}

.pillar-feat-item i {
  color: #38bdf8;
  margin-top: 4px;
}

/* ==========================================================================
   COMPARISON & BENCHMARK MATRIX (Superiority vs Legacy)
   ========================================================================== */
.benchmark-section {
  padding: 90px 0;
  background: rgba(10, 12, 18, 0.65);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
}

.benchmark-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
}

.benchmark-table th, .benchmark-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.benchmark-table th {
  background: rgba(0, 0, 0, 0.4);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.benchmark-table th.highlight-col, .benchmark-table td.highlight-col {
  background: rgba(139, 92, 246, 0.1);
  border-left: 1px solid rgba(139, 92, 246, 0.3);
  border-right: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-tag-pass {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #34d399;
  font-weight: 700;
}

.badge-tag-fail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f87171;
  font-weight: 600;
}

.badge-tag-warn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fbbf24;
  font-weight: 600;
}

/* ==========================================================================
   HARDWARE & EDGE ARCHITECTURE
   ========================================================================== */
.arch-section {
  padding: 90px 0;
}

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

.arch-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--tr-smooth);
}

.arch-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 30px rgba(6, 182, 212, 0.15);
}

.arch-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #38bdf8;
  margin-bottom: 20px;
}

.arch-card h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.arch-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ==========================================================================
   EXECUTIVE CONSULTATION & CONTACT SECTION
   ========================================================================== */
.contact-section {
  padding: 100px 0;
  position: relative;
  background: radial-gradient(circle at 50% 90%, rgba(139, 92, 246, 0.14) 0%, transparent 60%);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-elevated);
}

.contact-info-col h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.contact-info-col p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 32px;
}

.contact-cards-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-channel-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--tr-fast);
}

.contact-channel-card:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateX(4px);
}

.contact-channel-card .channel-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.channel-meta .channel-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  font-weight: 600;
}

.channel-meta .channel-val {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

/* Contact Form */
.contact-form-col {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-highlight);
}

.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  background: rgba(6, 7, 10, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--tr-fast);
  outline: none;
}

.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--brand-violet);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

.form-status-alert {
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  display: none;
}

.form-status-alert.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #6ee7b7;
}

.form-status-alert.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.site-footer {
  padding: 70px 0 30px 0;
  border-top: 1px solid var(--border-subtle);
  background: #040507;
  font-size: 0.9rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 320px;
}

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--tr-fast);
}

.footer-col ul a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   DEPLOYED PROJECTS SHOWCASE (Real-World Industrial Portfolio)
   ========================================================================== */
.projects-section {
  padding: 100px 0;
  position: relative;
  background: radial-gradient(circle at 50% 30%, rgba(139, 92, 246, 0.08) 0%, rgba(6, 182, 212, 0.04) 50%, transparent 80%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.projects-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.project-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tr-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.project-filter-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.project-filter-btn.active {
  color: #ffffff;
  background: var(--grad-prism);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--tr-smooth), border-color var(--tr-smooth), box-shadow var(--tr-smooth);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 35px rgba(139, 92, 246, 0.18);
}

.project-thumb-box {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000000;
}

.project-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-thumb-img {
  transform: scale(1.05);
}

.project-badge-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10, 12, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.04em;
  z-index: 2;
}

.project-badge-status {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.project-badge-status .pulse-dot {
  width: 6px;
  height: 6px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34d399;
}

.project-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 12px;
}

.project-card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.62;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-specs-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.project-spec-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-spec-item i {
  color: var(--brand-violet);
  font-size: 0.7rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Flawless on iPhone, iPad & Desktop)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-stage {
    margin-left: 12px;
    margin-right: 12px;
  }
  .telemetry-badge {
    position: static;
    margin: 10px auto;
    width: fit-content;
  }
  .sim-viewport {
    grid-template-columns: 1fr;
  }
  .pillar-card, .pillar-card.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pillar-card.reverse .pillar-img-col {
    order: 1;
  }
  .pillar-card.reverse .pillar-info-col {
    order: 2;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric-item:nth-child(2)::after {
    display: none;
  }
  .arch-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   NAVIGATION RESPONSIVE SYSTEM (Desktops, Laptops, Tablets, & Phones)
   ========================================================================== */
@media (max-width: 1240px) and (min-width: 1081px) {
  /* Compact Desktop Nav (1081px - 1240px) */
  .brand-logo img {
    height: 40px;
  }
  .nav-links {
    padding: 3px 6px;
    gap: 2px;
  }
  .nav-link {
    padding: 6px 9px;
    font-size: 0.8rem;
  }
  .deck-link-btn {
    display: none !important; /* Hide secondary deck button to free up space in navbar */
  }
  .btn-primary {
    padding: 9px 18px;
    font-size: 0.86rem;
  }
  .nav-actions {
    gap: 10px;
  }
}

@media (max-width: 1080px) {
  /* =========================================================================
     TABLETS & MOBILE (iPad Pro 11", iPad Air, iPad 10.2", Surface, Galaxy Tab)
     ========================================================================= */
  .header-nav {
    padding: 10px 0;
  }

  .brand-logo img {
    height: 40px;
  }

  /* Hide desktop links and secondary buttons */
  .nav-links,
  .deck-link-btn {
    display: none !important;
  }

  /* Show Hamburger Button with elegant touch target */
  .nav-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 1.15rem;
    cursor: pointer;
    transition: all var(--tr-fast);
  }

  .nav-toggle:hover,
  .nav-toggle:active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* Tablet CTA remains visible and compact */
  .nav-actions .btn-primary {
    display: inline-flex !important;
    padding: 9px 18px !important;
    font-size: 0.86rem !important;
    height: 42px;
  }

  .lang-toggle {
    height: 42px;
    padding: 3px;
  }

  .lang-btn {
    padding: 4px 10px;
    font-size: 0.78rem;
  }

  /* Sleek Tablet & Mobile Drawer */
  .mobile-drawer {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8, 10, 16, 0.98);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    padding: 20px 24px 30px 24px;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
    max-height: calc(100vh - 100%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
    animation: drawer-slide-down 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .mobile-drawer.open {
    display: flex !important;
  }

  .mobile-drawer a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-display);
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--tr-fast);
  }

  .mobile-drawer a::after {
    content: '\f054'; /* FontAwesome chevron right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform var(--tr-fast), color var(--tr-fast);
  }

  .mobile-drawer a:hover,
  .mobile-drawer a:active {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.35);
    color: #ffffff;
    transform: translateX(2px);
  }

  .mobile-drawer a:hover::after,
  .mobile-drawer a:active::after {
    color: var(--brand-cyan);
    transform: translateX(4px);
  }

  /* Make sure the B2B Pitch Deck link in drawer looks special */
  .mobile-drawer a[href*="presentation"] {
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.2);
    color: #38bdf8;
  }

  .mobile-drawer a[href*="presentation"]::after {
    content: '\f08e'; /* external link icon */
    font-size: 0.8rem;
    color: #38bdf8;
  }

  /* Drawer CTA Button overrides */
  .mobile-drawer .btn-primary {
    display: flex !important;
    width: 100%;
    justify-content: center;
    padding: 14px 20px !important;
    font-size: 0.95rem !important;
    height: auto;
    margin-top: 6px;
  }

  .mobile-drawer .btn-primary::after {
    display: none;
  }
}

@keyframes drawer-slide-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  /* Phones: hide CTA button from top navbar to keep it clean */
  .brand-logo img {
    height: 34px;
  }
  .nav-actions .btn-primary {
    display: none !important;
  }
  .nav-actions {
    gap: 8px;
  }
  .mobile-drawer {
    padding: 16px 16px 26px 16px;
  }
  .mobile-drawer a {
    padding: 11px 14px;
    font-size: 0.94rem;
  }
}

@media (max-width: 768px) {
  /* Hero Section */
  .hero-section {
    padding-top: 100px;
    padding-bottom: 50px;
  }
  .hero-badge {
    font-size: 0.72rem;
    padding: 6px 14px;
    line-height: 1.4;
    max-width: 95%;
  }
  .hero-title {
    font-size: clamp(1.85rem, 5.8vw, 2.6rem);
    line-height: 1.2;
    margin-bottom: 18px;
  }
  .hero-subtitle {
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 28px;
    padding: 0 6px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-bottom: 30px;
  }
  .hero-actions a {
    width: 100%;
    justify-content: center;
    padding: 13px 20px !important;
  }
  .hero-trust-bar {
    gap: 10px 18px;
    font-size: 0.78rem;
    margin-bottom: 36px;
    justify-content: center;
  }
  .hero-stage {
    margin: 0;
    padding: 6px;
    border-radius: 16px;
  }
  .hero-stage-inner {
    border-radius: 12px;
  }
  .telemetry-badge {
    position: static;
    margin: 8px auto;
    width: 100%;
    max-width: 340px;
    padding: 8px 14px;
    justify-content: flex-start;
  }

  /* Metrics Strip */
  .metrics-section {
    padding: 36px 0;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .metric-item {
    padding: 18px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
  }
  .metric-item:last-child {
    border-bottom: none;
  }
  .metric-item::after {
    display: none;
  }
  .metric-number {
    font-size: 2.2rem;
  }

  /* AI Simulator */
  .simulator-section {
    padding: 50px 0;
  }
  .sim-nav {
    padding: 6px;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .sim-nav::-webkit-scrollbar {
    display: none;
  }
  .sim-tab-btn {
    min-width: 165px;
    padding: 10px 14px;
    font-size: 0.8rem;
    flex-shrink: 0;
  }
  .sim-media-pane {
    min-height: 220px;
    aspect-ratio: 16 / 10;
  }
  .hud-pill {
    font-size: 0.65rem;
    padding: 4px 8px;
  }
  .box-tag {
    font-size: 0.62rem;
    padding: 2px 6px;
  }
  .sim-info-pane {
    padding: 18px 14px;
  }
  .stat-row {
    font-size: 0.85rem;
  }
  .sim-live-log {
    font-size: 0.72rem;
    max-height: 120px;
    padding: 10px;
  }

  /* Core Pillars */
  .pillars-section {
    padding: 50px 0;
  }
  .pillar-card {
    padding: 18px 14px;
    margin-bottom: 24px;
    border-radius: var(--radius-lg);
  }
  .pillar-title {
    font-size: 1.3rem;
    line-height: 1.3;
  }
  .pillar-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 16px;
  }
  .pillar-features {
    gap: 10px;
    margin-bottom: 20px;
  }
  .pillar-feat-item {
    font-size: 0.86rem;
  }
  .pillar-img-col {
    aspect-ratio: 16 / 10;
  }

  /* Projects Showcase Mobile */
  .projects-section {
    padding: 50px 0;
  }
  .projects-filter-bar {
    gap: 8px;
    margin-bottom: 28px;
  }
  .project-filter-btn {
    padding: 7px 14px;
    font-size: 0.8rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .project-card-body {
    padding: 18px 16px;
  }
  .project-card-title {
    font-size: 1.15rem;
  }

  /* Benchmark Matrix */
  .benchmark-section {
    padding: 50px 0;
  }
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
  }
  .benchmark-table {
    min-width: 620px;
  }
  .benchmark-table th, .benchmark-table td {
    padding: 12px 14px;
    font-size: 0.84rem;
  }

  /* Hardware Architecture */
  .arch-section {
    padding: 50px 0;
  }
  .arch-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .arch-card {
    padding: 20px 16px;
  }
  .arch-card h4 {
    font-size: 1.15rem;
  }
  .arch-card p {
    font-size: 0.88rem;
  }

  /* Executive Contact & Form */
  .contact-section {
    padding: 50px 0;
  }
  .contact-layout {
    padding: 18px 14px;
    gap: 28px;
    border-radius: var(--radius-lg);
  }
  .contact-channel-card {
    padding: 12px 14px;
  }
  .contact-form-col {
    padding: 18px 14px;
    border-radius: var(--radius-md);
  }
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }
  .form-field {
    gap: 6px;
    margin-bottom: 14px;
  }
  /* CRITICAL FOR iOS SAFARI: font-size >= 16px prevents disruptive auto-zooming */
  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 16px !important;
    padding: 12px 14px;
    border-radius: 8px;
  }

  /* Footer */
  .site-footer {
    padding: 45px 0 25px 0;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
    align-items: center;
  }
}

/* Extra small devices (iPhone SE, Galaxy Mini) */
@media (max-width: 480px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .brand-logo img {
    height: 34px;
  }
  .hero-title {
    font-size: 1.7rem;
  }
  .hero-badge {
    font-size: 0.68rem;
    padding: 5px 10px;
  }
  .section-title {
    font-size: 1.45rem;
  }
  .section-desc {
    font-size: 0.88rem;
  }
}
