/* X-Ray for Netflix — landing styles.
 *
 * Design system: dark / OLED, cinematic, content-first. Black surface,
 * rose-red accent (#E11D48 — deliberately NOT Netflix's trademarked
 * #E50914), Inter at multiple weights. Recommended by ui-ux-pro-max
 * for streaming/entertainment + dark-mode pairing.
 *
 * The accent is the "play red" you associate with streaming UIs without
 * actually copying any one brand's color. Pairs with deep indigo
 * (#1E1B4B) for elevated surfaces and pure black for the canvas. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Surfaces */
  --bg: #000000;
  --bg-elev-1: #0a0a0a;
  --bg-card: #141414;
  --bg-card-hover: #1f1f1f;
  --bg-indigo: #1e1b4b;
  --border: #232323;
  --border-strong: #2e2e2e;

  /* Text */
  --text: #f8fafc;
  --text-muted: #a3a3a3;
  --text-dim: #6b7280;

  /* Accent — rose-red, not Netflix red */
  --accent: #e11d48;
  --accent-hover: #be123c;
  --accent-glow: rgba(225, 29, 72, 0.32);
  --accent-glow-soft: rgba(225, 29, 72, 0.12);
  --accent-text: #fb7185;

  /* Layout */
  --max-width: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;

  /* Type scale */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --font-mono: 'SF Mono', Menlo, Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Subtle film-grain noise overlay — very low opacity so it reads as
     texture, not visual noise. Inline SVG turbulence keeps it dependency-free. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: var(--accent-text);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.15em 0.4em;
  color: var(--accent-text);
}

pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text);
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* ─── Layout ─────────────────────────────────────── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.015em;
}

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

.brand-mark {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  box-shadow: 0 0 16px var(--accent-glow);
  position: relative;
}

.brand-mark svg {
  width: 18px;
  height: 18px;
  color: #ffffff;
}

.brand-text {
  font-size: 0.95rem;
}

.brand-version {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-left: 0.45rem;
  padding: 0.18rem 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a {
  color: var(--text-muted);
}

.nav a:hover {
  color: var(--text);
}

/* ─── Hero ───────────────────────────────────────── */

.hero {
  position: relative;
  padding: 7rem 0 4rem;
  text-align: center;
  overflow: hidden;
}

/* Drifting cinematic glow — radial gradient that slowly pans across the
   hero, giving the page subtle motion without a video. Respect reduced-
   motion preference (rule from ui-ux-pro-max). */
.hero::before {
  content: '';
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 50% 40% at 20% 30%, var(--accent-glow-soft), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(30, 27, 75, 0.4), transparent 60%);
  z-index: 0;
  animation: ambient-drift 22s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

@keyframes ambient-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-3%, 2%) scale(1.06); }
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-glow-soft);
  border: 1px solid rgba(225, 29, 72, 0.28);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 1.5rem;
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 25%, #c8c8c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 38rem;
  margin: 0 auto 2.5rem;
  line-height: 1.55;
  font-weight: 400;
}

.cta-row {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
}

.cta-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 24px var(--accent-glow);
}

.cta-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 10px 32px var(--accent-glow);
}

.cta-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.cta-secondary:hover {
  color: var(--text);
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* Status badge variant — used for "Coming soon to Chrome Web Store" while the
   listing is in review. Not interactive; reads as a passive announcement. */
.cta-soon {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  cursor: default;
}

.cta-soon-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: status-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

.cta svg {
  width: 16px;
  height: 16px;
}

.hero-meta {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.hero-meta a {
  color: var(--text-muted);
  border-bottom: 1px dashed var(--border-strong);
}

.hero-meta a:hover {
  color: var(--accent-text);
  border-bottom-color: var(--accent);
}

/* ─── Demo / Visual ─────────────────────────────── */

.demo {
  padding: 0 0 6rem;
  position: relative;
}

.demo-frame {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-strong);
  /* Cinematic shadow + accent rim light */
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 80px rgba(225, 29, 72, 0.06);
  aspect-ratio: 16 / 9;
}

.demo-mock {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  background: #000;
}

.demo-panel {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.96), rgba(20, 20, 20, 0.96));
  backdrop-filter: blur(8px);
  padding: 1.4rem 1.1rem;
  border-right: 1px solid rgba(225, 29, 72, 0.22);
  overflow: hidden;
  position: relative;
}

/* Soft red rim-light along the panel's leading edge — Netflix-y film vibe */
.demo-panel::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity: 0.7;
}

.demo-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.demo-panel-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.demo-panel-accent {
  width: 28px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 12px var(--accent-glow);
  animation: accent-pulse 2.8s ease-in-out infinite;
}

@keyframes accent-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px var(--accent-glow); }
  50%      { opacity: 0.7; box-shadow: 0 0 20px var(--accent-glow); }
}

.demo-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.demo-row:last-child {
  border-bottom: none;
}

.demo-photo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a2a2a, #404040);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #b0b0b0;
}

.demo-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.demo-character {
  font-size: 0.7rem;
  color: var(--text-dim);
  line-height: 1.3;
}

.demo-stage {
  position: relative;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(225, 29, 72, 0.04), transparent 60%),
    linear-gradient(135deg, #050505, #1a1a1a);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1rem;
}

.demo-controls {
  display: flex;
  gap: 0.75rem;
  opacity: 0.6;
}

.demo-control-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

/* ─── Sections ──────────────────────────────────── */

.section {
  padding: 5.5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.25rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.85rem;
}

.section h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  font-weight: 700;
  color: var(--text);
}

.section-lede {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 38rem;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── Features ──────────────────────────────────── */

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

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.85rem;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.feature:hover {
  border-color: rgba(225, 29, 72, 0.35);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-glow-soft);
  border: 1px solid rgba(225, 29, 72, 0.28);
  color: var(--accent-text);
  margin-bottom: 1.1rem;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature h3 {
  font-size: 1.1rem;
  margin: 0 0 0.55rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
}

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

.feature p strong {
  color: var(--text);
  font-weight: 600;
}

/* ─── Install steps ─────────────────────────────── */

.install {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.75rem;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
  display: grid;
  gap: 1.75rem;
}

.step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 1.1rem;
  align-items: start;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 0.05rem;
  box-shadow: 0 0 16px var(--accent-glow);
}

.step-body h4 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.015em;
}

.step-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.step-body p + p,
.step-body p + pre,
.step-body pre + p {
  margin-top: 0.55rem;
}

/* ─── About ──────────────────────────────────────── */

.about {
  text-align: center;
}

.about-body {
  max-width: 38rem;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.about-body p {
  margin: 0 0 1rem;
}

.about-body p:last-child {
  margin: 0;
}

.about-body em {
  color: var(--text);
  font-style: italic;
  font-weight: 500;
}

/* ─── Footer ─────────────────────────────────────── */

.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  font-size: 0.875rem;
  color: var(--text-dim);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent-text);
}

/* ─── Legal pages (privacy / terms) ─────────────── */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 4.5rem 0 2rem;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.025em;
  margin: 0 0 0.6rem;
  font-weight: 700;
}

.legal-meta {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.legal h2 {
  font-size: 1.4rem;
  letter-spacing: -0.015em;
  margin: 2.75rem 0 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.legal h3 {
  font-size: 1.05rem;
  margin: 1.85rem 0 0.55rem;
  font-weight: 600;
  color: var(--text);
}

.legal p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.legal ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.legal ul li {
  margin-bottom: 0.45rem;
}

.legal ul li strong {
  color: var(--text);
  font-weight: 600;
}

.legal a {
  color: var(--accent-text);
  border-bottom: 1px dashed rgba(251, 113, 133, 0.35);
}

.legal a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ─── Responsive ─────────────────────────────────── */

@media (max-width: 900px) {
  .hero {
    padding: 5rem 0 3rem;
  }
}

@media (max-width: 700px) {
  .nav {
    gap: 1.1rem;
    font-size: 0.85rem;
  }

  .demo-mock {
    grid-template-columns: 200px 1fr;
  }

  .install {
    padding: 1.85rem;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }

  .legal {
    padding: 3rem 0 2rem;
  }
}

@media (max-width: 500px) {
  .nav .nav-link-extra {
    display: none;
  }

  .demo-mock {
    grid-template-columns: 160px 1fr;
  }

  .demo-panel {
    padding: 0.95rem 0.75rem;
  }

  .demo-photo {
    width: 28px;
    height: 28px;
  }

  .demo-name {
    font-size: 0.74rem;
  }

  .demo-character {
    font-size: 0.66rem;
  }
}

/* Respect prefers-reduced-motion (ui-ux-pro-max accessibility rule §1) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero::before {
    animation: none;
  }
}
