/* ==========================================================================
   ADBnox USB — Cloudflare Pages Cyberpunk CSS Theme (Dark, AMOLED, Light)
   ========================================================================== */

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Brand Cyber Colors */
  --brand-cyan: #00E5FF;
  --brand-cyan-glow: rgba(0, 229, 255, 0.25);
  --brand-blue: #2F8BFF;
  --neon-flash: #00E676;
  --neon-format: #B388FF;
  --neon-program: #FF9E00;
  --neon-serial: #FF2A85;
  --neon-tools: #FFD166;
  --neon-teal: #00F5D4;
  --danger-red: #FF5252;

  /* Dark Theme Palette (Default) */
  --bg-color: #070B18;
  --surface-color: #0D152D;
  --surface-elevated: #142145;
  --border-color: #1E2F60;
  --text-primary: #FFFFFF;
  --text-secondary: #B0BED9;
  --text-muted: #64748B;
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="amoled"] {
  --bg-color: #000000;
  --surface-color: #080808;
  --surface-elevated: #141414;
  --border-color: #242424;
  --text-primary: #FFFFFF;
  --text-secondary: #A0AEC0;
  --text-muted: #52525B;
  --card-shadow: 0 4px 24px rgba(0, 229, 255, 0.08);
}

[data-theme="light"] {
  --bg-color: #F1F5F9;
  --surface-color: #FFFFFF;
  --surface-elevated: #E2E8F0;
  --border-color: #CBD5E1;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --brand-cyan: #0284C7;
  --brand-cyan-glow: rgba(2, 132, 199, 0.22);
  --neon-teal: #0F766E;
  --card-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

.cyber-glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.glow-top {
  top: -100px;
  right: -50px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.18), transparent 70%);
}
.glow-bottom {
  bottom: -150px;
  left: -50px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(179, 136, 255, 0.15), transparent 70%);
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(13, 21, 45, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  transition: background 0.3s ease;
}
[data-theme="amoled"] .site-header {
  background: rgba(8, 8, 8, 0.9);
}
[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--brand-cyan);
  box-shadow: 0 0 12px var(--brand-cyan-glow);
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-usb {
  background: var(--brand-cyan);
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--brand-cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Theme Toggle */
.btn-icon {
  background: var(--surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-icon:hover {
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
}

/* Language Switch */
.lang-switch {
  display: flex;
  align-items: center;
  background: var(--surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2px 6px;
}

.lang-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}
.lang-btn.active {
  color: var(--brand-cyan);
  background: color-mix(in srgb, var(--brand-cyan) 16%, var(--surface-color));
  border-color: color-mix(in srgb, var(--brand-cyan) 65%, var(--border-color));
}
[data-theme="light"] .badge-usb,
[data-theme="light"] .btn-primary {
  color: #FFFFFF;
}
.lang-sep {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}
.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}
.btn-primary {
  background: var(--brand-cyan);
  color: #000;
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(0, 229, 255, 0.5);
}
.btn-secondary {
  background: var(--surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  border-color: var(--brand-cyan);
  transform: translateY(-2px);
}
.btn-subtext {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-left: 4px;
}
.btn-svg {
  width: 20px;
  height: 20px;
}

/* Hero Section */
.hero-section {
  padding: 90px 0 60px;
  text-align: center;
}
.hero-inner {
  max-width: 860px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.4);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-cyan);
  margin-bottom: 24px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 10px var(--brand-cyan);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-blue) 50%, var(--neon-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
}

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

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Sections */
.section {
  padding: 80px 0;
}
.section-alt {
  background: rgba(13, 21, 45, 0.4);
}
[data-theme="amoled"] .section-alt {
  background: #040404;
}
[data-theme="light"] .section-alt {
  background: #E2E8F0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}
.section-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--brand-cyan);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Cyber Cards & Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 24px;
}

.cyber-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.cyber-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-cyan);
}
.card-cyan:hover { border-color: var(--brand-cyan); }
.card-format:hover { border-color: var(--neon-format); }
.card-printer:hover { border-color: var(--brand-cyan); }
.card-orange:hover { border-color: var(--neon-program); }
.card-pink:hover { border-color: var(--neon-serial); }
.card-yellow:hover { border-color: var(--neon-tools); }

.card-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
}
.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.55;
}
.card-list {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.card-list span {
  color: var(--brand-cyan);
  font-weight: bold;
}

/* Windows Section */
.highlight-box {
  background: linear-gradient(135deg, rgba(13, 21, 45, 0.95), rgba(20, 33, 69, 0.95));
  border: 1.5px solid rgba(0, 229, 255, 0.4);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 12px 40px rgba(0, 229, 255, 0.12);
}
[data-theme="amoled"] .highlight-box {
  background: #080808;
  border-color: #262626;
}
[data-theme="light"] .highlight-box {
  background: #FFFFFF;
  border-color: var(--brand-blue);
}

.win-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.win-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 14px;
}
.win-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 10px;
}
.win-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.win-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Guide Accordion */
.guide-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 880px;
  margin: 0 auto;
}
.guide-item {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.guide-item[open] {
  border-color: var(--neon-teal);
}
.guide-summary {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  gap: 16px;
}
.guide-summary::-webkit-details-marker {
  display: none;
}
.guide-num {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--neon-teal);
  font-size: 1.1rem;
}
.guide-item-title {
  font-size: 1.05rem;
  font-weight: 700;
  flex: 1;
}
.guide-arrow {
  color: var(--neon-teal);
  font-size: 0.8rem;
  transition: transform 0.2s;
}
.guide-item[open] .guide-arrow {
  transform: rotate(180deg);
}
.guide-content {
  padding: 0 24px 24px 60px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.guide-steps {
  margin: 14px 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tip-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.3);
  padding: 12px 16px;
  border-radius: 10px;
  color: #D1FAE5;
  font-size: 0.85rem;
  margin-top: 14px;
}
[data-theme="light"] .tip-box {
  color: #065F46;
}

/* Specs Table */
.specs-table-wrapper {
  max-width: 880px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-color);
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.specs-table tr:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}
.specs-table th {
  text-align: left;
  padding: 16px 20px;
  font-weight: 700;
  color: var(--brand-cyan);
  width: 32%;
  background: var(--surface-elevated);
}
.specs-table td {
  padding: 16px 20px;
  color: var(--text-secondary);
}
.badge-green {
  background: var(--neon-flash);
  color: #000;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
}

/* Documentation & Portal Section */
.download-card, .portal-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface-color);
  border: 2px solid var(--brand-cyan);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 229, 255, 0.15);
}
.download-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
  text-align: left;
}
.download-logo {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  border: 2px solid var(--brand-cyan);
}
.download-title {
  font-size: 1.8rem;
  font-weight: 800;
}
.download-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 4px;
}
.portal-description {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 24px;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.portal-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.portal-stat {
  background: var(--surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px 12px;
  text-align: center;
}
.portal-stat-num {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-cyan);
  margin-bottom: 6px;
  font-family: var(--font-mono);
}
.portal-stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
  line-height: 1.35;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 60px 0 40px;
  background: var(--bg-color);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 40px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.footer-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.footer-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--brand-cyan);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--brand-cyan);
}
.footer-legal {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-title { font-size: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .download-header { flex-direction: column; text-align: center; }
  .specs-table th { width: 40%; }
}
@media (max-width: 520px) {
  .header-inner { height: auto; min-height: 72px; flex-wrap: wrap; gap: 12px; padding: 12px 0; }
  .header-actions { gap: 8px; }
  .download-card, .portal-card { padding: 24px 16px; }
  .portal-features-grid { grid-template-columns: 1fr; }
  .highlight-box { padding: 24px 16px; }
  .highlight-content { min-width: 0; }
  .highlight-content .section-title, .download-title { overflow-wrap: anywhere; }
  .win-features-grid { grid-template-columns: minmax(0, 1fr); }
}
