/* =============================================
   WM TECH SOLUTIONS — Design System v3
   Silicon Valley premium aesthetic
   ============================================= */
:root {
  --bg: #fafafa;
  --bg-alt: #f4f4f5;
  --surface: #ffffff;
  --surface-2: #f8f8f9;
  --surface-3: #f1f1f3;
  --ink: #0a0a0b;
  --ink-2: #18181b;
  --border: #e7e7ea;
  --border-mid: #d4d4d8;
  --text: #18181b;
  --text-soft: #52525b;
  --text-dim: #a1a1aa;
  --brand: #4f46e5;
  --brand-hover: #4338ca;
  --brand-light: #eef2ff;
  --brand-border: #c7d2fe;
  --accent: #0d9488;
  --accent-light: #f0fdfa;
  --green: #059669;
  --green-light: #ecfdf5;
  --amber: #d97706;
  --amber-light: #fffbeb;
  --red: #dc2626;
  --red-light: #fef2f2;
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --grad-soft: linear-gradient(135deg, #eef2ff 0%, #faf5ff 100%);
  --shadow-sm: 0 1px 2px rgba(16,24,40,0.04), 0 1px 3px rgba(16,24,40,0.06);
  --shadow-md: 0 4px 8px -2px rgba(16,24,40,0.06), 0 2px 4px -2px rgba(16,24,40,0.04);
  --shadow-lg: 0 12px 24px -6px rgba(16,24,40,0.08), 0 4px 8px -4px rgba(16,24,40,0.04);
  --shadow-xl: 0 24px 48px -12px rgba(16,24,40,0.14), 0 8px 16px -8px rgba(16,24,40,0.06);
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 15px;
  letter-spacing: -0.005em;
}

/* ---- NAV ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,0.8);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.02rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 800; color: #fff; letter-spacing: 0;
  box-shadow: 0 2px 8px rgba(79,70,229,0.3);
}
.nav-version {
  font-size: 0.64rem; font-weight: 600;
  color: var(--green); background: var(--green-light);
  border: 1px solid #a7f3d0;
  padding: 2px 8px; border-radius: 100px; margin-left: 2px;
}
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a {
  color: var(--text-soft); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; cursor: pointer; font-family: 'Inter', sans-serif; font-weight: 600; border-radius: 9px; transition: all 0.15s; border: none; white-space: nowrap; letter-spacing: -0.01em; }
.btn-sm  { font-size: 0.82rem; padding: 7px 15px; }
.btn-md  { font-size: 0.86rem; padding: 9px 18px; }
.btn-lg  { font-size: 0.92rem; padding: 11px 22px; }
.btn-xl  { font-size: 0.98rem; padding: 13px 28px; }

.btn-ghost   { background: var(--surface); border: 1px solid var(--border); color: var(--text); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--border-mid); box-shadow: var(--shadow-md); }
.btn-outline { background: var(--surface); border: 1px solid var(--brand-border); color: var(--brand); }
.btn-outline:hover { background: var(--brand-light); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(79,70,229,0.3), 0 2px 8px -2px rgba(79,70,229,0.35); }
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); box-shadow: 0 4px 12px -2px rgba(79,70,229,0.45); }
.btn-dark { background: var(--ink); border: 1px solid var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); transform: translateY(-1px); }

/* ---- LAYOUT ---- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.section { padding: 88px 0; }
.section-sm { padding: 60px 0; }
.bg-alt { background: var(--bg-alt); }

/* ---- TYPE ---- */
.eyebrow {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 7px;
}
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--brand); border-radius: 2px; }
h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700; line-height: 1.06; letter-spacing: -0.035em;
  color: var(--ink);
}
h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700; line-height: 1.14; letter-spacing: -0.03em;
  color: var(--ink);
}
h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; font-weight: 700; line-height: 1.3; color: var(--ink); letter-spacing: -0.02em; }
.lead { font-size: 1.08rem; color: var(--text-soft); line-height: 1.7; max-width: 560px; }
.lead-wide { max-width: 660px; }

hr.divider { border: none; border-top: 1px solid var(--border); }

/* ---- CARDS ---- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--border-mid); }

/* ---- TAGS ---- */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.7rem; font-weight: 700;
  padding: 4px 10px; border-radius: 7px;
  border: 1px solid var(--border);
  color: var(--text-soft); background: var(--surface-2);
  letter-spacing: 0.01em;
}
.tag-green  { color: var(--green); background: var(--green-light); border-color: #a7f3d0; }
.tag-brand  { color: var(--brand); background: var(--brand-light); border-color: var(--brand-border); }
.tag-accent { color: var(--accent); background: var(--accent-light); border-color: #99f6e4; }

/* ---- STAT ---- */
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem; font-weight: 700; color: var(--ink);
  letter-spacing: -0.03em;
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 0.82rem; color: var(--text-soft); margin-top: 4px; line-height: 1.5; }

/* ---- CODE ---- */
pre {
  background: #0d1117; border: 1px solid #1f2430;
  border-radius: 12px; padding: 22px 24px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.78rem; line-height: 1.7;
  color: #c9d1d9; overflow-x: auto;
  box-shadow: var(--shadow-md);
}
.code-kw  { color: #ff7b72; } .code-str { color: #a5d6ff; }
.code-fn  { color: #d2a8ff; } .code-cm  { color: #8b949e; font-style: italic; }
.code-num { color: #79c0ff; }

/* ---- FOOTER ---- */
footer { background: var(--ink); color: #fff; padding: 64px 0 32px; margin-top: 0; }
.footer-inner { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand-logo { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk',sans-serif; font-weight: 700; font-size: 1.02rem; color: #fff; text-decoration: none; }
.footer-brand-desc { font-size: 0.82rem; color: #a1a1aa; line-height: 1.75; margin-top: 14px; max-width: 270px; }
.footer-contact { margin-top: 18px; }
.footer-contact p { font-size: 0.8rem; color: #a1a1aa; line-height: 1.7; }
.footer-contact a { color: #d4d4d8; text-decoration: none; }
.footer-col-title { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #71717a; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 0.83rem; color: #a1a1aa; text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; border-top: 1px solid #27272a; display: flex; justify-content: space-between; align-items: center; font-size: 0.76rem; color: #71717a; flex-wrap: wrap; gap: 10px; }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-badge { padding: 4px 10px; border-radius: 6px; border: 1px solid #27272a; font-size: 0.66rem; font-weight: 600; color: #a1a1aa; }

/* ---- PAGE HERO ---- */
.page-hero { padding: 124px 0 60px; background: var(--grad-soft); border-bottom: 1px solid var(--border); margin-bottom: 0; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: -50%; right: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(124,58,237,0.06), transparent 65%); pointer-events: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 880px) {
  nav { padding: 0 18px; }
  .nav-links { display: none; }
  .container { padding: 0 20px; }
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-inner { padding: 0 20px; }
}
