/* =========================================================
   RealCinemaGhar — Temporary Homepage
   Dark cinematic, premium, minimal. No frameworks, no deps.
   ========================================================= */

:root {
  --bg-base: #0a0a0c;
  --bg-elevated: #121215;
  --gold: #f5c542;
  --gold-soft: rgba(245, 197, 66, 0.14);
  --red: #b3242c;
  --text-primary: #ffffff;
  --text-subtle: #b7b7bf;
  --text-faint: #7c7c85;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --shadow-gold: 0 0 40px rgba(245, 197, 66, 0.18);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max-width: 1100px;
}

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

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

/* ---------- Ambient Background ---------- */

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-gradient {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 20% 20%, rgba(179, 36, 44, 0.16), transparent 45%),
    radial-gradient(circle at 80% 15%, rgba(245, 197, 66, 0.10), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(245, 197, 66, 0.08), transparent 50%),
    linear-gradient(180deg, #0a0a0c 0%, #0d0d10 50%, #0a0a0c 100%);
  background-size: 140% 140%;
  animation: drift 26s ease-in-out infinite alternate;
}

@keyframes drift {
  0%   { background-position: 0% 0%; }
  100% { background-position: 100% 60%; }
}

.particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: var(--size, 3px);
  height: var(--size, 3px);
  border-radius: 50%;
  background: var(--gold);
  opacity: var(--opacity, 0.3);
  filter: blur(0.5px);
  animation: floaty var(--duration, 18s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) translateX(0); }
  50%      { transform: translateY(-40px) translateX(12px); }
}

/* ---------- Layout ---------- */

.page {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  font-size: 1.4rem;
}

.brand-name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(245, 197, 66, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: 64px 0 40px;
}

.hero-title {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 auto 20px;
  max-width: 820px;
}

.hero-title .accent {
  background: linear-gradient(90deg, var(--gold), #ffe08a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-subtle);
  max-width: 560px;
  margin: 0 auto 44px;
}

/* ---------- Search ---------- */

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 620px;
  margin: 0 auto 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 8px 8px 8px 22px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.search-box:focus-within {
  border-color: rgba(245, 197, 66, 0.5);
  box-shadow: var(--shadow-gold);
}

.search-icon {
  color: var(--text-faint);
  font-size: 0.95rem;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 1rem;
  padding: 12px 8px;
  outline: none;
}

.search-input::placeholder {
  color: var(--text-faint);
}

.search-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  background: linear-gradient(90deg, var(--gold), #e8b52f);
  color: #16130a;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: 999px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.search-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.search-button:active {
  transform: translateY(0);
}

/* ---------- Chips ---------- */

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.chip {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-subtle);
  font-size: 0.88rem;
  padding: 9px 16px;
  border-radius: 999px;
  transition: all 0.2s var(--ease);
}

.chip:hover {
  border-color: rgba(245, 197, 66, 0.4);
  color: var(--text-primary);
  background: var(--gold-soft);
  transform: translateY(-1px);
}

/* ---------- Section Titles ---------- */

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 36px;
}

/* ---------- Features ---------- */

.features {
  padding: 88px 0 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 197, 66, 0.35);
  background: rgba(245, 197, 66, 0.05);
}

.feature-icon {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

/* ---------- Progress ---------- */

.progress-section {
  padding: 56px 0;
  text-align: center;
}

.progress-track {
  max-width: 420px;
  height: 10px;
  margin: 0 auto 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  position: relative;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: shimmer 2.4s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-caption {
  color: var(--text-subtle);
  font-size: 0.95rem;
  max-width: 460px;
  margin: 0 auto;
}

/* ---------- CTA ---------- */

.cta-section {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0 96px;
}

.btn {
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 999px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.btn-primary {
  border: none;
  background: linear-gradient(90deg, var(--gold), #e8b52f);
  color: #16130a;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: rgba(245, 197, 66, 0.4);
  background: rgba(255, 255, 255, 0.03);
}

/* ---------- Footer ---------- */

.site-footer {
  text-align: center;
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
  color: var(--text-faint);
}

.footer-brand {
  color: var(--text-primary);
  font-weight: 700;
  margin: 0 0 6px;
}

.footer-tagline {
  color: var(--text-subtle);
  margin: 0 0 6px;
  font-size: 0.92rem;
}

.footer-status {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.footer-copyright {
  font-size: 0.8rem;
  margin: 0;
}

/* ---------- Modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 8, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 24px;
  animation: fadeIn 0.2s var(--ease);
}

.modal-overlay[hidden] {
  display: none;
}

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

.modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--shadow-gold);
  animation: pop 0.25s var(--ease);
}

@keyframes pop {
  from { opacity: 0; transform: scale(0.96) translateY(6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.modal-body {
  color: var(--text-subtle);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 40px 0 28px;
  }

  .search-box {
    flex-wrap: wrap;
    border-radius: var(--radius-lg);
    padding: 14px;
  }

  .search-input {
    width: 100%;
    order: 1;
  }

  .search-button {
    order: 2;
    width: 100%;
    justify-content: center;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .cta-section {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

/* ---------- Reduced Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .bg-gradient,
  .particle,
  .progress-fill::after {
    animation: none !important;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
