:root {
  --bg: #0A0A12;
  --surface: #14141F;
  --surface-high: #1C1C2B;
  --outline: #34344D;
  --glow: #1E3A8A;
  --primary: #5B3DF5;
  --primary-end: #A21CC8;
  --text: #ffffff;
  --muted: #A6A6BC;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--primary); }
a:hover { color: var(--primary-end); }

.container { width: min(1040px, 100% - 40px); margin-inline: auto; }

/* ---- header ---- */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline);
}
header.site .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(90deg, var(--primary), var(--primary-end));
  display: grid; place-items: center;
}
.brand-mark::after {
  content: ""; width: 0; height: 0;
  border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
  margin-left: 3px;
}
nav.site a { color: var(--muted); text-decoration: none; margin-left: 22px; font-size: 0.95rem; font-weight: 500; }
nav.site a:hover, nav.site a.active { color: #fff; }

/* ---- hero ---- */
.hero {
  position: relative; text-align: center;
  padding: 96px 0 84px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(30, 58, 138, 0.55), transparent 70%),
    var(--bg);
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); line-height: 1.1; margin: 0 0 18px; letter-spacing: -0.03em; }
.hero h1 span { background: linear-gradient(90deg, var(--primary), var(--primary-end)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { max-width: 620px; margin: 0 auto 32px; color: var(--muted); font-size: 1.15rem; }

.btn {
  display: inline-block; padding: 14px 30px; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: 1rem; border: 0; cursor: pointer;
}
.btn-primary { background: linear-gradient(90deg, var(--primary), var(--primary-end)); color: #fff; }
.btn-white { background: #fff; color: #000; }
.btn:hover { filter: brightness(1.1); color: inherit; }
.btn-primary:hover { color: #fff; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- sections ---- */
section { padding: 72px 0; }
h2 { font-size: 1.9rem; letter-spacing: -0.02em; margin: 0 0 10px; }
.sub { color: var(--muted); margin: 0 0 36px; max-width: 640px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--outline);
  border-radius: 20px; padding: 26px;
}
.card h3 { margin: 12px 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.icon {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem;
  background: linear-gradient(135deg, rgba(91, 61, 245, .35), rgba(162, 28, 200, .35));
  border: 1px solid var(--outline);
}

/* ---- contact ---- */
.contact {
  text-align: center;
  background: radial-gradient(ellipse 60% 100% at 50% 100%, rgba(91, 61, 245, 0.25), transparent 70%);
  border-top: 1px solid var(--outline);
}
.contact .mail {
  display: inline-block; margin-top: 8px;
  font-size: clamp(1.2rem, 3.5vw, 1.8rem); font-weight: 700; color: #fff; text-decoration: none;
  padding: 14px 28px; border-radius: 999px; border: 1px solid var(--outline); background: var(--surface-high);
}
.contact .mail:hover { border-color: var(--primary); }

/* ---- legal pages ---- */
.legal { padding: 56px 0 80px; }
.legal .container { max-width: 780px; }
.legal h1 { font-size: 2.3rem; letter-spacing: -0.02em; margin: 0 0 6px; }
.legal .updated { color: var(--muted); margin: 0 0 36px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 8px; }
.legal p, .legal li { color: #d0d0dc; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }

/* ---- footer ---- */
footer.site { border-top: 1px solid var(--outline); padding: 32px 0; color: var(--muted); font-size: 0.9rem; }
footer.site .container { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer.site a { color: var(--muted); text-decoration: none; margin-right: 18px; }
footer.site a:hover { color: #fff; }
footer.site .tmdb { width: 100%; font-size: 0.8rem; }

@media (max-width: 560px) {
  nav.site a { margin-left: 14px; font-size: 0.88rem; }
  .hero { padding: 64px 0 56px; }
}
