/* =============================================
   TVS Hub — Landing Page Styles
   Dark cinematic theme
   ============================================= */

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

:root {
  --bg:        #0a0c10;
  --bg2:       #111318;
  --bg3:       #181c24;
  --border:    #1e2330;
  --accent:    #e05c2a;
  --accent2:   #f07a40;
  --text:      #e8eaf0;
  --text-muted:#8a90a0;
  --radius:    12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,12,16,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}
.logo-icon {
  color: var(--accent);
  font-size: 1.1rem;
}
.logo-text strong { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links li a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-links li a:hover { color: var(--text); }

.btn-nav {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.85rem !important;
  font-weight: 600;
  transition: background 0.2s !important;
}
.btn-nav:hover { background: var(--accent2) !important; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 60px;
  max-width: 1120px;
  margin: 0 auto;
  gap: 60px;
  position: relative;
}
.hero-bg {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  background: radial-gradient(ellipse 800px 600px at 70% 40%, rgba(224,92,42,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-content {
  flex: 1;
  z-index: 1;
}
.badge {
  display: inline-block;
  background: rgba(224,92,42,0.15);
  color: var(--accent2);
  border: 1px solid rgba(224,92,42,0.3);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.accent { color: var(--accent); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 24px rgba(224,92,42,0.35);
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(224,92,42,0.05); }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 1.4rem; font-weight: 800; color: var(--text); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* ---- MOCK WINDOW ---- */
.hero-visual {
  flex: 1;
  z-index: 1;
  display: flex;
  justify-content: center;
}
.mock-window {
  width: 100%;
  max-width: 460px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
}
.mock-titlebar {
  background: var(--bg3);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }
.mock-title {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: -36px;
}
.mock-body {
  display: flex;
  height: 280px;
}
.mock-sidebar {
  width: 110px;
  background: var(--bg3);
  border-right: 1px solid var(--border);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mock-tab {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  cursor: default;
}
.mock-tab.active {
  background: rgba(224,92,42,0.15);
  color: var(--accent2);
}
.mock-main {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mock-search {
  height: 28px;
  background: var(--bg);
  border-radius: 6px;
  border: 1px solid var(--border);
}
.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
}
.mock-card {
  background: var(--bg);
  border-radius: 6px;
  border: 1px solid var(--border);
  animation: pulse 2.5s ease-in-out infinite;
}
.mock-card:nth-child(2) { animation-delay: 0.3s; }
.mock-card:nth-child(3) { animation-delay: 0.6s; }
.mock-card:nth-child(4) { animation-delay: 0.9s; }
.mock-card:nth-child(5) { animation-delay: 1.2s; }
.mock-card:nth-child(6) { animation-delay: 1.5s; }

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.9; }
}

/* ---- SECTION SHARED ---- */
section { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-badge {
  display: inline-block;
  background: rgba(224,92,42,0.12);
  color: var(--accent2);
  border: 1px solid rgba(224,92,42,0.25);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.section-header p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---- FEATURES ---- */
.features { background: var(--bg); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  opacity: 0;
  transform: translateY(20px);
}
.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
  border-color: rgba(224,92,42,0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---- TABS SECTION ---- */
.tabs-section { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.tabs-layout {
  display: flex;
  align-items: center;
  gap: 80px;
}
.tabs-text { flex: 1; }
.tabs-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.2;
}
.tabs-text p { color: var(--text-muted); margin-bottom: 32px; }

.tabs-list { display: flex; flex-direction: column; gap: 20px; }
.tabs-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.tab-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.tabs-list li div { display: flex; flex-direction: column; gap: 4px; }
.tabs-list li strong { font-size: 0.95rem; }
.tabs-list li span { font-size: 0.85rem; color: var(--text-muted); }

.tabs-visual { flex: 1; }
.tab-cards { display: flex; flex-direction: column; gap: 12px; }
.tab-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s ease var(--delay), transform 0.4s ease var(--delay);
}
.tab-card.visible {
  opacity: 1;
  transform: translateX(0);
}
.tc-icon { font-size: 1.3rem; }
.tc-label { font-size: 0.9rem; font-weight: 600; width: 60px; flex-shrink: 0; }
.tc-bar {
  height: 6px;
  background: rgba(224,92,42,0.35);
  border-radius: 3px;
  flex: 1;
}
.tc-bar.short {
  background: var(--border);
  max-width: 80px;
  flex: none;
}

/* ---- PLATFORMS ---- */
.platforms { background: var(--bg); }
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
}
.platform-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.platform-card.visible { opacity: 1; transform: translateY(0); }
.platform-card.featured {
  border-color: rgba(224,92,42,0.4);
  background: linear-gradient(135deg, var(--bg2) 0%, rgba(224,92,42,0.05) 100%);
}
.platform-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.platform-badge.soon {
  background: #3a3f52;
  color: var(--text-muted);
}
.platform-card.coming-soon {
  opacity: 0.65;
  border-style: dashed;
}
.platform-card.coming-soon:hover {
  opacity: 0.85;
  transform: none;
}
.platform-icon { height: 72px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.os-icon { width: 60px; height: 60px; object-fit: contain; filter: brightness(0) invert(0.7); }
.platform-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; text-align: center; }
.platform-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; margin-bottom: 20px; text-align: center; }
.platform-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.platform-tip {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
}

.btn-download {
  display: block;
  margin-top: auto;
  text-align: center;
  background: var(--accent);
  color: #fff;
  padding: 11px 0;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 2px 12px rgba(224,92,42,0.25);
}
.btn-download:hover { background: var(--accent2); transform: translateY(-1px); }

.platform-tags li {
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---- SCREENSHOTS ---- */
.screenshots { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.shots-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.shot-tab {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.shot-tab:hover  { color: var(--text); border-color: rgba(224,92,42,0.4); }
.shot-tab.active { color: var(--accent2); border-color: var(--accent); background: rgba(224,92,42,0.08); }

.shots-viewer { position: relative; }

.shot-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  background: var(--bg);
}

.shot-slides { position: relative; width: 100%; }

.shot-slide {
  display: none;
  flex-direction: column;
}
.shot-slide.active { display: flex; }

.shot-slide img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.shot-caption {
  padding: 16px 24px;
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--bg2);
  border-top: 1px solid var(--border);
  text-align: center;
  line-height: 1.5;
}

.shot-prev, .shot-next {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  background: rgba(10,12,16,0.75);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  z-index: 2;
}
.shot-prev { left: 12px; }
.shot-next { right: 12px; }
.shot-prev:hover, .shot-next:hover { background: rgba(224,92,42,0.25); border-color: var(--accent); }

/* ---- GET STARTED ---- */
.get-started { background: var(--bg2); border-top: 1px solid var(--border); }
.gs-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.gs-card h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.gs-card > p { color: var(--text-muted); margin-bottom: 28px; }

.gs-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  justify-content: center;
}
.gs-tab {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 24px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.gs-tab:hover  { color: var(--text); border-color: rgba(224,92,42,0.4); }
.gs-tab.active { color: var(--accent2); border-color: var(--accent); background: rgba(224,92,42,0.08); }

.gs-panel { display: none; }
.gs-panel.active { display: block; }

.gs-platform-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.gs-platform-note strong { color: var(--text); }

.gs-dl-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 13px 32px;
  font-size: 0.95rem;
}

.gs-backup {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  flex-wrap: wrap;
}
.gs-backup-icon { font-size: 1.8rem; flex-shrink: 0; }
.gs-backup div { flex: 1; min-width: 200px; }
.gs-backup strong { display: block; font-size: 0.95rem; margin-bottom: 4px; }
.gs-backup p { color: var(--text-muted); font-size: 0.84rem; margin: 0; }
.gs-backup code {
  background: var(--bg3);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--accent2);
}
.gs-backup-btn {
  padding: 10px 20px;
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.code-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  overflow: hidden;
  margin-bottom: 0;
}
.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.code-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }
.copy-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.copy-btn:hover { color: var(--text); border-color: var(--accent); }

pre {
  padding: 24px 20px;
  overflow-x: auto;
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 0.82rem;
  line-height: 1.75;
}
code { color: var(--text); }
.c-comment { color: #5a6478; }
.c-str     { color: #a8c373; }

/* ---- FOOTER ---- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.footer-brand .logo { margin-bottom: 10px; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); }
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* ---- RESPONSIVE ---- */
@media (max-width: 800px) {
  .hero { flex-direction: column; padding-top: 90px; gap: 40px; }
  .hero-visual { width: 100%; }
  .mock-window { max-width: 100%; }
  .tabs-layout { flex-direction: column; gap: 40px; }
  .hero-stats { gap: 16px; }
  .gs-card { padding: 32px 20px; }
  .nav-links { gap: 16px; }
}
@media (max-width: 560px) {
  .nav-links li:not(:last-child) { display: none; }
  .hero h1 { font-size: 2rem; }
  .features-grid { grid-template-columns: 1fr; }
}
