/* ============================================
   SCALE UP MARKETING — HOME PAGE
   ============================================ */


/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

/* Background layers */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero__noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero__glow--1 {
  width: 600px; height: 600px;
  top: -15%; left: 40%;
  background: rgba(164,74,236,0.08);
  animation: drift 12s ease-in-out infinite;
}
.hero__glow--2 {
  width: 400px; height: 400px;
  bottom: 5%; left: 5%;
  background: rgba(123,43,184,0.05);
  animation: drift 10s ease-in-out infinite reverse;
}
.hero__glow--3 {
  width: 300px; height: 300px;
  top: 20%; right: -5%;
  background: rgba(164,74,236,0.04);
  animation: drift 8s ease-in-out infinite 2s;
}

@keyframes drift {
  0%,100% { transform: translate(0, 0); }
  33% { transform: translate(15px, -10px); }
  66% { transform: translate(-10px, 15px); }
}

/* Hero content */
.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  padding: 60px 0 80px;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 28px;
  opacity: 0; animation: fadeUp 0.7s var(--ease-out) 0.1s forwards;
}
.hero__label svg { width: 14px; height: 14px; fill: currentColor; }

.hero__title {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 1.06;
  color: var(--text);
  margin-bottom: 22px;
  letter-spacing: -0.02em;
  text-wrap: balance;
  opacity: 0; animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero__desc {
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.8;
  text-wrap: pretty;
  opacity: 0; animation: fadeUp 0.8s var(--ease-out) 0.35s forwards;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
  opacity: 0; animation: fadeUp 0.8s var(--ease-out) 0.45s forwards;
}

.hero__note {
  font-size: var(--fs-small);
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
  text-wrap: pretty;
  opacity: 0; animation: fadeUp 0.7s var(--ease-out) 0.55s forwards;
}

/* Hero metrics bar */
.hero__metrics {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 56px;
  opacity: 0; animation: fadeUp 0.7s var(--ease-out) 0.65s forwards;
}
.hero__metric-val {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__metric-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

/* ---------- MARQUEE STRIP ---------- */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  overflow: hidden;
  background: var(--bg-card);
}

.marquee__track {
  display: flex;
  gap: 48px;
}

.marquee__group {
  display: flex;
  gap: 48px;
  flex-shrink: 0;
  justify-content: space-around;
  min-width: 100%;
  animation: marquee 30s linear infinite;
}

.marquee:hover .marquee__group {
  animation-play-state: paused;
}

.marquee__item {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 12px;
}

.marquee__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.4;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-100% - 48px)); }
}

/* ---------- STATS PANEL ---------- */

.stats-panel {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.015);
}

.stats-panel__hero {
  padding: clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(164,74,236,0.05) 0%, transparent 70%);
  position: relative;
}
.stats-panel__hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(164,74,236,0.08), transparent 70%);
  pointer-events: none;
}

.stats-panel__big {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stats-panel__sub {
  font-size: var(--fs-body);
  color: var(--text-muted);
  line-height: 1.5;
}

.stats-panel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.stats-panel__cell {
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transition: background 0.3s;
}
.stats-panel__cell:nth-child(2n) { border-right: none; }
.stats-panel__cell:nth-child(n+3) { border-bottom: none; }
.stats-panel__cell:hover {
  background: rgba(255,255,255,0.025);
}

.stats-panel__num {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.stats-panel__label {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/* Capacity strip */
.capacity {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 40px;
}

.capacity__item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.capacity__num {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-light);
}

.capacity__label {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.capacity__divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}
/* ---------- CASE STUDIES PREVIEW ---------- */
.cases {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.case-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.35s var(--ease-out);
}
.case-card:hover {
  border-color: var(--border-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(164,74,236,0.08);
}

.case-card--hidden {
  display: none;
}
.cases__grid.expanded .case-card--hidden {
  display: flex;
}

.case-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg);
}
.case-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.case-card:hover .case-card__thumb img {
  transform: scale(1.05);
}

.case-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: #fff;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.3s;
}
.case-card:hover .case-card__play {
  opacity: 1;
}

.case-card__body {
  padding: 20px;
  flex: 1;
}

.case-card__name {
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.case-card__text {
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- CLIENTS / LOGO GRID ---------- */
.clients {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.logo-category {
  margin-bottom: 32px;
}
.logo-category:last-of-type {
  margin-bottom: 0;
}

.logo-category__title {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.clients__part:not(:last-child) {
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
}

.logo-category__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* Logos */
.logo-card {
  display: grid;
  place-items: center;
  padding: 20px;
  min-height: 80px;
  background: rgba(255,255,255,0.01);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease-out);
}
.logo-card:hover {
  border-color: var(--border-primary);
  background: rgba(164,74,236,0.05);
  transform: translateY(-2px);
}
.logo-card__img {
  max-width: 110px;
  max-height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: all 0.4s;
}
.logo-card:hover .logo-card__img {
  opacity: 1;
}
.logo-card span {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.3;
}

/* Name pills */
.name-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: all 0.3s var(--ease-out);
}
.name-pill:hover {
  border-color: var(--border-primary);
  background: var(--primary-50);
  transform: translateY(-2px);
}
.name-pill__av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px var(--primary-glow);
}
.name-pill__img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.name-pill__img--top {
  object-position: center top;
}
.name-pill__info {
  display: flex;
  flex-direction: column;
}
.name-pill__info > span:first-child {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.name-pill__biz {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.3;
}

/* ---------- SERVICES PREVIEW ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.svc-card {
  padding: 28px 24px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.svc-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.svc-card:hover::before { transform: scaleX(1); }

.svc-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(164,74,236,0.12) 0%, rgba(123,43,184,0.06) 100%);
  border: 1px solid rgba(164,74,236,0.1);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.svc-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.svc-card__desc {
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---------- TESTIMONIALS ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.testi-card {
  padding: 32px;
  border-left: 3px solid var(--primary);
}



.testi-card__text {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 22px;
  font-style: italic;
}

.testi-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.testi-card__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-body);
  color: var(--text);
}

.testi-card__role {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .stats-panel { grid-template-columns: 1fr; }
  .cases__grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__metrics {
    flex-direction: row;
    gap: 16px;
    flex-wrap: nowrap;
    justify-content: center;
  }
  .hero__metric-val { font-size: 1rem; }
  .hero__metric-label { font-size: 0.65rem; }
  .stats-panel { grid-template-columns: 1fr; }
  .stats-panel__hero { border-right: none; border-bottom: 1px solid var(--border); text-align: center; }
  .stats-panel__big { font-size: 2.5rem; }
  .capacity { flex-direction: column; gap: 14px; padding: 20px; }
  .capacity__divider { width: 50px; height: 1px; }
  .testi-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .logo-category__grid { gap: 8px; }
}
