/* ==========================================================================
   DashVio - High-End Dark Modern Web Design System
   Color Palette: Deep Obsidian (#090D10, #0E171B, #152229), Neon Cyan (#51D3CB)
   ========================================================================== */

:root {
  --bg-primary: #090E11;
  --bg-secondary: #0E171B;
  --bg-tertiary: #142228;
  --surface-card: rgba(20, 34, 40, 0.7);
  --surface-card-hover: rgba(28, 47, 56, 0.85);
  --surface-glass: rgba(14, 23, 27, 0.8);
  --surface-badge: rgba(81, 211, 203, 0.12);
  
  --accent-cyan: #51D3CB;
  --accent-cyan-hover: #6FE3DC;
  --accent-cyan-glow: rgba(81, 211, 203, 0.35);
  --accent-cyan-subtle: rgba(81, 211, 203, 0.08);
  --accent-teal: #1FB3A8;
  
  --text-primary: #F0F6F8;
  --text-secondary: #95A8AF;
  --text-muted: #647B84;
  --border-subtle: rgba(81, 211, 203, 0.16);
  --border-glass: rgba(255, 255, 255, 0.08);
  
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", Menlo, Consolas, Monaco, monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --shadow-glow: 0 0 35px rgba(81, 211, 203, 0.18);
  --shadow-card: 0 12px 32px -8px rgba(0, 0, 0, 0.5);
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Mode Overrides (if requested by system, but remains sleek dark-tinted) */
@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #0A0F13;
    --bg-secondary: #10191E;
    --bg-tertiary: #16242A;
    --surface-card: rgba(22, 36, 42, 0.75);
    --surface-card-hover: rgba(30, 48, 56, 0.9);
  }
}

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

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

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at 50% 0%, #15272F 0%, var(--bg-primary) 70%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: var(--text-primary);
  line-height: 1.6;
}

/* Ambient Background Glow */
.ambient-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at 50% 20%, rgba(81, 211, 203, 0.15) 0%, rgba(14, 23, 27, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Container */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Header & Navigation */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(9, 14, 17, 0.82);
  border-bottom: 1px solid var(--border-glass);
  transition: all var(--transition-fast);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.4px;
  transition: transform var(--transition-fast);
}

.brand-logo:hover {
  transform: scale(1.02);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 0 16px var(--accent-cyan-glow);
  border: 1px solid var(--border-subtle);
}

.brand-name {
  background: linear-gradient(135deg, #FFFFFF 30%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-cyan);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-teal) 100%);
  color: #090E11 !important;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  box-shadow: 0 4px 18px rgba(81, 211, 203, 0.3);
  transition: all var(--transition-fast);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(81, 211, 203, 0.45);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--surface-badge);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-bottom: 24px;
}

.pill-badge .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
  100% { opacity: 0.5; transform: scale(0.9); }
}

.hero-title {
  font-size: clamp(34px, 5.5vw, 62px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.12;
  margin-bottom: 22px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #FFFFFF 40%, var(--accent-cyan) 95%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 36px;
  font-weight: 400;
  line-height: 1.55;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #30A8A0 100%);
  color: #070B0E;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(81, 211, 203, 0.35);
  transition: all var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(81, 211, 203, 0.5);
  color: #040709;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-subtle);
  color: var(--accent-cyan);
}

/* App Mockup Frame / Showcase */
.showcase-container {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
}

.showcase-card {
  background: linear-gradient(180deg, rgba(22, 36, 44, 0.85) 0%, rgba(13, 21, 26, 0.95) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  backdrop-filter: blur(24px);
  text-align: left;
  overflow: hidden;
  position: relative;
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(81, 211, 203, 0.1);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.showcase-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.showcase-engine-badges {
  display: flex;
  gap: 10px;
}

.engine-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.engine-pill.avplayer {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.engine-pill.vlc {
  background: rgba(255, 140, 0, 0.15);
  color: #FF9F40;
  border: 1px solid rgba(255, 140, 0, 0.3);
}

.engine-pill.carplay {
  background: rgba(81, 211, 203, 0.15);
  color: var(--accent-cyan);
  border: 1px solid var(--border-subtle);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.showcase-screen {
  background: rgba(8, 13, 16, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.screen-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.player-mock-ui {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.player-art-box {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  background: radial-gradient(circle at 60% 40%, #1D3A44 0%, #0A141A 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(81, 211, 203, 0.1);
}

.player-art-box .play-icon-large {
  width: 54px;
  height: 54px;
  background: var(--accent-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #070B0E;
  box-shadow: 0 0 24px var(--accent-cyan-glow);
}

.player-progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.player-progress-fill {
  width: 48%;
  height: 100%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.player-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 13px;
}

.player-controls-row .active-state {
  color: var(--accent-cyan);
  font-weight: 600;
}

.carplay-preview-box {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.carplay-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  font-size: 13.5px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.carplay-item.now-playing {
  background: rgba(81, 211, 203, 0.1);
  border-color: rgba(81, 211, 203, 0.3);
  color: var(--accent-cyan);
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

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

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

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

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

.bento-card {
  background: var(--surface-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: all var(--transition-smooth);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-subtle);
  background: var(--surface-card-hover);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 25px rgba(81, 211, 203, 0.12);
}

.bento-card.col-span-2 {
  grid-column: span 2;
}

.bento-card.col-span-3 {
  grid-column: span 3;
}

.card-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--accent-cyan-subtle);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 22px;
}

.card-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.card-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.feature-list-inline {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.feature-pill {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.bento-card:hover .feature-pill {
  color: var(--text-secondary);
  border-color: rgba(81, 211, 203, 0.2);
}

/* Tech Specs & Matrix Section */
.specs-section {
  padding: 80px 0;
  background: rgba(14, 23, 27, 0.4);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

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

.spec-category-card {
  background: rgba(14, 23, 27, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
}

.spec-category-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  color: var(--text-secondary);
}

/* CTA Banner */
.cta-section {
  padding: 100px 0;
  text-align: center;
}

.cta-box {
  background: radial-gradient(circle at 50% 0%, #1B353E 0%, #0E171B 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 64px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.cta-title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 36px;
}

/* Legal & Policy Content Layouts */
.legal-page {
  padding: 60px 0 100px;
}

.legal-card {
  background: var(--surface-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 48px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
}

.legal-header {
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.legal-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}

.legal-meta {
  font-size: 14px;
  color: var(--text-muted);
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 36px;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
  border-left: 3px solid var(--accent-cyan);
  padding-left: 12px;
}

.legal-content h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-top: 24px;
  margin-bottom: 10px;
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 18px;
  font-size: 15.5px;
  line-height: 1.7;
}

.legal-content ul, .legal-content ol {
  margin-left: 24px;
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content strong {
  color: var(--text-primary);
}

.legal-content a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: var(--accent-cyan-hover);
}

.highlight-box {
  background: rgba(81, 211, 203, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
}

.highlight-box p {
  margin-bottom: 0;
  color: var(--text-primary);
  font-size: 15px;
}

/* FAQ Accordion */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.faq-item {
  background: rgba(20, 34, 40, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-subtle);
  background: rgba(25, 42, 50, 0.65);
}

.faq-question {
  padding: 22px 26px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  color: var(--text-primary);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-cyan);
  transition: transform var(--transition-fast);
}

.faq-answer {
  padding: 0 26px 22px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Support Box */
.support-card {
  margin-top: 48px;
  background: linear-gradient(135deg, rgba(81, 211, 203, 0.1) 0%, rgba(14, 23, 27, 0.6) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.support-email-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  margin-top: 16px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(81, 211, 203, 0.2);
  transition: all var(--transition-fast);
}

.support-email-badge:hover {
  transform: translateY(-2px);
  background: var(--accent-cyan);
  color: #070B0E;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border-glass);
  padding: 48px 0 32px;
  background: var(--bg-primary);
  margin-top: auto;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
}

.footer-nav {
  display: flex;
  gap: 24px;
}

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

.footer-nav a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card.col-span-2,
  .bento-card.col-span-3 {
    grid-column: span 1;
  }
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  .specs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .header-inner {
    height: 64px;
  }
  .nav-links {
    display: none; /* Mobile collapse */
  }
  .mobile-toggle {
    display: block;
  }
  .hero-section {
    padding: 48px 0 40px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  .legal-card {
    padding: 24px 16px;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
