/* ============================================================
   OmniTV Design System — Enterprise-grade UI
   Inspired by Netflix / Disney+ / Hulu streaming platforms
   ============================================================ */

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  /* Primary palette — deep cinematic tones */
  --otv-primary: #6c2bd9;
  --otv-primary-light: #8b5cf6;
  --otv-primary-dark: #4c1d95;
  --otv-primary-glow: rgba(108, 43, 217, .35);

  /* Accent — electric teal for CTAs & highlights */
  --otv-accent: #06d6a0;
  --otv-accent-light: #34efc3;
  --otv-accent-dark: #059669;

  /* Neutral scale */
  --otv-bg: #0a0a0f;
  --otv-surface: #13131a;
  --otv-surface-elevated: #1a1a24;
  --otv-border: rgba(255, 255, 255, .06);
  --otv-border-hover: rgba(255, 255, 255, .12);

  /* Text */
  --otv-text: #f0f0f5;
  --otv-text-secondary: #a0a0b8;
  --otv-text-muted: #6b6b80;

  /* Status */
  --otv-success: #10b981;
  --otv-warning: #f59e0b;
  --otv-error: #ef4444;

  /* Typography */
  --otv-font: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, sans-serif;
  --otv-font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Spacing scale */
  --otv-space-xs: 4px;
  --otv-space-sm: 8px;
  --otv-space-md: 16px;
  --otv-space-lg: 24px;
  --otv-space-xl: 32px;
  --otv-space-2xl: 48px;
  --otv-space-3xl: 64px;

  /* Radius */
  --otv-radius-sm: 6px;
  --otv-radius-md: 10px;
  --otv-radius-lg: 16px;
  --otv-radius-xl: 24px;
  --otv-radius-full: 9999px;

  /* Shadows — layered for depth */
  --otv-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --otv-shadow-md: 0 4px 12px rgba(0, 0, 0, .5);
  --otv-shadow-lg: 0 8px 32px rgba(0, 0, 0, .6);
  --otv-shadow-glow: 0 0 40px var(--otv-primary-glow);

  /* Transitions */
  --otv-transition-fast: 150ms cubic-bezier(.4, 0, .2, 1);
  --otv-transition-base: 250ms cubic-bezier(.4, 0, .2, 1);
  --otv-transition-slow: 400ms cubic-bezier(.4, 0, .2, 1);

  /* Layout */
  --otv-max-width: 1200px;
  --otv-header-height: 72px;
}

/* ── Global Reset & Base ───────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--otv-primary-light);
  text-decoration: none;
  transition: color var(--otv-transition-fast);
}

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

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

/* ── Utility: Container ────────────────────────────────────── */
.otv-container {
  width: 100%;
  max-width: var(--otv-max-width);
  margin: 0 auto;
  padding: 0 var(--otv-space-lg);
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--otv-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--otv-surface-elevated);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--otv-primary-dark);
}

/* ── Selection ─────────────────────────────────────────────── */
::selection {
  background: var(--otv-primary);
  color: #fff;
}

/* ── Focus Ring (accessibility) ────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--otv-accent);
  outline-offset: 2px;
  border-radius: var(--otv-radius-sm);
}

/* ── Hero Buttons ───────────────────────────────────────────── */
.hero-buttons-container {
  display: flex !important;
  justify-content: center !important;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 0;
  text-align: center;
}

/* Override Elementor's default width: 100% on widget elements inside the container */
html body .hero-buttons-container .elementor-element.elementor-widget-button {
  width: auto !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}

html body .hero-buttons-container .elementor-element .elementor-widget-container {
  width: auto !important;
}

.hero-buttons-container .elementor-button-wrapper {
  display: inline-flex !important;
  justify-content: center;
}

.hero-buttons-container .elementor-button {
  padding: 12px 28px !important;
  border-radius: var(--otv-radius-full) !important;
  font-family: var(--otv-font) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  letter-spacing: .02em !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--otv-transition-base) !important;
  border: none !important;
  cursor: pointer;
  white-space: nowrap;
}

/* Primary — Get Free Trial */
.hero-buttons-container .hero-btn-primary {
  background: linear-gradient(135deg, var(--otv-primary), var(--otv-primary-light)) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px var(--otv-primary-glow);
}

.hero-buttons-container .hero-btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 24px var(--otv-primary-glow);
}

/* Secondary — View Plans */
.hero-buttons-container .hero-btn-secondary {
  background: rgba(255, 255, 255, .12) !important;
  color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, .6) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-buttons-container .hero-btn-secondary:hover {
  background: rgba(255, 255, 255, .95) !important;
  color: var(--otv-primary-dark) !important;
  border-color: transparent !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
}

/* Tertiary — Contact */
.hero-buttons-container .hero-btn-tertiary {
  background: linear-gradient(135deg, var(--otv-accent-dark), var(--otv-accent)) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(6, 214, 160, .25);
}

.hero-buttons-container .hero-btn-tertiary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 24px rgba(6, 214, 160, .35);
}

/* Remove Elementor shake animation from hero buttons */
html body .hero-buttons-container .elementor-element.elementor-widget-button {
  animation: none !important;
}

html body .hero-buttons-container .elementor-element.elementor-widget-button[data-settings*='_animation'] {
  animation: none !important;
}

/* ── Hero Buttons — Mobile ──────────────────────────────────── */
@media (max-width: 767px) {
  .hero-buttons-container {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .hero-buttons-container .elementor-button {
    width: 100% !important;
    max-width: 260px !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
  }
}
