/* ==========================================================================
   iStream TV — Premium Android Application Download Page
   Modern Dark & Cyber-Cinematic Styling
   ========================================================================== */

:root {
  --bg-dark: #06080e;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-glass: rgba(255, 255, 255, 0.09);
  --border-glow: rgba(99, 102, 241, 0.35);

  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.45);
  --secondary: #06b6d4;
  --accent-pink: #ec4899;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --grad-primary: linear-gradient(135deg, #38bdf8 0%, #6366f1 50%, #ec4899 100%);
  --grad-fire: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
  --grad-btn: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  --grad-btn-hover: linear-gradient(135deg, #0369a1 0%, #4338ca 100%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px -5px var(--primary-glow);
  --font-family: -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container-max: 1240px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

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

/* Ambient Background Lights */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
}

.sphere-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #4f46e5 0%, rgba(99, 102, 241, 0) 70%);
  top: -150px;
  left: 15%;
  animation: floatSphere 18s ease-in-out infinite alternate;
}

.sphere-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #06b6d4 0%, rgba(6, 182, 212, 0) 70%);
  top: 30%;
  right: -100px;
  animation: floatSphere 22s ease-in-out infinite alternate-reverse;
}

.sphere-3 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #ec4899 0%, rgba(236, 72, 153, 0) 70%);
  bottom: 10%;
  left: -150px;
  animation: floatSphere 20s ease-in-out infinite alternate;
}

@keyframes floatSphere {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(50px) scale(1.08); }
  100% { transform: translateY(-40px) scale(0.95); }
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Typography Utilities */
.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-full);
  color: #a5b4fc;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: #fff;
}

.section-desc {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(6, 8, 14, 0.75);
  border-bottom: 1px solid var(--border-glass);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(6, 8, 14, 0.92);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 42px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: #fff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--grad-primary);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  background: var(--grad-btn);
  color: #fff;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 76px;
  left: 0;
  width: 100%;
  background: rgba(11, 15, 25, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: translateY(-120%);
  opacity: 0;
  transition: all 0.35s ease;
  z-index: 99;
}

.mobile-nav-drawer.active {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 4.5rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  text-align: left;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: #e2e8f0;
}

.badge-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.25rem;
}

/* Hero CTA Row */
.hero-cta-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.cta-buttons-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1rem;
}

.btn-primary-download {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: var(--grad-btn);
  border-radius: var(--radius-lg);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.5), 0 0 30px rgba(99, 102, 241, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary-download::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.75s ease;
}

.btn-primary-download:hover::before {
  left: 100%;
}

.btn-primary-download:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 35px -5px rgba(79, 70, 229, 0.6), 0 0 45px rgba(56, 189, 248, 0.4);
}

.btn-icon-wrapper {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.btn-text-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-main-label {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.btn-sub-label {
  font-size: 0.78rem;
  color: #bae6fd;
  font-weight: 500;
}

/* Firestick Code Quick Card */
.downloader-code-box {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.25rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.firetv-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fb923c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.code-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.code-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffedd5;
  letter-spacing: 0.08em;
  background: rgba(249, 115, 22, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(249, 115, 22, 0.4);
}

.btn-copy-code {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-copy-code:hover {
  background: #ea580c;
  border-color: #ea580c;
}

.btn-qr-trigger {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-qr-trigger:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* Quick Specs Row */
.hero-specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-glass);
}

.spec-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.spec-chip strong {
  color: #cbd5e1;
  font-weight: 600;
}

.spec-icon {
  color: var(--secondary);
}

/* ==========================================================================
   Interactive Hero TV / Device Mockup
   ========================================================================== */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-scene {
  position: relative;
  width: 100%;
  max-width: 520px;
}

.tv-frame {
  position: relative;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-radius: var(--radius-xl);
  padding: 12px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 50px rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tv-screen {
  background: #080c16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 16 / 9.5;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Mockup UI Elements */
.tv-ui-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: rgba(13, 18, 30, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tv-ui-logo {
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tv-ui-menu {
  display: flex;
  gap: 0.8rem;
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 600;
}

.tv-ui-menu span.active {
  color: #38bdf8;
  border-bottom: 2px solid #38bdf8;
  padding-bottom: 2px;
}

.tv-ui-clock {
  font-size: 0.68rem;
  color: #64748b;
  font-family: monospace;
}

.tv-hero-stream {
  flex: 1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(6, 8, 14, 0.95) 100%),
              radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, 0.4) 0%, transparent 60%),
              linear-gradient(135deg, #091325 0%, #15102a 100%);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

.stream-live-tag {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.stream-info-box h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
}

.stream-info-box p {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-bottom: 0.6rem;
}

.stream-badges {
  display: flex;
  gap: 0.4rem;
}

.stream-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.badge-4k {
  background: #f59e0b;
  color: #000;
}

/* TV Rows Carousel Preview */
.tv-channels-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 1rem 0.8rem;
  background: #090d16;
  overflow: hidden;
}

.mock-channel-card {
  flex: 0 0 calc(25% - 0.4rem);
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.mock-channel-card.active {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.mock-ch-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 800;
  color: #fff;
}

.mock-ch-name {
  font-size: 0.6rem;
  color: #e2e8f0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-stand {
  width: 140px;
  height: 12px;
  background: linear-gradient(180deg, #334155, #1e293b);
  margin: 0 auto;
  border-radius: 0 0 8px 8px;
}

.tv-base {
  width: 220px;
  height: 6px;
  background: linear-gradient(90deg, #1e293b, #475569, #1e293b);
  margin: 0 auto;
  border-radius: var(--radius-full);
}

/* Floating Mobile Mockup */
.floating-mobile-frame {
  position: absolute;
  bottom: -20px;
  right: -25px;
  width: 150px;
  background: #090d16;
  border-radius: 24px;
  padding: 6px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(236, 72, 153, 0.3);
  animation: floatMobile 6s ease-in-out infinite alternate;
}

@keyframes floatMobile {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

.mobile-notch {
  width: 40px;
  height: 6px;
  background: #000;
  border-radius: var(--radius-full);
  margin: 2px auto 6px;
}

.mobile-screen-content {
  background: linear-gradient(135deg, #1e1b4b, #0f172a);
  border-radius: 18px;
  padding: 0.6rem 0.4rem;
  aspect-ratio: 9 / 18;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mob-mini-header {
  font-size: 0.55rem;
  font-weight: 800;
  color: #38bdf8;
  text-align: center;
}

.mob-mini-player {
  background: #020617;
  border-radius: 8px;
  height: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.mob-mini-player span {
  font-size: 0.55rem;
  color: #e2e8f0;
  font-weight: 700;
}

.mob-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.mob-grid-item {
  height: 22px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

/* ==========================================================================
   Specs Matrix Box (Detailed technical specifications)
   ========================================================================== */
.specs-section {
  padding: 3.5rem 0;
  position: relative;
}

.specs-card-wrapper {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.spec-item-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.25s ease;
}

.spec-item-box:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

.spec-box-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.12);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.spec-box-details h5 {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.spec-box-details p {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.spec-box-details span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section {
  padding: 5rem 0;
}

.features-header {
  margin-bottom: 3.5rem;
}

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

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5), 0 0 25px rgba(99, 102, 241, 0.2);
  background: var(--bg-card-hover);
}

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

.feature-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #38bdf8;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
}

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

/* ==========================================================================
   Device Compatibility Section
   ========================================================================== */
.devices-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
}

.devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-top: 3.5rem;
}

.device-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.device-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.device-icon-box {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--secondary);
}

.device-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.device-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.device-chip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
}

.device-chip {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
}

/* ==========================================================================
   Installation Guides (Tabbed Interface)
   ========================================================================== */
.installation-section {
  padding: 5rem 0;
}

.install-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  margin-bottom: 3rem;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.25s ease;
}

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

.tab-btn.active {
  background: var(--grad-btn);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
}

.tab-content-panel {
  display: none;
}

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

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

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.step-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.step-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #fff;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1rem;
  flex: 1;
}

.step-visual-hint {
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: #cbd5e1;
}

.step-visual-hint code {
  color: #f59e0b;
  font-weight: 700;
}

/* ==========================================================================
   Comparison Matrix Table
   ========================================================================== */
.comparison-section {
  padding: 5rem 0;
}

.table-responsive-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  margin-top: 3rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 720px;
}

.comparison-table th,
.comparison-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comparison-table th {
  background: rgba(15, 23, 42, 0.85);
  font-size: 0.95rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-table th.col-highlight {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.25) 0%, rgba(15, 23, 42, 0.9) 100%);
  color: #fff;
  border-top: 3px solid #38bdf8;
  position: relative;
}

.comparison-table td.col-highlight {
  background: rgba(99, 102, 241, 0.06);
  font-weight: 700;
  color: #38bdf8;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.comparison-table tbody tr:hover td.col-highlight {
  background: rgba(99, 102, 241, 0.12);
}

.check-yes {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent-emerald);
  font-weight: 700;
}

.check-no {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #ef4444;
  font-weight: 500;
}

/* ==========================================================================
   FAQ Section (Accordion)
   ========================================================================== */
.faq-section {
  padding: 5rem 0 6rem;
}

.faq-container {
  max-width: 860px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.faq-item.open {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.35rem 1.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: inherit;
}

.faq-toggle-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--secondary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-toggle-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease-out;
  padding: 0 1.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 1.6rem 1.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #030408;
  border-top: 1px solid var(--border-glass);
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 10;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 380px;
}

.footer-col h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-bottom-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  font-size: 0.85rem;
  gap: 1rem;
}

.disclaimer-text {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-top: 1rem;
}

/* ==========================================================================
   QR Code Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-card {
  background: #0f172a;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(99, 102, 241, 0.3);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.qr-code-box {
  background: #ffffff;
  padding: 1rem;
  border-radius: var(--radius-lg);
  display: inline-block;
  margin: 1.5rem 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.qr-code-box svg {
  display: block;
  width: 200px;
  height: 200px;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: #1e293b;
  border: 1px solid var(--secondary);
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(6, 182, 212, 0.3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Floating Bottom Bar */
.floating-download-bar {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translate(-50%, 150%);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  padding: 0.6rem 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(99, 102, 241, 0.35);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-download-bar.visible {
  transform: translate(-50%, 0);
}

.floating-bar-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.floating-bar-logo {
  height: 28px;
  width: auto;
}

.floating-bar-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.floating-bar-btn {
  background: var(--grad-btn);
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3.5rem;
  }

  .hero-content {
    text-align: center;
  }

  .hero-badge-pill {
    margin: 0 auto 1.5rem;
  }

  .hero-cta-wrapper {
    align-items: center;
  }

  .cta-buttons-row {
    justify-content: center;
  }

  .hero-specs-row {
    justify-content: center;
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu, .nav-actions {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .floating-mobile-frame {
    right: 0;
    width: 120px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }

  .floating-download-bar {
    width: 90%;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    gap: 0.5rem;
  }
}
