:root {
  --bg-primary: #08090c;
  --bg-secondary: #0d1017;
  --bg-card: rgba(16, 20, 30, 0.7);
  --bg-card-hover: rgba(22, 28, 42, 0.85);
  --border-color: rgba(230, 161, 0, 0.2);
  --border-glow: rgba(230, 161, 0, 0.5);
  --gold: #f5a623;
  --gold-light: #ffd166;
  --gold-glow: rgba(245, 166, 35, 0.35);
  --cyan: #00e5ff;
  --cyan-glow: rgba(0, 229, 255, 0.3);
  --red: #ff3344;
  --red-glow: rgba(255, 51, 68, 0.3);
  --text-primary: #f0f3f8;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --font-display: 'Orbitron', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(245, 166, 35, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(0, 229, 255, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 15% 70%, rgba(255, 51, 68, 0.04) 0%, transparent 40%);
  background-attachment: fixed;
}

/* ─── Cyber Grid Background ─── */
.cyber-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ─── Navigation ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  background: rgba(8, 9, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 100;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-skull {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--gold);
  box-shadow: 0 0 15px var(--gold-glow);
  object-fit: cover;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #fff 40%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--gold);
}

.btn-nav {
  padding: 8px 18px;
  background: linear-gradient(135deg, #f5a623 0%, #d48806 100%);
  color: #000;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.5px;
  box-shadow: 0 0 16px var(--gold-glow);
  transition: var(--transition);
}

.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px var(--gold);
}

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

.badge-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold);
  animation: pulse 2s infinite;
}

.badge-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-title-highlight {
  background: linear-gradient(135deg, #ffd166 0%, #f5a623 50%, #ff3344 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero-subtitle {
  max-width: 760px;
  margin: 0 auto 36px;
  font-size: 1.15rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #f5a623 0%, #d48806 100%);
  color: #08090c;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 8px 30px var(--gold-glow);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px var(--gold);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--cyan-glow);
}

/* ─── Metric Ticker ─── */
.ticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.ticker-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 24px;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.ticker-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.ticker-val {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 8px;
}

.ticker-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ─── Terminal / Showcase Frame ─── */
.showcase-wrapper {
  margin: 60px 0;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: rgba(13, 16, 23, 0.95);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(245, 166, 35, 0.1);
  overflow: hidden;
}

.showcase-header {
  height: 48px;
  background: rgba(8, 9, 12, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.window-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.showcase-tabs {
  display: flex;
  gap: 8px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-light);
}

.showcase-content {
  position: relative;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.showcase-img {
  width: 100%;
  height: auto;
  display: none;
  max-height: 560px;
  object-fit: contain;
}

.showcase-img.active {
  display: block;
}

/* ─── Section Common ─── */
.section {
  padding: 90px 0;
  position: relative;
}

.section-tag {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-desc {
  max-width: 650px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* ─── Features Grid ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.feature-code {
  display: block;
  margin-top: 16px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan);
}

/* ─── Benchmark Section ─── */
.benchmark-container {
  border-radius: 16px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  margin-bottom: 40px;
}

.benchmark-img {
  width: 100%;
  display: block;
}

.benchmark-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-card);
}

.benchmark-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.benchmark-table th, .benchmark-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.benchmark-table th {
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-display);
  color: var(--gold-light);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.benchmark-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.highlight-win {
  color: #27c93f;
  font-weight: 700;
}

/* ─── Downloads Section ─── */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 36px;
  position: relative;
  transition: var(--transition);
}

.download-card.featured {
  border-color: var(--gold);
  box-shadow: 0 0 35px var(--gold-glow);
}

.card-pill {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-pill.gold {
  background: var(--gold);
  color: #000;
}

.card-pill.blue {
  background: rgba(0, 229, 255, 0.15);
  color: var(--cyan);
  border: 1px solid var(--cyan);
}

.download-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.download-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.spec-list {
  list-style: none;
  margin-bottom: 30px;
}

.spec-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.spec-list li svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* ─── Quick Start Code Tabs ─── */
.code-box {
  background: #050608;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #e2e8f0;
  position: relative;
  overflow-x: auto;
}

.code-box pre {
  margin: 0;
}

.btn-copy {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  transition: var(--transition);
}

.btn-copy:hover {
  background: var(--gold);
  color: #000;
}

/* ─── Footer ─── */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #050608;
  text-align: center;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--gold);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-cta-group { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .ticker-grid { grid-template-columns: 1fr 1fr; }
}
