/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0e0e0c; --ink-2: #3a3a36; --ink-3: #7a7870;
  --paper: #f5f3ee; --paper-2: #eceae3; --paper-3: #e2dfd6;
  --accent: #4a3fd4; --accent-light: #7b72e8; --accent-pale: #ededfb;
  --teal: #0e8f72; --teal-pale: #e0f5ef;
  --amber: #b86c0e; --amber-pale: #fdf0de;
  --cursor-x: 50vw;
  --cursor-y: 35vh;
  --serif: 'DM Serif Display', Georgia, serif;
  --mono: 'DM Mono', 'Courier New', monospace;
  --sans: 'DM Sans', system-ui, sans-serif;
  --nav-h: 68px; --max: 1160px; --r: 12px;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-std: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink); line-height: 1.65; overflow-x: hidden; transition: opacity 0.4s var(--ease-std); }
body.loading { overflow: hidden; height: 100vh; }

/* ── PRELOADER ── */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.8s var(--ease-std);
}

#preloader.loaded {
  transform: translateY(-100%);
  pointer-events: none;
}

.preloader-content {
  display: flex; flex-direction: column; align-items: center; gap: 32px;
  max-width: 300px; width: 100%;
}

.preloader-logo {
  width: 80px; height: 80px;
  animation: logoIn 1.2s var(--ease-spring) both;
}
.preloader-logo svg { width: 100%; height: 100%; }

.preloader-text {
  font-family: var(--serif); font-size: 28px; color: var(--paper);
  letter-spacing: -0.5px; display: flex; gap: 2px;
}
.p-letter {
  display: inline-block; opacity: 0; transform: translateY(10px);
  animation: letterIn 0.5s var(--ease-out) forwards;
}
.p-space { width: 8px; }

/* Stagger letters */
.p-letter:nth-child(1)  { animation-delay: 0.40s; }
.p-letter:nth-child(2)  { animation-delay: 0.45s; }
.p-letter:nth-child(3)  { animation-delay: 0.50s; }
.p-letter:nth-child(4)  { animation-delay: 0.55s; }
.p-letter:nth-child(6)  { animation-delay: 0.65s; }
.p-letter:nth-child(7)  { animation-delay: 0.70s; }
.p-letter:nth-child(8)  { animation-delay: 0.75s; }
.p-letter:nth-child(9)  { animation-delay: 0.80s; }
.p-letter:nth-child(10) { animation-delay: 0.85s; }
.p-letter:nth-child(11) { animation-delay: 0.90s; }
.p-letter:nth-child(12) { animation-delay: 0.95s; }
.p-letter:nth-child(13) { animation-delay: 1.00s; }
.p-letter:nth-child(14) { animation-delay: 1.05s; }
.p-letter:nth-child(15) { animation-delay: 1.10s; }

.preloader-bar {
  width: 140px; height: 2px; background: rgba(245,243,238,0.1);
  border-radius: 100px; overflow: hidden; position: relative;
}
.preloader-progress {
  position: absolute; top: 0; left: 0; height: 100%;
  width: 0%; background: var(--accent);
  animation: progressLoad 1.8s ease-in-out forwards;
}

@keyframes logoIn {
  from { opacity: 0; transform: scale(0.6) rotate(-10deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes letterIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes progressLoad {
  0% { width: 0%; }
  30% { width: 40%; }
  60% { width: 70%; }
  100% { width: 100%; }
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(245,243,238,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--paper-3);
  display: flex; align-items: center;
  transition: box-shadow 0.3s var(--ease-std);
}
.nav-inner { max-width: var(--max); width: 100%; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.nav-logo svg { width: 36px; height: 36px; flex-shrink: 0; }
.nav-logo-text { font-family: var(--serif); font-size: 20px; letter-spacing: -0.3px; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 400; color: var(--ink-2);
  text-decoration: none; letter-spacing: 0.01em;
  transition: color 0.2s var(--ease-std);
  position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 100%;
  height: 1px; background: var(--accent);
  transition: right 0.3s var(--ease-std);
}
.nav-links a:not(.nav-cta):hover::after { right: 0; }
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--ink); color: var(--paper) !important;
  padding: 9px 20px; border-radius: 8px;
  font-size: 13px !important; font-weight: 500 !important;
  transition: background 0.2s var(--ease-std), transform 0.2s var(--ease-spring) !important;
}
.nav-cta:hover { background: var(--accent) !important; transform: translateY(-1px); }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px 0; transition: all 0.3s var(--ease-std); }
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  --hero-mx: 0px;
  --hero-my: 0px;
  --hero-scroll: 0px;
  min-height: 100vh; padding-top: var(--nav-h);
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--paper-3) 1px, transparent 1px), linear-gradient(90deg, var(--paper-3) 1px, transparent 1px);
  background-size: 60px 60px; opacity: 0.5;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 100%);
  animation: gridDrift 26s linear infinite;
}
.hero-bg::after {
  content: ''; position: absolute; width: 600px; height: 600px;
  top: 10%; right: -100px;
  background: radial-gradient(circle, rgba(74,63,212,0.09) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatA 12s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-blob-2 {
  position: absolute; width: 420px; height: 420px; bottom: 10%; left: -80px;
  background: radial-gradient(circle, rgba(14,143,114,0.08) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
  animation: floatB 14s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 60px 60px, 60px 60px; }
}
@keyframes floatA {
  from {
    transform: translate3d(
      calc(var(--hero-mx) + 0px),
      calc(var(--hero-my) + var(--hero-scroll) + 0px),
      0
    ) scale(1);
  }
  to {
    transform: translate3d(
      calc(var(--hero-mx) - 30px),
      calc(var(--hero-my) + var(--hero-scroll) + 40px),
      0
    ) scale(1.07);
  }
}
@keyframes floatB {
  from {
    transform: translate3d(
      calc(var(--hero-mx) + 0px),
      calc(var(--hero-my) + var(--hero-scroll) + 0px),
      0
    ) scale(1);
  }
  to {
    transform: translate3d(
      calc(var(--hero-mx) + 24px),
      calc(var(--hero-my) + var(--hero-scroll) - 32px),
      0
    ) scale(1.05);
  }
}

.hero-inner { max-width: var(--max); width: 100%; margin: 0 auto; padding: 80px 40px 100px; position: relative; z-index: 1; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--accent-pale); border: 1px solid rgba(74,63,212,0.15);
  padding: 5px 12px; border-radius: 100px; margin-bottom: 28px;
  animation: heroFadeUp 0.9s var(--ease-out) both;
}
.hero-tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); box-shadow:0 0 0 0 rgba(74,63,212,0.35); }
  50%      { opacity:0.6; transform:scale(0.75); box-shadow:0 0 0 6px rgba(74,63,212,0); }
}
.hero-h1 { font-family: var(--serif); font-size: clamp(46px,7vw,88px); line-height: 1.02; letter-spacing: -2px; max-width: 800px; margin-bottom: 28px; animation: heroFadeUp 0.9s 0.12s var(--ease-out) both; }
.hero-h1 em { font-style: italic; color: var(--accent); }
.hero-sub { font-size: 18px; font-weight: 300; color: var(--ink-2); max-width: 540px; line-height: 1.7; margin-bottom: 44px; animation: heroFadeUp 0.9s 0.22s var(--ease-out) both; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; animation: heroFadeUp 0.9s 0.32s var(--ease-out) both; }
.hero-stats { display: flex; gap: 48px; margin-top: 72px; padding-top: 36px; border-top: 1px solid var(--paper-3); animation: heroFadeUp 0.9s 0.44s var(--ease-out) both; }
.stat-num { font-family: var(--serif); font-size: 36px; letter-spacing: -1px; line-height: 1; }
.stat-label { font-size: 13px; color: var(--ink-3); margin-top: 4px; font-family: var(--mono); letter-spacing: 0.04em; }
@keyframes heroFadeUp { from { opacity:0; transform:translateY(28px); filter: blur(8px); } to { opacity:1; transform:translateY(0); filter: blur(0); } }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--ink); color: var(--paper);
  padding: 14px 30px; border-radius: 10px;
  font-size: 15px; font-weight: 500; text-decoration: none; letter-spacing: -0.1px;
  transition: background 0.25s, transform 0.25s var(--ease-spring), box-shadow 0.25s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(74,63,212,0.28); }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s var(--ease-std);
}
.btn-primary:hover::after { left: 100%; }
.btn-secondary { color: var(--ink-2); font-size: 14px; font-weight: 400; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s; }
.btn-secondary:hover { color: var(--accent); }
.btn-arrow { font-size: 18px; transition: transform 0.25s var(--ease-spring); display: inline-block; }
.btn-secondary:hover .btn-arrow { transform: translateX(5px); }

/* ── STRIP ── */
.strip {
  background:
    radial-gradient(900px circle at var(--cursor-x) var(--cursor-y), rgba(74,63,212,0.035) 0%, transparent 60%),
    var(--paper-2);
  border-top: 1px solid var(--paper-3);
  border-bottom: 1px solid var(--paper-3);
  padding: 32px 0;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
}
.strip-label { text-align: center; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 32px; position: relative; z-index: 2; }
.strip-track-wrapper { position: relative; width: 100%; overflow: hidden; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.strip-track { display: flex; width: max-content; animation: stripScroll 24s linear infinite; }
.strip-track:hover { animation-play-state: paused; }
.strip-logos { display: flex; align-items: center; justify-content: center; gap: 80px; padding-right: 80px; }
.strip-logo { font-family: var(--mono); font-size: 15px; font-weight: 500; letter-spacing: 0.05em; color: var(--ink-2); opacity: 0.85; white-space: nowrap; transition: opacity 0.2s, color 0.2s; cursor: default; }
.strip-logo:hover { opacity: 1; color: var(--accent); }
@keyframes stripScroll { to { transform: translateX(-50%); } }

/* ── SECTIONS ── */
section { padding: 100px 40px; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.section-h2 { font-family: var(--serif); font-size: clamp(34px,5vw,54px); letter-spacing: -1.5px; line-height: 1.08; color: var(--ink); margin-bottom: 20px; }
.section-sub { font-size: 17px; font-weight: 300; color: var(--ink-2); max-width: 520px; line-height: 1.7; }

/* ── SERVICES ── */
.services {
  background:
    radial-gradient(1000px circle at var(--cursor-x) var(--cursor-y), rgba(74,63,212,0.04) 0%, transparent 60%),
    var(--paper);
}
.services-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 60px; gap: 40px; flex-wrap: wrap; }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; background: var(--paper-3); border-radius: var(--r); overflow: hidden; }
.service-card {
  background: var(--paper);
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition:
    background 0.3s var(--ease-std),
    transform 0.45s var(--ease-spring),
    box-shadow 0.45s var(--ease-std);
}
.service-card:hover {
  background: var(--paper-2);
  --lift: -8px;
  --scale: 1.02;
  box-shadow: 0 12px 32px rgba(74,63,212,0.08);
}
.service-card::before { content: attr(data-num); position: absolute; top: 24px; right: 28px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.1em; }
.service-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; font-size: 22px; transition: transform 0.45s var(--ease-spring), box-shadow 0.45s; }
.service-card:hover .service-icon { transform: scale(1.15) rotate(-5deg); box-shadow: 0 0 20px rgba(74,63,212,0.15); }
.service-icon.purple { background: var(--accent-pale); }
.service-icon.teal { background: var(--teal-pale); }
.service-icon.amber { background: var(--amber-pale); }
.service-h3 { font-family: var(--serif); font-size: 22px; letter-spacing: -0.5px; color: var(--ink); margin-bottom: 12px; }
.service-p { font-size: 14px; color: var(--ink-2); line-height: 1.7; font-weight: 300; }

/* ── HOW ── */
.how {
  background:
    radial-gradient(900px circle at var(--cursor-x) var(--cursor-y), rgba(123,114,232,0.12) 0%, transparent 65%),
    var(--ink);
  color: var(--paper);
}
.how .section-tag { color: var(--accent-light); }
.how .section-h2 { color: var(--paper); }
.how .section-sub { color: rgba(245,243,238,0.65); }
.steps {
  --steps-progress: 0%;
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 0; margin-top: 64px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
}
.steps::after {
  content: ''; position: absolute; bottom: 0; left: 0; height: 3px;
  width: var(--steps-progress);
  background: var(--accent);
  transition: width 0.12s linear;
  z-index: 5;
}
.step { padding: 44px 32px; border-right: 1px solid rgba(255,255,255,0.08); transition: background 0.3s var(--ease-std); position: relative; z-index: 1; }
.step:last-child { border-right: none; }
.step:hover { background: rgba(255,255,255,0.04); }
.step-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: rgba(245,243,238,0.3); margin-bottom: 24px; }
.step-h3 { font-family: var(--serif); font-size: 20px; letter-spacing: -0.3px; color: var(--paper); margin-bottom: 12px; }
.step-p { font-size: 13.5px; color: rgba(245,243,238,0.55); line-height: 1.7; font-weight: 300; }

/* ── CASES ── */
.cases {
  background:
    radial-gradient(1000px circle at var(--cursor-x) var(--cursor-y), rgba(14,143,114,0.04) 0%, transparent 62%),
    var(--paper-2);
}
.cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 60px; }
.case-card {
  background: var(--paper);
  border: 1px solid var(--paper-3);
  border-radius: var(--r);
  padding: 36px;
  cursor: default;
  transition:
    border-color 0.35s var(--ease-std),
    transform 0.4s var(--ease-spring),
    box-shadow 0.35s var(--ease-std);
}
.case-card:hover {
  border-color: var(--accent);
  --lift: -3px;
  --scale: 1.01;
  box-shadow: 0 12px 32px rgba(74,63,212,0.08);
}
.case-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 100px; margin-bottom: 20px; display: inline-block; }
.case-tag.purple { background: var(--accent-pale); color: var(--accent); }
.case-tag.teal { background: var(--teal-pale); color: var(--teal); }
.case-tag.amber { background: var(--amber-pale); color: var(--amber); }
.case-h3 { font-family: var(--serif); font-size: 22px; letter-spacing: -0.5px; margin-bottom: 10px; }
.case-p { font-size: 14px; color: var(--ink-2); line-height: 1.7; font-weight: 300; }
.case-card.featured { grid-column: span 2; background: var(--ink); color: var(--paper); border-color: transparent; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.case-card.featured .case-h3 { color: var(--paper); font-size: 28px; }
.case-card.featured .case-p { color: rgba(245,243,238,0.65); }
.case-metric { font-family: var(--serif); font-size: 56px; letter-spacing: -2px; color: var(--accent-light); line-height: 1; margin-bottom: 8px; }
.case-metric-label { font-family: var(--mono); font-size: 12px; color: rgba(245,243,238,0.5); letter-spacing: 0.08em; }

/* ── TESTIMONIALS ── */
.testimonials {
  background:
    radial-gradient(1000px circle at var(--cursor-x) var(--cursor-y), rgba(74,63,212,0.03) 0%, transparent 62%),
    var(--paper);
}
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 60px; }
.testi-card {
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  border-radius: var(--r);
  padding: 32px;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.35s var(--ease-std);
}
.testi-card:hover {
  --lift: -4px;
  --scale: 1.01;
  box-shadow: 0 12px 32px rgba(0,0,0,0.07);
}
.testi-quote { font-family: var(--serif); font-size: 17px; line-height: 1.6; color: var(--ink); margin-bottom: 24px; font-style: italic; }
.testi-quote::before { content: '\201C'; color: var(--accent); font-size: 26px; line-height: 0; vertical-align: -7px; margin-right: 2px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--paper-3); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; color: var(--ink-2); flex-shrink: 0; }
.testi-name { font-size: 13px; font-weight: 500; color: var(--ink); }
.testi-role { font-size: 12px; color: var(--ink-3); font-family: var(--mono); }

/* ── PRICING ── */
.pricing {
  background:
    radial-gradient(1100px circle at var(--cursor-x) var(--cursor-y), rgba(184,108,14,0.035) 0%, transparent 62%),
    var(--paper-2);
}
.pricing-toggle-wrap { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 40px 0 0; }
.pricing-toggle-label { font-family: var(--mono); font-size: 13px; color: var(--ink-3); letter-spacing: 0.04em; cursor: pointer; transition: color 0.2s; user-select: none; }
.pricing-toggle-label.active { color: var(--ink); font-weight: 500; }
.toggle-track {
  position: relative; width: 44px; height: 24px;
  background: var(--paper-3); border-radius: 12px;
  cursor: pointer; transition: background 0.25s var(--ease-std);
  border: 1px solid var(--paper-3); flex-shrink: 0;
}
.toggle-track.on { background: var(--accent); border-color: var(--accent); }
.toggle-thumb {
  position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; background: #fff; border-radius: 50%;
  transition: transform 0.3s var(--ease-spring);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.toggle-track.on .toggle-thumb { transform: translateX(20px); }
.pricing-save-badge { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--teal-pale); color: var(--teal); padding: 3px 8px; border-radius: 100px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 48px; }
.pricing-card {
  background: var(--paper); border: 1px solid var(--paper-3); border-radius: var(--r);
  padding: 40px 36px; position: relative;
  transition: border-color 0.3s var(--ease-std), transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-std);
}
.pricing-card:hover {
  border-color: var(--accent);
  --lift: -8px;
  --scale: 1.03;
  box-shadow: 0 32px 64px rgba(74,63,212,0.12);
  z-index: 2;
}
.pricing-card.popular { background: var(--ink); color: var(--paper); border-color: var(--accent); }
.pricing-popular-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 14px; border-radius: 100px; white-space: nowrap;
}
.pricing-tier { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.pricing-card.popular .pricing-tier { color: var(--accent-light); }
.pricing-price-wrap { min-height: 64px; display: flex; flex-direction: column; justify-content: flex-end; margin-bottom: 4px; }
.pricing-price { font-family: var(--serif); font-size: 44px; letter-spacing: -1.5px; color: var(--ink); line-height: 1; transition: opacity 0.2s; display: inline-block; }
.pricing-card.popular .pricing-price { color: var(--paper); }
.pricing-price sup { font-size: 20px; font-family: var(--sans); vertical-align: super; letter-spacing: 0; font-weight: 400; }
.pricing-price.custom-price { font-size: 30px; letter-spacing: -1px; }
.pricing-period { font-size: 13px; color: var(--ink-3); font-family: var(--mono); margin-bottom: 28px; min-height: 20px; }
.pricing-card.popular .pricing-period { color: rgba(245,243,238,0.45); }
.pricing-divider { height: 1px; background: var(--paper-3); margin-bottom: 24px; }
.pricing-card.popular .pricing-divider { background: rgba(255,255,255,0.1); }
.pricing-features { list-style: none; margin-bottom: 32px; }
.pricing-features li { font-size: 14px; color: var(--ink-2); padding: 7px 0; display: flex; align-items: center; gap: 10px; font-weight: 300; border-bottom: 1px solid var(--paper-3); }
.pricing-card.popular .pricing-features li { color: rgba(245,243,238,0.75); border-bottom-color: rgba(255,255,255,0.07); }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before {
  content: ''; width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  background: var(--teal-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%230e8f72' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 10px;
}
.pricing-card.popular .pricing-features li::before {
  background-color: rgba(74,63,212,0.3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%237b72e8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.btn-pricing {
  display: block; text-align: center; padding: 13px 24px; border-radius: 10px;
  font-size: 14px; font-weight: 500; text-decoration: none;
  background: var(--ink); color: var(--paper);
  transition: background 0.25s var(--ease-std), transform 0.25s var(--ease-spring);
}
.btn-pricing:hover { background: var(--accent); transform: translateY(-1px); }
.pricing-card.popular .btn-pricing { background: var(--accent); }
.pricing-card.popular .btn-pricing:hover { background: var(--accent-light); }
.pricing-note { text-align: center; margin-top: 24px; font-size: 13px; color: var(--ink-3); font-family: var(--mono); }

/* ── PRICING FAQ ── */
.pricing-faq { margin-top: 64px; border-top: 1px solid var(--paper-3); }
.faq-item { border-bottom: 1px solid var(--paper-3); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 0; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--sans); font-size: 15px; font-weight: 400; color: var(--ink);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--accent); }
.faq-q::after {
  content: '+'; font-size: 20px; font-weight: 300; color: var(--ink-3);
  transition: transform 0.3s var(--ease-spring), color 0.2s;
  flex-shrink: 0; margin-left: 16px;
}
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); color: var(--accent); }
.faq-a {
  overflow: hidden; max-height: 0;
  transition: max-height 0.35s var(--ease-out), padding 0.35s var(--ease-out);
}
.faq-a.open { max-height: 200px; padding-bottom: 20px; }
.faq-a p { font-size: 14px; color: var(--ink-2); line-height: 1.7; font-weight: 300; }
.faq-a a { color: var(--accent); text-decoration: none; }
.faq-a a:hover { text-decoration: underline; }

/* ── CONTACT ── */
.contact-section {
  background:
    radial-gradient(900px circle at var(--cursor-x) var(--cursor-y), rgba(74,63,212,0.16) 0%, transparent 65%),
    var(--ink);
  color: var(--paper);
}
.contact-section .section-tag { color: var(--accent-light); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: start; }
.contact-details { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.contact-info-item { display: flex; align-items: center; gap: 12px; }
.contact-icon { font-size: 16px; width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-item a, .contact-info-item span { font-size: 14px; color: rgba(245,243,238,0.7); font-weight: 300; text-decoration: none; transition: color 0.2s; }
.contact-info-item a:hover { color: var(--paper); }

/* Form */
.contact-form { background: var(--paper); border-radius: 16px; padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 12px; font-weight: 500; color: var(--ink-2); font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--paper-2); border: 1px solid var(--paper-3); border-radius: 8px;
  padding: 11px 14px; font-family: var(--sans); font-size: 14px; color: var(--ink);
  outline: none; transition: border-color 0.2s var(--ease-std), box-shadow 0.2s var(--ease-std);
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--ink-3); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74,63,212,0.12);
}
.btn-submit {
  width: 100%; padding: 14px; border-radius: 10px; border: none; cursor: pointer;
  background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.25s var(--ease-std), transform 0.25s var(--ease-spring);
}
.btn-submit:hover { background: var(--accent); transform: translateY(-1px); }
.form-success { text-align: center; padding: 40px 20px; }
.form-success-icon { font-size: 36px; margin-bottom: 16px; color: var(--teal); }
.form-success h3 { font-family: var(--serif); font-size: 26px; letter-spacing: -0.5px; margin-bottom: 8px; }
.form-success p { font-size: 15px; color: var(--ink-2); font-weight: 300; }

.form-error {
  text-align: center;
  padding: 18px 18px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--amber-pale);
  border: 1px solid rgba(184,108,14,0.18);
}
.form-error p { font-size: 14px; color: var(--ink-2); font-weight: 300; line-height: 1.7; }
.form-error a { color: var(--amber); text-decoration: none; font-weight: 500; }
.form-error a:hover { text-decoration: underline; }

/* ── FOOTER ── */
footer { background: var(--ink); color: var(--paper); padding: 64px 40px 36px; }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 32px; }
.footer-brand p { font-size: 14px; color: rgba(245,243,238,0.5); line-height: 1.7; margin-top: 14px; max-width: 280px; font-weight: 300; }
.footer-col-h { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(245,243,238,0.35); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: rgba(245,243,238,0.55); text-decoration: none; transition: color 0.2s; font-weight: 300; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-family: var(--mono); font-size: 12px; color: rgba(245,243,238,0.28); letter-spacing: 0.03em; }
.footer-socials { display: flex; gap: 12px; }
.footer-social { width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; text-decoration: none; color: rgba(245,243,238,0.5); font-size: 12px; font-family: var(--mono); transition: border-color 0.2s, color 0.2s, background 0.2s; }
.footer-social:hover { border-color: rgba(255,255,255,0.3); color: var(--paper); background: rgba(255,255,255,0.05); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(28px); filter: blur(6px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), filter 0.7s var(--ease-out);
}
.reveal.revealed { opacity: 1; transform: translateY(0); filter: blur(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.15s; }
.reveal-delay-3 { transition-delay: 0.22s; }
.reveal-delay-4 { transition-delay: 0.30s; }
.reveal-delay-5 { transition-delay: 0.38s; }
.reveal-delay-6 { transition-delay: 0.46s; }

/* ── TILT (3D micro-interactions) ── */
.tilt {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --tilt-px: 0.5;
  --tilt-py: 0.5;
  --lift: 0px;
  --scale: 1;
  --reveal-y: 0px;
  backface-visibility: hidden;
  position: relative;
  transform: perspective(900px)
    translate3d(0, calc(var(--lift) + var(--reveal-y)), 0)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    scale(var(--scale));
  transform-style: preserve-3d;
  will-change: transform;
}
.tilt::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(800px circle at calc(var(--tilt-px) * 100%) calc(var(--tilt-py) * 100%), rgba(255,255,255,0.08), transparent 40%);
  opacity: 0; transition: opacity 0.3s var(--ease-out); z-index: 10;
  mix-blend-mode: overlay;
  border-radius: var(--r);
}
.tilt:hover::after { opacity: 1; }
.tilt.reveal { --reveal-y: 28px; }
.tilt.reveal.revealed { --reveal-y: 0px; }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg::before, .hero-bg::after, .hero-blob-2 { animation: none !important; }
  .hero-tag::before { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .tilt {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    transform: translate3d(0, calc(var(--lift) + var(--reveal-y)), 0) scale(var(--scale)) !important;
    transition: none !important;
  }
  .btn-primary, .btn-secondary, .btn-pricing, .btn-submit { transition: none !important; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 900px) {
  section { padding: 72px 24px; }
  .nav-inner { padding: 0 24px; }
  .nav-links {
    display: flex; flex-direction: column; align-items: flex-start;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(245,243,238,0.97); backdrop-filter: blur(16px);
    padding: 24px; gap: 20px;
    border-bottom: 1px solid var(--paper-3);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out), visibility 0s linear 0.3s;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out), visibility 0s;
  }
  .nav-hamburger { display: block; }
  body.nav-open { overflow: hidden; height: 100vh; }
  .hero-inner { padding: 60px 24px 80px; }
  .hero-stats { gap: 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .case-card.featured { grid-column: span 1; grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .strip { padding: 20px 24px; }
  footer { padding: 48px 24px 28px; }
}

@media (max-width: 640px) {
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .footer-top { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
