/* ================================================
   Cinejoy Shared Design System — cinejoy.guru
   Primary: #95ff50 | Dark theme
   ================================================ */

:root {
  --primary: #95ff50;
  --primary-dim: rgba(149, 255, 80, 0.12);
  --primary-glow: rgba(149, 255, 80, 0.25);
  --bg: #0b0b0b;
  --bg-2: #111111;
  --bg-3: #181818;
  --bg-card: #141414;
  --border: rgba(255,255,255,0.07);
  --border-primary: rgba(149, 255, 80, 0.25);
  --text: #f0f0f0;
  --text-muted: #888;
  --text-dim: #555;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1100px;
  --transition: 0.18s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { opacity: 0.85; }

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

/* ── Typography ── */
h1, h2, h3, h4, h5 { line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { color: #ccc; }

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 72px 0;
}

section + section {
  padding-top: 0;
}

/* ── Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,11,11,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 60px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin-left: 8px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

.nav-cta {
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #000;
}

.btn-primary:hover {
  background: #a8ff64;
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

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

.btn-outline:hover {
  background: var(--primary-dim);
  opacity: 1;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: 10px;
}

/* ── Hero ── */
.hero {
  padding: 80px 0 64px;
  text-align: center;
}

.hero .eyebrow {
  display: inline-block;
  background: var(--primary-dim);
  color: var(--primary);
  border: 1px solid var(--border-primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--primary);
}

.hero .subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 16px auto 32px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Stats Bar ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 48px 0 0;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.stat-item {
  background: var(--bg-card);
  padding: 18px 12px;
  text-align: center;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

/* ── Section heading ── */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-heading {
  margin-bottom: 12px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 40px;
  max-width: 520px;
}

/* ── Feature Cards ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--transition), transform var(--transition);
}

.feature-card:hover {
  border-color: var(--border-primary);
  transform: translateY(-2px);
}

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

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

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

/* ── Steps ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #000;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.step-card h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Links / Domain Cards ── */
.link-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  transition: border-color var(--transition), background var(--transition);
}

.link-card:hover {
  border-color: var(--border-primary);
  background: #161616;
}

.link-status {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.link-status.online {
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
  animation: pulse 2s infinite;
}

.link-status.backup {
  background: #f59e0b;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.link-domain {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  flex: 1;
}

.link-domain small {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
}

.link-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 100px;
}

.link-badge.primary {
  background: var(--primary-dim);
  color: var(--primary);
  border: 1px solid var(--border-primary);
}

.link-badge.backup {
  background: rgba(245,158,11,0.1);
  color: #f59e0b;
  border: 1px solid rgba(245,158,11,0.25);
}

.link-badge.guide {
  background: rgba(99,102,241,0.1);
  color: #818cf8;
  border: 1px solid rgba(99,102,241,0.25);
}

.link-go {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  flex-shrink: 0;
}

/* ── Comparison Table ── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead {
  background: var(--bg-3);
}

th {
  padding: 14px 18px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

th:first-child { width: 200px; }

td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  color: #ccc;
}

tr:last-child td { border-bottom: none; }

tr:hover td { background: rgba(255,255,255,0.02); }

td:first-child { font-weight: 600; color: var(--text); }

.td-primary { color: var(--primary) !important; font-weight: 600 !important; }
.td-no { color: #ef4444; }
.td-partial { color: #f59e0b; }

th.col-cinejoy, td.col-cinejoy {
  background: var(--primary-dim);
  color: var(--text);
}

th.col-cinejoy {
  color: var(--primary);
}

/* ── FAQ Accordion ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open {
  border-color: var(--border-primary);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.925rem;
  gap: 12px;
  user-select: none;
  color: var(--text);
}

.faq-q:hover { color: var(--primary); }

.faq-arrow {
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-arrow {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.2s;
}

.faq-item.open .faq-a {
  max-height: 400px;
}

.faq-a-inner {
  padding: 0 20px 18px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Movie Cards ── */
.movies-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.movie-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
  cursor: pointer;
}

.movie-card:hover {
  border-color: var(--border-primary);
  transform: translateY(-3px);
}

.movie-poster {
  aspect-ratio: 2/3;
  background: var(--bg-3);
  position: relative;
  overflow: hidden;
}

.movie-poster-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-poster-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-dim);
  background: linear-gradient(135deg, #1a1a1a, #222);
}

.movie-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 12px;
}

.movie-card:hover .movie-overlay { opacity: 1; }

.movie-play {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #000;
  font-weight: 700;
}

.movie-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary);
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.movie-rank {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.75);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border-primary);
}

.movie-info {
  padding: 10px 12px;
}

.movie-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.movie-meta .rating {
  color: #f59e0b;
  font-weight: 600;
}

/* ── Genre Tabs ── */
.genre-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.genre-tab {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  transition: var(--transition);
}

.genre-tab:hover,
.genre-tab.active {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  opacity: 1;
}

/* ── Alert / Info Banner ── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--primary-dim);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.875rem;
  color: #ccc;
  margin-bottom: 32px;
}

.alert-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; color: var(--primary); }

.alert strong { color: var(--primary); }

/* ── Alternatives ── */
.alt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.alt-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.alt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.alt-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.alt-price {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-free { background: rgba(34,197,94,0.1); color: #22c55e; border: 1px solid rgba(34,197,94,0.2); }
.price-paid { background: rgba(99,102,241,0.1); color: #818cf8; border: 1px solid rgba(99,102,241,0.2); }

.alt-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── CTA Block ── */
.cta-block {
  background: linear-gradient(135deg, var(--bg-3) 0%, #141a10 100%);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  text-align: center;
}

.cta-block h2 { margin-bottom: 12px; }
.cta-block p { color: var(--text-muted); margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ── Footer ── */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand .footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-brand img {
  height: 28px;
  width: auto;
}

.footer-brand-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.footer-brand p {
  font-size: 0.83rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary);
  opacity: 1;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-dim);
  gap: 16px;
  flex-wrap: wrap;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--primary); opacity: 1; }
.breadcrumb span { color: var(--text-muted); }

/* ── Update Badge ── */
.update-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.update-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .movies-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .alt-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  section { padding: 48px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .movies-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .alt-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .cta-block { padding: 36px 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}

/* ── Utilities ── */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #444; }
