/* =====================================================
   No Limit Digital — Design System
   ===================================================== */

/* Self-hosted Latin font subsets (Google Fonts, SIL Open Font License) */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url('/fonts/exo2-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* CSS Custom Properties */
:root {
  /* Brand palette — evolved from original #0050a8 */
  --nld-blue-50: #e6f0ff;
  --nld-blue-100: #b3d4ff;
  --nld-blue-200: #80b8ff;
  --nld-blue-300: #4d9cff;
  --nld-blue-400: #1a80ff;
  --nld-blue-500: #0050a8; /* original base */
  --nld-blue-600: #00408a;
  --nld-blue-700: #00306b;
  --nld-blue-800: #00204d;
  --nld-blue-900: #00132e;
  --nld-blue-950: #000a1a;

  /* Electric accents */
  --nld-cyan: #00e5ff;
  --nld-cyan-glow: rgba(0, 229, 255, 0.45);
  --nld-yellow: #ffe600;
  --nld-yellow-glow: rgba(255, 230, 0, 0.35);

  /* Neutrals */
  --nld-white: #ffffff;
  --nld-silver: #c5d1e0;
  --nld-gray-100: #f0f4f8;
  --nld-gray-200: #d9e2ec;
  --nld-gray-300: #bcccdc;
  --nld-gray-400: #9fb3c8;
  --nld-gray-500: #829ab1;
  --nld-gray-600: #627d98;
  --nld-gray-700: #486581;
  --nld-gray-800: #334e68;
  --nld-gray-900: #243b53;
  --nld-black: #0a0f16;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, var(--nld-blue-950) 0%, var(--nld-blue-900) 40%, var(--nld-blue-800) 100%);
  --gradient-lightning: linear-gradient(180deg, var(--nld-cyan) 0%, var(--nld-white) 50%, var(--nld-blue-400) 100%);
  --gradient-button: linear-gradient(90deg, var(--nld-blue-500) 0%, var(--nld-blue-400) 100%);
  --gradient-button-hover: linear-gradient(90deg, var(--nld-blue-400) 0%, var(--nld-cyan) 100%);

  /* Typography */
  --font-display: 'Exo 2', 'Orbitron', 'Arial Black', sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 0.9375rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.25vw, 1rem);
  --text-lg: clamp(1rem, 0.95rem + 0.35vw, 1.125rem);
  --text-xl: clamp(1.125rem, 1.05rem + 0.5vw, 1.35rem);
  --text-2xl: clamp(1.25rem, 1.15rem + 0.75vw, 1.75rem);
  --text-3xl: clamp(1.5rem, 1.35rem + 1vw, 2.25rem);
  --text-4xl: clamp(1.75rem, 1.55rem + 1.25vw, 2.75rem);
  --text-5xl: clamp(2rem, 1.75rem + 1.75vw, 3.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Layout */
  --max-width: 1280px;
  --header-height: 64px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px var(--nld-cyan-glow);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Motion */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
  :root {
    --header-height: 80px;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--nld-gray-100);
  background: var(--nld-black);
  overflow-x: hidden;
}

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

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

a:hover, a:focus {
  color: var(--nld-yellow);
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

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

h1 { font-size: var(--text-5xl); line-height: 1.1; }
h2 { font-size: var(--text-4xl); line-height: 1.15; }
h3 { font-size: var(--text-3xl); line-height: 1.2; }
h4 { font-size: var(--text-2xl); line-height: 1.25; }
h5 { font-size: var(--text-xl); line-height: 1.3; }
h6 { font-size: var(--text-lg); line-height: 1.35; }

p {
  margin-bottom: var(--space-4);
  max-width: 70ch;
}

.text-gradient {
  background: linear-gradient(90deg, var(--nld-white) 0%, var(--nld-cyan) 50%, var(--nld-blue-200) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent {
  color: var(--nld-cyan);
}

.text-yellow {
  color: var(--nld-yellow);
}

/* Layout utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.section {
  position: relative;
  padding-block: var(--space-8);
}

.section-dark {
  background: var(--gradient-hero);
}

.section-light {
  background: var(--nld-gray-100);
  color: var(--nld-gray-900);
}

.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4 {
  color: var(--nld-blue-900);
}

.section-light p {
  color: var(--nld-gray-800);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn:hover, .btn:focus {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-button);
  color: var(--nld-white);
  box-shadow: 0 4px 15px rgba(0, 80, 168, 0.4);
}

.btn-primary:hover, .btn-primary:focus {
  background: var(--gradient-button-hover);
  box-shadow: var(--shadow-glow);
  color: var(--nld-white);
}

.btn-secondary {
  background: transparent;
  color: var(--nld-cyan);
  border: 2px solid var(--nld-cyan);
}

.btn-secondary:hover, .btn-secondary:focus {
  background: var(--nld-cyan);
  color: var(--nld-blue-950);
  box-shadow: var(--shadow-glow);
}

.btn-lg {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
}

/* Lightning effects */
.lightning-strike {
  position: absolute;
  pointer-events: none;
  opacity: 0.15;
  mix-blend-mode: screen;
}

.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--nld-cyan) 50%, transparent 100%);
  box-shadow: 0 0 10px var(--nld-cyan-glow);
}

/* Cards */
.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  backdrop-filter: blur(10px);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

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

.card-light {
  background: var(--nld-white);
  border: 1px solid var(--nld-gray-200);
  color: var(--nld-gray-900);
}

.card-light:hover {
  border-color: var(--nld-blue-500);
  box-shadow: 0 10px 40px rgba(0, 80, 168, 0.15);
}

/* Section header */
.section-header {
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
  margin-bottom: var(--space-7);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  color: var(--nld-gray-300);
  font-size: var(--text-lg);
  margin-inline: auto;
}

.section-light .section-header p {
  color: var(--nld-gray-700);
}

/* Utility grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .grid-3 {
    gap: var(--space-6);
  }
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

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

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

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--nld-yellow);
  color: var(--nld-blue-950);
  padding: var(--space-2) var(--space-4);
  z-index: 1000;
  font-weight: 700;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
