/* =============================================
   CLEAR PATH WEB — Base Styles
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

/* Loading Screen */
#loading-screen {
  position: fixed;
  inset: 0;
  background: var(--clr-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}
.loading-content {
  text-align: center;
}
.loading-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: loadingPulse 1.5s ease-in-out infinite;
  object-fit: cover;
}
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0,87,255,0.2);
  border-top-color: var(--clr-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes loadingPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--clr-bg-2);
}
::-webkit-scrollbar-thumb {
  background: var(--clr-primary);
  border-radius: var(--radius-full);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-white);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { color: var(--clr-text-muted); line-height: 1.8; }

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  display: block;
}

ul { list-style: none; }

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section Spacing */
section {
  padding: var(--spacing-3xl) 0;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,87,255,0.1);
  border: 1px solid rgba(0,87,255,0.25);
  color: var(--clr-primary-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.2rem;
}
.section-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--clr-accent);
  border-radius: 50%;
  display: inline-block;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #a0b4d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(0,87,255,0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,87,255,0.5);
}
.btn--accent {
  background: var(--gradient-accent);
  color: #050a14;
  box-shadow: 0 4px 20px rgba(0,229,160,0.3);
}
.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,229,160,0.45);
}
.btn--outline {
  background: transparent;
  color: var(--clr-text);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn--outline:hover {
  border-color: var(--clr-primary-light);
  color: var(--clr-primary-light);
  background: rgba(0,87,255,0.08);
  transform: translateY(-2px);
}
.btn--ghost {
  background: rgba(255,255,255,0.05);
  color: var(--clr-text);
  border: 1px solid rgba(255,255,255,0.08);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
.btn--sm {
  padding: 0.55rem 1.3rem;
  font-size: 0.85rem;
}
.btn--lg {
  padding: 1.1rem 2.6rem;
  font-size: 1.05rem;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}
.badge--blue {
  background: rgba(0,87,255,0.15);
  color: #60a5fa;
  border: 1px solid rgba(0,87,255,0.2);
}
.badge--green {
  background: rgba(0,229,160,0.12);
  color: var(--clr-accent);
  border: 1px solid rgba(0,229,160,0.2);
}
.badge--cyan {
  background: rgba(0,196,255,0.12);
  color: var(--clr-cyan);
  border: 1px solid rgba(0,196,255,0.2);
}

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* Glow Orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.glow-orb--blue {
  background: radial-gradient(circle, rgba(0,87,255,0.18) 0%, transparent 70%);
}
.glow-orb--green {
  background: radial-gradient(circle, rgba(0,229,160,0.15) 0%, transparent 70%);
}
.glow-orb--cyan {
  background: radial-gradient(circle, rgba(0,196,255,0.12) 0%, transparent 70%);
}

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  margin: 2rem 0;
}

/* Page Hero */
.page-hero {
  padding: 8rem 0 5rem;
  background: var(--clr-bg-2);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,87,255,0.08) 0%, transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,87,255,0.1);
  border: 1px solid rgba(0,87,255,0.25);
  color: var(--clr-primary-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}
.page-hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #ffffff 30%, #a0b4d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero-subtitle {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section-header { margin-bottom: 2.5rem; }
}
