/* Premium Themeable Style System for browsx-ext Catalog */
:root {
  /* Cosmic Obsidian (Default Dark) */
  --bg-deep: #050409;
  --bg-surface: #0a0911;
  --bg-surface-hover: #100f1c;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-dim: #64748b;
  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.25);
  --accent-blue: #3b82f6;
  --accent-blue-glow: rgba(59, 130, 246, 0.2);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-active: rgba(139, 92, 246, 0.35);
  
  --nav-bg: rgba(5, 4, 9, 0.7);
  --footer-bg: #030206;
  --btn-secondary-bg: rgba(255, 255, 255, 0.02);
  --btn-secondary-hover-bg: rgba(255, 255, 255, 0.06);
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
}

/* Cyberpunk Neon Theme */
body.theme-cyberpunk {
  --bg-deep: #030206;
  --bg-surface: #0e0514;
  --bg-surface-hover: #1b0a26;
  --text-primary: #fcfcfd;
  --text-secondary: #e2b4f0;
  --text-dim: #995baf;
  --accent-purple: #ff007f;
  --accent-purple-glow: rgba(255, 0, 127, 0.25);
  --accent-blue: #00f5d4;
  --accent-blue-glow: rgba(0, 245, 212, 0.2);
  --border-subtle: rgba(255, 0, 127, 0.12);
  --border-active: rgba(255, 0, 127, 0.45);
  
  --nav-bg: rgba(3, 2, 6, 0.7);
  --footer-bg: #030206;
  --btn-secondary-bg: rgba(255, 255, 255, 0.02);
  --btn-secondary-hover-bg: rgba(255, 255, 255, 0.06);
}

/* Aurora Glass Theme */
body.theme-aurora {
  --bg-deep: #040a08;
  --bg-surface: #091712;
  --bg-surface-hover: #10261f;
  --text-primary: #f0fdf4;
  --text-secondary: #a7f3d0;
  --text-dim: #34d399;
  --accent-purple: #10b981;
  --accent-purple-glow: rgba(16, 185, 129, 0.25);
  --accent-blue: #06b6d4;
  --accent-blue-glow: rgba(6, 182, 212, 0.2);
  --border-subtle: rgba(16, 185, 129, 0.12);
  --border-active: rgba(16, 185, 129, 0.45);
  
  --nav-bg: rgba(4, 10, 8, 0.7);
  --footer-bg: #020504;
  --btn-secondary-bg: rgba(255, 255, 255, 0.02);
  --btn-secondary-hover-bg: rgba(255, 255, 255, 0.06);
}

/* Light Tech Theme */
body.theme-light {
  --bg-deep: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-dim: #94a3b8;
  --accent-purple: #6366f1;
  --accent-purple-glow: rgba(99, 102, 241, 0.15);
  --accent-blue: #0ea5e9;
  --accent-blue-glow: rgba(14, 165, 233, 0.15);
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-active: rgba(99, 102, 241, 0.35);
  
  --nav-bg: rgba(248, 250, 252, 0.8);
  --footer-bg: #f1f5f9;
  --btn-secondary-bg: rgba(0, 0, 0, 0.03);
  --btn-secondary-hover-bg: rgba(0, 0, 0, 0.07);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Background glowing spheres */
.glow-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.glow-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.4;
  transition: background 0.4s ease;
}

.glow-1 {
  top: -10%;
  left: 30%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--accent-purple-glow) 0%, rgba(5, 4, 9, 0) 70%);
}

.glow-2 {
  top: 40%;
  right: 10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, var(--accent-blue-glow) 0%, rgba(5, 4, 9, 0) 70%);
}

/* Navigation */
.nav {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: #fff;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 0 15px var(--accent-purple-glow);
  transition: all 0.4s ease;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-purple);
  border: 1px solid var(--border-active);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  background: rgba(139, 92, 246, 0.05);
  transition: all 0.4s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* Theme Switcher Toggle */
.theme-selector {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px;
  border-radius: 12px;
  gap: 2px;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}
.theme-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.theme-btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.02);
}
.theme-btn.active {
  background: var(--accent-purple);
  color: #fff;
  box-shadow: 0 4px 10px var(--accent-purple-glow);
}

.nav-links .btn-nav-primary {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  box-shadow: 0 4px 12px var(--accent-purple-glow);
  transition: all 0.25s ease;
}

.nav-links .btn-nav-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-purple-glow);
}

/* Hero */
.hero {
  padding: 9rem 2rem 6rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tag {
  color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.07);
  border: 1px solid var(--border-active);
  padding: 0.35rem 0.9rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 2rem;
  transition: all 0.4s ease;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.75rem;
  letter-spacing: -0.03em;
  max-width: 800px;
}

.hero h1 .text-glow {
  background: linear-gradient(120deg, var(--accent-purple) 20%, var(--accent-blue) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  transition: all 0.4s ease;
}

.hero-lead {
  color: var(--text-secondary);
  font-size: 1.35rem;
  max-width: 750px;
  margin-bottom: 3rem;
  font-weight: 400;
  transition: color 0.4s ease;
}

.hero-cta {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 5rem;
}

.btn {
  padding: 0.9rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-deep);
  border: 1px solid var(--text-primary);
  transition: all 0.4s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  background: var(--btn-secondary-bg);
  transition: all 0.4s ease;
}

.btn-secondary:hover {
  background: var(--btn-secondary-hover-bg);
  border-color: var(--text-secondary);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 3rem;
  background: var(--btn-secondary-bg);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem 3rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  background: linear-gradient(to bottom, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.4s ease;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
  transition: color 0.4s ease;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-subtle);
  transition: background-color 0.4s ease;
}

/* Sections General */
.sec-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 4.5rem;
}

.sec-subtitle {
  color: var(--accent-purple);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 0.75rem;
  transition: color 0.4s ease;
}

.sec-header h2 {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.sec-header p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  transition: color 0.4s ease;
}

/* Products Section */
.products-sec {
  max-width: 1140px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

@media(max-width: 800px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 3rem;
  border-radius: 24px;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 380px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease, border-color 0.4s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-active);
  background: var(--bg-surface-hover);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 25px var(--accent-purple-glow);
}

.card-glow {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--accent-purple-glow) 0%, rgba(8, 7, 13, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  transition: background 0.4s ease;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: 30px;
}

.tag-live {
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.tag-dev {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.card-icon {
  color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.08);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.15);
  transition: all 0.4s ease;
}

.product-card:hover .card-icon {
  background: var(--accent-purple);
  color: #fff;
  box-shadow: 0 0 15px var(--accent-purple-glow);
}

.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.card-body p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  transition: color 0.4s ease;
}

.btn-link {
  font-weight: 600;
  color: var(--accent-purple);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.4s ease;
}

.product-card:hover .btn-link {
  color: #c084fc;
}

.btn-link-disabled {
  font-weight: 600;
  color: var(--text-dim);
  font-size: 0.95rem;
  transition: color 0.4s ease;
}

.product-card.disabled {
  cursor: default;
  opacity: 0.7;
}

.product-card.disabled:hover {
  transform: none;
  border-color: var(--border-subtle);
  background: var(--bg-surface);
  box-shadow: none;
}

/* Philosophy Section */
.philosophy-sec {
  max-width: 1140px;
  margin: 0 auto;
  padding: 6rem 2rem;
  border-top: 1px solid var(--border-subtle);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media(max-width: 800px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
}

.philosophy-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem;
  border-radius: 20px;
  transition: border-color 0.3s ease, background-color 0.4s ease;
}

.philosophy-card:hover {
  border-color: var(--border-active);
}

.p-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-purple);
  margin-bottom: 1.25rem;
  transition: color 0.4s ease;
}

.philosophy-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.philosophy-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  transition: color 0.4s ease;
}

/* Footer */
footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 2rem 3rem;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto 3rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-left {
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-left p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: color 0.4s ease;
}

.footer-right {
  display: flex;
  gap: 5rem;
}

@media(max-width: 600px) {
  .footer-inner {
    flex-direction: column;
  }
  .footer-right {
    gap: 3rem;
  }
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: color 0.4s ease;
}

.footer-links-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-links-col a:hover {
  color: var(--accent-purple);
}

.footer-base {
  max-width: 1140px;
  margin: 0 auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  transition: border-color 0.4s ease, color 0.4s ease;
}
