/* 
 * SmartTV Matrix — Core Design System (main.css)
 * Premium corporate consumer-electronics theme with responsive tokens & accessibility reset.
 */

:root {
  /* Color Palette */
  --primary-navy: #0f172a;
  --primary-dark: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --pure-white: #ffffff;
  
  --accent-blue: #0284c7;
  --accent-blue-hover: #0369a1;
  --accent-cyan: #06b6d4;
  --accent-cyan-light: #ecfeff;
  --accent-indigo: #4f46e5;

  --badge-oled: #0284c7;
  --badge-qled: #d97706;
  --badge-miniled: #7c3aed;
  --badge-led: #475569;

  --success-green: #10b981;
  --warning-amber: #f59e0b;
  --danger-red: #ef4444;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Shadows & Glassmorphism */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(226, 232, 240, 0.8);

  /* Layout & Transitions */
  --container-max: 1280px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-700);
  background-color: var(--slate-50);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-blue-hover);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Focus States for Accessibility */
:focus-visible {
  outline: 3px solid var(--accent-cyan);
  outline-offset: 2px;
}

.skip-to-content {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--primary-navy);
  color: var(--pure-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  z-index: 9999;
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-to-content:focus {
  top: 1rem;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Top Contact & Disclosure Bar */
.header-top-bar {
  background-color: #0b132b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.45rem 0;
  font-size: 0.8rem;
  color: var(--slate-300);
}

.header-top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.top-bar-notice {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
}

.top-bar-contact a {
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.top-bar-contact a:hover {
  color: var(--pure-white);
}

@media (max-width: 768px) {
  .header-top-bar {
    padding: 0.35rem 0;
  }
  
  .header-top-bar .container {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    text-align: center;
  }

  .top-bar-notice {
    display: none !important;
  }

  .top-bar-contact {
    font-size: 0.78rem;
    gap: 0.75rem;
    width: 100%;
    justify-content: center;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.02em;
}

.logo-badge {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  color: var(--pure-white);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-700);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-blue);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent-blue);
  border-radius: var(--radius-full);
}

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

.btn-compare-indicator {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--slate-100);
  color: var(--primary-navy);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.btn-compare-indicator:hover {
  background-color: var(--slate-200);
}

.compare-badge-count {
  background-color: var(--accent-blue);
  color: var(--pure-white);
  border-radius: var(--radius-full);
  padding: 0.15rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--primary-navy);
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 992px) {
  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--pure-white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid var(--accent-blue);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 0.65rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--slate-100);
  }

  .nav-link.active::after {
    display: none;
  }
}

/* Page Banner & Hero */
.hero-section {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #1e1b4b 100%);
  color: var(--pure-white);
  padding: 4.5rem 0 5.5rem 0;
  position: relative;
  overflow: hidden;
}

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

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subhead {
  font-size: 1.15rem;
  color: var(--slate-400);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-blue);
  color: var(--pure-white);
}

.btn-primary:hover {
  background-color: var(--accent-blue-hover);
  color: var(--pure-white);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--pure-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--pure-white);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-blue);
  border: 1.5px solid var(--accent-blue);
}

.btn-outline:hover {
  background-color: var(--accent-blue);
  color: var(--pure-white);
}

.btn-amazon {
  background: linear-gradient(135deg, #ff9900 0%, #e68a00 100%);
  color: #111827;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(230, 138, 0, 0.3);
}

.btn-amazon:hover {
  background: linear-gradient(135deg, #ffaa1a 0%, #d97706 100%);
  color: #000000;
  box-shadow: 0 4px 14px rgba(230, 138, 0, 0.45);
  transform: translateY(-1px);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background-color: var(--slate-100);
}

.section-header {
  margin-bottom: 3rem;
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--slate-600);
}

/* Footer */
.site-footer {
  background-color: var(--primary-navy);
  color: var(--slate-400);
  padding: 4.5rem 0 2rem 0;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  color: var(--pure-white);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-brand p {
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.footer-column h4 {
  font-family: var(--font-heading);
  color: var(--pure-white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

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

.footer-links a {
  color: var(--slate-400);
}

.footer-links a:hover {
  color: var(--pure-white);
}

.disclaimer-box {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2.5rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--slate-400);
}

.disclaimer-box strong {
  color: var(--slate-200);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
  }

  .btn {
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }

  .hero-cta-group .btn {
    width: 100%;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
