/* ============================================
   INSPIRY SOLUTIONS — Dark Premium Agency Design System
   ============================================ */

/* ── CSS Custom Properties ─────────────────── */
:root {
  /* Colors — Dark Premium + Electric Blue accent */
  --color-primary: #2563EB;
  --color-primary-hover: #3B82F6;
  --color-primary-light: rgba(37, 99, 235, 0.12);
  --color-accent: #A5F332;
  --color-bg: #0A0A0A;
  --color-bg-alt: #111111;
  --color-bg-card: #151515;
  --color-bg-dark: #050505;
  --color-bg-dark-card: #111111;
  --color-text: #F5F5F5;
  --color-text-secondary: #888888;
  --color-text-light: #555555;
  --color-text-on-dark: #F5F5F5;
  --color-text-on-dark-muted: #888888;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-dark: rgba(255, 255, 255, 0.06);
  --color-surface-glass: rgba(10, 10, 10, 0.85);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-padding: 140px;
  --container-max: 1400px;
  --container-padding: 48px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 200ms var(--ease-out-quart);
  --transition-base: 400ms var(--ease-out-expo);
  --transition-slow: 600ms var(--ease-out-expo);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
  --shadow-xl: 0 32px 80px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 60px rgba(37, 99, 235, 0.15);
}

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

html {
  font-size: 16px;
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

/* ── Selection ────────────────────────────── */
::selection {
  background: var(--color-primary);
  color: white;
}

/* ── Focus Visible (Accessibility) ─────────── */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ── Container ────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ── Section Badge ─────────────────────────── */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 28px;
  padding: 8px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.03);
}

/* Remove bottom margin when badge is inside a flex row */
:is(.stats__header-top, [class*="header-top"]) .section-badge {
  margin-bottom: 0;
}

/* ── Section Heading ───────────────────────── */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 24px;
}

.section-subheading {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--color-text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Section ──────────────────────────────── */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.section-dark .section-heading {
  color: var(--color-text-on-dark);
}

.section-dark .section-subheading {
  color: var(--color-text-on-dark-muted);
}

/* ── Reveal Animations ────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* ── Copyright tag ─────────────────────────── */
.copyright-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  text-transform: uppercase;
  padding: 8px 0;
}

/* ── Scroll Progress Bar ──────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), #60A5FA);
  z-index: 10000;
  transition: none;
}

/* ── Custom Cursor ────────────────────────── */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s;
  mix-blend-mode: difference;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, 0.5);
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.5s var(--ease-out-expo), height 0.5s var(--ease-out-expo),
              border-color 0.3s, opacity 0.3s;
  opacity: 0.4;
}

/* ── Marquee ──────────────────────────────── */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.marquee__track {
  display: inline-flex;
  animation: marqueeScroll 30s linear infinite;
}

.marquee__track span {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0 24px;
  color: var(--color-text-light);
  display: inline-flex;
  align-items: center;
  gap: 24px;
}

.marquee__track span .dot,
.marquee__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  opacity: 0.5;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --section-padding: 100px;
    --container-padding: 28px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 72px;
    --container-padding: 20px;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 56px;
    --container-padding: 16px;
  }
}
