/* ==========================================================================
   0xnLabs // DESIGN SYSTEM & CYBER-ENGINEERING STYLESHEET
   Domain: 0xnlabs.engineer
   ========================================================================== */

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

:root {
  /* --- Core Palette --- */
  --bg-dark: #07080b;
  --bg-card: rgba(14, 17, 24, 0.75);
  --bg-card-elevated: rgba(22, 27, 38, 0.85);
  --bg-card-hover: rgba(30, 36, 52, 0.95);
  --bg-input: #0a0d14;
  
  /* --- Borders & Glows --- */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.25);
  --border-active: #00f0ff;
  
  /* --- Accents --- */
  --cyan: #00f0ff;
  --cyan-dim: rgba(0, 240, 255, 0.15);
  --emerald: #00ff88;
  --emerald-dim: rgba(0, 255, 136, 0.15);
  --crimson: #ff2a5f;
  --crimson-dim: rgba(255, 42, 95, 0.15);
  --amber: #ffb703;
  --amber-dim: rgba(255, 183, 3, 0.15);
  --purple: #a855f7;
  --purple-dim: rgba(168, 85, 247, 0.15);
  
  /* --- Typography Colors --- */
  --text-main: #f1f5f9;
  --text-muted: #8b9bb4;
  --text-dim: #54627a;
  
  /* --- Fonts --- */
  --font-brand: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* --- Transitions & Shadows --- */
  --trans-fast: 0.15s ease;
  --trans-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-glow-cyan: 0 0 25px rgba(0, 240, 255, 0.25);
  --shadow-glow-crimson: 0 0 25px rgba(255, 42, 95, 0.3);
  --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
}

/* --- Base & Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Canvas Overlay */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

.site-wrap {
  position: relative;
  z-index: 1;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography Utilities --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-brand);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.mono {
  font-family: var(--font-mono);
}

.gradient-text-cyan {
  background: linear-gradient(135deg, #ffffff 10%, var(--cyan) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-racing {
  background: linear-gradient(135deg, #ffffff 20%, var(--crimson) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 8, 11, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--trans-smooth);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo-img {
  height: 48px !important;
  max-height: 48px !important;
  width: auto !important;
  max-width: 170px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.45));
  transition: transform var(--trans-smooth), filter var(--trans-smooth);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 18px rgba(0, 240, 255, 0.85));
}

.footer .brand-logo-img {
  height: 58px !important;
  max-height: 58px !important;
  max-width: 190px !important;
}

.footer .brand-name {
  color: #ffffff !important;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(255, 42, 95, 0.2));
  border: 1px solid var(--cyan);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.brand-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--cyan);
}

.brand-name {
  font-family: var(--font-brand);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
}

.brand-name span {
  color: var(--cyan);
}

.brand-tag {
  font-size: 9px;
  font-family: var(--font-mono);
  background: var(--cyan-dim);
  color: var(--cyan);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: var(--trans-fast);
  position: relative;
}

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

.nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

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

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.25);
  padding: 6px 12px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--emerald);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald);
  animation: live-pulse 2s infinite;
}

@keyframes live-pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--emerald); }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--trans-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #00f0ff, #00b4d8);
  color: #07080b;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.65);
}

.btn-racing {
  background: linear-gradient(135deg, #ff2a5f, #d90429);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 42, 95, 0.4);
}

.btn-racing:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 42, 95, 0.7);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-subtle);
  color: var(--text-main);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
}

.badge-cyan { background: var(--cyan-dim); color: var(--cyan); border: 1px solid rgba(0, 240, 255, 0.3); }
.badge-emerald { background: var(--emerald-dim); color: var(--emerald); border: 1px solid rgba(0, 255, 136, 0.3); }
.badge-crimson { background: var(--crimson-dim); color: var(--crimson); border: 1px solid rgba(255, 42, 95, 0.3); }
.badge-purple { background: var(--purple-dim); color: var(--purple); border: 1px solid rgba(168, 85, 247, 0.3); }

/* ==========================================================================
/* ==========================================================================
   SOFT UI & NEUMORPHIC HERO SECTION
   ========================================================================== */
.hero {
  padding-top: 135px;
  padding-bottom: 85px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 10%, #111620 0%, #090b0f 80%);
}

.hero-ambient {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(56, 189, 248, 0.06) 0%, rgba(52, 211, 153, 0.03) 40%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Left Column */
.soft-hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.soft-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: #111620;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5), -2px -2px 8px rgba(255, 255, 255, 0.03), inset 1px 1px 1px rgba(255, 255, 255, 0.06);
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #94a3b8;
}

.soft-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
}

.soft-hero-title {
  font-family: var(--font-brand);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #f8fafc;
  margin-bottom: 20px;
}

.soft-title-gradient {
  background: linear-gradient(135deg, #f8fafc 0%, #38bdf8 60%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.soft-hero-desc {
  font-size: 16px;
  line-height: 1.75;
  color: #94a3b8;
  max-width: 520px;
  margin-bottom: 34px;
}

.soft-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 38px;
}

.soft-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  background: linear-gradient(145deg, #182232, #0f1520);
  color: #38bdf8;
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 6px 6px 16px rgba(0, 0, 0, 0.6), -3px -3px 10px rgba(255, 255, 255, 0.03), inset 1px 1px 1px rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.2);
  transition: all 0.25s ease;
}

.soft-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 8px 8px 22px rgba(0, 0, 0, 0.7), -4px -4px 14px rgba(56, 189, 248, 0.1), inset 1px 1px 2px rgba(56, 189, 248, 0.4);
  color: #ffffff;
}

.soft-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 14px;
  background: #111620;
  color: #e2e8f0;
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 5px 5px 14px rgba(0, 0, 0, 0.5), -3px -3px 9px rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.25s ease;
}

.soft-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 7px 7px 18px rgba(0, 0, 0, 0.6), -4px -4px 12px rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

.soft-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  color: #64748b;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.soft-btn-ghost:hover {
  color: #38bdf8;
}

/* Mini Stat Pillars */
.soft-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 520px;
}

.soft-stat-box {
  background: #111620;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.4), -2px -2px 8px rgba(255, 255, 255, 0.02), inset 1px 1px 0 rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.soft-stat-val {
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 2px;
}

.soft-stat-val.cyan { color: #38bdf8; }
.soft-stat-val.emerald { color: #34d399; }

.soft-stat-val small {
  font-size: 13px;
  font-weight: 600;
  margin-left: 2px;
}

.soft-stat-lbl {
  font-size: 11px;
  font-family: var(--font-mono);
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Right Column: Neumorphic Cockpit Card */
.soft-cockpit-card {
  background: #121822;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 12px 12px 30px rgba(0, 0, 0, 0.65), -6px -6px 20px rgba(255, 255, 255, 0.02), inset 1px 1px 1px rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.soft-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.soft-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.5px;
}

.soft-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #34d399;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
}

.soft-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.soft-metric-well {
  background: #0d121a;
  border-radius: 16px;
  padding: 16px;
  box-shadow: inset 4px 4px 10px rgba(0, 0, 0, 0.6), inset -2px -2px 6px rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.soft-metric-label {
  font-size: 11px;
  font-family: var(--font-mono);
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.soft-metric-value {
  font-family: var(--font-brand);
  font-size: 24px;
  font-weight: 800;
  color: #f8fafc;
}

.soft-metric-value.cyan { color: #38bdf8; }
.soft-metric-value.amber { color: #fbbf24; }
.soft-metric-value.crimson { color: #f43f5e; }
.soft-metric-value.emerald { color: #34d399; }

.soft-metric-value small {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-left: 2px;
}

.soft-hardware-bar {
  background: #0d121a;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: inset 3px 3px 8px rgba(0, 0, 0, 0.5), inset -2px -2px 6px rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.soft-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-family: var(--font-mono);
  color: #64748b;
  margin-bottom: 8px;
}

.soft-rpm-lights {
  display: flex;
  gap: 4px;
}

.soft-rpm-led {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.soft-rpm-led.on-green { background: #34d399; box-shadow: 0 0 6px rgba(52, 211, 153, 0.6); }
.soft-rpm-led.on-cyan { background: #38bdf8; box-shadow: 0 0 6px rgba(56, 189, 248, 0.6); }
.soft-rpm-led.on-amber { background: #fbbf24; box-shadow: 0 0 6px rgba(251, 191, 36, 0.6); }
.soft-rpm-led.on-rose { background: #f43f5e; box-shadow: 0 0 6px rgba(244, 63, 94, 0.6); }

.soft-features-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11px;
  font-family: var(--font-mono);
  color: #94a3b8;
}
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.hud-metric-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px;
}

.hud-metric-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.hud-metric-val {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.hud-metric-val.green { color: var(--emerald); }
.hud-metric-val.cyan { color: var(--cyan); }
.hud-metric-val.red { color: var(--crimson); }
.hud-metric-val.amber { color: var(--amber); }

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 38px;
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 680px;
}

.section-header-center {
  text-align: center;
  margin-bottom: 60px;
}
.section-header-center .section-desc {
  margin: 0 auto;
}

/* ==========================================================================
   INTERACTIVE TELEMETRY STATION (FLAGSHIP DEMO)
   ========================================================================== */
.telemetry-station {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-card);
  position: relative;
}

.station-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.station-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.station-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 16px;
  font-size: 13px;
  font-family: var(--font-brand);
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--trans-fast);
}

.station-tab-btn.active {
  background: var(--cyan);
  color: #000;
}

.station-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Main Dashboard Cockpit Layout */
.cockpit-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
}

.cockpit-card {
  background: rgba(10, 12, 18, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.cockpit-card-title {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Shift RPM Light Bar */
.rpm-bar-container {
  margin-bottom: 16px;
}
.rpm-lights {
  display: flex;
  gap: 4px;
  height: 10px;
  background: #0d1017;
  padding: 3px;
  border-radius: 4px;
}
.rpm-light {
  flex: 1;
  border-radius: 2px;
  background: #1a202c;
  transition: background 0.1s ease;
}
.rpm-light.active-green { background: #00ff88; box-shadow: 0 0 6px #00ff88; }
.rpm-light.active-yellow { background: #ffb703; box-shadow: 0 0 6px #ffb703; }
.rpm-light.active-red { background: #ff2a5f; box-shadow: 0 0 8px #ff2a5f; }
.rpm-light.active-blue { background: #00f0ff; box-shadow: 0 0 10px #00f0ff; }

/* Speedometer Dial Container */
.speedo-wrap {
  text-align: center;
  position: relative;
  padding: 10px 0;
}
.speedo-num {
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}
.speedo-unit {
  font-size: 14px;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 2px;
}
.speedo-gear {
  position: absolute;
  top: 10px;
  right: 15px;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 900;
  color: var(--amber);
  background: rgba(255, 183, 3, 0.1);
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 183, 3, 0.3);
}

/* Lean Angle Inclinometer */
.lean-display {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 20px 0;
}
.lean-meter-wrap {
  width: 140px;
  height: 140px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lean-needle {
  width: 4px;
  height: 70px;
  background: var(--cyan);
  border-radius: 2px;
  transform-origin: bottom center;
  transition: transform 0.1s linear;
  box-shadow: 0 0 10px var(--cyan);
}
.lean-angle-val {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--cyan);
}

/* G-Force Friction Circle Radar */
.gforce-radar {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.05) 0%, transparent 70%);
}
.gforce-radar::before {
  content: '';
  position: absolute;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.gforce-crosshair-h {
  position: absolute;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.gforce-crosshair-v {
  position: absolute;
  height: 100%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.gforce-dot {
  width: 12px;
  height: 12px;
  background: var(--crimson);
  border-radius: 50%;
  position: absolute;
  box-shadow: 0 0 10px var(--crimson);
  transition: all 0.1s linear;
}

/* Lap Times & Sector Matrix */
.lap-matrix {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lap-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 13px;
}
.lap-row.best {
  background: rgba(0, 255, 136, 0.08);
  border-color: rgba(0, 255, 136, 0.3);
  color: var(--emerald);
}

/* Mini GPS Track Canvas */
#gps-track-canvas {
  width: 100%;
  height: 140px;
  background: #080a10;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  margin-top: 10px;
}

/* Live Terminal Log in Telemetry Station */
.telemetry-terminal {
  background: #06070a;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  height: 110px;
  overflow-y: auto;
  color: #7dd3fc;
  margin-top: 16px;
  line-height: 1.4;
}

/* ==========================================================================
   FLAGSHIP SPOTLIGHT (RACECORE ONE)
   ========================================================================== */
.spotlight-card {
  background: linear-gradient(135deg, rgba(22, 27, 38, 0.9) 0%, rgba(14, 17, 24, 0.9) 100%);
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  padding: 48px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.spotlight-card::after {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 42, 95, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.spotlight-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}

.spotlight-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.feature-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--emerald-dim);
  border: 1px solid var(--emerald);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
  margin-top: 2px;
}

.spotlight-diagram {
  background: #080a10;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.diagram-header {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

/* ==========================================================================
   LAB PORTFOLIO GRID
   ========================================================================== */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 30px;
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--trans-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  transition: var(--trans-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card), var(--shadow-glow-cyan);
}

.project-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.project-title {
  font-size: 20px;
  margin-bottom: 10px;
  color: #fff;
}

.project-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--text-dim);
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   ENGINEERING TECH MATRIX
   ========================================================================== */
.tech-matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tech-column {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px;
}

.tech-column-title {
  font-size: 15px;
  color: var(--cyan);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

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

.tech-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-main);
}

.tech-item-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-active);
}

/* ==========================================================================
   INTEGRATED CALIBRATION TOOL
   ========================================================================== */
.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
}

.calc-table-wrap {
  overflow-x: auto;
}

.calc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}

.calc-table th, .calc-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.calc-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.calc-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px 10px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
}

.calc-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.calc-result-box {
  background: #0a0c12;
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.calc-formula-display {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.05);
  padding: 12px;
  border-radius: 8px;
  margin: 16px 0;
  border: 1px dashed rgba(0, 240, 255, 0.3);
}

/* ==========================================================================
   CONTACT & INQUIRY
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 48px;
  box-shadow: var(--shadow-card);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  transition: var(--trans-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* ==========================================================================
   MODAL / POPUP
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #0f131c;
  border: 1px solid var(--border-glow);
  border-radius: 18px;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), var(--shadow-glow-cyan);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--trans-fast);
}

.modal-close-btn:hover {
  background: var(--crimson-dim);
  border-color: var(--crimson);
  color: #fff;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: #050608;
  padding: 60px 0 30px;
  margin-top: 100px;
}

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

.footer-col-title {
  font-size: 14px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 16px;
}

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

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: var(--trans-fast);
}

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

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

/* ==========================================================================
   APPLIED DOMAINS & 3D PRINTING STUDIO
   ========================================================================== */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.domain-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  transition: var(--trans-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.domain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity var(--trans-fast);
}

.domain-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.15);
}

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

.domain-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid var(--border-subtle);
}

.domain-icon.cyan {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.3);
  color: var(--cyan);
}

.domain-icon.emerald {
  background: rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.3);
  color: var(--emerald);
}

.domain-icon.amber {
  background: rgba(255, 170, 0, 0.1);
  border-color: rgba(255, 170, 0, 0.3);
  color: var(--amber);
}

.domain-icon.purple {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
  color: #c084fc;
}

.domain-title {
  font-size: 20px;
  margin-bottom: 12px;
}

.domain-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.domain-points {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.domain-point {
  font-size: 13px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.domain-point span.bullet {
  color: var(--cyan);
  font-size: 14px;
}

/* 3D Printing Studio Showcase Card */
.studio-box {
  background: linear-gradient(145deg, rgba(16, 20, 29, 0.95), rgba(9, 11, 16, 0.95));
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 240, 255, 0.1);
  position: relative;
  overflow: hidden;
}

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

.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.material-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  transition: var(--trans-fast);
}

.material-card:hover {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.05);
}

.material-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.material-prop {
  font-size: 11px;
  color: var(--text-dim);
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.workflow-step {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 16px;
  position: relative;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  background: var(--cyan-dim);
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.step-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid, .spotlight-grid, .calc-grid, .contact-grid, .studio-grid {
    grid-template-columns: 1fr;
  }
  .workflow-steps {
    grid-template-columns: 1fr 1fr;
  }
  .cockpit-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tech-matrix-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-title {
    font-size: 38px;
  }
  .cockpit-grid {
    grid-template-columns: 1fr;
  }
  .tech-matrix-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
