/* ============================================================
   Solution Express Media LLC — Main CSS
   Design System: Tokens, Typography, Utilities, Layout
   ============================================================ */

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

/* ============================================================
   1. CSS Custom Properties (Design Tokens)
   ============================================================ */
:root {
  /* Colors */
  --color-navy:       #0A1628;
  --color-navy-mid:   #0F2044;
  --color-navy-light: #1A3260;
  --color-blue:       #2563EB;
  --color-blue-light: #3B82F6;
  --color-blue-pale:  #EFF6FF;
  --color-amber:      #F59E0B;
  --color-amber-dark: #D97706;
  --color-amber-pale: #FFFBEB;
  --color-white:      #FFFFFF;
  --color-surface:    #F8FAFC;
  --color-surface-2:  #F1F5F9;
  --color-border:     #E2E8F0;
  --color-text:       #1E293B;
  --color-text-mid:   #334155;
  --color-text-muted: #64748B;
  --color-text-light: #94A3B8;
  --color-success:    #10B981;
  --color-error:      #EF4444;

  /* Typography */
  --font-family:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs:      0.75rem;     /* 12px */
  --font-size-sm:      0.875rem;    /* 14px */
  --font-size-base:    1rem;        /* 16px */
  --font-size-lg:      1.125rem;    /* 18px */
  --font-size-xl:      1.25rem;     /* 20px */
  --font-size-2xl:     1.5rem;      /* 24px */
  --font-size-3xl:     1.875rem;    /* 30px */
  --font-size-4xl:     2.25rem;     /* 36px */
  --font-size-5xl:     3rem;        /* 48px */
  --font-size-6xl:     3.75rem;     /* 60px */
  --font-size-7xl:     4.5rem;      /* 72px */

  /* Font Weights */
  --fw-light:     300;
  --fw-regular:   400;
  --fw-medium:    500;
  --fw-semibold:  600;
  --fw-bold:      700;
  --fw-extrabold: 800;
  --fw-black:     900;

  /* Line Heights */
  --lh-tight:   1.2;
  --lh-snug:    1.375;
  --lh-normal:  1.5;
  --lh-relaxed: 1.625;
  --lh-loose:   1.75;

  /* Letter Spacing */
  --ls-tight:  -0.025em;
  --ls-normal:  0em;
  --ls-wide:    0.025em;
  --ls-wider:   0.05em;
  --ls-widest:  0.1em;

  /* Spacing Scale */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border Radius */
  --radius-sm:   0.25rem;
  --radius-base: 0.5rem;
  --radius-md:   0.75rem;
  --radius-lg:   1rem;
  --radius-xl:   1.5rem;
  --radius-2xl:  2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg:  0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl:  0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
  --shadow-2xl: 0 25px 50px rgba(0,0,0,0.25);
  --shadow-blue: 0 4px 24px rgba(37,99,235,0.25);
  --shadow-amber: 0 4px 24px rgba(245,158,11,0.35);
  --shadow-card: 0 2px 20px rgba(10,22,40,0.08);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
  --transition-spring: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index */
  --z-base:    1;
  --z-dropdown: 100;
  --z-sticky:  200;
  --z-modal:   300;
  --z-overlay: 400;

  /* Layout */
  --container-max:  1280px;
  --container-wide: 1440px;
  --nav-height:     72px;
}

/* ============================================================
   2. CSS Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  line-height: var(--lh-tight);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  letter-spacing: var(--ls-tight);
}

p {
  line-height: var(--lh-relaxed);
  color: var(--color-text-mid);
}

/* ============================================================
   3. Typography Scale
   ============================================================ */
.text-xs   { font-size: var(--font-size-xs); }
.text-sm   { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg   { font-size: var(--font-size-lg); }
.text-xl   { font-size: var(--font-size-xl); }
.text-2xl  { font-size: var(--font-size-2xl); }
.text-3xl  { font-size: var(--font-size-3xl); }
.text-4xl  { font-size: var(--font-size-4xl); }
.text-5xl  { font-size: var(--font-size-5xl); }
.text-6xl  { font-size: var(--font-size-6xl); }

.fw-light     { font-weight: var(--fw-light); }
.fw-regular   { font-weight: var(--fw-regular); }
.fw-medium    { font-weight: var(--fw-medium); }
.fw-semibold  { font-weight: var(--fw-semibold); }
.fw-bold      { font-weight: var(--fw-bold); }
.fw-extrabold { font-weight: var(--fw-extrabold); }

.text-navy    { color: var(--color-navy); }
.text-blue    { color: var(--color-blue); }
.text-amber   { color: var(--color-amber); }
.text-muted   { color: var(--color-text-muted); }
.text-white   { color: var(--color-white); }
.text-center  { text-align: center; }
.text-left    { text-align: left; }

/* ============================================================
   4. Layout Utilities
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--narrow {
  max-width: 860px;
}

/* Section spacing */
.section {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

.section--sm {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.section--lg {
  padding-top: var(--space-32);
  padding-bottom: var(--space-32);
}

.section--dark {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

.section--dark p {
  color: rgba(255,255,255,0.75);
}

.section--navy-mid {
  background-color: var(--color-navy-mid);
}

.section--surface {
  background-color: var(--color-surface);
}

.section--blue-pale {
  background-color: var(--color-blue-pale);
}

/* Grids */
.grid {
  display: grid;
  gap: var(--space-8);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.grid--auto-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--auto-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--auto-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Flex */
.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; }
.items-center { align-items: center; }
.gap-2  { gap: var(--space-2); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

/* Spacing helpers */
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }

/* ============================================================
   5. Section Header Pattern
   ============================================================ */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-16);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-blue);
  background: var(--color-blue-pale);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  border: 1px solid rgba(37,99,235,0.15);
}

.section-label--amber {
  color: var(--color-amber-dark);
  background: var(--color-amber-pale);
  border-color: rgba(245,158,11,0.2);
}

.section-label--white {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.section-title {
  font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-5xl));
  font-weight: var(--fw-extrabold);
  color: var(--color-navy);
  margin-bottom: var(--space-4);
  letter-spacing: var(--ls-tight);
  line-height: 1.15;
}

.section-title--white {
  color: var(--color-white);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
  max-width: 600px;
  margin: 0 auto;
}

.section-subtitle--white {
  color: rgba(255,255,255,0.72);
}

/* ============================================================
   6. Highlight / Gradient Text
   ============================================================ */
.gradient-text {
  background: linear-gradient(135deg, var(--color-blue), #818CF8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text--amber {
  background: linear-gradient(135deg, var(--color-amber), #FCD34D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   7. Animations
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(37,99,235,0); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Scroll-triggered animation classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

/* ============================================================
   8. Backgrounds & Decorative
   ============================================================ */
.bg-gradient-hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-mid) 50%, #0D1F3C 100%);
  position: relative;
  overflow: hidden;
}

.bg-gradient-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(37,99,235,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(245,158,11,0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Grid dot pattern overlay */
.grid-pattern::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* ============================================================
   9. Badges & Tags
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--font-size-xs);
  font-weight: var(--fw-semibold);
  padding: 3px var(--space-3);
  border-radius: var(--radius-full);
  letter-spacing: var(--ls-wide);
}

.badge--blue {
  background: var(--color-blue-pale);
  color: var(--color-blue);
  border: 1px solid rgba(37,99,235,0.2);
}

.badge--amber {
  background: var(--color-amber-pale);
  color: var(--color-amber-dark);
  border: 1px solid rgba(245,158,11,0.2);
}

.badge--success {
  background: #ECFDF5;
  color: var(--color-success);
  border: 1px solid rgba(16,185,129,0.2);
}

/* ============================================================
   10. Dividers
   ============================================================ */
.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-amber));
  border-radius: var(--radius-full);
  margin: var(--space-4) 0;
}

.divider--center { margin: var(--space-4) auto; }

/* ============================================================
   11. Checkmark lists
   ============================================================ */
.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--font-size-base);
  color: var(--color-text-mid);
  line-height: 1.6;
}

.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background: var(--color-blue);
  border-radius: var(--radius-full);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.check-list--white li {
  color: rgba(255,255,255,0.85);
}

.check-list--white li::before {
  background-color: var(--color-amber);
}

/* ============================================================
   12. Icon Boxes
   ============================================================ */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
}

.icon-box--blue {
  background: var(--color-blue-pale);
  color: var(--color-blue);
}

.icon-box--amber {
  background: var(--color-amber-pale);
  color: var(--color-amber-dark);
}

.icon-box--dark {
  background: rgba(37,99,235,0.15);
  color: var(--color-blue-light);
}

/* ============================================================
   13. Stat Items
   ============================================================ */
.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-5xl));
  font-weight: var(--fw-extrabold);
  color: var(--color-blue);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
}

/* ============================================================
   14. Breadcrumbs
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  padding: var(--space-4) 0;
}

.breadcrumb a {
  color: var(--color-blue);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover { color: var(--color-blue-light); }

.breadcrumb span { color: var(--color-text-light); }

/* ============================================================
   15. Responsive Helpers
   ============================================================ */
.hide-mobile  { display: block; }
.show-mobile  { display: none; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .container { padding-left: var(--space-5); padding-right: var(--space-5); }
  .section { padding-top: var(--space-16); padding-bottom: var(--space-16); }
  .section--lg { padding-top: var(--space-20); padding-bottom: var(--space-20); }

  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  .section-title { font-size: clamp(var(--font-size-2xl), 6vw, var(--font-size-4xl)); }

  .hide-mobile { display: none; }
  .show-mobile { display: block; }
}

@media (max-width: 480px) {
  .container { padding-left: var(--space-4); padding-right: var(--space-4); }
}
