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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:       #FFFFFF;
  --bg:          #FFFFFF;
  --card:        #F4F5F8;
  --ink:         #0A0A0F;
  --muted:       #6B7280;
  --subtle:      #9CA3AF;
  --border:      #E5E7EB;
  --accent:      #5B4FE9;
  --accent-dark: #4940D4;
}

html { font-family: 'Inter', system-ui, sans-serif; font-size: 16px; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background-image:
    linear-gradient(rgba(91,79,233,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,79,233,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ─── Nav ─── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; height: 64px; display: flex; align-items: center; gap: 2rem; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-logo span { font-size:21px;color:var(--ink);letter-spacing:-.01em;display:flex;align-items:center; }
.nav-logo .wm-main{font-weight:600;}
.nav-logo .wm-x{font-weight:300;}
.nav-links { display: flex; gap: 2rem; margin-left: auto; list-style: none; align-items: center; }
.nav-links a { font-size: 0.875rem; color: var(--muted); text-decoration: none; transition: color 0.2s ease-out; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--accent); font-weight: 500; }
.nav-cta { margin-left: 1.5rem; flex-shrink: 0; }

/* ─── Buttons ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 1.5rem; font-family: 'Inter', system-ui, sans-serif; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none; border-radius: 0; transition: background 0.2s, color 0.2s, border-color 0.2s; cursor: pointer; border: none; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #ffffff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: rgba(91,79,233,0.05); }
.btn-lg { height: 48px; padding: 0 2rem; font-size: 0.75rem; }

/* ─── Layout ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 7rem 0; background: var(--white); }
.section-alt { padding: 7rem 0; background: var(--card); }

/* ─── Label caps (section eyebrow) ─── */
.label { display: block; font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 1.5rem; }

/* ─── Typography ─── */
h1, h2, h3, h4 { color: var(--ink); line-height: 1.1; font-weight: 700; letter-spacing: -0.04em; }
.hero-headline { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -0.04em; margin-bottom: 1.5rem; }
.section-headline { font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1rem; }
.card-headline { font-size: 1rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 0.75rem; color: var(--ink); }
p.lead { font-size: 1.05rem; color: var(--muted); line-height: 1.75; }
p.body { font-size: 0.875rem; color: var(--muted); line-height: 1.75; }
p { line-height: 1.625; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s ease-out; }
a:hover { color: var(--accent-dark); }

/* ─── Hairline ruled grids ─── */
.grid-3-ruled { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--border); gap: 1px; }
.grid-3-ruled > * { background: var(--white); }
.grid-2-ruled { display: grid; grid-template-columns: repeat(2, 1fr); background: var(--border); gap: 1px; }
.grid-2-ruled > * { background: var(--white); }
.grid-4-ruled { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--border); gap: 1px; }
.grid-4-ruled > * { background: var(--white); }

/* ─── Stats ─── */
.stat-value { font-size: 1.5rem; font-weight: 700; color: var(--accent); letter-spacing: -0.04em; margin-bottom: 0.25rem; }

/* ─── Blockquote ─── */
blockquote { border-left: 2px solid var(--accent); background: var(--card); padding: 1.5rem 2rem; }
blockquote p { font-size: 1rem; font-style: italic; line-height: 1.75; color: var(--ink); margin-bottom: 0.5rem; }
blockquote cite { font-size: 0.75rem; color: var(--subtle); font-style: normal; }

/* ─── Divider ─── */
hr { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ─── CTA dark block ─── */
.cta-block { background: var(--ink); padding: 5rem 2rem; text-align: center; }
.cta-block h2 { color: #ffffff; }
.cta-block p { color: rgba(255,255,255,0.6); }

/* ─── Footer ─── */
footer { border-top: 1px solid var(--border); background: white; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 2.5rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-logo span { font-size:17px;color:var(--ink);letter-spacing:-.01em;display:flex;align-items:center; }
.footer-logo .wm-main{font-weight:600;}
.footer-logo .wm-x{font-weight:300;}
footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
footer nav a { font-size: 0.875rem; color: var(--muted); text-decoration: none; transition: color 0.2s ease-out; }
footer nav a:hover { color: var(--ink); }
.footer-copy { font-size: 0.75rem; color: var(--subtle); }

/* ─── Focus ring ─── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ─── Selection ─── */
::selection { background: #7B6FF2; color: #ffffff; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9CA3AF; }

/* ─── Animations ─── */
@keyframes fade-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fade-in 0.55s cubic-bezier(0.16,1,0.3,1) both; }
.delay-1 { animation-delay: 40ms; }
.delay-2 { animation-delay: 80ms; }
.delay-3 { animation-delay: 160ms; }
.delay-4 { animation-delay: 240ms; }
.delay-5 { animation-delay: 320ms; }

@supports (animation-timeline: view()) {
  .scroll-reveal { animation: fade-in linear both; animation-timeline: view(); animation-range: entry 5% entry 35%; }
}
.scroll-reveal { opacity: 1; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .grid-3-ruled, .grid-4-ruled { grid-template-columns: 1fr; }
  .grid-2-ruled { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .section, .section-alt { padding: 4rem 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}

@media (max-width: 480px) {
  .container, .container-narrow { padding: 0 1.25rem; }
}
