/* ============================================================
   NEXUS ORACLE — Design System
   Color palette inspired by APRO.com (dark navy + cyan/blue)
   ============================================================ */

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

/* ──── CSS Variables ──── */
:root {
  /* APRO.com inspired dark navy palette */
  --bg-void:       #040c1a;
  --bg-primary:    #0a1428;
  --bg-secondary:  #0d1b35;
  --bg-card:       #101f3d;
  --bg-card-hover: #132548;
  --bg-glass:      rgba(10, 20, 40, 0.65);

  --accent-blue:   #0057e7;
  --accent-cyan:   #00f5ff;
  --accent-bright: #40f9ff;
  --accent-purple: #8b5cf6;
  --accent-indigo: #6d4aff;
  --accent-mint:   #00ffa3;
  --accent-glow:   rgba(0, 245, 255, 0.12);

  --text-primary:  #eaf2ff;
  --text-secondary:#8ba8cc;
  --text-muted:    #4a6380;
  --text-bright:   #ffffff;

  --border:        rgba(0, 87, 231, 0.18);
  --border-bright: rgba(0, 245, 255, 0.28);
  --border-glow:   rgba(0, 245, 255, 0.5);

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;

  --shadow-card: 0 4px 32px rgba(0, 10, 40, 0.6);
  --shadow-glow: 0 0 48px rgba(0, 245, 255, 0.1);
  --shadow-blue: 0 8px 48px rgba(0, 87, 231, 0.22);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --nav-height: 76px;
}

/* ──── Reset & Base ──── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ──── Typography Scale ──── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-bright);
}

.display-xl {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.display-lg {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.display-md {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
}

.text-gradient {
  background: linear-gradient(135deg, #00f5ff 0%, #8b5cf6 55%, #00ffa3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-blue {
  background: linear-gradient(90deg, #0057e7, #00f5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ──── Layout ──── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 120px 0;
  position: relative;
}

/* ──── Buttons ──── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, #0057e7, #00c4f0);
  color: white;
  box-shadow: 0 4px 24px rgba(0, 87, 231, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(0, 245, 255, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-bright);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 194, 255, 0.2);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.05rem;
}

/* ──── Cards ──── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}

.card:hover::before { opacity: 1; }

.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* ──── Badge / Tag ──── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'Outfit', sans-serif;
}

.badge-blue {
  background: rgba(0, 102, 255, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 194, 255, 0.2);
}

.badge-purple {
  background: rgba(91, 110, 245, 0.12);
  color: #9ba8ff;
  border: 1px solid rgba(91, 110, 245, 0.25);
}

.badge-green {
  background: rgba(0, 255, 204, 0.08);
  color: var(--accent-mint);
  border: 1px solid rgba(0, 255, 204, 0.2);
}

/* ──── Section Headers ──── */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent-cyan);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.7;
}

/* ──── Dividers ──── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-bright), transparent);
  margin: 0;
}

/* ──── Icon Box ──── */
.icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.2);
  flex-shrink: 0;
  transition: var(--transition);
}

.card:hover .icon-box {
  background: rgba(0, 194, 255, 0.15);
  border-color: rgba(0, 194, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 194, 255, 0.15);
}

/* ──── Grid Utilities ──── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ──── Flex Utilities ──── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.gap-xl { gap: 40px; }

/* ──── Text Utilities ──── */
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.78rem; }
.mt-auto { margin-top: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ──── Scrollbar ──── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb {
  background: rgba(0, 102, 255, 0.4);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-cyan); }

/* ──── Selection ──── */
::selection {
  background: rgba(0, 194, 255, 0.25);
  color: white;
}

/* ──── Responsive ──── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  section { padding: 90px 0; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 70px 0; }
  .container { padding: 0 16px; }
}
