/* Titan Theme (Default) - Grey + Titanium */
[data-theme="titan"] {
  --bg-primary: #0d1117 !important;
  --bg-secondary: #161b22 !important;
  --bg-tertiary: #21262d !important;
  --bg-card: #1c2128 !important;
  --text-primary: #f0f6fc !important;
  --text-secondary: #8b949e !important;
  --text-muted: #6e7681 !important;
  --accent-primary: #c0c6cc !important;
  --accent-secondary: #8b949e !important;
  --accent-positive: #3fb950 !important;
  --accent-negative: #f85149 !important;
  --accent-gold: #d1d5da !important;
  --border: #30363d !important;
  --border-light: #484f58 !important;
  --chart-line: #c0c6cc !important;
  --chart-grid: #30363d !important;
  --glow-color: rgba(192, 198, 204, 0.15) !important;
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
  --btn-primary: linear-gradient(135deg, #c0c6cc, #8b949e) !important;
  --btn-primary-hover: linear-gradient(135deg, #d1d5da, #c0c6cc) !important;
  --btn-text: #0d1117 !important;
}

/* Default fallback */
:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #21262d;
  --bg-card: #1c2128;
  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  --accent-primary: #c0c6cc;
  --accent-secondary: #8b949e;
  --accent-positive: #3fb950;
  --accent-negative: #f85149;
  --accent-gold: #d1d5da;
  --border: #30363d;
  --border-light: #484f58;
  --chart-line: #c0c6cc;
  --chart-grid: #30363d;
  --glow-color: rgba(192, 198, 204, 0.15);
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  --btn-primary: linear-gradient(135deg, #c0c6cc, #8b949e);
  --btn-primary-hover: linear-gradient(135deg, #d1d5da, #c0c6cc);
  --btn-text: #0d1117;
  --font-family-sans: "Montserrat", system-ui, sans-serif;
}

body {
  background:
    radial-gradient(circle at 20% -5%, var(--glow-color), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(192, 198, 204, 0.08), transparent 50%),
    linear-gradient(160deg, var(--bg-primary) 0%, var(--bg-secondary) 45%, var(--bg-tertiary) 100%);
  color: var(--text-primary);
  font-family: var(--font-family-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  text-decoration: none;
  border: 1px solid var(--border-light);
}

.skip-link:focus {
  top: 1rem;
}

.noscript-banner {
  padding: 0.75rem 1rem;
  background: #3b0f12;
  color: #ffd7d9;
  border-bottom: 1px solid #5a1d22;
  text-align: center;
  font-size: 0.875rem;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 79px,
      rgba(255, 255, 255, 0.015) 80px
    );
  pointer-events: none;
  z-index: -1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Text colors */
.text-primary {
  color: var(--text-primary);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted);
}

.text-positive {
  color: var(--accent-positive);
}

.text-negative {
  color: var(--accent-negative);
}

.text-gold {
  color: var(--accent-gold);
}

.text-accent {
  color: var(--accent-primary);
}

/* Background colors */
.bg-primary {
  background-color: var(--bg-primary);
}

.bg-secondary {
  background-color: var(--bg-secondary);
}

.bg-tertiary {
  background-color: var(--bg-tertiary);
}

.bg-card {
  background-color: var(--bg-card);
}

/* Border colors */
.border-themed {
  border-color: var(--border);
}

.border-light-themed {
  border-color: var(--border-light);
}

/* Card styles */
.card {
  background:
    linear-gradient(170deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--glow-color);
}

/* Glass effect */
.glass {
  background: rgba(22, 27, 34, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-light);
}

/* Button styles */
.btn-primary {
  background: var(--btn-primary);
  color: var(--btn-text);
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px var(--glow-color);
  filter: saturate(1.08);
}

.btn-secondary {
  background: rgba(22, 27, 34, 0.7);
  color: var(--text-primary);
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-light);
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(33, 38, 45, 0.8);
}

/* Stats styles */
.stats-value {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Chart styles */
.chart-line {
  stroke: var(--chart-line);
}

.chart-area {
  fill: url(#chartGradient);
}

/* Section styles */
.section {
  padding: 96px 0;
}

.section-sm {
  padding: 64px 0;
}

.container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 28px;
}

.gradient-text {
  background: linear-gradient(140deg, var(--accent-gold) 0%, var(--accent-primary) 55%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Badge styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: rgba(33, 38, 45, 0.72);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.badge-success {
  background: rgba(192, 198, 204, 0.1);
  border-color: rgba(192, 198, 204, 0.3);
  color: var(--accent-primary);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.metric-card {
  padding: 22px;
  border-radius: 14px;
  background: rgba(22, 27, 34, 0.82);
  border: 1px solid var(--border);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.metric-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
}

/* Navbar styles */
.nav-link {
  position: relative;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 0.2s ease;
  text-decoration: none;
}

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

.nav-link.active {
  color: var(--accent-primary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--accent-primary);
}

/* Footer styles */
.footer-link {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s ease;
  text-decoration: none;
}

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

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Ticker tape animation */
@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ticker-tape {
  animation: ticker 40s linear infinite;
  display: flex;
  width: max-content;
}

/* Grid system */
.grid {
  display: grid;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-10 {
  gap: 2.5rem;
}

.gap-14 {
  gap: 3.5rem;
}

.gap-20 {
  gap: 5rem;
}

/* Flex system */
.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.flex-col {
  flex-direction: column;
}

.justify-end {
  justify-content: flex-end;
}

/* Spacing */
.mt-4 {
  margin-top: 1rem;
}

.mt-5 {
  margin-top: 1.25rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-10 {
  margin-top: 2.5rem;
}

.mt-12 {
  margin-top: 3rem;
}

.mt-16 {
  margin-top: 4rem;
}

.mt-24 {
  margin-top: 6rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-7 {
  padding: 1.75rem;
}

.p-8 {
  padding: 2rem;
}

.p-10 {
  padding: 2.5rem;
}

.p-12 {
  padding: 3rem;
}

/* Typography */
.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-base {
  font-size: 1rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.text-5xl {
  font-size: 3rem;
}

.text-6xl {
  font-size: 3.75rem;
}

.text-7xl {
  font-size: 4.5rem;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.leading-relaxed {
  line-height: 1.625;
}

/* Display */
.hidden {
  display: none;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.inline-flex {
  display: inline-flex;
}

/* Responsive */
@media (min-width: 768px) {
  .md\:block {
    display: block;
  }
  
  .md\:hidden {
    display: none;
  }

  .md\:grid-cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .lg\:block {
    display: block;
  }
  
  .lg\:hidden {
    display: none;
  }
  
  .lg\:flex {
    display: flex;
  }

  .lg\:grid-cols-2 {
    grid-template-columns: 1fr 1fr;
  }

  .lg\:grid-cols-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out forwards;
}

/* Custom classes */
.stat-card {
  padding: 2rem;
  text-align: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px var(--glow-color);
}

.stat-card-value {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-card-label {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.feature-card {
  padding: 2rem;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px var(--glow-color);
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px var(--glow-color);
}

.social-proof-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--accent-primary);
  font-size: 0.875rem;
}

.cta-section {
  text-align: center;
  padding: 4rem 2rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(192, 198, 204, 0.1), rgba(139, 148, 158, 0.05));
  border: 1px solid var(--border);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 1rem;
  position: absolute;
  width: 100%;
  left: 0;
  top: 100%;
  z-index: 40;
}

.mobile-menu.active {
  display: block;
}

/* Additional utility classes from Tailwind */
.w-fit {
  width: fit-content;
}

.max-w-2xl {
  max-width: 640px;
}

.max-w-3xl {
  max-width: 768px;
}

.max-w-4xl {
  max-width: 896px;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.-space-x-3 {
  margin-left: -0.75rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.overflow-hidden {
  overflow: hidden;
}

.relative {
  position: relative;
}

.z-10 {
  z-index: 10;
}

.z-40 {
  z-index: 40;
}

.z-50 {
  z-index: 50;
}

.fixed {
  position: fixed;
}

.top-0 {
  top: 0;
}

.left-0 {
  left: 0;
}

.right-0 {
  right: 0;
}

.bottom-0 {
  bottom: 0;
}

.inset-0 {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.backdrop-blur-xl {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.overflow-hidden {
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section {
    padding: 48px 0;
  }
  
  .text-5xl {
    font-size: 2rem;
  }
  
  .text-4xl {
    font-size: 1.75rem;
  }
  
  .text-3xl {
    font-size: 1.5rem;
  }
  
  .container {
    padding: 0 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
