/* ============================================================
   HUEMAN PIXELS — Apple-Inspired Design System
   styles.css
   ============================================================ */

:root {
  --bg-primary: #fbfbfd;
  --bg-secondary: #f5f5f7;
  --bg-tertiary: #ffffff;
  --bg-glass: rgba(255,255,255,0.72);
  --border-subtle: rgba(0,0,0,0.06);
  --border-medium: rgba(0,0,0,0.1);

  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-muted: #aeaeb2;

  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-light: rgba(0,113,227,0.08);
  --accent-gradient: linear-gradient(135deg, #2997ff 0%, #0071e3 100%);

  --dark-bg: #1d1d1f;
  --dark-bg-secondary: #2d2d2f;
  --dark-text: #f5f5f7;
  --dark-text-secondary: #a1a1a6;
  --dark-border: rgba(255,255,255,0.08);

  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace;

  --section-pad: clamp(80px, 12vw, 180px);
  --container-max: 1080px;
  --container-wide: 1280px;

  --ease-apple: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-spring: cubic-bezier(0.23, 1, 0.32, 1);
  --transition-fast: 0.3s var(--ease-apple);
  --transition-medium: 0.5s var(--ease-spring);
  --transition-slow: 0.8s var(--ease-spring);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.47059;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: #fff; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 48px);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* --- Typography --- */
.section-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: -0.003em;
}

.section-label::before { display: none; }

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subheading {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.003em;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: 980px;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.003em;
  transition: all var(--transition-fast);
  position: relative;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: scale(1.02); }

.btn-secondary {
  background: transparent;
  color: var(--accent);
  padding: 12px 4px;
  border-radius: 0;
  border: none;
}
.btn-secondary:hover { text-decoration: underline; }

.btn .arrow { font-size: 1.1em; transition: transform var(--transition-fast); }
.btn:hover .arrow { transform: translateX(3px); }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.nav.scrolled { background: rgba(251,251,253,0.88); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
}

.nav-logo .dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2.5s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-links a::after { display: none; }
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 6px 18px !important;
  border-radius: 980px !important;
  font-size: 0.8rem !important;
  font-weight: 400 !important;
  transition: all var(--transition-fast) !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; }
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 4px 0;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(251,251,253,0.97);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-medium);
}

.mobile-nav.open { opacity: 1; pointer-events: all; }

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  letter-spacing: -0.02em;
}

.mobile-nav a:hover { color: var(--accent); }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 80px;
  background: var(--bg-primary);
}

.hero::before, .hero::after { display: none; }
.hero-grid-decor { display: none; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.003em;
  text-transform: none;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0;
  animation: appleFadeUp 0.8s var(--ease-spring) 0.1s forwards;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin-bottom: 20px;
}

.hero-heading .line { display: block; overflow: hidden; }
.hero-heading .line-inner {
  display: block;
  opacity: 0;
  transform: translateY(100%);
  animation: slideUp 0.9s var(--ease-spring) forwards;
}

.hero-heading .line:nth-child(1) .line-inner { animation-delay: 0.2s; }
.hero-heading .line:nth-child(2) .line-inner { animation-delay: 0.35s; }

.hero-heading .highlight {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.003em;
  opacity: 0;
  animation: appleFadeUp 0.8s var(--ease-spring) 0.6s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  opacity: 0;
  animation: appleFadeUp 0.8s var(--ease-spring) 0.8s forwards;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(40px, 6vw, 80px);
  margin-top: 80px;
  opacity: 0;
  animation: appleFadeUp 0.8s var(--ease-spring) 1s forwards;
}

.hero-stat { text-align: center; }

.hero-stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-stat-number .accent { color: var(--accent); }

.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: -0.003em;
  font-weight: 400;
  text-transform: none;
}

/* --- Trust --- */
.trust {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.trust-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.003em;
}

.trust-logos {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  flex-wrap: wrap;
}

.trust-logo {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  font-weight: 600;
  color: var(--text-muted);
  cursor: default;
  letter-spacing: -0.01em;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.trust-logo:hover { opacity: 0.8; }

/* --- Featured Work --- */
.work { padding: var(--section-pad) 0; }

.work-header {
  text-align: center;
  margin-bottom: 56px;
}

.work-header .section-subheading { margin: 0 auto; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: var(--container-wide);
  margin: 0 auto;
}

.work-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--bg-secondary);
}

.work-card:nth-child(1) { grid-column: 1 / 2; }
.work-card:nth-child(2) { grid-column: 2 / 3; }
.work-card:nth-child(3) { grid-column: 1 / -1; aspect-ratio: 21/9; }
.work-card:nth-child(4) { grid-column: 1 / 2; }
.work-card:nth-child(5) { grid-column: 2 / 3; }

.work-card-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.6s var(--ease-spring);
}

.work-card:hover .work-card-bg { transform: scale(1.03); }

.work-card:nth-child(1) .work-card-bg { background: linear-gradient(145deg, #e4e7f0, #c9cdd8, #b8bdcb); }
.work-card:nth-child(2) .work-card-bg { background: linear-gradient(145deg, #e8dfe4, #d4c8d0, #c5b8c2); }
.work-card:nth-child(3) .work-card-bg { background: linear-gradient(145deg, #d6e4d8, #bdd0c0, #a8bfab); }
.work-card:nth-child(4) .work-card-bg { background: linear-gradient(145deg, #e8dfcf, #d8ccb8, #c8bba5); }
.work-card:nth-child(5) .work-card-bg { background: linear-gradient(145deg, #dde3ea, #c6ced8, #b0bac6); }

.work-card-mockup {
  position: absolute;
  inset: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-browser {
  width: 75%;
  max-width: 440px;
  background: rgba(255,255,255,0.85);
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-spring);
}

.work-card:hover .mockup-browser {
  transform: translateY(-6px);
  box-shadow: 0 16px 60px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
}

.mockup-toolbar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  background: rgba(0,0,0,0.02);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.mockup-dot { width: 7px; height: 7px; border-radius: 50%; }
.mockup-dot:nth-child(1) { background: #ff5f57; }
.mockup-dot:nth-child(2) { background: #febc2e; }
.mockup-dot:nth-child(3) { background: #28c840; }

.mockup-body { padding: 16px; min-height: 100px; }

.mockup-line { height: 6px; border-radius: 3px; background: rgba(0,0,0,0.06); margin-bottom: 6px; }
.mockup-line:nth-child(1) { width: 55%; background: var(--accent-light); height: 10px; border-radius: 5px; }
.mockup-line:nth-child(2) { width: 80%; }
.mockup-line:nth-child(3) { width: 65%; }
.mockup-line:nth-child(4) { width: 35%; margin-top: 14px; height: 20px; border-radius: 10px; background: rgba(0,113,227,0.1); }

.work-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(29,29,31,0.75) 100%);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.work-card:hover .work-card-overlay { opacity: 1; }

.work-card-tags { display: flex; gap: 6px; margin-bottom: 10px; }

.work-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 980px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  backdrop-filter: blur(8px);
}

.work-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.work-card-desc { font-size: 0.875rem; color: rgba(255,255,255,0.75); max-width: 380px; }

.work-card-arrow {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: all var(--transition-fast);
}

.work-card:hover .work-card-arrow { opacity: 1; transform: translate(0,0); }
.work-card-arrow svg { width: 16px; height: 16px; stroke: #fff; }

/* --- Services (dark section — Apple contrast pattern) --- */
.services {
  padding: var(--section-pad) 0;
  background: var(--dark-bg);
  color: var(--dark-text);
}

.services .section-label { color: #2997ff; }
.services .section-heading { color: var(--dark-text); }
.services .section-subheading { color: var(--dark-text-secondary); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 56px;
  background: var(--dark-border);
  border-radius: 20px;
  overflow: hidden;
}

.service-card {
  background: var(--dark-bg);
  padding: clamp(28px, 3vw, 44px);
  transition: background var(--transition-medium);
  position: relative;
}

.service-card:hover { background: var(--dark-bg-secondary); }

.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
  transition: all var(--transition-fast);
}

.service-card:hover .service-icon { background: rgba(41,151,255,0.12); }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--dark-text);
}

.service-card p { font-size: 0.875rem; color: var(--dark-text-secondary); line-height: 1.55; }

.service-number {
  position: absolute;
  top: 20px; right: 20px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.15);
}

/* --- Before/After Slider --- */
.viral { padding: var(--section-pad) 0; }

.viral-header { text-align: center; margin-bottom: 56px; }
.viral-header .section-subheading { margin: 0 auto; }

.slider-container {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: ew-resize;
  background: var(--bg-secondary);
  box-shadow: 0 4px 40px rgba(0,0,0,0.06);
}

.slider-side {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slider-before { background: var(--bg-secondary); z-index: 1; clip-path: inset(0 50% 0 0); }
.slider-after { background: linear-gradient(145deg, #e8ecf2, #d4dae4); z-index: 0; }

.wireframe-mockup, .polished-mockup { width: 70%; max-width: 520px; }

.wireframe-header {
  height: 40px;
  border: 1.5px dashed rgba(0,0,0,0.12);
  border-radius: 8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
}

.wireframe-header .wf-box { width: 48px; height: 6px; background: rgba(0,0,0,0.08); border-radius: 3px; }

.wireframe-hero-block {
  height: 120px;
  border: 1.5px dashed rgba(0,0,0,0.12);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}

.wireframe-hero-block .wf-line { height: 8px; border-radius: 4px; background: rgba(0,0,0,0.08); }
.wireframe-hero-block .wf-line:nth-child(1) { width: 45%; }
.wireframe-hero-block .wf-line:nth-child(2) { width: 30%; }
.wireframe-hero-block .wf-btn { width: 64px; height: 20px; border: 1.5px dashed rgba(0,0,0,0.12); border-radius: 10px; margin-top: 4px; }

.wireframe-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wireframe-cards .wf-card { aspect-ratio: 1; border: 1.5px dashed rgba(0,0,0,0.12); border-radius: 8px; }

.polished-header {
  height: 40px;
  background: rgba(255,255,255,0.7);
  border-radius: 8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
  border: 1px solid rgba(0,0,0,0.06);
}

.polished-header .ph-logo { width: 20px; height: 20px; background: var(--accent); border-radius: 5px; }
.polished-header .ph-links { display: flex; gap: 6px; margin-left: auto; }
.polished-header .ph-link { width: 32px; height: 5px; background: rgba(0,0,0,0.1); border-radius: 3px; }

.polished-hero-block {
  height: 120px;
  background: linear-gradient(145deg, rgba(0,113,227,0.08), rgba(41,151,255,0.04));
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
  border: 1px solid rgba(0,0,0,0.06);
}

.polished-hero-block .ph-line { height: 10px; border-radius: 5px; background: rgba(0,0,0,0.12); }
.polished-hero-block .ph-line:nth-child(1) { width: 45%; }
.polished-hero-block .ph-line:nth-child(2) { width: 30%; height: 6px; background: rgba(0,0,0,0.06); }
.polished-hero-block .ph-btn { width: 64px; height: 22px; background: var(--accent); border-radius: 11px; margin-top: 4px; }

.polished-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.polished-cards .ph-card {
  aspect-ratio: 1;
  background: rgba(255,255,255,0.6);
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.slider-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--accent);
  z-index: 10;
  transform: translateX(-50%);
  pointer-events: none;
}

.slider-handle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 2px 16px rgba(0,113,227,0.3);
}

.slider-handle svg { width: 18px; height: 18px; stroke: #fff; }

.slider-label {
  position: absolute;
  bottom: 20px;
  z-index: 5;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 980px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
}

.slider-label.before-label { left: 20px; }
.slider-label.after-label { right: 20px; }

/* --- Process --- */
.process { padding: var(--section-pad) 0; background: var(--bg-secondary); }

.process-timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin-top: 56px;
}

.process-step {
  text-align: center;
  padding: 32px 16px;
  border-radius: 16px;
  transition: all var(--transition-medium);
  border: none;
  background: transparent;
}

.process-step:hover { background: rgba(255,255,255,0.5); transform: translateY(-4px); }

.process-step-number {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.process-step-icon {
  width: 44px; height: 44px;
  margin: 0 auto 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.process-step p { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.5; }

/* --- Testimonials --- */
.testimonials { padding: var(--section-pad) 0; }

.testimonials-header { text-align: center; margin-bottom: 56px; }
.testimonials-header .section-subheading { margin: 0 auto; }

.testimonial-track { position: relative; overflow: hidden; }

.testimonial-slides { display: flex; transition: transform 0.7s var(--ease-spring); }

.testimonial-slide {
  min-width: 100%;
  padding: 0 clamp(24px, 10vw, 140px);
  text-align: center;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 36px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.testimonial-quote::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0 auto 24px;
}

.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 14px; }

.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
}

.testimonial-info { text-align: left; }
.testimonial-name { font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.01em; }
.testimonial-role { font-size: 0.8125rem; color: var(--text-secondary); }

.testimonial-controls { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 44px; }

.testimonial-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.testimonial-dot.active { background: var(--accent); transform: scale(1.2); }

/* --- CTA --- */
.cta { padding: var(--section-pad) 0; text-align: center; }
.cta::before { display: none; }
.cta .section-heading { max-width: 640px; margin: 0 auto 16px; }
.cta .section-subheading { margin: 0 auto 36px; text-align: center; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }

/* --- Footer --- */
.footer {
  padding: 64px 0 32px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.55; margin-top: 12px; max-width: 280px; }

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 0.8125rem;
  color: var(--text-primary);
}

.footer-col a {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 0.75rem; color: var(--text-muted); }

.footer-socials { display: flex; gap: 12px; }

.footer-social {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.footer-social:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-spring), transform 0.7s var(--ease-spring);
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }

/* --- Keyframes --- */
@keyframes appleFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Page Header (inner pages) --- */
.page-header { padding: 160px 0 80px; text-align: center; }
.page-header::before { display: none; }
.page-header .section-heading { margin-bottom: 12px; }
.page-header .section-subheading { margin: 0 auto; text-align: center; }

/* --- Work Page --- */
.work-full-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding-bottom: var(--section-pad); }

/* --- Service Detail Page --- */
.service-detail { padding: 48px 0 var(--section-pad); }

.service-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.service-detail-item {
  padding: 40px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-medium);
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.service-detail-item:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.06); transform: translateY(-4px); }
.service-detail-item .service-icon { background: var(--accent-light); border: none; margin-bottom: 20px; }

.service-detail-item h3 {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}

.service-detail-item p { color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; font-size: 0.9375rem; }

.service-features { display: flex; flex-wrap: wrap; gap: 6px; }

.service-feature-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 980px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

/* --- About Page --- */
.about-intro { padding: 48px 0 var(--section-pad); }

.about-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.about-intro-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.025em;
}

.about-intro-text p { color: var(--text-secondary); line-height: 1.65; margin-bottom: 14px; font-size: 0.9375rem; }

.about-image-placeholder {
  aspect-ratio: 4/5;
  border-radius: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.about-image-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(0,113,227,0.03), rgba(41,151,255,0.02));
}

.team-section { padding: 0 0 var(--section-pad); }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }

.team-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-medium);
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.team-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.06); }

.team-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}

.team-card:nth-child(1) .team-avatar { background: var(--accent-gradient); }
.team-card:nth-child(2) .team-avatar { background: linear-gradient(135deg, #ff6b6b, #ee5a24); }
.team-card:nth-child(3) .team-avatar { background: linear-gradient(135deg, #a29bfe, #6c5ce7); }
.team-card:nth-child(4) .team-avatar { background: linear-gradient(135deg, #55efc4, #00b894); }

.team-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 2px; letter-spacing: -0.01em; }
.team-card p { font-size: 0.8125rem; color: var(--text-secondary); }

/* --- Contact Page --- */
.contact-section { padding: 48px 0 var(--section-pad); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }

.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.contact-info > p { color: var(--text-secondary); line-height: 1.65; margin-bottom: 36px; font-size: 0.9375rem; }

.contact-detail { display: flex; gap: 14px; margin-bottom: 20px; }

.contact-detail-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.contact-detail-text h4 { font-size: 0.8125rem; font-weight: 600; margin-bottom: 1px; }
.contact-detail-text p { font-size: 0.875rem; color: var(--text-secondary); }

.contact-form {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-medium);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,113,227,0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group textarea { min-height: 100px; resize: vertical; }
.form-group select option { background: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-submit {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 400;
  font-size: 1rem;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
  margin-top: 8px;
}

.form-submit:hover { background: var(--accent-hover); }

/* --- Insights Page --- */
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: var(--section-pad); }

.insight-card {
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: all var(--transition-medium);
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.insight-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.06); }

.insight-image { aspect-ratio: 16/10; overflow: hidden; }

.insight-image-bg {
  width: 100%; height: 100%;
  transition: transform 0.5s var(--ease-spring);
}

.insight-card:hover .insight-image-bg { transform: scale(1.03); }

/* Fallback gradients if no image loads */
.insight-card:nth-child(1) .insight-image-bg { background: linear-gradient(145deg, #d6e4d8, #bdd0c0); }
.insight-card:nth-child(2) .insight-image-bg { background: linear-gradient(145deg, #dde3ea, #c6ced8); }
.insight-card:nth-child(3) .insight-image-bg { background: linear-gradient(145deg, #e8dfe4, #d4c8d0); }
.insight-card:nth-child(4) .insight-image-bg { background: linear-gradient(145deg, #e8dfcf, #d8ccb8); }
.insight-card:nth-child(5) .insight-image-bg { background: linear-gradient(145deg, #dde3ea, #c6ced8); }
.insight-card:nth-child(6) .insight-image-bg { background: linear-gradient(145deg, #d6dfe8, #c0cdd8); }

/* When using real images inside insight-image */
.insight-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-spring);
}
.insight-card:hover .insight-image img { transform: scale(1.03); }

/* Work card real images */
.work-card-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-spring);
}
.work-card:hover .work-card-bg img { transform: scale(1.03); }

/* About page image override */
.about-image-placeholder img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* Team avatar images */
.team-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Testimonial avatar with images */
.testimonial-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Trust logo SVGs */
.trust-logo svg {
  display: block;
  opacity: 0.45;
  transition: opacity var(--transition-fast);
}
.trust-logo:hover svg { opacity: 0.7; }

.insight-body { padding: 24px; }
.insight-meta { display: flex; gap: 10px; margin-bottom: 10px; }
.insight-tag { font-size: 0.75rem; font-weight: 600; color: var(--accent); }
.insight-date { font-size: 0.75rem; color: var(--text-muted); }

.insight-body h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.insight-body p { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.5; }

/* --- Process Detail Page --- */
.process-detail { padding: 48px 0 var(--section-pad); }

.process-detail-timeline { max-width: 720px; margin: 0 auto; position: relative; }

.process-detail-timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 28px;
  width: 1.5px;
  background: var(--border-medium);
}

.process-detail-step { display: flex; gap: 32px; margin-bottom: 48px; position: relative; }

.process-detail-marker {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: all var(--transition-fast);
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.process-detail-step:hover .process-detail-marker {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.process-detail-content h3 {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 600;
  margin-bottom: 10px;
  margin-top: 6px;
  letter-spacing: -0.015em;
}

.process-detail-content p { color: var(--text-secondary); line-height: 1.65; margin-bottom: 14px; font-size: 0.9375rem; }

.process-detail-deliverables { display: flex; flex-wrap: wrap; gap: 6px; }

.process-deliverable {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 980px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-timeline { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding-top: 100px; }
  .hero-heading { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .hero-stats { flex-direction: column; gap: 20px; }
  .work-grid, .work-full-grid { grid-template-columns: 1fr; }
  .work-card:nth-child(3) { grid-column: auto; aspect-ratio: 4/3; }
  .work-card-overlay { opacity: 1; }
  .services-grid { grid-template-columns: 1fr; }
  .process-timeline { grid-template-columns: repeat(2, 1fr); }
  .trust-inner { justify-content: center; text-align: center; }
  .trust-logos { justify-content: center; }
  .footer-top { grid-template-columns: 1fr; }
  .service-detail-grid, .about-intro-grid, .contact-grid { grid-template-columns: 1fr; }
  .insights-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .process-timeline { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}
