/* ==========================================================================
   CITY OF BELLUM - DESIGN SYSTEM & STYLESHEET
   Adheres to AGENTS.md: Tri-Skill Frontend & UI/UX Engine
   Theme: Tactical Cyber-Fortress / Battle-Hardened IT Infrastructure
   ========================================================================== */

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

:root {
  /* Design Tokens - Rich Dark Neutrals (NO pure black #000000) */
  --cob-bg-darkest: #090a0f;
  --cob-bg-surface: #0e111a;
  --cob-bg-card: #131722;
  --cob-bg-card-elevated: #181e2c;
  --cob-border: #1e2638;
  --cob-border-highlight: #2c3852;

  /* Tactical Accents */
  --cob-accent-primary: #00f5a0;
  --cob-accent-primary-hover: #00dc8f;
  --cob-accent-glow: rgba(0, 245, 160, 0.22);
  --cob-accent-cyan: #38bdf8;
  --cob-accent-amber: #f59e0b;
  --cob-accent-amber-glow: rgba(245, 158, 11, 0.2);
  --cob-danger: #ef4444;

  /* Typography */
  --cob-text-primary: #f8fafc;
  --cob-text-secondary: #94a3b8;
  --cob-text-muted: #64748b;
  --font-display: 'Syne', 'Outfit', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Metrics */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* Base Reset & Smoothness */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--cob-bg-darkest);
  color: var(--cob-text-primary);
  font-family: var(--font-body);
}

body {
  min-height: 100vh;
  margin: 0;
  background-color: var(--cob-bg-darkest);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 245, 160, 0.08), transparent 70%),
    radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.04), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 245, 160, 0.03), transparent 50%),
    linear-gradient(to bottom, #090a0f, #0c0e15 50%, #090a0f);
  background-attachment: fixed;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Tactical Background Grid overlay */
.bg-tactical-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* Font helpers */
.font-display {
  font-family: var(--font-display);
}

.font-mono {
  font-family: var(--font-mono);
}

/* Focus styles (WCAG AA Accessibility) */
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--cob-accent-primary);
  outline-offset: 3px;
}

/* Glowing text & borders */
.text-glow-emerald {
  text-shadow: 0 0 20px rgba(0, 245, 160, 0.45);
}

.border-glow-emerald {
  box-shadow: 0 0 25px -5px rgba(0, 245, 160, 0.25);
}

/* Bento Card Micro-interactions */
.cob-card {
  background-color: var(--cob-bg-card);
  border: 1px solid var(--cob-border);
  border-radius: var(--radius-lg);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.24s ease, 
              box-shadow 0.24s ease;
  position: relative;
  overflow: hidden;
}

.cob-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.cob-card:hover {
  border-color: var(--cob-border-highlight);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px -5px rgba(0, 245, 160, 0.1);
}

/* Primary Button with tactical gaming styling */
.cob-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background-color: var(--cob-accent-primary);
  color: #05140d;
  padding: 0.95rem 1.85rem;
  border-radius: var(--radius-md);
  border: 1px solid #00f5a0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 20px -3px rgba(0, 245, 160, 0.4);
  cursor: pointer;
  position: relative;
}

.cob-btn-primary:hover:not(:disabled) {
  background-color: var(--cob-accent-primary-hover);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 0 30px 2px rgba(0, 245, 160, 0.6);
}

.cob-btn-primary:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
}

.cob-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.5);
  box-shadow: none;
}

/* Secondary Button */
.cob-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  background-color: var(--cob-bg-surface);
  color: var(--cob-text-primary);
  border: 1px solid var(--cob-border);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  cursor: pointer;
}

.cob-btn-secondary:hover {
  background-color: var(--cob-bg-card-elevated);
  border-color: var(--cob-border-highlight);
  color: #ffffff;
}

/* Non-Refundable Warning Box */
.cob-warning-notice {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  position: relative;
}

/* Custom Checkbox (Mandatory Non-Refundable clause) */
.cob-checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.cob-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  background-color: #0b0e14;
  border: 2px solid #334155;
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.cob-checkbox:hover {
  border-color: var(--cob-accent-primary);
}

.cob-checkbox:checked {
  background-color: var(--cob-accent-primary);
  border-color: var(--cob-accent-primary);
  box-shadow: 0 0 12px rgba(0, 245, 160, 0.5);
}

.cob-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid #05140d;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* Modal styling */
.cob-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(9, 10, 15, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cob-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.cob-modal-content {
  background-color: #0f121a;
  border: 1px solid var(--cob-border-highlight);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 245, 160, 0.1);
  transform: scale(0.96) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cob-modal-backdrop.active .cob-modal-content {
  transform: scale(1) translateY(0);
}

/* Ping status indicator */
.ping-dot {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--cob-accent-primary);
}

.ping-dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--cob-accent-primary);
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.5); opacity: 0.8; }
  80%, 100% { transform: scale(1.8); opacity: 0; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #090a0f;
}
::-webkit-scrollbar-thumb {
  background: #1e2638;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2f3b55;
}
