/* =========================================================
   Lohaput — Premium cinematic stylesheet
   Fonts: Bebas Neue (display) · Inter (body) · IBM Plex Mono (meta)
   ========================================================= */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Surfaces */
  --bg: #0a0c12;
  --bg-2: #11131a;
  --surface: #161922;
  --surface-2: #1d2130;
  --elevated: #232839;

  /* Borders & lines */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #f5f7fa;
  --text-soft: #c7cdd9;
  --text-muted: #8b93a5;
  --text-faint: #5a6275;

  /* Brand */
  --accent: #ff3d57;
  --accent-2: #ff8a3d;
  --accent-soft: rgba(255, 61, 87, 0.14);
  --gold: #ffc24b;

  /* Effects */
  --ring: rgba(255, 61, 87, 0.45);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 40px rgba(255, 61, 87, 0.25);

  /* Geometry */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --maxw: 1180px;
  --gut: 24px;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  /* Ambient cinematic backdrop */
  background-image:
    radial-gradient(
      1200px 600px at 80% -10%,
      rgba(255, 61, 87, 0.1),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 10% 10%,
      rgba(255, 138, 61, 0.06),
      transparent 55%
    ),
    linear-gradient(180deg, #0a0c12 0%, #0b0d14 100%);
  background-attachment: fixed;
}

img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
  color: inherit;
}
ul,
ol {
  list-style: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 999px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--elevated);
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* ---------- 4. Typography ---------- */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}

h2 {
  font-family: "Bebas Neue", "Inter", sans-serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: 0.01em;
  line-height: 1;
  position: relative;
  padding-left: 18px;
  margin-bottom: 14px;
}
h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 4px;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

p {
  color: var(--text-soft);
}

.sub {
  color: var(--text-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

/* ---------- 5. Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 18, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  color: var(--text);
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  transition: opacity 0.2s var(--ease);
}
.brand span {
  color: var(--accent);
  text-shadow: 0 0 24px var(--ring);
}
.brand:hover {
  opacity: 0.85;
}

nav {
  display: flex;
  gap: 6px;
}
nav a {
  position: relative;
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: var(--r-pill);
  transition:
    color 0.25s var(--ease),
    background 0.25s var(--ease);
}
nav a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
nav a:hover {
  color: var(--text);
}
nav a:hover::after {
  transform: scaleX(1);
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding: clamp(60px, 9vw, 110px) 0 clamp(50px, 7vw, 80px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      800px 400px at 90% 0%,
      rgba(255, 61, 87, 0.18),
      transparent 60%
    ),
    radial-gradient(
      700px 400px at 0% 100%,
      rgba(255, 138, 61, 0.08),
      transparent 60%
    );
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.hero h1 {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0.005em;
  margin-bottom: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #c7cdd9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
}

.meta-line {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--text-soft);
  max-width: 680px;
  margin-bottom: 32px;
  text-wrap: pretty;
}

/* Chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.search-query {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  transition: all 0.25s var(--ease);
  backdrop-filter: blur(6px);
}
.search-query::before {
  content: "▶";
  font-size: 0.55rem;
  color: var(--accent);
  transform: translateY(-1px);
}
.search-query:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 61, 87, 0.18);
}

/* ---------- 7. Sections ---------- */
section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.selector {
  border-top: 1px solid var(--line);
}

.content-block {
  background: linear-gradient(180deg, rgba(22, 25, 34, 0.4), transparent);
  border-top: 1px solid var(--line);
}
.content-block .wrap {
  max-width: 820px;
}
.content-block p {
  font-size: 1.0625rem;
  color: var(--text-soft);
  margin-bottom: 18px;
  text-wrap: pretty;
}
.content-block p:last-child {
  margin-bottom: 0;
}

/* ---------- 8. Movie buttons grid ---------- */
.movie-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.hero-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition:
    transform 0.25s var(--ease-out),
    border-color 0.25s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.25s var(--ease);
  isolation: isolate;
}
.hero-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 61, 87, 0.15),
    rgba(255, 138, 61, 0.08)
  );
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  z-index: -1;
}
.hero-btn::after {
  content: "→";
  margin-left: auto;
  color: var(--accent);
  font-weight: 400;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.25s var(--ease-out);
}
.hero-btn:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  background: var(--surface-2);
}
.hero-btn:hover::before {
  opacity: 1;
}
.hero-btn:hover::after {
  opacity: 1;
  transform: translateX(0);
}
.hero-btn:active {
  transform: translateY(-1px);
}

/* ---------- 9. FAQ ---------- */
.faq-section {
  border-top: 1px solid var(--line);
}
.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 24px;
  transition:
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.faq-item:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.faq-item h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  margin-bottom: 8px;
}
.faq-item h3::before {
  content: "Q";
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 500;
}
.faq-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-left: 38px;
}

/* ---------- 10. Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  background: rgba(10, 12, 18, 0.6);
}
footer .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.85rem;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.01em;
}

/* ---------- 11. Entrance animations ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-grid > * {
  animation: rise 0.7s var(--ease-out) both;
}
.hero-grid > *:nth-child(2) {
  animation-delay: 0.1s;
}
.hero-grid > *:nth-child(3) {
  animation-delay: 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 12. Responsive ---------- */
@media (max-width: 720px) {
  :root {
    --gut: 18px;
  }
  header .wrap {
    height: 60px;
  }
  .brand {
    font-size: 1.5rem;
  }
  nav a {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
  .movie-info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .hero-btn {
    padding: 14px 16px;
    font-size: 0.875rem;
  }
  .faq-item {
    padding: 18px 18px;
  }
  .faq-item p {
    padding-left: 0;
  }
  .faq-item h3::before {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 420px) {
  .movie-info-grid {
    grid-template-columns: 1fr;
  }
  nav {
    gap: 0;
  }
  nav a {
    padding: 6px 10px;
  }
}

/* ---------- 13. Print ---------- */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  header,
  footer,
  .search-query,
  nav {
    display: none;
  }
  .hero-btn,
  .faq-item {
    border: 1px solid #ccc;
    box-shadow: none;
  }
}
