@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ─── CODXBOT CORE DESIGN SYSTEM & TOKENS ────────────────────────────────────── */
:root {
  /* Brand Colors from Logo */
  --brand-cyan: #1ab8d1;
  --brand-cyan-hover: #1496ab;
  --brand-cyan-dark: #0f7586;
  --brand-cyan-light: #85ddf0;
  --brand-cyan-subtle: rgba(26, 184, 209, 0.12);
  --brand-cyan-glow: rgba(26, 184, 209, 0.30);

  --brand-green: #66b96b;
  --brand-green-hover: #4ea053;
  --brand-green-dark: #3b803f;
  --brand-green-light: #bbf7d0;
  --brand-green-subtle: rgba(102, 185, 107, 0.12);
  --brand-green-glow: rgba(102, 185, 107, 0.25);

  --brand-blue: #509fd7;
  --brand-blue-hover: #3a85bd;
  --brand-blue-subtle: rgba(80, 159, 215, 0.12);

  /* Background & Surface Colors */
  --bg-main: #050b14;
  --bg-secondary: #091220;
  --bg-surface: #0d192c;
  --bg-surface-elevated: #112038;
  
  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  /* Card & Glassmorphism Tokens */
  --card-bg: rgba(9, 18, 32, 0.78);
  --card-border: rgba(26, 184, 209, 0.15);
  --card-border-hover: rgba(26, 184, 209, 0.45);
  --card-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.45);
  --nav-bg: rgba(5, 11, 20, 0.90);
  --grid-line: rgba(26, 184, 209, 0.035);
}

/* ─── BASE RESETS ───────────────────────────────────────────────────────────── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* ─── BACKGROUND GRIDS & HERO GLOWS ─────────────────────────────────────────── */
.bg-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
}

.hero-glow {
  background: radial-gradient(circle at 50% 10%, var(--brand-cyan-glow) 0%, rgba(102, 185, 107, 0.12) 35%, rgba(80, 159, 215, 0.06) 60%, transparent 75%);
}

/* ─── GLASSMORPHISM & CARDS ─────────────────────────────────────────────────── */
.glass-nav {
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--card-border);
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 25px -4px rgba(26, 184, 209, 0.22);
}

.glass-card-static {
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}

/* ─── LOGO BADGE & BRAND ELEMENTS ────────────────────────────────────────────── */
.logo-badge-container {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-blue) 50%, var(--brand-green) 100%);
  padding: 2px;
  box-shadow: 0 6px 16px -2px var(--brand-cyan-glow);
  transition: transform 0.25s ease;
}

.logo-badge-container:hover {
  transform: scale(1.05);
}

.logo-badge-inner {
  width: 100%;
  height: 100%;
  background-color: var(--bg-main);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
}

/* ─── TYPOGRAPHY & GRADIENTS ─────────────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-blue) 45%, var(--brand-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-green {
  background: linear-gradient(135deg, var(--brand-green) 0%, #86efac 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── NAVIGATION LINKS (ACTIVE & INACTIVE) ─────────────────────────────────── */
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: #1ab8d1 !important;
  background: rgba(26, 184, 209, 0.12) !important;
  border-color: rgba(26, 184, 209, 0.30) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px -2px rgba(26, 184, 209, 0.25);
}

/* ─── TABS & SWITCHERS (ACTIVE & INACTIVE) ─────────────────────────────────── */
.tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(26, 184, 209, 0.3);
  transform: translateY(-1px);
}

.tab-btn.active {
  background: linear-gradient(135deg, #1ab8d1 0%, #1496ab 100%) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 6px 18px -2px rgba(26, 184, 209, 0.5) !important;
  font-weight: 700 !important;
  transform: translateY(-2px);
}

/* ─── BUTTONS SYSTEM ─────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-cyan-hover) 100%);
  color: #ffffff;
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  box-shadow: 0 4px 14px 0 var(--brand-cyan-glow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #25c2dc 0%, var(--brand-cyan) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px 0 var(--brand-cyan-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-hover) 100%);
  color: #ffffff;
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  box-shadow: 0 4px 14px 0 var(--brand-green-glow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px 0 var(--brand-green-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--brand-cyan);
  color: var(--brand-cyan-light);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  border-radius: 1rem;
}

/* ─── BADGES & TAGS ──────────────────────────────────────────────────────────── */
.badge-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background-color: var(--brand-cyan-subtle);
  border: 1px solid rgba(26, 184, 209, 0.25);
  color: var(--brand-cyan-light);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background-color: var(--brand-green-subtle);
  border: 1px solid rgba(102, 185, 107, 0.25);
  color: var(--brand-green);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-ocean {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background-color: var(--brand-blue-subtle);
  border: 1px solid rgba(80, 159, 215, 0.25);
  color: var(--brand-blue);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ─── ACCORDIONS ─────────────────────────────────────────────────────────────── */
.accordion-trigger {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: var(--text-main);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.accordion-trigger:hover {
  color: var(--brand-cyan);
}

.accordion-content {
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

.accordion-content.open {
  max-height: 600px;
  opacity: 1;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0), opacity 0.3s ease;
}

/* ─── LIVE TERMINAL & SIMULATOR ──────────────────────────────────────────────── */
.terminal-window {
  background-color: #030710;
  border: 1px solid rgba(26, 184, 209, 0.2);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 30px -10px var(--brand-cyan-glow);
}

.terminal-header {
  background-color: #08111e;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 9999px;
}

.terminal-dot-red { background-color: #ef4444; }
.terminal-dot-yellow { background-color: #f59e0b; }
.terminal-dot-green { background-color: #10b981; }

.terminal-body {
  padding: 1.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  line-height: 1.7;
}

/* ─── FORM INPUTS ────────────────────────────────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background-color: rgba(5, 11, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  font-size: 0.875rem;
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px var(--brand-cyan-subtle);
  background-color: rgba(5, 11, 20, 0.9);
}

/* ─── SCROLLBAR ──────────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: rgba(26, 184, 209, 0.3);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(26, 184, 209, 0.6);
}

/* ─── ACCESSIBILITY & SEO UTILITIES (WCAG 2.1 AA) ────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--brand-cyan);
  color: #050b14;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  z-index: 9999;
  transition: top 0.2s ease-in-out;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid #ffffff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 2px;
}

