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

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

:root {
  --base: #09090b;
  --surface: #111113;
  --white: #ffffff;
  --white-80: rgba(255,255,255,0.8);
  --white-60: rgba(255,255,255,0.6);
  --white-50: rgba(255,255,255,0.5);
  --white-40: rgba(255,255,255,0.4);
  --white-30: rgba(255,255,255,0.3);
  --white-25: rgba(255,255,255,0.25);
  --white-06: rgba(255,255,255,0.06);
  --white-04: rgba(255,255,255,0.04);
  --white-02: rgba(255,255,255,0.02);
  --indigo: #818cf8;
  --indigo-dim: rgba(129,140,248,0.6);
  --indigo-glow: rgba(99,102,241,0.04);
}

html { background: var(--base); color: var(--white); scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
::selection { background: rgba(99,102,241,0.3); }

a { color: var(--white); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--white-60); }
img { max-width: 100%; display: block; }

/* ── Typography ── */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; color: var(--white); line-height: 1.1; }
h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); line-height: 1.15; }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
.dim { color: var(--white-40); }
.label { color: var(--indigo); font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }

/* ── Layout ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 48px; } }
.section { padding: 96px 0; }
@media (min-width: 768px) { .section { padding: 144px 0; } }
.section--surface { background: var(--surface); }
.section--border { border-top: 1px solid var(--white-06); border-bottom: 1px solid var(--white-06); }
.max-w-3xl { max-width: 768px; }
.max-w-4xl { max-width: 896px; }

/* ── Grid ── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr 1fr; } }
.split { display: grid; grid-template-columns: 1fr; gap: 64px; align-items: start; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 96px; } }

/* ── Components ── */
.btn { display: inline-block; padding: 14px 32px; font-size: 15px; font-weight: 500; border-radius: 0; transition: all 0.2s; text-align: center; cursor: pointer; }
.btn--primary { background: var(--white); color: var(--base); }
.btn--primary:hover { background: var(--white-80); color: var(--base); }
.btn--outline { border: 1px solid var(--white-25); color: var(--white); background: transparent; }
.btn--outline:hover { border-color: var(--white-40); background: var(--white-04); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

.card { padding: 32px; border-radius: 0; border: 1px solid var(--white-06); background: var(--white-02); transition: all 0.3s; }
.card:hover { background: var(--white-04); border-color: rgba(255,255,255,0.1); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--white-50); font-size: 15px; line-height: 1.7; }
.card--accent { border-color: rgba(129,140,248,0.2); background: rgba(99,102,241,0.04); }

/* ── Header ── */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(9,9,11,0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--white-06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: 'DM Serif Display', Georgia, serif; font-size: 1.25rem; color: var(--white); letter-spacing: -0.02em; }
.logo:hover { color: var(--white-80); }
.logo b { font-weight: 700; }
.nav { display: none; align-items: center; gap: 32px; }
.nav a { font-size: 14px; color: var(--white-50); font-weight: 500; }
.nav a:hover { color: var(--white); }
.nav-cta { padding: 8px 20px; background: var(--white); color: var(--base) !important; border-radius: 0; font-size: 14px; }
.nav-cta:hover { background: var(--white-80); color: var(--base) !important; }
@media (min-width: 768px) { .nav { display: flex; } .hamburger { display: none !important; } }
.hamburger { background: none; border: none; cursor: pointer; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 24px; height: 1px; background: var(--white); transition: all 0.3s; }
.mobile-menu { display: none; background: rgba(9,9,11,0.95); backdrop-filter: blur(20px); border-top: 1px solid var(--white-06); padding: 32px 24px; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 0; font-size: 18px; color: var(--white-60); font-weight: 500; }
.mobile-menu a:hover { color: var(--white); }
.header-spacer { height: 72px; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--white-06); padding: 80px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer h4 { font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white-30); margin-bottom: 20px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 12px; }
.footer a { color: var(--white-50); font-size: 15px; }
.footer a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--white-06); margin-top: 48px; padding-top: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--white-25); }

/* ── Decorative squares ── */
.has-squares { position: relative; overflow: hidden; }
.has-squares::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    /* Large subtle squares */
    linear-gradient(rgba(255,255,255,0.012), rgba(255,255,255,0.012)) no-repeat 8% 15% / 140px 140px,
    linear-gradient(rgba(255,255,255,0.015), rgba(255,255,255,0.015)) no-repeat 85% 20% / 120px 120px,
    linear-gradient(rgba(255,255,255,0.01), rgba(255,255,255,0.01)) no-repeat 70% 75% / 180px 180px,
    /* Medium squares */
    linear-gradient(rgba(255,255,255,0.02), rgba(255,255,255,0.02)) no-repeat 25% 80% / 80px 80px,
    linear-gradient(rgba(255,255,255,0.018), rgba(255,255,255,0.018)) no-repeat 92% 60% / 60px 60px,
    linear-gradient(rgba(255,255,255,0.015), rgba(255,255,255,0.015)) no-repeat 50% 10% / 50px 50px,
    /* Small indigo-tinted squares */
    linear-gradient(rgba(129,140,248,0.04), rgba(129,140,248,0.04)) no-repeat 5% 70% / 40px 40px,
    linear-gradient(rgba(129,140,248,0.035), rgba(129,140,248,0.035)) no-repeat 78% 5% / 35px 35px,
    linear-gradient(rgba(129,140,248,0.03), rgba(129,140,248,0.03)) no-repeat 40% 55% / 30px 30px;
}
/* Alternate scatter for variety on even sections */
.has-squares--alt::before {
  background:
    linear-gradient(rgba(255,255,255,0.015), rgba(255,255,255,0.015)) no-repeat 90% 12% / 160px 160px,
    linear-gradient(rgba(255,255,255,0.012), rgba(255,255,255,0.012)) no-repeat 12% 30% / 130px 130px,
    linear-gradient(rgba(255,255,255,0.01), rgba(255,255,255,0.01)) no-repeat 35% 85% / 100px 100px,
    linear-gradient(rgba(255,255,255,0.02), rgba(255,255,255,0.02)) no-repeat 75% 65% / 70px 70px,
    linear-gradient(rgba(255,255,255,0.018), rgba(255,255,255,0.018)) no-repeat 55% 5% / 55px 55px,
    linear-gradient(rgba(129,140,248,0.04), rgba(129,140,248,0.04)) no-repeat 95% 80% / 45px 45px,
    linear-gradient(rgba(129,140,248,0.03), rgba(129,140,248,0.03)) no-repeat 18% 90% / 35px 35px,
    linear-gradient(rgba(129,140,248,0.035), rgba(129,140,248,0.035)) no-repeat 60% 40% / 28px 28px;
}

/* ── Hero ── */
.hero { padding: 80px 0 96px; position: relative; overflow: hidden; }
@media (min-width: 768px) { .hero { padding: 128px 0 144px; } }
.hero-glow { position: absolute; top: -200px; left: 50%; transform: translateX(-50%); width: 800px; height: 600px; background: var(--indigo-glow); border-radius: 50%; filter: blur(80px); pointer-events: none; }

/* ── Client Logos ── */
.logos-track { overflow: hidden; position: relative; width: 100%; }
.logos { display: flex; align-items: center; gap: 64px; width: max-content; animation: scroll-logos 20s linear infinite; }
.logos img { height: 40px !important; width: auto !important; max-height: 40px !important; opacity: 0.6; filter: grayscale(1) brightness(0.2); transition: opacity 0.3s; object-fit: contain; flex-shrink: 0; }
.logos img:hover { opacity: 0.9; }
.logos-track:hover .logos { animation-play-state: paused; }
@keyframes scroll-logos { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── Methodology Steps ── */
.step { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 56px 0; border-top: 1px solid var(--white-06); }
@media (min-width: 1024px) { .step { grid-template-columns: 100px 1fr; gap: 48px; } }
.step-num { color: var(--indigo-dim); font-family: monospace; font-size: 14px; }
.step h3 { font-size: clamp(1.5rem, 3vw, 1.8rem); margin-bottom: 8px; }
.step .label { font-size: 13px; margin-bottom: 20px; }
.step p { color: var(--white-60); line-height: 1.75; max-width: 640px; }

/* ── Outcomes list ── */
.outcome { display: flex; align-items: flex-start; gap: 20px; padding: 24px; border-radius: 0; transition: background 0.2s; }
.outcome:hover { background: var(--white-02); }
.outcome-num { color: var(--indigo-dim); font-size: 14px; font-family: monospace; flex-shrink: 0; margin-top: 2px; }
.outcome p { color: var(--white-80); line-height: 1.6; }

/* ── Blog list ── */
.article-link { display: block; padding: 32px 24px; border-top: 1px solid var(--white-06); border-radius: 0; transition: background 0.2s; }
.article-link:hover { background: var(--white-02); }
.article-link .label { font-size: 12px; margin-bottom: 8px; color: var(--indigo-dim); }
.article-link h3 { font-size: 1.25rem; margin-bottom: 8px; transition: color 0.2s; }
.article-link:hover h3 { color: var(--white-80); }
.article-link .desc { color: var(--white-40); font-size: 15px; line-height: 1.6; }
.article-link time { color: var(--white-25); font-size: 14px; white-space: nowrap; }
.article-row { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 768px) { .article-row { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 32px; } }

/* ── Blog prose ── */
.prose { color: var(--white-60); line-height: 1.8; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 1.8rem); margin: 56px 0 20px; color: var(--white); }
.prose h3 { font-size: 1.25rem; margin: 40px 0 16px; color: var(--white); }
.prose p { margin-bottom: 20px; }
.prose ul, .prose ol { margin-bottom: 20px; padding-left: 24px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--indigo); text-decoration: underline; }
.prose a:hover { color: #a5b4fc; }
.prose strong { color: var(--white); font-weight: 500; }
.prose blockquote { border-left: 2px solid rgba(129,140,248,0.3); padding-left: 24px; font-style: italic; color: var(--white-40); margin: 32px 0; }

/* ── Contact form ── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; color: var(--white-40); margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group textarea { width: 100%; background: var(--white-04); border: 1px solid rgba(255,255,255,0.08); border-radius: 0; padding: 12px 16px; color: var(--white); font-family: inherit; font-size: 16px; transition: all 0.2s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: rgba(129,140,248,0.5); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.form-group textarea { resize: none; }

/* ── Links ── */
.link-indigo { color: var(--indigo); }
.link-indigo:hover { color: #a5b4fc; }

/* ── Text helpers ── */
.text-secondary { color: var(--white-60); }
.text-lg { font-size: 18px; }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.mb-12 { margin-bottom: 48px; }
.mb-14 { margin-bottom: 56px; }
.mb-16 { margin-bottom: 64px; }
.mb-20 { margin-bottom: 80px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.pt-2 { padding-top: 8px; }
