/*
 * LEAST SOFTWARE — Design System (Enterprise Edition)
 * Light-mode enterprise theme: navy hero + white body + blue accents.
 */

/* ══════════════════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════════════════ */
:root {
  /* Light backgrounds */
  --bg:          #FFFFFF;
  --bg-alt:      #F8FAFC;
  --bg-card:     #FFFFFF;
  --bg-card-h:   #F1F5F9;
  --bg-border:   #E2E8F0;

  /* Dark section backgrounds (hero, CTA) */
  --bg-dark:     #0F172A;
  --bg-dark-alt: #1E293B;
  --bg-dark-card:rgba(255,255,255,0.05);

  /* Light-mode text */
  --text:        #0F172A;
  --text-sec:    #475569;
  --text-muted:  #94A3B8;

  /* Dark-section text */
  --text-inv:     #FFFFFF;
  --text-inv-sec: rgba(255,255,255,0.72);
  --text-inv-mut: rgba(255,255,255,0.42);

  /* Primary accent — Enterprise Blue */
  --accent:       #2563EB;
  --accent-h:     #1D4ED8;
  --accent-light: #DBEAFE;
  --accent-dim:   rgba(37,99,235,0.10);
  --accent-mid:   rgba(37,99,235,0.20);
  --accent-glow:  rgba(37,99,235,0.30);

  /* Secondary accent — Teal */
  --teal:         #0D9488;
  --teal-h:       #0F766E;
  --teal-light:   #CCFBF1;
  --teal-dim:     rgba(13,148,136,0.10);

  /* Tertiary accent — Cyan */
  --cyan:         #0891B2;
  --cyan-light:   #CFFAFE;

  /* Status colours */
  --green:        #10B981;
  --green-light:  #D1FAE5;
  --amber:        #F59E0B;
  --amber-light:  #FEF3C7;
  --red:          #EF4444;

  /* Borders */
  --border:       #E2E8F0;
  --border-dark:  rgba(255,255,255,0.10);
  --border-blue:  rgba(37,99,235,0.25);

  /* Typography */
  --font-display: 'Manrope', 'Inter', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* Type scale */
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   1.875rem;
  --text-4xl:   2.25rem;
  --text-5xl:   clamp(2.25rem, 4.5vw, 3.5rem);
  --text-hero:  clamp(2.75rem, 6vw, 4.25rem);

  /* Spacing */
  --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;

  /* Radii */
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full:9999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:      0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:   0 20px 48px rgba(0,0,0,0.10), 0 8px 16px rgba(0,0,0,0.06);
  --shadow-blue: 0 4px 20px rgba(37,99,235,0.25);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.07);

  /* Transitions */
  --t:      0.18s ease;
  --t-slow: 0.35s ease;

  /* Layout */
  --container-max: 1200px;
  --section-v:     5rem;
}

/* ══════════════════════════════════════════════════════
   RESET
══════════════════════════════════════════════════════ */
*, *::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);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--t);
}
a:hover { color: var(--accent-h); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ══════════════════════════════════════════════════════
   TYPOGRAPHY — LIGHT SECTIONS
══════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
}
h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-5xl); line-height: 1.12; }
h3 { font-size: var(--text-2xl);  font-weight: 700; line-height: 1.25; }
h4 { font-size: var(--text-xl);  font-weight: 600; }
h5 { font-size: var(--text-lg);  font-weight: 600; }
h6 { font-size: var(--text-base);font-weight: 600; }

p { margin-bottom: var(--space-4); color: var(--text-sec); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--text-lg);
  line-height: 1.72;
  color: var(--text-sec);
  max-width: 600px;
}

.body-sm { font-size: var(--text-sm); color: var(--text-sec); line-height: 1.65; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.text-center { text-align: center; }
.text-center .lead  { margin: 0 auto; }
.text-center .eyebrow { justify-content: center; }
.text-center h2,
.text-center h3 { margin: 0 auto; }

/* ══════════════════════════════════════════════════════
   TYPOGRAPHY — DARK SECTIONS (.ls-dark)
══════════════════════════════════════════════════════ */
.ls-dark h1,
.ls-dark h2,
.ls-dark h3,
.ls-dark h4,
.ls-dark h5,
.ls-dark h6 { color: var(--text-inv); }

.ls-dark p { color: var(--text-inv-sec); }

.ls-dark .lead { color: var(--text-inv-sec); }

.ls-dark .eyebrow {
  color: #60A5FA;
}
.ls-dark .eyebrow::before { background: #60A5FA; }

.ls-dark a { color: #93C5FD; }
.ls-dark a:hover { color: #BFDBFE; }

/* ══════════════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════════════ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.ls-section {
  padding: var(--section-v) 0;
  position: relative;
  overflow: hidden;
}
.ls-section--alt { background: var(--bg-alt); }
.ls-section--dark {
  background: var(--bg-dark);
  color: var(--text-inv);
}
.ls-section--dark-alt {
  background: var(--bg-dark-alt);
  color: var(--text-inv);
}

/* ══════════════════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

/* ══════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--t);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: -0.01em;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn--sm { padding: 0.5rem 1.125rem;  font-size: var(--text-sm);  border-radius: 8px; }
.btn--md { padding: 0.75rem 1.625rem; font-size: var(--text-sm);  border-radius: 9px; }
.btn--lg { padding: 0.875rem 2rem;    font-size: var(--text-base); border-radius: 10px; }

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-h);
  border-color: var(--accent-h);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
}

.btn--secondary {
  background: var(--bg);
  color: var(--accent);
  border-color: var(--border-blue);
}
.btn--secondary:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.btn--ghost {
  background: transparent;
  color: var(--text-sec);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.btn--outline-inv {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn--outline-inv:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.60);
  color: #fff;
}

/* ══════════════════════════════════════════════════════
   BADGES / TAGS
══════════════════════════════════════════════════════ */
.ls-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--border-blue);
  color: var(--accent);
  background: var(--accent-dim);
}

.ls-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--accent-light);
  color: var(--accent);
}

/* ══════════════════════════════════════════════════════
   ACCESSIBILITY
══════════════════════════════════════════════════════ */
.ls-skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--accent);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 700;
  z-index: 9999;
  transition: top var(--t);
}
.ls-skip-link:focus { top: var(--space-4); color: #fff; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  :root { --section-v: 4rem; }
}
@media (max-width: 768px) {
  :root { --section-v: 3rem; }
  .container { padding: 0 var(--space-5); }
}
@media (max-width: 480px) {
  :root { --section-v: 2.5rem; }
}

@media print {
  body { background: #fff; color: #000; }
  .ls-header, .ls-footer, .ls-cta { display: none !important; }
}
