/* ==========================================================================
   CPA — DESIGN SYSTEM (RADIANT & BRIGHT ULTRA-FAST PERFORMANCE)
   ========================================================================== */

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

:root {
  /* Color Palette — Radiant White, Tech Blue & Amber Gold */
  --bg-dark: #F8FAFC;
  --bg-body: #F1F5F9;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.88);
  
  --primary-cyan: #0066FF;
  --primary-cyan-light: #E0F2FE;
  --primary-cyan-glow: rgba(0, 102, 255, 0.2);
  --primary-blue: #0242A5;
  --accent-gold: #D97706;
  --accent-gold-light: #FEF3C7;
  --accent-gold-glow: rgba(217, 119, 6, 0.2);
  --accent-emerald: #059669;

  --text-main: #0F172A;
  --text-muted: #334155;
  --text-subtle: #64748B;

  --border-glass: rgba(15, 23, 42, 0.08);
  --border-glow: rgba(0, 102, 255, 0.35);
  --border-gold-glow: rgba(217, 119, 6, 0.35);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --container-max: 1360px;
  --nav-height: 84px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
  font-size: 16px;
  background-color: var(--bg-dark);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection & Scrollbar */
::selection {
  background: var(--primary-cyan);
  color: #FFF;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: var(--radius-full);
}

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

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border: 2px solid var(--primary-cyan);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease;
  z-index: 99999;
  will-change: transform;
}

.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--primary-cyan);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 100000;
  will-change: transform;
}

.custom-cursor.active {
  width: 52px;
  height: 52px;
  background: rgba(0, 102, 255, 0.1);
  border-color: var(--accent-gold);
}

@media (max-width: 1024px) {
  .custom-cursor, .custom-cursor-dot {
    display: none !important;
  }
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #0242A5 0%, #0066FF 50%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-sky-blue {
  color: #00C2FF;
  background: linear-gradient(135deg, #00C2FF 0%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 900;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--primary-cyan-light);
  border: 1px solid rgba(0, 102, 255, 0.2);
  color: var(--primary-blue);
  font-family: var(--font-mono);
  font-size: 0.825rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-tag::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-cyan);
  box-shadow: 0 0 8px var(--primary-cyan);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 20px;
  color: #0F172A;
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 40px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons Hardware Accelerated */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.975rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  border: none;
  outline: none;
  z-index: 1;
  will-change: transform;
}

.btn-primary {
  background: linear-gradient(135deg, #0066FF 0%, #0242A5 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.45);
  color: #FFFFFF;
}

.btn-secondary {
  background: #FFFFFF;
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  background: #F8FAFC;
  border-color: var(--primary-cyan);
  transform: translateY(-2px);
  color: var(--primary-cyan);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.15);
}

.btn-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(217, 119, 6, 0.45);
}

.btn-white-blue {
  background: #FFFFFF;
  color: #0066FF;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid #FFFFFF;
  font-weight: 800;
}

.btn-white-blue:hover {
  background: #F8FAFC;
  color: #0242A5;
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(255, 255, 255, 0.35);
}

/* Glassmorphism Card Base (GPU Accelerated) */
.glass-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  will-change: transform;
}

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

.glass-card:hover {
  border-color: var(--primary-cyan);
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 102, 255, 0.15);
}

/* Ambient Glow Optimizations */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
  transform: translateZ(0);
}

.glow-cyan {
  background: #BAE6FD;
}

.glow-gold {
  background: #FDE68A;
}

.bg-grid-pattern {
  background-image: linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
