/* ============================================================
   MultiviewTV Marketing Site — style.css
   Dark theme. Mobile-first. No framework dependencies.
   ============================================================ */

/* --- Custom Properties ------------------------------------ */
:root {
  --bg-gradient-from: #3d2563;
  --bg-gradient-to: #1f1432;
  --surface: #1E1E2E;
  --surface-border: #2E2E3E;
  --primary: #B39DDB;
  --primary-dim: #E8DEF8;
  --text: #F0F0F5;
  --text-muted: #9090A0;
  --accent-blue: #3B82F6;
  --accent-green: #22C55E;
  --accent-orange: #F97316;
  --accent-purple: #A855F7;
  --white: #FFFFFF;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Courier New', monospace;

  --max-width: 1100px;
  --nav-height: 60px;
}

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

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

body {
  font-family: var(--font-sans);
  background: linear-gradient(135deg, var(--bg-gradient-from) 0%, var(--bg-gradient-to) 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--primary-dim);
}

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

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

.section {
  padding: 4rem 0;
}

.section--alt {
  background: rgba(30, 30, 46, 0.5);
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}

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

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Device showcase images */
.device-showcase-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1rem;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

.device-showcase-img:hover {
  transform: scale(1.02);
}

/* Device selector (segmented control) */
.device-selector {
  display: flex;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 0.375rem;
  margin-bottom: 1.5rem;
}

.device-selector__btn {
  flex: 1;
  padding: 0.625rem 1rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.device-selector__btn:hover {
  color: var(--text);
}

.device-selector__btn.active {
  background: var(--primary);
  color: #000;
}

.device-showcase {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.device-image-display {
  width: 100%;
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.device-image.active {
  display: block;
}

.device-type-selector {
  display: flex;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 0.375rem;
  justify-content: center;
}

.device-type-selector__btn {
  padding: 0.625rem 1rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.device-type-selector__btn:hover {
  color: var(--text);
}

.device-type-selector__btn.active {
  background: var(--primary);
  color: #000;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --- Navigation ------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(13, 13, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}

.nav__brand:hover {
  color: var(--primary-dim);
}

.nav__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav__links a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--white);
}

.nav__lang {
  font-size: 0.875rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.nav__lang a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}

.nav__lang a:hover,
.nav__lang a.active {
  color: var(--primary);
}

.nav__lang span {
  margin: 0 0.25rem;
  opacity: 0.4;
}

/* --- Hero ------------------------------------------------- */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero__description {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

.hero__coming-soon {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero__mockup {
  max-width: 640px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 3rem;
  }

  .hero__subtitle {
    font-size: 1.5rem;
  }
}

/* --- App Store Badge -------------------------------------- */
.badge-wrap {
  display: inline-block;
}

.badge-disabled {
  opacity: 0.4;
  pointer-events: none;
  filter: grayscale(100%);
  cursor: not-allowed;
}

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--white);
  color: #000;
  border-radius: 10px;
  padding: 0.5rem 1.125rem;
  font-family: var(--font-sans);
  text-decoration: none;
  transition: opacity 0.2s;
}

.appstore-badge__icon {
  font-size: 1.75rem;
  line-height: 1;
}

.appstore-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.appstore-badge__small {
  font-size: 0.625rem;
  letter-spacing: 0.04em;
}

.appstore-badge__large {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* --- Device Mockup (CSS-only) ----------------------------- */
.device-mockup {
  background: #0a0a14;
  border: 2px solid var(--surface-border);
  border-radius: 16px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.device-mockup__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  grid-template-rows: auto auto auto;
  height: 100%;
  gap: 3px;
  padding: 3px;
}

.device-mockup__panel {
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  position: relative;
  overflow: hidden;
}

.device-mockup__panel::after {
  content: '▶';
  font-size: 1rem;
  opacity: 0.6;
}

.device-mockup__panel--blue {
  background: #3B82F6;
  grid-row: 1 / 4;
}

.device-mockup__panel--green {
  background: #22C55E;
  grid-column: 2;
  grid-row: 1;
}

.device-mockup__panel--orange {
  background: #F97316;
  grid-column: 2;
  grid-row: 2;
}

.device-mockup__panel--purple {
  background: #A855F7;
  grid-column: 2;
  grid-row: 3;
}

/* --- Feature Cards ---------------------------------------- */
.features__heading {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.features__sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin-bottom: 3rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 1.75rem;
  border-top-width: 3px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.feature-card--blue   { border-top-color: var(--accent-blue); }
.feature-card--green  { border-top-color: var(--accent-green); }
.feature-card--orange { border-top-color: var(--accent-orange); }
.feature-card--purple { border-top-color: var(--accent-purple); }

.feature-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.feature-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.feature-card__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Source Management ------------------------------------ */
.sources__title,
.detection__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.sources__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.sources__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.sources__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.sources__visual {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.sources__visual-icon {
  font-size: 3rem;
  opacity: 0.5;
}

/* --- Detection Cards -------------------------------------- */
.detection {
  text-align: center;
}

.detection__title {
  margin-bottom: 0.75rem;
}

.detection__sub {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin-bottom: 3rem;
}

.detection-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: left;
}

.detection-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.detection-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.detection-card__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- CTA Section ------------------------------------------ */
.cta {
  text-align: center;
}

.cta__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.cta__sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.cta__badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.cta__coming-soon {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --- Footer ----------------------------------------------- */
.footer {
  background: rgba(13, 13, 26, 0.8);
  border-top: 1px solid var(--surface-border);
  padding: 2rem 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer__copy {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.footer__links a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--primary);
}

.footer__links span {
  color: var(--surface-border);
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* --- Privacy Policy --------------------------------------- */
.privacy-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--surface-border);
}

.privacy-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.privacy-hero__back:hover {
  color: var(--primary);
}

.privacy-hero__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.privacy-hero__meta {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.privacy-content {
  padding: 3rem 0 5rem;
  max-width: 760px;
}

.privacy-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--surface-border);
}

.privacy-content h2:first-child {
  margin-top: 0;
}

.privacy-content p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.privacy-content ul {
  margin: 0.75rem 0 1rem 1.25rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.privacy-content ul li {
  margin-bottom: 0.375rem;
}

.privacy-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.25rem 0 0.5rem;
}

.privacy-content a {
  color: var(--primary);
  word-break: break-all;
}

.privacy-content a:hover {
  color: var(--primary-dim);
}

/* --- Section Headings ------------------------------------- */
.section__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.section__sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
