/* GTA 6 PC Port — Unified Theme Palette */
:root {
  --bg-dark: #070a13;
  --bg-surface: #0f1626;
  --bg-surface-alt: #131b2e;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #94a3b8;
  --primary: #f43f5e;
  --primary-hover: #e11d48;
  --accent: #38bdf8;
  --accent-alt: #fbbf24;
  --border: #1e293b;
  --border-light: #334155;
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Space Grotesk', var(--font-main);
  --font-mono: 'JetBrains Mono', monospace;
}

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

body.vice-theme {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Global Top Telemetry Ticker */
.tele-ticker {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 8px 0;
  color: var(--text-muted);
}
.tele-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.tele-tag {
  color: var(--accent);
  font-weight: 700;
  margin-right: 6px;
}
.status-live {
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

/* Site Header */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand-titles {
  display: flex;
  flex-direction: column;
}
.brand-main {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
  color: var(--text-main);
}
.brand-main em {
  font-style: normal;
  color: var(--primary);
}
.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.main-nav a:hover {
  color: var(--accent);
}
.action-btn {
  background: #be123c;
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 700 !important;
  text-decoration: none;
}
.action-btn:hover {
  background: #9f1239;
}

/* Hero Section */
.hero-section {
  padding: 60px 0 40px;
  text-align: center;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero-title .gradient-text {
  color: var(--primary);
}
.hero-desc {
  max-width: 780px;
  margin: 0 auto 36px;
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* Fast Stat Cards */
.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}
.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: left;
}
.stat-label {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.stat-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}
.stat-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Tool Section */
.tool-section {
  padding: 30px 0 60px;
}
.tool-wrapper {
  background: var(--bg-surface);
  border: 2px solid var(--border-light);
  border-radius: 16px;
  padding: 36px;
}
.tool-header {
  text-align: center;
  margin-bottom: 32px;
}
.tool-header h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-main);
}
.tool-header p {
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

.bench-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-field select {
  background: var(--bg-dark);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 12px 14px;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
}
.form-field select:focus {
  border-color: var(--accent);
}
.calc-action-row {
  text-align: center;
  margin-bottom: 32px;
}
.btn-calc-large {
  background: var(--accent);
  color: var(--bg-dark);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  padding: 14px 42px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

/* Benchmark Result Card */
.result-card {
  background: var(--bg-surface-alt);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid var(--border-light);
}
.verdict-ultra { border-color: var(--accent); }
.verdict-high { border-color: var(--accent); }
.verdict-medium { border-color: var(--accent-alt); }
.verdict-fail { border-color: var(--primary); }

.result-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.result-score-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}
.verdict-medium .result-score-ring { border-color: var(--accent-alt); }
.verdict-fail .result-score-ring { border-color: var(--primary); }

.score-val {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text-main);
}
.score-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.result-status-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 6px;
  background: var(--bg-surface);
  color: var(--accent);
}
.verdict-medium .result-status-badge { color: var(--accent-alt); }
.verdict-fail .result-status-badge { color: var(--primary); }

.result-fps {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text-main);
}
.result-res-note {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.result-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-dark);
  border-radius: 8px;
  font-size: 0.95rem;
}
.spec-lbl {
  color: var(--text-muted);
}
.bottleneck-warn {
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--bg-surface);
  border-left: 4px solid var(--primary);
  color: var(--text-main);
  font-size: 0.92rem;
}
.bench-notes {
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--bg-surface);
  border-left: 4px solid var(--accent);
  color: var(--text-main);
  font-size: 0.9rem;
}
.storage-notes {
  border-left-color: var(--accent-alt);
}

/* Home Guide Section */
.home-guide-section {
  padding: 40px 0 60px;
}
.guide-text-block {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
}
.guide-text-block h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 24px 0 10px;
  color: var(--accent);
}
.guide-text-block h3:first-child {
  margin-top: 0;
}
.guide-text-block p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

/* Timeline & Comparison Section */
.timeline-section {
  padding: 50px 0;
}
.section-head {
  text-align: center;
  margin-bottom: 40px;
}
.section-head h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-main);
}
.section-head p {
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

.timeline-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.timeline-tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-family: var(--font-heading);
  cursor: pointer;
}
.timeline-tab-btn.is-active,
.timeline-tab-btn:hover {
  background: var(--bg-surface-alt);
  color: var(--text-main);
  border-color: var(--primary);
}

.timeline-detail-panel {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 32px;
}
.timeline-detail-panel.is-active {
  display: block;
}
.timeline-detail-panel h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.time-step {
  background: var(--bg-dark);
  padding: 20px;
  border-radius: 8px;
  border-top: 3px solid var(--accent);
}
.time-step .date-val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}
.time-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* FAQ Section */
.faq-section {
  padding: 50px 0 80px;
}
.faq-grid {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.faq-toggle {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 24px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-toggle:hover {
  background: var(--bg-surface-alt);
}
.faq-answer {
  display: none;
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.96rem;
  border-top: 1px solid var(--border);
}

/* Prose Documentation Cards */
.page-wrap {
  padding: 40px 20px 80px;
}
.doc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 48px;
  max-width: 900px;
  margin: 0 auto;
}
.doc-breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.doc-breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
}
.doc-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  color: var(--text-main);
}
.doc-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.doc-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: flex;
  gap: 10px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.prose-content h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  margin: 36px 0 16px;
  color: var(--text-main);
}
.prose-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--accent);
}
.prose-content p {
  margin-bottom: 18px;
  color: var(--text-muted);
}
.prose-content ul, .prose-content ol {
  margin: 0 0 22px 24px;
  color: var(--text-muted);
}
.prose-content li {
  margin-bottom: 8px;
}
.prose-content a {
  color: var(--accent);
  text-decoration: underline;
}
.prose-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--bg-dark);
  border-radius: 8px;
  overflow: hidden;
}
.prose-content th, .prose-content td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.prose-content th {
  background: var(--bg-surface-alt);
  font-family: var(--font-heading);
  color: var(--text-main);
}

/* Site Footer */
.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.foot-flex {
  display: grid;
  grid-template-columns: 2fr 1.5fr;
  gap: 50px;
  margin-bottom: 40px;
}
.foot-col-title {
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.badge-unofficial {
  display: inline-block;
  background: var(--bg-surface);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 10px;
  vertical-align: middle;
}
.foot-desc {
  margin: 14px 0;
  color: var(--text-muted);
}
.foot-legal-notice {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.foot-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.link-group a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 0.88rem;
  transition: color 0.15s ease;
}
.link-group a:hover {
  color: var(--accent);
}
.foot-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .hero-title { font-size: 2.4rem; }
  .foot-flex { grid-template-columns: 1fr; gap: 30px; }
  .doc-card { padding: 30px 20px; }
  .tele-hide-sm { display: none; }
}
@media (max-width: 680px) {
  .hero-title { font-size: 2rem; }
  .tool-wrapper { padding: 20px 16px; }
  .main-nav a:not(.action-btn) { display: none; }
  .result-header { flex-direction: column; text-align: center; }
  .spec-row { flex-direction: column; gap: 4px; }
}
