/* ============================================================
   DSPros Inc. — global stylesheet
   Design tokens, base type, reusable components
   ============================================================ */

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

:root {
  /* Colors */
  --bg: #FAF8F5;
  --bg-alt: #F4F0EB;
  --card: #FFFFFF;
  --peach: #FFE5D4;
  --mint: #D4F1E5;
  --lavender: #E8DFFA;
  --butter: #FFF4D6;
  --blush: #FCE0E8;
  --text: #1A1A1A;
  --text-2: #595959;
  --text-3: #8A8A8A;
  --accent: #2D5BFF;
  --accent-hover: #1E48E0;
  --brand-1: #2D5BFF;
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.12);

  /* Type */
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 24px 64px rgba(0, 0, 0, 0.08);
  --shadow-nav: 0 4px 24px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ----- Type ----- */
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.02em; }

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 400; }

.h-display {
  font-family: var(--serif);
  font-size: clamp(56px, 9vw, 120px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 400;
}

/* Animated gradient on italic em words */
.h-display .em, .em-grad {
  background-size: 100% 100%;
}

.h2 {
  font-family: var(--sans);
  font-size: clamp(34px, 4.2vw, 48px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.h2-serif {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 400;
}

.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 620px;
}

/* ----- Layout ----- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(45, 91, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 8px 24px rgba(45, 91, 255, 0.25);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.04);
  transform: translateY(-1px) scale(1.02);
}

.btn-pill { border-radius: 999px; }

.btn .arrow { transition: transform 0.3s var(--ease); display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

/* ----- Pills ----- */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.eyebrow-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.05); }
}

/* ----- Animated underline link ----- */
.link-underline {
  position: relative;
  display: inline-block;
  transition: color 0.2s var(--ease);
}
.link-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}
.link-underline:hover::after { transform: scaleX(1); }

/* ----- Navigation ----- */
.nav-wrap {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 16px;
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 8px 8px 8px 24px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-nav);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-logo em { font-style: italic; color: var(--accent); }
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 999px;
  transition: all 0.2s var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--text); background: rgba(0, 0, 0, 0.04); }
.nav-links a.active { color: var(--text); }
.nav-cta {
  padding: 9px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}
.nav-cta:hover { background: var(--accent-hover); transform: scale(1.03); }

@media (max-width: 640px) {
  .nav { padding: 6px 6px 6px 18px; gap: 12px; }
  .nav-links { display: none; }
}

/* ----- Footer ----- */
.footer {
  margin-top: 0;
  padding: 96px 0 48px;
  background: var(--bg);
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--peach), var(--mint), var(--lavender), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}
.footer-brand .nav-logo { font-size: 32px; display: inline-block; margin-bottom: 16px; }
.footer-tagline { color: var(--text-2); max-width: 320px; font-size: 15px; }
.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-3);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 15px;
  color: var(--text-2);
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-3);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ----- Reveal animations (IntersectionObserver) ----- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.40s; }

/* ----- Page entry transition ----- */
.page-enter {
  animation: pageEnter 0.7s var(--ease) both;
}
@keyframes pageEnter {
  from { opacity: 0; transform: scale(0.995); }
  to   { opacity: 1; transform: scale(1); }
}

/* ----- Noise overlay ----- */
.noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/></svg>");
  mix-blend-mode: multiply;
}

/* ----- Mesh gradient (animated blobs) ----- */
.mesh {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.mesh .blob {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
  mix-blend-mode: multiply;
  will-change: transform;
}
.mesh .blob-1 { background: var(--peach); top: -20%; left: -10%; animation: float1 18s var(--ease) infinite alternate; }
.mesh .blob-2 { background: var(--mint); top: 10%; right: -15%; animation: float2 22s var(--ease) infinite alternate; }
.mesh .blob-3 { background: var(--lavender); bottom: -25%; left: 20%; animation: float3 20s var(--ease) infinite alternate; }
.mesh .blob-4 { background: var(--butter); top: 40%; left: 35%; width: 40vmax; height: 40vmax; opacity: 0.5; animation: float4 24s var(--ease) infinite alternate; }

@keyframes float1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(15vw, 10vh) scale(1.15); } }
@keyframes float2 { from { transform: translate(0, 0) scale(1.05); } to { transform: translate(-12vw, 18vh) scale(0.95); } }
@keyframes float3 { from { transform: translate(0, 0) scale(0.95); } to { transform: translate(10vw, -8vh) scale(1.1); } }
@keyframes float4 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-8vw, -12vh) scale(1.2); } }

/* ----- Shared section padding ----- */
.section-pad { padding: 140px 0; }
.section-pad-sm { padding: 96px 0; }

@media (max-width: 720px) {
  .section-pad { padding: 96px 0; }
  .section-pad-sm { padding: 64px 0; }
}

/* ============================================================
   MOTION LAYER — added in v2 polish pass
   ============================================================ */

/* Cursor follower blob (desktop only) */
.cursor-blob {
  position: fixed;
  top: 0; left: 0;
  width: 360px; height: 360px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(232, 223, 250, 0.55), rgba(212, 241, 229, 0.25) 40%, transparent 70%);
  filter: blur(40px);
  transform: translate(-50%, -50%);
  transition: transform 0.18s var(--ease), opacity 0.4s var(--ease);
  opacity: 0;
  mix-blend-mode: multiply;
  will-change: transform;
}
@media (max-width: 900px) { .cursor-blob { display: none; } }

/* Magnetic / liftable button extras */
.btn { will-change: transform; }

/* Marquee */
.marquee {
  overflow: hidden;
  width: 100%;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Section divider — gradient hairline */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--peach), var(--mint), var(--lavender), transparent);
  max-width: 1180px;
  margin: 0 auto;
}

/* Reveal: blur-up variant */
.reveal-blur {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
}
.reveal-blur.in { opacity: 1; transform: translateY(0); filter: blur(0); }

/* Reveal: clip-path mask sweep */
.reveal-clip {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s var(--ease);
}
.reveal-clip.in { clip-path: inset(0 0 0 0); }

/* Tile choreographed entrance */
.tile-anim {
  opacity: 0;
  transform: translateY(60px) scale(0.92);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.tile-anim.in {
  opacity: 1;
  /* preserve each tile's individual rotation by using a CSS var */
  transform: translateY(0) rotate(var(--tilt, 0deg)) scale(1);
}
.tile-anim.in:nth-child(1) { transition-delay: 0.05s; }
.tile-anim.in:nth-child(2) { transition-delay: 0.15s; }
.tile-anim.in:nth-child(3) { transition-delay: 0.25s; }
.tile-anim.in:nth-child(4) { transition-delay: 0.35s; }
.tile-anim.in:nth-child(5) { transition-delay: 0.45s; }
.tile-anim.in:nth-child(6) { transition-delay: 0.55s; }

/* Parallax data-speed elements */
[data-parallax] { will-change: transform; }

