/* ============================================
   Commerce Amplified — Redesign
   ============================================ */

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

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --off-white: #f5f4f0;
  --accent: #ff66c4;        /* pink accent */
  --mid: #1c1c1c;
  --muted: #6b6b6b;
  --border: rgba(255,255,255,0.1);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; line-height: 1.2; }
h4 { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
p { line-height: 1.75; color: rgba(255,255,255,0.75); }
a { color: inherit; text-decoration: none; }

.accent { color: var(--accent); }
.label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
section { padding: 7rem 0; }

/* ---- Nav ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0.5rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo img { height: 58px; }
.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta {
  background: var(--black) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
  border: none !important;
  transition: background 0.2s, color 0.2s, border-color 0.2s !important;
}
.nav-cta:hover { background: var(--accent) !important; color: var(--black) !important; border-color: var(--accent) !important; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--black); }
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-outline {
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }

/* ---- Pitch background ---- */
.pitch-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.pitch-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}
.zone-lbl {
  font-family: -apple-system, 'Segoe UI', sans-serif;
  font-size: 10px; letter-spacing: .22em; fill: #FF2D78;
}
.counter-lbl {
  font-family: -apple-system, 'Segoe UI', sans-serif;
  font-size: 11px; font-weight: 700; fill: #FF2D78;
}
.nd { transition: filter .18s ease; }
.nd.active { filter: drop-shadow(0 0 8px rgba(255,255,255,.95)); }
.nd.flash-rival { filter: drop-shadow(0 0 10px #D7FF4F); }
.nl { stroke: #FF2D78; stroke-width: .9; opacity: .5; }
#acqFlash, #s-acqFlash { opacity: 0; transition: opacity .22s ease; }
#acqFlash.show, #s-acqFlash.show { opacity: 1; filter: drop-shadow(0 0 6px #FF2D78) drop-shadow(0 0 14px #FF2D78); }

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 6rem;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(200,240,78,0.07) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; max-width: 900px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- Section headers ---- */
.section-header { margin-bottom: 4rem; }
.section-header .label { margin-bottom: 0.75rem; }
.section-divider {
  width: 3rem; height: 2px;
  background: var(--accent);
  margin-top: 1.5rem;
}

/* ---- Services ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}
.service-card {
  background: var(--mid);
  padding: 2.5rem;
  transition: background 0.2s;
}
.service-card:hover { background: #222; }
.service-card-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}
.tag-brand { background: rgba(200,240,78,0.15); color: #c8f04e; }
.tag-partner { background: rgba(100,180,255,0.15); color: #64b4ff; }
.tag-agency { background: rgba(255,150,100,0.15); color: #ff9664; }
.service-card h3 { margin-bottom: 0.75rem; font-size: 1.1rem; }
.service-card p { font-size: 0.9rem; }

/* ---- Stats row ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
}
.stat {
  background: var(--mid);
  padding: 3rem 2rem;
  text-align: center;
}
.stat-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat p { font-size: 0.85rem; }

/* ---- Team ---- */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.team-photo-block {
  grid-column: span 2;
  border-radius: 1rem;
  overflow: hidden;
  height: 460px;
  position: relative;
}
.team-photo-block img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  filter: grayscale(20%);
}
.team-photo-block .photo-label {
  position: absolute; bottom: 1.5rem; left: 1.5rem;
  display: flex; gap: 0.75rem;
}
.photo-label a {
  background: rgba(10,10,10,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s;
}
.photo-label a:hover { background: rgba(200,240,78,0.2); }
.team-bio {
  background: var(--mid);
  border-radius: 1rem;
  padding: 2.5rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.team-bio h3 { font-size: 1.4rem; }
.differentiators { display: flex; flex-direction: column; gap: 1rem; }
.diff-item { border-left: 2px solid var(--accent); padding-left: 1.25rem; }
.diff-item h4 { font-size: 0.85rem; color: var(--white); margin-bottom: 0.35rem; }
.diff-item p { font-size: 0.85rem; }

/* ---- Testimonials ---- */
.testimonials-section { background: var(--mid); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--black);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 1rem;
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.testimonial-card blockquote {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  font-style: italic;
  flex: 1;
}
.testimonial-card blockquote::before { content: '"'; font-size: 2rem; color: var(--accent); line-height: 0; vertical-align: -0.5rem; margin-right: 0.2rem; }
.testimonial-attribution { font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.5); }

/* ---- Partners ---- */
.partners-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Mobile ribbon ticker */
.partners-ribbon-wrap {
  display: none;
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.partners-ribbon-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  animation: ribbon-scroll 28s linear infinite;
}
.partners-ribbon-track:hover { animation-play-state: paused; }
@keyframes ribbon-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ribbon-logo-wrap {
  flex: 0 0 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mid);
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  height: 68px;
  padding: 12px 16px;
  box-sizing: border-box;
}
.ribbon-logo-wrap img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

@media (max-width: 640px) {
  .partners-logos { display: none; }
  .partners-ribbon-wrap { display: block; }
  .track-diff-section .team-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 1rem;
    grid-template-columns: unset !important;
  }
  .track-diff-section .team-bio {
    flex: 0 0 85%;
    scroll-snap-align: start;
    min-width: 0;
  }
}
.partner-logo-wrap {
  flex: 0 0 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mid);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  height: 90px;
  padding: 18px 24px;
  box-sizing: border-box;
  transition: background 0.2s, border-color 0.2s;
}
.partner-logo-wrap:hover {
  border-color: rgba(255,255,255,0.2);
  background: #222;
}
.partner-logo-wrap img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.65;
  transition: opacity 0.2s;
}
.partner-logo-wrap:hover img { opacity: 1; }

/* ---- Pink dot on question marks ---- */
.pink-dot-q {
  position: relative;
  display: inline-block;
  color: white;
}
.pink-dot-q::after {
  content: '?';
  position: absolute;
  left: 0;
  top: 0;
  color: #ff66c4;
  clip-path: inset(80% 0 0 0);
}

/* ---- CTA band ---- */
.cta-band {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 5rem 2rem;
}
.cta-band h2 { color: var(--white); margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,0.6); margin-bottom: 2rem; }
.btn-dark { background: var(--black); color: var(--white); border: 1px solid rgba(255,255,255,0.12); }
.btn-dark:hover { background: var(--accent); color: var(--black); border-color: var(--accent); }

/* ---- Page hero (inner pages) ---- */
.page-hero {
  padding: 10rem 0 5rem;
  border-bottom: 1px solid var(--border);
}
.page-hero .label { margin-bottom: 1rem; }

/* ---- Services page ---- */
.services-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border-radius: 1rem; overflow: hidden; border: 1px solid var(--border); }
.service-row {
  display: grid; grid-template-columns: 200px 1fr;
  background: var(--mid);
  transition: background 0.2s;
}
.service-row:hover { background: #222; }
.service-row-label { padding: 2.5rem; border-right: 1px solid var(--border); }
.service-row-label .service-card-tag { display: block; margin-bottom: 0; }
.service-row-content { padding: 2.5rem; }
.service-row-content h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }

/* ---- Team page bios ---- */
.bio-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; }
.bio-card { background: var(--mid); border-radius: 1rem; padding: 2.5rem; }
.bio-card h3 { margin-bottom: 0.5rem; }
.bio-card .bio-role { font-size: 0.8rem; color: var(--muted); margin-bottom: 1.5rem; font-family: var(--mono); }
.bio-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.bio-card ul li { font-size: 0.88rem; color: rgba(255,255,255,0.65); padding-left: 1rem; position: relative; }
.bio-card ul li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }

/* ---- Reflections ---- */
.reflections-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border-radius: 1rem; overflow: hidden; border: 1px solid var(--border); }
.reflection-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--mid);
  padding: 1.75rem 2.5rem;
  transition: background 0.2s;
  gap: 2rem;
}
.reflection-row:hover { background: #222; }
.reflection-row h4 { font-size: 0.95rem; font-weight: 500; text-transform: none; letter-spacing: 0; margin-bottom: 0.25rem; }
.reflection-row .label { font-size: 0.65rem; }
.reflection-arrow { color: var(--accent); font-size: 1.2rem; flex-shrink: 0; }

/* ---- Contact page ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-link {
  display: flex; align-items: center; gap: 1rem;
  background: var(--mid);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: background 0.2s;
}
.contact-link:hover { background: #222; }
.contact-link-icon { font-size: 1.4rem; }
.contact-link-text h4 { font-size: 0.75rem; margin-bottom: 0.2rem; }
.contact-link-text p { font-size: 0.88rem; color: rgba(255,255,255,0.75); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.78rem; font-weight: 500; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.06em; }
.form-group input, .form-group textarea, .form-group select {
  background: var(--mid);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.9rem 1rem;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--accent);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-size: 0.82rem; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 0.78rem; color: var(--muted); }
.footer-social { display: flex; gap: 1rem; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  color: var(--muted);
  transition: all 0.2s;
}
.social-btn:hover { border-color: rgba(255,255,255,0.3); color: var(--white); }

/* ---- Case studies ---- */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.case-study-card {
  background: var(--black);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.case-study-logo {
  height: 44px;
  display: flex;
  align-items: center;
  margin-bottom: 0.25rem;
}
.case-study-logo img {
  max-height: 100%;
  max-width: 130px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.75;
}
.case-study-goal {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}
.case-study-result {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  padding: 1.25rem;
  background: rgba(255,102,196,0.07);
  border: 1px solid rgba(255,102,196,0.18);
  border-radius: 0.75rem;
}
.result-number {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}
.result-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}
.case-study-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.1rem;
}
.case-study-points li {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.58);
  padding-left: 1rem;
  position: relative;
  line-height: 1.55;
}
.case-study-points li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .team-photo-block { grid-column: span 1; height: 320px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .bio-pair { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; }
  .service-row-label { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links .nav-cta { display: none; }
  .case-studies-grid { grid-template-columns: 1fr; }
}
