/* ==========================================
   NEO DECK PRESENTATION SITE STYLING
   Aesthetic: Premium Glassmorphism & Aurora Glow
   ========================================== */

/* --- CSS Variables & Design System --- */
:root {
  --font-family: 'Outfit', sans-serif;
  
  /* Color Palette */
  --bg-dark: #070913;
  --bg-card: rgba(22, 25, 43, 0.45);
  --bg-card-hover: rgba(22, 25, 43, 0.65);
  
  --primary: #8a3ffc;
  --primary-glow: rgba(138, 63, 252, 0.4);
  
  --cyan: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.35);
  
  --green: #00f59b;
  --green-glow: rgba(0, 245, 155, 0.35);
  
  --orange: #ff9f1c;
  --orange-glow: rgba(255, 159, 28, 0.35);
  
  --red: #ff3366;
  --red-glow: rgba(255, 51, 102, 0.35);

  --text-main: #f0f2f5;
  --text-muted: rgba(240, 242, 245, 0.6);
  --text-dim: rgba(240, 242, 245, 0.35);
  
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(138, 63, 252, 0.25);
  
  --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

/* --- Base Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button, input {
  font-family: inherit;
  outline: none;
}

/* --- Aurora Glowing Backdrops --- */
.bg-orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  mix-blend-mode: screen;
}

.orb-1 {
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, var(--primary) 0%, rgba(0,0,0,0) 70%);
  top: -10vw;
  right: -10vw;
  animation: floatOrb1 25s infinite alternate ease-in-out;
}

.orb-2 {
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, var(--cyan) 0%, rgba(0,0,0,0) 70%);
  bottom: -5vw;
  left: -5vw;
  animation: floatOrb2 20s infinite alternate ease-in-out;
}

.orb-3 {
  width: 35vw;
  height: 35vw;
  background: radial-gradient(circle, #f005a9 0%, rgba(0,0,0,0) 70%);
  top: 40%;
  left: 30%;
  animation: floatOrb3 30s infinite alternate ease-in-out;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-8vw, 6vw) scale(1.1); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1.1); }
  100% { transform: translate(6vw, -8vw) scale(0.9); }
}

@keyframes floatOrb3 {
  0% { transform: translate(0, 0) scale(0.9); }
  100% { transform: translate(-4vw, -4vw) scale(1.2); }
}

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

/* --- Premium Navigation Header --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(7, 9, 19, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-ghost {
  font-size: 24px;
  color: var(--cyan);
  text-shadow: 0 0 12px var(--cyan-glow);
  animation: ghostFloating 3s infinite ease-in-out;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff, #a2b0c2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text-main);
  text-shadow: 0 0 8px rgba(255,255,255,0.4);
}

/* Button & CTAs */
.cta-btn {
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
}

.primary-glow {
  background: linear-gradient(135deg, var(--primary), #a155ff);
  box-shadow: 0 4px 15px var(--primary-glow);
  color: #fff;
}

.primary-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(138, 63, 252, 0.6);
}

/* --- Hero Section --- */
.hero-section {
  padding: 150px 0 80px 0;
  position: relative;
}

.hero-section .section-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(138, 63, 252, 0.15);
  border: 1px solid rgba(138, 63, 252, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #c7a4ff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--primary) 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 500px;
}

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

.btn {
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #00b0ff);
  color: #070913;
  box-shadow: 0 6px 20px var(--cyan-glow);
}

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

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-dim);
  transform: translateY(-2px);
}

/* --- Interactive Tablet Mockup Frame --- */
.hero-mockup-wrapper {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.tablet-frame {
  width: 440px;
  height: 290px;
  background: #111424;
  border: 10px solid #20243b;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 
              inset 0 0 10px rgba(0, 0, 0, 0.8),
              0 0 40px rgba(138, 63, 252, 0.15);
  position: relative;
  overflow: hidden;
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tablet-frame:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.03);
}

.tablet-camera {
  width: 6px;
  height: 6px;
  background: #333;
  border-radius: 50%;
  position: absolute;
  top: 140px;
  left: 6px;
  z-index: 10;
}

.tablet-screen {
  width: 100%;
  height: 100%;
  background: #0b0d19;
  position: relative;
  overflow: hidden;
}

/* Simulated Dashboard Inside Screen */
.sim-dashboard {
  width: 100%;
  height: 100%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  user-select: none;
}

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

.sim-brand {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-time {
  background: rgba(138, 63, 252, 0.25);
  color: #c7a4ff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
}

.sim-date {
  font-size: 9px;
  color: var(--text-muted);
}

.sim-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  flex: 1;
}

.sim-widget {
  background: rgba(22, 25, 43, 0.6);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s, border-color 0.2s;
}

.sim-widget:hover {
  background: rgba(32, 38, 66, 0.8);
  border-color: rgba(0, 240, 255, 0.4);
  transform: scale(0.98);
}

.sim-widget-header {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sim-widget-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sim-weather-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-weather-icon {
  font-size: 18px;
  color: #ffb834;
}

.sim-weather-temp {
  font-size: 16px;
  font-weight: 700;
}

.sim-weather-desc {
  font-size: 8px;
  color: var(--text-muted);
  margin-top: 2px;
}

.flex-row {
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  gap: 8px;
}

.mini-gauge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: conic-gradient(var(--col) calc(var(--val) * 1%), rgba(255,255,255,0.06) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mini-gauge::after {
  content: '';
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #111424;
  z-index: 1;
}

.mini-gauge span {
  font-size: 7px;
  font-weight: 700;
  color: var(--text-main);
  z-index: 2;
}

.grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.sim-plug {
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  padding: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sim-plug span {
  font-size: 7px;
  font-weight: 500;
}

.sim-led {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #333;
}

.sim-plug.active {
  background: rgba(0, 245, 155, 0.08);
  border: 1px solid rgba(0, 245, 155, 0.2);
}

.sim-plug.active .sim-led {
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.sim-radio-now {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8px;
  font-weight: 600;
}

.sim-radio-now i {
  color: var(--primary);
}

.sim-visualizer {
  display: flex;
  gap: 2px;
  height: 8px;
  margin-top: 6px;
  align-items: flex-end;
}

.s-bar {
  width: 2px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.sim-visualizer.active .s-bar:nth-child(1) { animation: jumpBar 0.5s infinite alternate ease-in-out; }
.sim-visualizer.active .s-bar:nth-child(2) { animation: jumpBar 0.7s infinite alternate ease-in-out; }
.sim-visualizer.active .s-bar:nth-child(3) { animation: jumpBar 0.4s infinite alternate ease-in-out; }
.sim-visualizer.active .s-bar:nth-child(4) { animation: jumpBar 0.6s infinite alternate ease-in-out; }

@keyframes jumpBar {
  0% { height: 2px; }
  100% { height: 8px; }
}

/* Tooltip Overlay inside Screen */
.mockup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 9, 19, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mockup-overlay.hidden {
  opacity: 0;
}

.overlay-card {
  background: rgba(22, 25, 43, 0.9);
  border: 1px solid var(--cyan);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  max-width: 80%;
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2);
}

.info-icon {
  font-size: 20px;
  color: var(--cyan);
  margin-bottom: 8px;
}

.overlay-card h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}

.overlay-card p {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* --- Glassmorphism Base Panel --- */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 16px;
  transition: var(--transition);
}

.glass-panel:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

/* --- Features Section --- */
.features-section {
  padding: 100px 0;
  position: relative;
}

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

.subtitle {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cyan);
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
}

.header-line {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--primary));
  margin: 15px auto 0 auto;
  border-radius: 2px;
}

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

.feature-card {
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  transition: var(--transition);
}

.feature-card:hover::before {
  background: linear-gradient(90deg, var(--cyan), var(--primary));
}

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

.purple-glow { background: rgba(138, 63, 252, 0.15); color: #c7a4ff; border: 1px solid rgba(138, 63, 252, 0.25); }
.green-glow { background: rgba(0, 245, 155, 0.15); color: #94ffd5; border: 1px solid rgba(0, 245, 155, 0.25); }
.blue-glow { background: rgba(0, 240, 255, 0.15); color: #94f5ff; border: 1px solid rgba(0, 240, 255, 0.25); }
.orange-glow { background: rgba(255, 159, 28, 0.15); color: #ffd699; border: 1px solid rgba(255, 159, 28, 0.25); }
.red-glow { background: rgba(255, 51, 102, 0.15); color: #ff94b0; border: 1px solid rgba(255, 51, 102, 0.25); }
.teal-glow { background: rgba(0, 204, 204, 0.15); color: #94ffff; border: 1px solid rgba(0, 204, 204, 0.25); }

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

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

/* --- Interactive Demos Section --- */
.interactive-section {
  padding: 100px 0;
  position: relative;
}

.interactive-container {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.interactive-nav {
  display: flex;
  background: rgba(7, 9, 19, 0.4);
  border-bottom: 1px solid var(--border);
}

.int-tab {
  flex: 1;
  padding: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
}

.int-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}

.int-tab.active {
  color: var(--cyan);
  background: rgba(138, 63, 252, 0.08);
  border-bottom: 2px solid var(--cyan);
  text-shadow: 0 0 10px var(--cyan-glow);
}

.interactive-display {
  padding: 40px;
  min-height: 380px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.demo-grid-2col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.demo-controls h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.demo-desc-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.control-row {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-row label {
  font-size: 14px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
}

.control-row label strong {
  color: var(--cyan);
}

/* Styled Range Sliders */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  cursor: pointer;
  transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.dew-point-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 16px;
}

.dew-point-banner strong {
  color: var(--cyan);
}

/* --- Simulated Circular Climate Gauges --- */
.sensor-gauges {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.sensor-gauge {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(var(--color) calc(var(--value) * 1%), rgba(255, 255, 255, 0.05) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(0, 0, 0, 0.5);
  transition: background 0.3s;
}

.sensor-gauge::before {
  content: '';
  position: absolute;
  width: 146px;
  height: 146px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.1);
  animation: spinnerRotate 30s linear infinite;
}

.gauge-core {
  position: absolute;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: #0f1225;
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

.gauge-core i {
  font-size: 18px;
  color: var(--color);
  margin-bottom: 6px;
}

.gauge-core strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
}

.gauge-core small {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

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

/* --- TAB 2: SMART SCANNER MOCKUP --- */
.scan-input-group {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.scan-input-group input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: #fff;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 14px;
}

.scanner-progress-bar-wrapper {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}

.scanner-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  transition: width 0.1s ease;
}

.scan-visualizer-box {
  width: 100%;
  height: 260px;
  background: rgba(7, 9, 19, 0.4);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-circle {
  width: 160px;
  height: 160px;
  border: 2px solid rgba(0, 245, 155, 0.1);
  border-radius: 50%;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-circle::before {
  content: '';
  width: 100px;
  height: 100px;
  border: 2px solid rgba(0, 245, 155, 0.15);
  border-radius: 50%;
  position: absolute;
}

.radar-circle::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 2px solid rgba(0, 245, 155, 0.2);
  border-radius: 50%;
  position: absolute;
}

.radar-sweep {
  width: 50%;
  height: 50%;
  background: linear-gradient(45deg, rgba(0, 245, 155, 0.15) 0%, rgba(0,0,0,0) 70%);
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: bottom right;
  border-right: 1.5px solid rgba(0, 245, 155, 0.4);
  animation: radarSweeping 3s linear infinite;
  display: none;
}

.radar-circle.scanning .radar-sweep {
  display: block;
}

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

.discovered-devices-list {
  width: 100%;
  height: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  z-index: 1;
}

.no-devices-yet {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  height: 100%;
}

.no-devices-yet i {
  font-size: 32px;
  margin-bottom: 12px;
}

.dev-item {
  background: rgba(22, 25, 43, 0.85);
  border: 1px solid rgba(0, 245, 155, 0.25);
  padding: 12px 16px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideInUp 0.3s ease forwards;
  box-shadow: 0 4px 12px rgba(0, 245, 155, 0.05);
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.dev-name-box {
  display: flex;
  flex-direction: column;
}

.dev-name {
  font-size: 13px;
  font-weight: 700;
}

.dev-ip {
  font-size: 10px;
  color: var(--green);
}

/* Custom Interactive Toggle Switches */
.switch-label {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
  cursor: pointer;
}

.switch-label input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-switch {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255,255,255,0.1);
  border-radius: 22px;
  transition: 0.3s;
}

.slider-switch::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

.switch-label input:checked + .slider-switch {
  background-color: var(--green);
}

.switch-label input:checked + .slider-switch::before {
  transform: translateX(22px);
}

/* --- TAB 3: RADIO PLAYER MOCKUP --- */
.radio-preset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.preset-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.preset-card:hover {
  background: rgba(138, 63, 252, 0.08);
  border-color: rgba(138, 63, 252, 0.4);
  transform: translateY(-2px);
}

.preset-card.active-preset {
  background: rgba(138, 63, 252, 0.15);
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(138, 63, 252, 0.2);
}

.preset-card strong {
  font-size: 16px;
  color: var(--primary);
}

.preset-card.active-preset strong {
  color: #fff;
}

.preset-card span {
  font-size: 11px;
  font-weight: 500;
  margin-top: 6px;
  color: var(--text-muted);
}

.preset-card.active-preset span {
  color: #fff;
}

/* Radio Visualizer box */
.radio-player-panel {
  width: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-color: rgba(255,255,255,0.08);
}

.player-album-art {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, #20243b 30%, #070913 70%);
  border: 3px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.art-spinner {
  font-size: 32px;
  color: var(--primary);
  text-shadow: 0 0 12px var(--primary-glow);
}

.radio-player-panel.playing .art-spinner {
  animation: discSpinning 3s linear infinite;
}

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

.player-info h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.player-info p {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.visualizer-waves {
  display: flex;
  gap: 4px;
  height: 24px;
  margin-bottom: 20px;
  align-items: flex-end;
}

.v-bar {
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.visualizer-waves.active .v-bar:nth-child(3n+1) { animation: waveJumping 0.5s infinite alternate ease-in-out; }
.visualizer-waves.active .v-bar:nth-child(3n+2) { animation: waveJumping 0.8s infinite alternate ease-in-out; }
.visualizer-waves.active .v-bar:nth-child(3n+3) { animation: waveJumping 0.6s infinite alternate ease-in-out; }

@keyframes waveJumping {
  0% { height: 4px; }
  100% { height: 24px; }
}

.player-controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.player-circle-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary), #a155ff);
  box-shadow: 0 4px 15px var(--primary-glow);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.player-circle-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(138, 63, 252, 0.6);
}

.vol-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 80%;
  color: var(--text-muted);
}

.vol-slider-row input {
  flex: 1;
}

/* --- Tech Stack Section --- */
.tech-section {
  padding: 100px 0;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.tech-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tech-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px var(--primary-glow);
}

.tech-icon {
  font-size: 42px;
  margin-bottom: 20px;
}

.tech-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.tech-card p {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* --- Setup & Terminal Section --- */
.setup-section {
  padding: 100px 0;
}

.setup-section .section-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.setup-instructions h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
}

.setup-instructions > p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.steps-list li {
  display: flex;
  gap: 20px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.steps-list li strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.steps-list li span {
  font-size: 13px;
  color: var(--text-muted);
}

/* Developer Shell Terminal Mockup */
.setup-terminal {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #05060b;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.terminal-bar {
  background: rgba(255,255,255,0.03);
  padding: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.term-title {
  margin-left: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  font-family: monospace;
}

.terminal-body {
  padding: 20px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 1.8;
}

.term-line {
  margin-bottom: 8px;
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.term-prompt {
  color: #27c93f;
  margin-right: 8px;
}

.term-cmd {
  color: #fff;
  font-weight: 600;
}

.text-muted { color: var(--text-dim); }
.text-success { color: var(--green); text-shadow: 0 0 8px rgba(0, 245, 155, 0.2); }
.text-info { color: var(--cyan); }

.btn-copy {
  margin-left: 10px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  transition: var(--transition);
  font-size: 12px;
  padding: 4px;
}

.btn-copy:hover {
  color: var(--cyan);
}

/* --- Premium Footer --- */
.footer {
  padding: 50px 0;
  border-top: 1px solid var(--border);
  background: rgba(5,6,11,0.9);
  text-align: center;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.footer-copyright {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-copyright i {
  color: var(--red);
}

/* Floating animation keyframe */
@keyframes ghostFloating {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .hero-section .section-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .setup-section .section-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .demo-grid-2col {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .sensor-gauges {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 10px 0;
  }
  
  .nav-links {
    display: none; /* Hide standard nav links on mobile for simplicity */
  }
  
  .hero-title {
    font-size: 38px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .interactive-display {
    padding: 20px;
  }
  
  .interactive-nav {
    flex-wrap: wrap;
  }
  
  .int-tab {
    flex: 50%;
    padding: 14px;
    font-size: 13px;
  }
  
  .radio-preset-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Extra Mobile Viewports (Phones) under 480px --- */
@media (max-width: 480px) {
  .hero-title {
    font-size: 30px;
  }
  
  .hero-desc {
    font-size: 14.5px;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  
  .btn {
    width: 100%;
  }
  
  /* Responsive Tablet Scale down to fit 320px screens perfectly */
  .tablet-frame {
    width: 310px;
    height: 205px;
    border-width: 7px;
    border-radius: 16px;
  }
  
  .tablet-camera {
    width: 5px;
    height: 5px;
    top: 100px;
    left: 4px;
  }
  
  .sim-widget {
    padding: 4px;
    border-radius: 6px;
  }
  
  .sim-widget-header {
    font-size: 7px;
    margin-bottom: 2px;
  }
  
  .sim-weather-temp {
    font-size: 11px;
  }
  
  .sim-weather-icon {
    font-size: 11px;
  }
  
  .sim-weather-desc {
    display: none; /* Hide descriptive subtexts on very tiny screens */
  }
  
  .mini-gauge {
    width: 22px;
    height: 22px;
  }
  
  .mini-gauge::after {
    width: 18px;
    height: 18px;
  }
  
  .mini-gauge span {
    font-size: 5px;
  }
  
  .sim-plug {
    padding: 2px;
  }
  
  .sim-plug span {
    font-size: 6px;
  }
  
  .sim-radio-now {
    font-size: 6px;
  }
  
  .sim-visualizer {
    margin-top: 2px;
  }
  
  .overlay-card {
    padding: 10px;
  }
  
  .overlay-card h4 {
    font-size: 10px;
    margin-bottom: 2px;
  }
  
  .overlay-card p {
    font-size: 8px;
    line-height: 1.2;
  }
  
  /* Climate Demonstration Widget Stack */
  .sensor-gauges {
    flex-direction: column;
    gap: 16px;
  }
  
  .radio-preset-grid {
    grid-template-columns: 1fr; /* single column on narrow mobile */
  }
  
  .micro-buttons-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  /* Terminals code text wrap adjustments */
  .terminal-body {
    font-size: 11px;
    overflow-x: auto;
  }
  
  .term-cmd {
    word-break: break-all;
  }
}

/* --- 11. Fritz!Box Monitor & Call Simulator Demo Styles --- */
.subnet-sim-buttons .btn-net-sim.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 4px 15px var(--cyan-glow);
}

.fritz-call-item {
  animation: slideInUp 0.3s ease forwards;
}

@keyframes ringPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(138, 63, 252, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(138, 63, 252, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(138, 63, 252, 0);
  }
}

/* --- 12. Fritz!Box Presence Detection Widget Demo Styles --- */
.presence-avatar-ring {
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.08);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.presence-avatar-ring.active {
  background: rgba(85, 245, 177, 0.05);
  border: 2.5px solid var(--green, #55f5b1);
  animation: presenceGreenPulse 2s infinite;
}

.presence-avatar-img {
  transition: all 0.5s ease;
  filter: grayscale(100%);
  opacity: 0.35;
}

.presence-avatar-card.active .presence-avatar-img {
  filter: grayscale(0%);
  opacity: 1;
}

.presence-avatar-card.inactive .presence-avatar-img {
  filter: grayscale(100%);
  opacity: 0.35;
}

.presence-status-badge {
  transition: all 0.5s ease;
}

@keyframes presenceGreenPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(85, 245, 177, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(85, 245, 177, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(85, 245, 177, 0);
  }
}

/* Adjustments for smaller viewport heights in demo display */
@media (max-width: 768px) {
  .presence-avatars-grid {
    gap: 10px !important;
  }
  .presence-avatar-ring {
    width: 65px !important;
    height: 65px !important;
  }
  .presence-avatar-img {
    width: 55px !important;
    height: 55px !important;
  }
}

/* --- Camera Monitor Interactive Demo Grid --- */
.camera-demo-grid {
  display: grid;
  gap: 8px;
  width: 100%;
  height: 100%;
  align-items: center;
}
.camera-demo-grid.cols-1 { grid-template-columns: 1fr; }
.camera-demo-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.camera-demo-grid.cols-4 { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); }


