/* Enlight Player website. One shared stylesheet, no external fonts. */

:root {
  --ink: #05061A;
  --violet: #1B0B4A;
  --plum: #3A0E6E;
  --pink: #FF4F9A;
  --cyan: #3EE6FF;
  --purple: #B05CFF;
  --accent: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink));
  --text: #F4F2FF;
  --muted: #C9C3E6;
  --card: rgba(255, 255, 255, 0.07);
  --card-line: rgba(255, 255, 255, 0.12);
  --radius: 22px;
  --max: 1080px;
  --gutter: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse 60% 45% at 100% 0%, rgba(255, 79, 154, 0.28), rgba(255, 79, 154, 0) 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--violet) 55%, var(--plum) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

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

a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #9AF2FF; }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--text); padding: 8px 14px; z-index: 10;
}
.skip:focus { left: 12px; top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Gradient text and rule */
.grad {
  background: var(--accent);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.rule { height: 4px; width: 72px; border-radius: 4px; background: var(--accent); margin: 0 0 20px; }

/* Hero */
.hero { padding: 40px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero .pitch { font-size: clamp(1.15rem, 3vw, 1.4rem); color: var(--muted); max-width: 34ch; }
.hero-icon {
  justify-self: center;
  width: min(320px, 70vw);
  border-radius: 22.5%;
  box-shadow: 0 30px 80px rgba(255, 79, 154, 0.25), 0 10px 40px rgba(62, 230, 255, 0.15);
}
.devices { color: var(--muted); font-size: 0.95rem; margin-top: 14px; }

.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 700; text-decoration: none; color: var(--ink);
  background: var(--accent);
  box-shadow: 0 8px 30px rgba(176, 92, 255, 0.35);
}
.button:hover { color: var(--ink); filter: brightness(1.08); }
.button svg { width: 20px; height: 20px; flex: none; }

/* Sections */
section { padding: 48px 0; }
.section-intro { color: var(--muted); max-width: 60ch; margin-bottom: 28px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }

.card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 24px;
}
.card p:last-child, .card ul:last-child, .card ol:last-child { margin-bottom: 0; }
.card h3 { display: flex; align-items: center; gap: 12px; }
.card .dot {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: inline-grid; place-items: center;
  background: var(--accent); color: var(--ink);
}
.card .dot svg { width: 20px; height: 20px; }
.card p, .card li { color: var(--muted); }

/* Screenshots */
.shots { display: flex; gap: 24px; align-items: flex-end; justify-content: center; flex-wrap: wrap; }
.shots figure { margin: 0; text-align: center; color: var(--muted); font-size: 0.95rem; }
.frame {
  background: #0B0C22; border: 1px solid var(--card-line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden; margin: 0 auto 10px;
}
.frame img { width: 100%; height: 100%; object-fit: cover; background: var(--violet); }
.frame-iphone { width: 190px; aspect-ratio: 600 / 1304; border-radius: 30px; border-width: 6px; border-color: #222538; }
.frame-ipad { width: 300px; aspect-ratio: 3 / 4; border-radius: 22px; border-width: 8px; border-color: #222538; }
.frame-tv { width: 420px; aspect-ratio: 16 / 9; border-radius: 10px; border-width: 6px; border-color: #15172A; }

/* Privacy band */
.band {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 32px;
}
.band ul { padding-left: 1.2em; margin: 0; }
.band li { margin-bottom: 6px; }

/* Long-form pages */
.page { padding: 24px 0 48px; }
.page h2 { margin-top: 1.6em; }
.page h3 { margin-top: 1.4em; }
.page li { margin-bottom: 6px; }
.updated { color: var(--muted); }

details {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
details summary { cursor: pointer; font-weight: 700; }
details[open] summary { margin-bottom: 10px; }
details p, details li { color: var(--muted); }
details p:last-child { margin-bottom: 0; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px; border-radius: 6px;
  overflow-wrap: anywhere;
}

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

/* TMDB credit */
.tmdb-mark {
  display: inline-block;
  font-weight: 800; letter-spacing: 0.04em; font-size: 1.6rem; line-height: 1;
  padding: 8px 14px; border-radius: 10px;
  background: #0D253F;
  text-decoration: none;
}
.tmdb-mark span {
  background: linear-gradient(90deg, #90CEA1, #3CBEC9, #01B4E4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tmdb-mark:hover { filter: brightness(1.15); }

/* Footer */
.site-footer {
  margin-top: 32px; padding: 32px 0 40px;
  border-top: 1px solid var(--card-line);
  color: var(--muted); font-size: 0.95rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--text); }
.site-footer p { margin: 0 0 6px; }

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; background-attachment: scroll; }
  .hero { padding-top: 16px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero-icon { grid-row: 1; width: min(200px, 55vw); }
  .band, .card { padding: 20px; }
  .frame-ipad { width: min(100%, 300px); }
  .frame-tv { width: min(100%, 420px); }
}

@media (prefers-reduced-motion: no-preference) {
  .button { transition: filter 0.15s ease; }
}

.after-grid { margin-top: 1em; }
.band .more { margin: 1em 0 0; }
.page .card > h3:first-child { margin-top: 0; }
