/* ============================================
   PREMIUM DESIGN SYSTEM
   ============================================ */

:root {
  /* Colors */
  --color-primary: #5C6AC4; /* Shopify purple */
  --color-secondary: #00A0AC; /* Shopify teal */
  --color-dark: #0A0E27;
  --color-darker: #050714;
  --color-accent: #7AB55C; /* Shopify green */
  --color-text: #E5E7EB;
  --color-text-muted: #9CA3AF;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #5C6AC4 0%, #00A0AC 100%);
  --gradient-dark: linear-gradient(180deg, #0A0E27 0%, #050714 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.2);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 20px rgba(92, 106, 196, 0.3);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
}

/* ============================================
   SHOPIFY LOGO BACKGROUND PATTERN
   ============================================ */

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  background: var(--gradient-dark);
}

.shopify-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  opacity: 0.03;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 100px,
      rgba(92, 106, 196, 0.05) 100px,
      rgba(92, 106, 196, 0.05) 101px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 100px,
      rgba(92, 106, 196, 0.05) 100px,
      rgba(92, 106, 196, 0.05) 101px
    );
  animation: patternMove 60s linear infinite;
}

/* Floating Shopify bag icons — subtle, 3 only */
.shopify-icon {
  position: absolute;
  width: 40px;
  height: 40px;
  opacity: 0.04;
  background: url('/images/shopify-bag.svg') center/contain no-repeat;
  animation: float 25s ease-in-out infinite;
}

.shopify-icon:nth-child(1) { top: 8%; left: 5%; animation-delay: 0s; }
.shopify-icon:nth-child(2) { top: 40%; right: 6%; animation-delay: 4s; }
.shopify-icon:nth-child(3) { bottom: 12%; left: 10%; animation-delay: 8s; }

@keyframes patternMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(100px, 100px); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-15px) rotate(3deg); }
  66% { transform: translateY(10px) rotate(-2deg); }
}

/* Utility */
.nowrap { white-space: nowrap; }

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #fff 0%, #E5E7EB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero .tagline {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.6;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero .stats {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  margin: var(--space-md) 0 0;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

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

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================
   CTA BUTTONS
   ============================================ */

.cta-group {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  cursor: pointer;
  will-change: transform;
}

.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: 1.15rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 2px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  background: rgba(92, 106, 196, 0.1);
  transform: translateY(-2px);
}

/* ============================================
   TRUST BADGES
   ============================================ */

.trust-badges {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  justify-content: center;
  margin-top: var(--space-md);
  padding: var(--space-sm) 0;
  animation: fadeInUp 0.8s ease-out 0.7s both;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.badge:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.badge-icon {
  width: 24px;
  height: 24px;
}

.badge-text {
  font-size: 0.9rem;
  color: var(--color-text);
  font-weight: 500;
}

/* ============================================
   BELOW-FOLD SECTIONS
   ============================================ */

.section-dark {
  background: var(--color-darker);
  padding: 2.5rem var(--space-md);
  position: relative;
}

.section-dark + .section-dark {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-md);
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 550px;
  margin: 0 auto;
}

.section-cta {
  text-align: center;
  margin-top: var(--space-md);
}

/* ============================================
   FEATURED RESULTS GRID
   ============================================ */

.featured-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.featured-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(92, 106, 196, 0.06) 0%, rgba(0, 160, 172, 0.04) 100%);
  border: 1px solid rgba(92, 106, 196, 0.12);
  border-radius: 16px;
  padding: 1.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s;
}

.featured-card:hover {
  border-color: rgba(92, 106, 196, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.featured-card:hover::before {
  opacity: 1;
}

.featured-result-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
  background: rgba(0, 160, 172, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.featured-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.featured-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}

.featured-card-metrics {
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1rem;
}

.featured-card-metric {
  flex: 1;
  text-align: center;
}

.featured-card-val {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.featured-card-lbl {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.featured-card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #5C6AC4;
  transition: color 0.2s;
}

.featured-card:hover .featured-card-link {
  color: #7c8aed;
}

/* ============================================
   SERVICES GRID
   ============================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.services-grid .card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.services-grid .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 0;
}

.services-grid .card:hover {
  transform: translateY(-4px);
  border-color: rgba(92, 106, 196, 0.3);
}

.services-grid .card:hover::before {
  opacity: 0.04;
}

.services-grid .card > * {
  position: relative;
  z-index: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(92, 106, 196, 0.1);
  border-radius: 12px;
  margin-bottom: 1.25rem;
  color: var(--color-primary);
}

.services-grid h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.65rem;
}

.services-grid p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s;
}

.testimonial-card.testimonial-hidden {
  display: none;
}

.testimonial-card:hover {
  border-color: rgba(92, 106, 196, 0.25);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.65;
  flex: 1;
  margin: 0 0 1.25rem 0;
  font-style: normal;
}

.testimonial-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1rem;
}

.testimonial-source {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.testimonial-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.testimonial-tag {
  font-size: 0.7rem;
  color: var(--color-secondary);
  background: rgba(0, 160, 172, 0.08);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

/* ============================================
   FINAL CTA
   ============================================ */

.section-cta-final {
  padding: 2.5rem var(--space-md);
}

.cta-final {
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
}

.cta-final h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.cta-final p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* ============================================
   CARD COMPONENTS
   ============================================ */

.card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: var(--space-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.card > * {
  position: relative;
  z-index: 1;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   LOADING STATES
   ============================================ */

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.03) 25%,
    rgba(255,255,255,0.06) 50%,
    rgba(255,255,255,0.03) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .shopify-pattern { animation: none; opacity: 0.02; }
  .shopify-icon:nth-child(3) { display: none; }
  .shopify-icon { animation-duration: 30s; }
  .hero { min-height: auto; padding: 3.5rem 1rem 2.5rem; }
  .hero h1 { font-size: clamp(1.8rem, 7vw, 2.5rem); }
  .hero .tagline { font-size: 0.95rem; margin-bottom: 1.5rem; }
  .hero .stats { display: none; }
  .cta-group { flex-direction: column; width: 100%; margin-bottom: 0; }
  .btn { width: 100%; justify-content: center; }
  .trust-badges { flex-direction: row; margin-top: 1.5rem; padding: 0; }
  .badge { width: auto; flex: 1; justify-content: center; padding: 0.5rem 0.75rem; font-size: 0.85rem; }

  .section-dark { padding: 2.5rem 1rem; }
  .section-header { margin-bottom: 2rem; }
  .section-header h2 { font-size: 1.65rem; margin-bottom: 0.5rem; }
  .section-subtitle { font-size: 0.95rem; }
  .section-cta { margin-top: 2rem; }
  .featured-results-grid { grid-template-columns: 1fr; }
  .featured-card { padding: 1.5rem; }
  .featured-card h3 { font-size: 1.05rem; }
  .featured-card-desc { font-size: 0.85rem; margin-bottom: 1rem; }
  .featured-result { padding: 2rem 1.5rem; }
  .featured-metrics { flex-direction: column; gap: 1.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .services-grid .card { padding: 1.5rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card { padding: 1.25rem; }
  .section-cta-final { padding: 2.5rem 1rem; }
  .cta-final h2 { font-size: 1.4rem; }
  .cta-final p { font-size: 0.95rem; margin-bottom: 1.5rem; }
}

@media (max-width: 480px) {
  .section-dark { padding: 2rem 1rem; }
  .section-header { margin-bottom: 1.5rem; }
  .section-header h2 { font-size: 1.4rem; }
  .featured-card { padding: 1.25rem; }
}

@media (max-width: 480px) {
  .stat-number { font-size: 2rem; }
  .btn { font-size: 1rem; padding: 0.875rem 1.25rem; }
  .featured-metric-value { font-size: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; }
  .shopify-pattern, .shopify-icon { animation: none !important; }
}

/* Floating Shopify Icons (JS-created) */
.floating-icons {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.floating-icons * {
  pointer-events: auto;
}

.floating-icon {
  position: absolute;
  animation: float 25s infinite ease-in-out;
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.3s;
}

.floating-icon:hover {
  opacity: 0.15;
  transform: scale(1.3);
}

.floating-icon img {
  width: 100%;
  height: 100%;
  filter: brightness(0) saturate(100%) invert(76%) sepia(18%) saturate(1739%) hue-rotate(54deg) brightness(95%) contrast(88%);
}

.floating-icon.launched {
  pointer-events: none;
}

.rocket-emoji {
  font-size: 1.8rem;
  display: block;
  line-height: 1;
}

/* Moon target — persistent in top-right */
.moon-target {
  position: fixed;
  top: 80px;
  right: 40px;
  font-size: 2rem;
  opacity: 0.15;
  transition: all 0.4s ease;
  pointer-events: none;
  z-index: 2;
}
.moon-target.moon-glow {
  opacity: 1;
  transform: scale(1.5);
  filter: drop-shadow(0 0 20px rgba(255, 220, 100, 0.8));
}

/* Shopify Code Matrix */
.code-matrix {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 768px) {
  .code-matrix { display: none; }
}

/* Mobile - hide JS floating icons */
@media (max-width: 768px) {
  .floating-icons {
    display: none;
  }
}

/* ============================================
   BREADCRUMBS (last file = highest priority)
   ============================================ */
nav.breadcrumbs {
  background: var(--color-darker, #050714);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.5rem 0;
}
nav.breadcrumbs .breadcrumb-list {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  font-size: 0.78rem;
  padding: 0;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
}
nav.breadcrumbs .breadcrumb-item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  flex-shrink: 0;
}
nav.breadcrumbs .breadcrumb-item:last-child {
  flex-shrink: 1;
  overflow: hidden;
}
nav.breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  color: rgba(255, 255, 255, 0.25);
  margin: 0 0.4rem;
  flex-shrink: 0;
}
nav.breadcrumbs .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}
nav.breadcrumbs .breadcrumb-item a:hover {
  color: var(--color-primary, #5C6AC4);
}
nav.breadcrumbs .breadcrumb-current {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 768px) {
  nav.breadcrumbs {
    display: none;
  }
}
