/* =========================================
   OLO Solutions — Design System
   Shared styles across all pages
   ========================================= */

/* ---- Variables ---- */
:root {
  --bg-primary: #0F0F1A;
  --bg-secondary: #161625;
  --bg-surface: #1E1E31;
  --bg-surface-hover: #2A2A42;
  --bg-elevated: #32324F;

  --text-primary: #F0F0F5;
  --text-secondary: #A0A0B8;
  --text-muted: #8E8EA6;

  --accent: #3F51B5;
  --accent-hover: #5C6BC0;
  --accent-subtle: rgba(63, 81, 181, 0.12);

  --teal: #4ECDC4;
  --teal-subtle: rgba(78, 205, 196, 0.10);

  --warning: #F59E0B;
  --danger: #EF4444;
  --success: #10B981;

  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);

  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --max-width: 1140px;
  --section-pad: 100px;
}

/* ---- Reset ---- */
*, *::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);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--accent-hover); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text-primary); }

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

/* ---- Layout ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Section label (code comment style) ---- */
.section-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

/* ---- Section spacing ---- */
section {
  padding: var(--section-pad) 0;
}

/* ---- Typography ---- */
h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent-hover); }

strong { color: var(--text-primary); font-weight: 600; }
em.teal { color: var(--teal); font-style: normal; font-weight: 600; }

/* =========================================
   NAVIGATION
   ========================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav .container {
  max-width: 1140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.08em;
}

.logo-mark {
  flex-shrink: 0;
}

.logo-text-mark {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active-page { color: var(--text-primary); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: var(--text-primary);
  color: var(--bg-primary) !important;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius);
  transition: opacity 0.2s;
}

.nav-cta:hover { opacity: 0.9; color: var(--bg-primary) !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: 0.3s;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-weight: 700;
  font-size: 16px;
  border-radius: var(--radius);
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.9; color: var(--bg-primary); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: all 0.2s;
}
.btn-secondary:hover { background: var(--bg-surface); color: var(--text-primary); }

/* =========================================
   FOOTER
   ========================================= */
.source-notes {
  padding: 32px 0 16px;
  border-top: 1px solid var(--border);
}

.source-notes-inner p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 4px;
}

.source-notes-inner sup {
  color: var(--text-secondary);
  font-weight: 600;
}

footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-secondary);
}

/* =========================================
   SHARED RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  :root { --section-pad: 80px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 60px; }

  .nav-links { display: none; }
  .nav-toggle { display: block; }

  /* Mobile menu */
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 20px;
  }

  .hero { padding-top: 120px; }
  .hero h1 { font-size: 2rem; }

  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  h2 { font-size: 1.5rem; }
}
