/* ============================================
   SECTIONS — All Homepage Sections
   Use Cases, How It Works, Product, Social Proof, Final CTA
   ============================================ */

/* ============================================
   SECTION 2 — USE CASES
   ============================================ */

.use-cases {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.use-cases__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

@media (min-width: 640px) {
  .use-cases__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .use-cases__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-8);
  }
}

/* Last card (5th) centered on desktop */
@media (min-width: 1024px) {
  .use-cases__grid .card:nth-child(4) {
    grid-column: 1 / 2;
    justify-self: end;
    max-width: calc((var(--container-max) - var(--sp-8) * 2) / 3);
    width: 100%;
  }
  .use-cases__grid .card:nth-child(5) {
    grid-column: 2 / 3;
    justify-self: start;
    max-width: calc((var(--container-max) - var(--sp-8) * 2) / 3);
    width: 100%;
  }
}

.use-case-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.use-case-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.card:hover .use-case-card__icon {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--accent-primary);
}

.use-case-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
}

.use-case-card h3 {
  font-size: 1.125rem;
  font-weight: var(--fw-semibold);
}

.use-case-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   SECTION 3 — HOW IT WORKS
   ============================================ */

.how-it-works {
  position: relative;
  overflow: hidden;
}

.how-it-works__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  position: relative;
  margin-bottom: var(--sp-12);
}

@media (min-width: 768px) {
  .how-it-works__steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-8);
  }
}

/* Connector line (desktop only) */
.how-it-works__steps::before {
  content: '';
  display: none;
}

@media (min-width: 768px) {
  .how-it-works__steps::before {
    display: block;
    position: absolute;
    top: 44px;
    left: calc(16.66% + 24px);
    right: calc(16.66% + 24px);
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
    opacity: 0.3;
    z-index: 0;
  }
}

/* Step card */
.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  font-family: var(--font-heading);
  font-weight: var(--fw-extrabold);
  font-size: 1.25rem;
  color: var(--accent-primary);
  margin: 0 auto var(--sp-6);
  position: relative;
  transition: all var(--transition-base);
}

.step:hover .step__number {
  border-color: var(--accent-primary);
  box-shadow: var(--glow-shadow);
}

/* Glow ring behind number */
.step__number::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
  z-index: -1;
}

.step__title {
  font-size: 1.125rem;
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
}

.step__description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.6;
}

.how-it-works__cta {
  text-align: center;
}

/* ============================================
   SECTION 4 — PRODUCT SHOWCASE
   ============================================ */

.product-showcase {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.product-showcase__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  align-items: center;
}

@media (min-width: 1024px) {
  .product-showcase__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
  }
}

/* Product image / placeholder */
.product-showcase__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-showcase__image-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 9 / 16;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 60px rgba(59, 130, 246, 0.1),
    0 24px 48px rgba(0, 0, 0, 0.3);
}

/* LED screen simulation inside frame */
.product-showcase__screen {
  position: absolute;
  inset: 6px;
  border-radius: var(--radius-md);
  background: linear-gradient(
    170deg,
    rgba(59, 130, 246, 0.12),
    rgba(6, 182, 212, 0.08),
    rgba(59, 130, 246, 0.04)
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
  animation: product-screen-glow 5s ease infinite;
}

@keyframes product-screen-glow {
  0%, 100% {
    background: linear-gradient(170deg, rgba(59,130,246,0.12), rgba(6,182,212,0.08), rgba(59,130,246,0.04));
  }
  50% {
    background: linear-gradient(170deg, rgba(6,182,212,0.14), rgba(59,130,246,0.10), rgba(6,182,212,0.06));
  }
}

/* LED pixel grid overlay */
.product-showcase__screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 4px 4px;
  pointer-events: none;
}

.product-showcase__screen-label {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: 1.5rem;
  color: var(--text-primary);
  opacity: 0.6;
  text-align: center;
  position: relative;
  z-index: 1;
}

.product-showcase__screen-sublabel {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Glow behind frame */
.product-showcase__glow {
  position: absolute;
  width: 130%;
  height: 130%;
  top: -15%;
  left: -15%;
  background: radial-gradient(ellipse at center, rgba(59,130,246,0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* Content side */
.product-showcase__content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.product-showcase__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: var(--accent-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-showcase__title {
  margin-top: var(--sp-2);
}

.product-showcase__description {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Specs grid */
.product-showcase__specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

@media (min-width: 640px) {
  .product-showcase__specs {
    grid-template-columns: repeat(3, 1fr);
  }
}

.spec-item {
  padding: var(--sp-4);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-base);
}

.spec-item:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

.spec-item__label {
  font-size: 0.75rem;
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-1);
}

.spec-item__value {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: 0.9375rem;
  color: var(--text-primary);
}

/* Highlight feature */
.product-showcase__highlight {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.product-showcase__highlight svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent-primary);
  margin-top: 2px;
}

.product-showcase__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

/* ============================================
   SECTION 5 — SOCIAL PROOF
   ============================================ */

.social-proof {
  position: relative;
  overflow: hidden;
}

/* Logo ticker */
.social-proof__ticker {
  margin-bottom: var(--sp-16);
  overflow: hidden;
  position: relative;
}

/* Fade edges */
.social-proof__ticker::before,
.social-proof__ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.social-proof__ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-primary), transparent);
}

.social-proof__ticker::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-primary), transparent);
}

.ticker__track {
  display: flex;
  align-items: center;
  gap: var(--sp-16);
  animation: ticker-scroll 30s linear infinite;
  width: max-content;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 var(--sp-4);
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: 1.125rem;
  color: var(--text-muted);
  opacity: 0.4;
  white-space: nowrap;
  transition: opacity var(--transition-base);
  user-select: none;
}

.ticker__logo:hover {
  opacity: 0.7;
}

/* Testimonials */
.social-proof__testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-16);
}

@media (min-width: 768px) {
  .social-proof__testimonials {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-8);
  }
}

.testimonial-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-4px);
}

/* Stars */
.testimonial-card__stars {
  display: flex;
  gap: 2px;
  color: #FBBF24;
}

.testimonial-card__stars svg {
  width: 16px;
  height: 16px;
}

.testimonial-card__quote {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: 1rem;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.testimonial-card__name {
  font-weight: var(--fw-semibold);
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.testimonial-card__role {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Stats row */
.social-proof__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}

@media (min-width: 768px) {
  .social-proof__stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
  padding: var(--sp-6);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-base);
}

.stat-item:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

.stat-item__value {
  font-family: var(--font-heading);
  font-weight: var(--fw-extrabold);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--text-primary);
  margin-bottom: var(--sp-1);
  line-height: 1;
}

.stat-item__value .text-gradient {
  font-size: inherit;
  font-weight: inherit;
}

.stat-item__label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ============================================
   SECTION 6 — FINAL CTA
   ============================================ */

.final-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--bg-secondary);
}

.final-cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(59,130,246,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 30% 80%, rgba(6,182,212,0.05) 0%, transparent 50%);
}

/* Grid pattern overlay */
.final-cta__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 41, 59, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 41, 59, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, black 0%, transparent 100%);
}

.final-cta__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.final-cta__title {
  margin-bottom: var(--sp-4);
}

.final-cta__subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--sp-8);
}

.final-cta__button {
  margin-bottom: var(--sp-6);
}

/* Larger CTA button variant */
.btn-lg {
  font-size: 1.0625rem;
  padding: var(--sp-5) var(--sp-10);
  border-radius: var(--radius-md);
}

.final-cta__phone {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.final-cta__phone a {
  color: var(--text-secondary);
  transition: color var(--transition-base);
}

.final-cta__phone a:hover {
  color: var(--accent-primary);
}
