/* ==========================================
   Cataz.city – Shared Stylesheet
   Primary: #EC7C34 | Dark theme
   ========================================== */

:root {
  --primary: #EC7C34;
  --primary-dark: #c9621c;
  --primary-light: #f4924e;
  --bg: #0d0d0d;
  --bg-card: #161616;
  --bg-card-hover: #1e1e1e;
  --bg-section: #111111;
  --text: #e8e8e8;
  --text-muted: #888;
  --text-dim: #555;
  --border: #232323;
  --border-light: #2a2a2a;
  --radius: 10px;
  --radius-sm: 6px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --shadow: 0 4px 24px rgba(0,0,0,.5);
  --shadow-sm: 0 2px 12px rgba(0,0,0,.4);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* Typography */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.9rem); }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.3rem); }
h4 { font-size: 1rem; }
p { color: var(--text); }

em { font-style: normal; color: var(--primary); }

/* Layout */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,13,13,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1160px;
  margin: 0 auto;
  gap: 16px;
}
.logo { height: 32px; width: auto; flex-shrink: 0; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}
.nav {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.nav a {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color .18s, background .18s;
}
.nav a:hover, .nav a.active { color: var(--text); background: var(--bg-card); }
.nav a.active { color: var(--primary); }
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff !important;
  font-weight: 600;
  font-size: .85rem;
  padding: 8px 18px;
  border-radius: 50px;
  transition: background .18s, transform .15s;
  white-space: nowrap;
}
.cta-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ── Hero ── */
.hero {
  padding: 80px 20px 64px;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(236,124,52,.12);
  border: 1px solid rgba(236,124,52,.3);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 22px;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:.5; transform:scale(1.4); }
}
.hero h1 { margin-bottom: 18px; }
.hero p {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 32px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  padding: 13px 28px;
  border-radius: 50px;
  transition: background .18s, transform .15s, box-shadow .18s;
  box-shadow: 0 4px 20px rgba(236,124,52,.35);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(236,124,52,.45);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  color: var(--text);
  font-weight: 600;
  font-size: .95rem;
  padding: 13px 28px;
  border-radius: 50px;
  border: 1px solid var(--border-light);
  transition: background .18s, border-color .18s, transform .15s;
}
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--primary); transform: translateY(-2px); }

/* ── Stats Bar ── */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 32px 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-section);
}
.stat { text-align: center; }
.stat-num {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  letter-spacing: -0.03em;
}
.stat-label { font-size: .8rem; color: var(--text-muted); margin-top: 3px; }

/* ── Section Titles ── */
.section-title {
  margin-bottom: 36px;
}
.section-title h2 { margin-bottom: 8px; }
.section-title p { color: var(--text-muted); font-size: .95rem; }
.section-title.centered { text-align: center; }
.section-title.centered p { max-width: 520px; margin: 0 auto; }

/* ── Cards Grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .18s, background .18s, transform .18s;
}
.card:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}
.card-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
  display: block;
}
.card h3 { margin-bottom: 8px; font-size: 1rem; }
.card p { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }

/* ── Feature List ── */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .18s;
}
.feature-item:hover { border-color: var(--border-light); }
.feature-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-text h4 { margin-bottom: 4px; font-size: .95rem; }
.feature-text p { font-size: .85rem; color: var(--text-muted); }

/* ── Table of Contents / Nav Cards ── */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.nav-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color .18s, background .18s, transform .15s;
}
.nav-card:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.nav-card-icon { font-size: 1.5rem; flex-shrink: 0; }
.nav-card-text { font-size: .9rem; font-weight: 600; }
.nav-card-sub { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.nav-card-arrow { margin-left: auto; color: var(--primary); font-size: 1.1rem; }

/* ── Genre Grid ── */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.genre-tag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color .18s, background .18s, color .18s;
  cursor: default;
}
.genre-tag:hover { border-color: var(--primary); color: var(--primary); background: var(--bg-card-hover); }
.genre-tag span:first-child { font-size: 1.2rem; }

/* ── FAQ ── */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  padding: 18px 22px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
  transition: color .18s;
}
.faq-q:hover { color: var(--primary); }
.faq-q::after {
  content: '+';
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner {
  padding: 0 22px 18px;
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* ── Status Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-green { background: rgba(52,211,153,.15); color: #34d399; }
.badge-orange { background: rgba(236,124,52,.15); color: var(--primary); }

/* ── Callout Box ── */
.callout {
  background: rgba(236,124,52,.08);
  border: 1px solid rgba(236,124,52,.25);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.callout-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
.callout-body h4 { font-size: .95rem; margin-bottom: 5px; color: var(--primary); }
.callout-body p { font-size: .88rem; color: var(--text-muted); }
.callout-body a { color: var(--primary); text-decoration: underline; }

/* ── Table ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
thead tr { background: var(--bg-section); }
th { padding: 12px 16px; text-align: left; font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); border-bottom: 1px solid var(--border); }
td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-card); }

/* ── Steps ── */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  counter-increment: step;
}
.step-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-body h4 { margin-bottom: 5px; }
.step-body p { font-size: .9rem; color: var(--text-muted); }

/* ── Page Hero (subpages) ── */
.page-hero {
  padding: 60px 20px 48px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.page-hero h1 { margin-bottom: 14px; }
.page-hero p { color: var(--text-muted); font-size: 1.05rem; }

/* ── Breadcrumb ── */
.breadcrumb {
  padding: 14px 0;
  font-size: .83rem;
  color: var(--text-dim);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.breadcrumb a { color: var(--text-muted); transition: color .15s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--text-dim); }

/* ── Content Block ── */
.content-block { max-width: 800px; }
.content-block h2 { margin: 40px 0 14px; font-size: 1.4rem; }
.content-block h3 { margin: 28px 0 10px; font-size: 1.1rem; color: var(--primary); }
.content-block p { margin-bottom: 16px; font-size: .97rem; color: var(--text-muted); line-height: 1.75; }
.content-block ul { margin: 0 0 16px 16px; }
.content-block ul li { position: relative; padding-left: 14px; margin-bottom: 8px; font-size: .95rem; color: var(--text-muted); }
.content-block ul li::before { content: ''; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }

/* ── Footer ── */
.site-footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { height: 28px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand .brand-name { font-size: 1.1rem; }
.footer-brand p { font-size: .85rem; color: var(--text-muted); line-height: 1.7; max-width: 260px; }
.footer-col h5 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); margin-bottom: 14px; }
.footer-col a {
  display: block;
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 9px;
  transition: color .15s;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: .82rem; color: var(--text-dim); }
.footer-bottom a { color: var(--text-dim); transition: color .15s; }
.footer-bottom a:hover { color: var(--primary); }

/* ── Network Bar ── */
.network-bar {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  padding: 14px 20px;
}
.network-bar-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.network-bar span { font-size: .78rem; color: var(--text-dim); }
.network-bar a {
  font-size: .82rem;
  color: var(--text-muted);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 50px;
  transition: border-color .15s, color .15s;
}
.network-bar a:hover { border-color: var(--primary); color: var(--primary); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav a { font-size: .8rem; padding: 5px 9px; }
  .hero { padding: 54px 16px 44px; }
  .stats-bar { gap: 24px; }
  .section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .header-inner { padding: 12px 16px; }
  .nav { gap: 4px; }
  .nav a { padding: 5px 7px; font-size: .78rem; }
  .cta-btn { padding: 7px 13px; font-size: .8rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
}
