/* ============================================================
   Mavix Solutions — Global Stylesheet
   Light, clean, gradient-accent design system.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --brand-primary: #6D3FE7;
  --brand-secondary: #8B5CF6;
  --brand-accent: #3B82F6;
  --brand-gradient: linear-gradient(135deg, #6D3FE7 0%, #8B5CF6 50%, #3B82F6 100%);
  --brand-gradient-soft: linear-gradient(135deg, rgba(109, 63, 231, .08) 0%, rgba(59, 130, 246, .08) 100%);

  /* Ink + surfaces */
  --ink-900: #0F0F1A;
  --ink-700: #1F2937;
  --ink-600: #4B5563;
  --ink-500: #6B7280;
  --ink-400: #9CA3AF;
  --surface-0: #FFFFFF;
  --surface-1: #F8F7FF;
  --surface-2: #F1EFFB;
  --surface-dark: #0F0F1A;
  --border: #E5E7EB;
  --border-soft: #EFEEF5;

  /* Status */
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --neutral: #6B7280;

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 15, 26, .04), 0 1px 1px rgba(15, 15, 26, .03);
  --shadow-md: 0 4px 12px rgba(15, 15, 26, .06);
  --shadow-lg: 0 12px 32px rgba(109, 63, 231, .10);
  --shadow-xl: 0 24px 60px rgba(109, 63, 231, .14);

  /* Motion */
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* Type scale */
  --fs-display: clamp(2.6rem, 6vw + 1rem, 5.25rem);
  --fs-h1: clamp(2.2rem, 4vw + 1rem, 3.75rem);
  --fs-h2: clamp(1.75rem, 2.4vw + 1rem, 2.5rem);
  --fs-h3: 1.5rem;
  --fs-h4: 1.25rem;
  --fs-body: 1rem;
  --fs-sm: .9375rem;
  --fs-xs: .8125rem;

  /* Layout */
  --container: 1200px;
  --nav-h: 76px;
}

@media (max-width: 640px) {
  :root { --nav-h: 72px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink-600);
  background: var(--surface-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  width: 100%;
  min-width: 0;
}
main, section { overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 999;
  background: var(--ink-900); color: #fff; padding: 10px 16px;
  border-radius: var(--r-md); transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  color: var(--ink-900);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 700;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p { color: var(--ink-600); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead { font-size: 1.125rem; color: var(--ink-600); max-width: 56ch; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
@media (max-width: 640px) { .container { padding-inline: 16px; } }

section { padding-block: clamp(64px, 8vw, 112px); position: relative; }
section.tight { padding-block: clamp(48px, 6vw, 80px); }
section.alt { background: var(--surface-1); }
section.dark { background: var(--surface-dark); color: #C9C7D6; }
section.dark h1, section.dark h2, section.dark h3, section.dark h4 { color: #fff; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head p { margin-top: 16px; font-size: 1.0625rem; }
.section-head.left { text-align: left; margin-inline: 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: .9375rem;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), color .25s var(--ease);
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 10px 24px rgba(109, 63, 231, .28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(109, 63, 231, .38); }
.btn-ghost {
  background: transparent;
  color: var(--ink-900);
  border: 1.5px solid var(--ink-900);
}
.btn-ghost:hover { background: var(--ink-900); color: #fff; }
.btn-light {
  background: #fff; color: var(--ink-900);
  border: 1px solid var(--border);
}
.btn-light:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.btn-sm { padding: 10px 18px; font-size: .8125rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--border-soft);
  box-shadow: 0 2px 16px rgba(15, 15, 26, .04);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
}
.nav-brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 auto; }
.nav-brand img { height: 36px; width: auto; max-width: 100%; display: block; }
@media (max-width: 640px) {
  .nav-brand img { height: 34px; }
}
@media (max-width: 380px) {
  .nav-brand img { height: 28px; }
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-700);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-links a:hover, .nav-links a.active {
  background: var(--surface-2);
  color: var(--brand-primary);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: #fff;
  flex: none;
}
.nav-toggle span {
  position: relative;
  display: block; width: 18px; height: 2px;
  background: var(--ink-900); border-radius: 2px;
  transition: transform .25s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px;
  background: var(--ink-900); border-radius: 2px;
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(0); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-90deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links, .nav-actions .btn:not(.nav-cta) { display: none; }
  .nav-actions .nav-cta { display: none; }
  .nav-drawer {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    left: 0;
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    max-width: 100vw;
    background: #fff;
    visibility: hidden;
    opacity: 0;
    transition: opacity .25s var(--ease), visibility .25s var(--ease);
    padding: 12px 20px 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 49;
    display: flex;
    flex-direction: column;
  }
  .nav-drawer.open { visibility: visible; opacity: 1; }
  .nav-drawer a:not(.btn) {
    display: block;
    padding: 14px 4px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink-900);
    border-bottom: 1px solid var(--border-soft);
  }
  .nav-drawer .btn {
    margin-top: auto;
    margin-bottom: 8px;
    width: 100%;
    justify-content: center;
  }
}
@media (min-width: 901px) { .nav-drawer { display: none !important; } }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(72px, 9vw, 128px) clamp(48px, 6vw, 88px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -10% -10% auto auto;
  width: 60vw; max-width: 720px; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(109, 63, 231, .18), rgba(59, 130, 246, .08) 60%, transparent 75%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
}
.hero::after {
  content: ""; position: absolute; bottom: -20%; left: -10%;
  width: 50vw; max-width: 580px; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(139, 92, 246, .14), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.hero-grid > * { min-width: 0; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero h1 {
  font-size: var(--fs-display);
  font-weight: 700;
  letter-spacing: -.025em;
  margin-top: 20px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.hero p.lead { margin-top: 22px; font-size: 1.1875rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-trust {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px dashed var(--border);
}
.hero-trust p {
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-400);
  font-weight: 600;
  margin-bottom: 16px;
}
.hero-trust-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 32px;
  opacity: .7;
}
.hero-trust-row span {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--ink-500);
  letter-spacing: -.01em;
}

/* Hero visual — animated M card */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin-inline: auto;
}
.hero-card {
  position: absolute; inset: 0;
  border-radius: var(--r-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .6)),
    var(--brand-gradient);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: grid; place-items: center;
}
.hero-card::before {
  content: ""; position: absolute; inset: 0;
  background: var(--brand-gradient);
  opacity: .9;
  z-index: 0;
}
.hero-card-inner {
  position: relative; z-index: 1;
  width: 86%; height: 86%;
  border-radius: calc(var(--r-xl) - 8px);
  background: rgba(255, 255, 255, .96);
  display: grid; place-items: center;
  padding: 28px;
}
.hero-card-inner img { width: 80%; max-width: 320px; }
.hero-orb {
  position: absolute; border-radius: 50%;
  background: var(--brand-gradient);
  filter: blur(1px);
  animation: float 7s ease-in-out infinite;
}
.hero-orb-1 { width: 90px; height: 90px; top: -22px; right: -22px; opacity: .85; }
.hero-orb-2 { width: 60px; height: 60px; bottom: -14px; left: -14px; opacity: .7; animation-delay: -2s; }
.hero-orb-3 { width: 26px; height: 26px; top: 40%; left: -10px; opacity: .9; animation-delay: -4s; }
@keyframes float {
  0%, 100% { transform: translateY(0) }
  50% { transform: translateY(-14px) }
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  border-radius: var(--r-lg);
  padding: 1.5px;
  background: var(--brand-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s var(--ease);
  pointer-events: none;
}
.card:hover::before { opacity: 1; }

.service-card .icon {
  width: 56px; height: 56px; border-radius: var(--r-md);
  background: var(--brand-gradient-soft);
  display: grid; place-items: center;
  color: var(--brand-primary);
  margin-bottom: 20px;
  transition: transform .4s var(--ease);
}
.service-card .icon svg { width: 26px; height: 26px; }
.service-card:hover .icon { transform: rotate(-6deg) scale(1.05); }
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: var(--fs-sm); }
.service-card .arrow {
  position: absolute;
  bottom: 28px; right: 28px;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2);
  color: var(--brand-primary);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.service-card:hover .arrow { background: var(--brand-gradient); color: #fff; }
.service-card .arrow svg { width: 16px; height: 16px; }

/* ---------- Process timeline ---------- */
.process { position: relative; }
.process .grid-4 { gap: 32px; position: relative; }
.process-step { text-align: center; }
.process-step .num {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.5rem;
  background: #fff;
  color: var(--brand-primary);
  position: relative;
  z-index: 1;
}
.process-step .num::before {
  content: ""; position: absolute; inset: -2px;
  border-radius: 50%;
  background: var(--brand-gradient);
  z-index: -1;
}
.process-step .num::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%;
  background: #fff;
  z-index: -1;
}
.process-step h4 { margin-bottom: 8px; }
.process-step p { font-size: var(--fs-sm); }
@media (min-width: 961px) {
  .process .grid-4::before {
    content: ""; position: absolute;
    top: 32px; left: 12%; right: 12%; height: 2px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
    opacity: .25;
    z-index: 0;
  }
}

/* ---------- Work / case studies ---------- */
.work-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-1);
  border: 1px solid var(--border);
  display: block;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.work-thumb {
  aspect-ratio: 16 / 10;
  background: var(--brand-gradient);
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -.02em;
  padding: 24px;
  text-align: center;
}
.work-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.work-card:hover .work-thumb img { transform: scale(1.04); }
.work-thumb.alt-1 { background: linear-gradient(135deg, #6D3FE7 0%, #EC4899 100%); }
.work-thumb.alt-2 { background: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%); }
.work-thumb.alt-3 { background: linear-gradient(135deg, #8B5CF6 0%, #F59E0B 100%); }
.work-thumb.alt-4 { background: linear-gradient(135deg, #0F0F1A 0%, #6D3FE7 100%); }
.work-thumb.alt-5 { background: linear-gradient(135deg, #EC4899 0%, #6D3FE7 100%); }
.work-body { padding: 24px 28px 28px; }
.work-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--brand-primary);
  margin-bottom: 8px;
}
.work-body h3 { font-size: 1.25rem; margin-bottom: 8px; }
.work-metric {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  display: flex; justify-content: space-between; align-items: baseline;
}
.work-metric strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  color: var(--ink-900);
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.work-metric span { font-size: var(--fs-xs); color: var(--ink-500); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Stats ---------- */
.stats { text-align: center; }
.stat .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 700;
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat p { margin-top: 8px; color: var(--ink-500); font-size: var(--fs-sm); }

/* ---------- Testimonials ---------- */
.testimonials-track {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  min-height: 280px;
}
.testimonial {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(12px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  padding: 40px;
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.testimonial.active { opacity: 1; transform: translateY(0); }
.testimonial blockquote {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.375rem;
  line-height: 1.4;
  color: var(--ink-900);
  margin: 0 0 24px;
  font-weight: 500;
  letter-spacing: -.01em;
}
.testimonial blockquote::before { content: "“"; color: var(--brand-primary); font-size: 2em; line-height: 0; vertical-align: -.3em; margin-right: 4px; }
.testimonial-author { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.testimonial-author strong { font-family: 'Space Grotesk', sans-serif; }
.testimonial-author span { font-size: var(--fs-sm); color: var(--ink-500); }
.testimonial-dots {
  display: flex; gap: 8px; justify-content: center; margin-top: 28px;
}
.testimonial-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border);
  transition: background .25s var(--ease), width .25s var(--ease);
}
.testimonial-dots button.active { background: var(--brand-gradient); width: 28px; border-radius: 4px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 72px);
  background: var(--brand-gradient);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before, .cta-banner::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  filter: blur(4px);
}
.cta-banner::before { width: 220px; height: 220px; top: -80px; left: -60px; }
.cta-banner::after  { width: 280px; height: 280px; bottom: -120px; right: -80px; }
.cta-banner h2 { color: #fff; font-size: clamp(1.75rem, 3vw, 2.75rem); position: relative; }
.cta-banner p { color: rgba(255, 255, 255, .85); margin: 12px auto 28px; max-width: 56ch; position: relative; }
.cta-banner .btn { position: relative; }
.cta-banner .btn-primary {
  background: #fff;
  color: var(--brand-primary);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}
.cta-banner .btn-primary:hover { color: var(--brand-accent); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-dark);
  color: #C9C7D6;
  padding: 80px 0 32px;
}
.site-footer h4 {
  color: #fff;
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 20px;
}
.site-footer a { color: #C9C7D6; transition: color .2s var(--ease); display: inline-block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 38px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-brand p { color: #9D9BB2; max-width: 320px; font-size: var(--fs-sm); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  padding: 0;
}
.footer-social a:hover { background: var(--brand-gradient); border-color: transparent; }
.footer-social svg { width: 16px; height: 16px; color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: var(--fs-sm);
  color: #7E7C95;
}
.footer-bottom a { color: #7E7C95; padding: 0; margin-left: 18px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  padding: clamp(80px, 8vw, 120px) 0 clamp(40px, 5vw, 64px);
  text-align: center;
  position: relative;
  background:
    radial-gradient(800px 300px at 50% 0%, rgba(109, 63, 231, .08), transparent 60%),
    var(--surface-0);
}
.page-hero h1 { font-size: var(--fs-h1); max-width: 920px; margin: 16px auto 18px; }
.page-hero p { max-width: 640px; margin: 0 auto; font-size: 1.0625rem; }

/* ---------- Service detail blocks ---------- */
.service-block {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: start;
  padding-block: 64px;
  border-top: 1px solid var(--border-soft);
}
.service-block:first-of-type { border-top: 0; }
@media (max-width: 900px) { .service-block { grid-template-columns: 1fr; gap: 32px; } }
.service-block .visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  background: var(--brand-gradient);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.service-block .visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.service-block:hover .visual img { transform: scale(1.03); }
.service-block .visual::after {
  content: ""; position: absolute; inset: 14px;
  border: 1.5px dashed rgba(255, 255, 255, .55);
  border-radius: calc(var(--r-lg) - 6px);
  pointer-events: none;
  z-index: 1;
}
.service-block h2 { margin: 12px 0 16px; }
.service-block ul { margin: 24px 0; }
.service-block li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0;
  font-size: var(--fs-sm);
  border-bottom: 1px dashed var(--border-soft);
}
.service-block li:last-child { border-bottom: 0; }
.service-block li svg {
  width: 20px; height: 20px; flex: none;
  color: var(--brand-primary);
  margin-top: 2px;
}
.service-block .deliverables {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 24px;
}
.service-block .deliverables span {
  font-size: var(--fs-xs);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--brand-primary);
  font-weight: 500;
}

/* ---------- About ---------- */
.values .card { padding: 28px; }
.values .icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--brand-gradient-soft);
  display: grid; place-items: center;
  color: var(--brand-primary);
  margin-bottom: 16px;
}
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-card { text-align: center; padding: 24px; }
.team-avatar {
  width: 96px; height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: grid; place-items: center;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
}
.team-card strong { display: block; font-family: 'Space Grotesk', sans-serif; color: var(--ink-900); margin-bottom: 4px; }
.team-card span { font-size: var(--fs-sm); color: var(--ink-500); }

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.compare-table th, .compare-table td {
  padding: 18px 24px;
  text-align: left;
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--border-soft);
}
.compare-table th {
  background: var(--surface-1);
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink-900);
  font-weight: 600;
}
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table td.us { color: var(--ink-900); font-weight: 500; }
.compare-table td.them { color: var(--ink-500); }

/* ---------- Filter chips (work) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.chip {
  padding: 10px 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-700);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.chip.active {
  background: var(--brand-gradient);
  color: #fff;
  border-color: transparent;
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-900);
}
.field label .req { color: var(--danger); }
.input, .select, .textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink-900);
  font-size: .9375rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input:focus, .select:focus, .textarea:focus {
  outline: 0;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(109, 63, 231, .12);
}
.textarea { resize: vertical; min-height: 140px; }
.field .err { font-size: var(--fs-xs); color: var(--danger); display: none; }
.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea { border-color: var(--danger); }
.field.has-error .err { display: block; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-status {
  padding: 16px 20px;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  margin-top: 8px;
  display: none;
}
.form-status.ok { display: block; background: rgba(16, 185, 129, .10); color: var(--success); border: 1px solid rgba(16, 185, 129, .25); }
.form-status.err { display: block; background: rgba(239, 68, 68, .10); color: var(--danger); border: 1px solid rgba(239, 68, 68, .25); }

/* ---------- Contact info card ---------- */
.contact-info { display: grid; gap: 20px; margin-top: 28px; }
.contact-info-item {
  display: flex; gap: 14px; align-items: flex-start;
}
.contact-info-item .icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--brand-gradient-soft);
  color: var(--brand-primary);
  flex: none;
}
.contact-info-item strong { display: block; color: var(--ink-900); margin-bottom: 2px; font-family: 'Space Grotesk', sans-serif; }
.contact-info-item p, .contact-info-item a { font-size: var(--fs-sm); color: var(--ink-600); }
.contact-info-item a:hover { color: var(--brand-primary); }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ---------- Admin styles ---------- */
.admin-shell { background: var(--surface-1); min-height: 100vh; }
.admin-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.admin-header .container { display: flex; align-items: center; justify-content: space-between; }
.admin-header img { height: 32px; }
.admin-header .meta { display: flex; align-items: center; gap: 16px; font-size: var(--fs-sm); color: var(--ink-500); }
.admin-main { padding: 40px 0; }

.admin-login-shell {
  min-height: 100vh;
  display: grid; place-items: center;
  background: var(--surface-1);
  padding: 24px;
}
.admin-login-card {
  width: 100%; max-width: 420px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
  text-align: center;
}
.admin-login-card img { height: 40px; margin: 0 auto 24px; }
.admin-login-card h1 { font-size: 1.5rem; margin-bottom: 8px; }
.admin-login-card p { font-size: var(--fs-sm); margin-bottom: 28px; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
@media (max-width: 800px) { .stat-cards { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
}
.stat-card .label { font-size: var(--fs-xs); color: var(--ink-500); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.stat-card .value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-top: 8px;
}

.admin-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md) var(--r-md) 0 0;
  padding: 16px 20px;
  flex-wrap: wrap; gap: 16px;
}
.admin-tabs { display: flex; gap: 4px; }
.admin-tab {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-600);
  background: var(--surface-1);
}
.admin-tab.active { background: var(--brand-gradient); color: #fff; }

.admin-search {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  background: var(--surface-1);
}
.admin-search input {
  border: 0; background: transparent; outline: 0;
  font-size: var(--fs-sm); width: 220px;
}
.admin-search svg { width: 16px; height: 16px; color: var(--ink-400); }

.leads-table {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 var(--r-md) var(--r-md);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.leads-table th, .leads-table td {
  padding: 14px 20px;
  text-align: left;
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--border-soft);
}
.leads-table th {
  background: var(--surface-1);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--ink-900);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.leads-table tr:last-child td { border-bottom: 0; }
.leads-table tr:hover td { background: var(--surface-1); }
.leads-table .actions { display: flex; gap: 8px; }

.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.status-pill.new { background: rgba(245, 158, 11, .12); color: #B45309; }
.status-pill.contacted { background: rgba(16, 185, 129, .12); color: #047857; }
.status-pill.closed { background: rgba(107, 114, 128, .14); color: #4B5563; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.status-select {
  padding: 6px 28px 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.empty-state {
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  padding: 64px 24px;
  text-align: center;
  color: var(--ink-500);
}
.empty-state h3 { color: var(--ink-900); margin-bottom: 8px; }

.flash {
  padding: 14px 18px;
  border-radius: var(--r-md);
  margin-bottom: 24px;
  font-size: var(--fs-sm);
}
.flash.err { background: rgba(239, 68, 68, .10); color: var(--danger); border: 1px solid rgba(239, 68, 68, .25); }
.flash.ok  { background: rgba(16, 185, 129, .10); color: var(--success); border: 1px solid rgba(16, 185, 129, .25); }

/* ---------- Legal / long-form pages ---------- */
.legal { padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 8vw, 112px); }
.legal-wrap {
  max-width: 760px;
  margin-inline: auto;
}
.legal-updated {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-primary);
  background: var(--surface-2);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}
.legal h2 {
  font-size: 1.5rem;
  margin-top: 48px;
  margin-bottom: 16px;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 {
  font-size: 1.125rem;
  margin-top: 28px;
  margin-bottom: 8px;
}
.legal p { margin-bottom: 16px; line-height: 1.7; }
.legal ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 16px;
}
.legal ul li {
  margin-bottom: 8px;
  line-height: 1.65;
}
.legal a {
  color: var(--brand-primary);
  border-bottom: 1px solid currentColor;
}
.legal a:hover { color: var(--brand-accent); }
.legal-toc {
  background: var(--surface-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 24px 28px;
  margin: 32px 0 48px;
}
.legal-toc h4 {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-500);
  margin-bottom: 12px;
}
.legal-toc ol {
  margin: 0; padding-left: 20px;
  list-style: decimal;
  font-size: var(--fs-sm);
  columns: 2;
  column-gap: 32px;
}
.legal-toc li { margin-bottom: 6px; break-inside: avoid; }
.legal-toc a { color: var(--ink-700); border: 0; }
.legal-toc a:hover { color: var(--brand-primary); }
@media (max-width: 600px) { .legal-toc ol { columns: 1; } }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 16px; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
