/* cinejoy.info — shared stylesheet */

/* ─── Reset & base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:   #95ff50;
  --green-dk:#5fcc20;
  --bg:      #0a0a0a;
  --surface: #141414;
  --surface2:#1e1e1e;
  --border:  #2a2a2a;
  --text:    #e8e8e8;
  --muted:   #888;
  --radius:  6px;
  --max:     760px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

p { max-width: 68ch; }
p + p { margin-top: 1rem; }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

strong { color: #fff; font-weight: 600; }

code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.875rem;
  background: var(--surface2);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--green);
}

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

.container--wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav__logo img {
  height: 28px;
  width: auto;
}

.nav__logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav__links a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav__links a:hover,
.nav__links a.active { color: #fff; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: #0a0a0a !important;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 7px 16px;
  border-radius: var(--radius);
  text-decoration: none !important;
  transition: background 0.15s;
}

.nav__cta:hover { background: var(--green-dk); }

/* ─── Hero ─── */
.hero {
  padding: 80px 24px 72px;
  border-bottom: 1px solid var(--border);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 20px;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--green);
}

.hero h1 { margin-bottom: 20px; }

.hero__lead {
  font-size: 1.125rem;
  color: #aaa;
  max-width: 60ch;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--green);
  color: #0a0a0a;
}

.btn--primary:hover {
  background: var(--green-dk);
  text-decoration: none;
}

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

.btn--ghost:hover {
  border-color: #555;
  background: var(--surface);
  text-decoration: none;
}

/* ─── Section ─── */
.section {
  padding: 64px 24px;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section__title {
  margin-bottom: 16px;
}

.section__intro {
  color: #aaa;
  font-size: 1.05rem;
  margin-bottom: 40px;
}

/* ─── Cards ─── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}

.card__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(149,255,80,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1rem;
}

.card h3 { margin-bottom: 8px; }
.card p { color: #999; font-size: 0.9rem; margin-top: 0; }

/* ─── Grid layouts ─── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* ─── Badge / pill ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
}

.badge--green { background: rgba(149,255,80,0.12); color: var(--green); }
.badge--gray  { background: var(--surface2); color: var(--muted); }

/* ─── Table ─── */
.table-wrap { overflow-x: auto; }

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

thead th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
}

tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface); }

.td-green { color: var(--green); font-weight: 600; }
.td-muted { color: var(--muted); }

/* ─── Checklist ─── */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: #bbb;
}

.checklist li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─── FAQ accordion ─── */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.97rem;
  color: #fff;
  list-style: none;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--muted);
  transition: all 0.15s;
}

details[open] .faq-icon {
  background: var(--green);
  border-color: var(--green);
  color: #0a0a0a;
  transform: rotate(45deg);
}

.faq-item .answer {
  padding-bottom: 18px;
  color: #999;
  font-size: 0.92rem;
  line-height: 1.75;
}

/* ─── Steps ─── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child { border-bottom: none; }

.step__num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
  margin-top: 2px;
}

.step__body h3 { font-size: 1rem; margin-bottom: 6px; }
.step__body p  { color: #999; font-size: 0.9rem; margin: 0; }

/* ─── Alert box ─── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.6;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.alert--green {
  background: rgba(149,255,80,0.08);
  border: 1px solid rgba(149,255,80,0.25);
  color: #c5ffaa;
}

.alert--warn {
  background: rgba(255,190,50,0.08);
  border: 1px solid rgba(255,190,50,0.2);
  color: #ffd97d;
}

.alert__icon { flex-shrink: 0; font-size: 1rem; margin-top: 1px; }

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}

.footer__brand img { height: 24px; margin-bottom: 10px; }
.footer__brand p { color: var(--muted); font-size: 0.82rem; max-width: 34ch; }

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: right;
}

.footer__links a {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.footer__links a:hover { color: var(--text); }

.footer__copy {
  max-width: 1100px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: #444;
}

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

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { color: #444; }

/* ─── Table of contents ─── */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 40px;
}

.toc h4 { font-size: 0.8rem; color: var(--muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.toc ol { padding-left: 16px; display: flex; flex-direction: column; gap: 6px; }
.toc a { font-size: 0.875rem; color: #aaa; }
.toc a:hover { color: var(--green); }

/* ─── Inline stat / highlight ─── */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0;
}

.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  flex: 1;
  min-width: 140px;
}

.stat-box__val {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-box__label {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ─── Divider ─── */
hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .nav__links { display: none; }
  .hero { padding: 48px 20px 48px; }
  .section { padding: 48px 20px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { text-align: left; }
  .footer__copy { flex-direction: column; }
  .grid-3 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
