/* ============================================================
   B2B Global Design System — GW Prints POD
   ============================================================ */

/* ----- Design Tokens ----- */
:root {
  /* Background layers */
  --b2b-bg-deepest: #050810;
  --b2b-bg-deep: #060a13;
  --b2b-bg-base: #0b111e;
  --b2b-bg-surface: rgba(30, 41, 59, 0.3);
  --b2b-bg-surface-hover: rgba(30, 41, 59, 0.5);
  --b2b-bg-glass: rgba(15, 23, 42, 0.65);

  /* Brand accent */
  --b2b-accent: #3b82f6;
  --b2b-accent-light: #60a5fa;
  --b2b-accent-glow: rgba(59, 130, 246, 0.35);
  --b2b-accent2: #a855f7;
  --b2b-accent2-glow: rgba(168, 85, 247, 0.3);
  --b2b-success: #10b981;
  --b2b-success-glow: rgba(16, 185, 129, 0.3);

  /* Text */
  --b2b-text-primary: #ffffff;
  --b2b-text-secondary: #cbd5e1;
  --b2b-text-muted: #94a3b8;
  --b2b-text-dim: #64748b;

  /* Borders */
  --b2b-border-subtle: rgba(255, 255, 255, 0.06);
  --b2b-border-light: rgba(255, 255, 255, 0.1);
  --b2b-border-medium: rgba(255, 255, 255, 0.15);

  /* Radius */
  --b2b-radius-sm: 8px;
  --b2b-radius-md: 12px;
  --b2b-radius-lg: 16px;
  --b2b-radius-xl: 20px;
  --b2b-radius-full: 100px;

  /* Spacing */
  --b2b-section-py: 100px;
  --b2b-container-max: 1280px;
  --b2b-container-px: 24px;

  /* Motion */
  --b2b-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --b2b-duration: 0.4s;
  --b2b-duration-slow: 0.6s;
}

@media screen and (max-width: 767px) {
  :root {
    --b2b-section-py: 60px;
    --b2b-container-px: 20px;
  }
}

/* ----- Container ----- */
.b2b-container {
  max-width: var(--b2b-container-max);
  margin: 0 auto;
  padding: 0 var(--b2b-container-px);
  position: relative;
  z-index: 2;
}

/* ----- Section Header Pattern ----- */
.b2b-section-header {
  text-align: center;
  margin-bottom: 60px;
}

@media screen and (max-width: 767px) {
  .b2b-section-header {
    margin-bottom: 40px;
  }
}

.b2b-section-tag {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--b2b-accent);
  margin-bottom: 14px;
  display: inline-block;
}

.b2b-section-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin: 0 0 16px 0;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media screen and (max-width: 767px) {
  .b2b-section-title {
    font-size: 30px;
  }
}

.b2b-section-subtitle {
  font-size: 17px;
  color: var(--b2b-text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ----- Buttons ----- */
.b2b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--b2b-radius-sm);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--b2b-ease);
  position: relative;
  overflow: hidden;
  line-height: 1.4;
}

.b2b-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.5s ease;
}

.b2b-btn:hover::before {
  left: 100%;
}

.b2b-btn--primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--b2b-accent-glow);
  border-color: rgba(255, 255, 255, 0.08);
}

.b2b-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--b2b-accent-glow);
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  color: #ffffff;
}

.b2b-btn--secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border-color: var(--b2b-border-light);
  backdrop-filter: blur(10px);
}

.b2b-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--b2b-border-medium);
  transform: translateY(-2px);
  color: #ffffff;
}

.b2b-btn--success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--b2b-success-glow);
  border-color: rgba(255, 255, 255, 0.08);
}

.b2b-btn--success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--b2b-success-glow);
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: #ffffff;
}

.b2b-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ----- Card Base ----- */
.b2b-card {
  background: var(--b2b-bg-surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--b2b-border-subtle);
  border-radius: var(--b2b-radius-lg);
  padding: 32px;
  transition: all var(--b2b-duration) var(--b2b-ease);
  position: relative;
}

.b2b-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 50%, transparent 100%);
  transition: all var(--b2b-duration) ease;
}

.b2b-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.25);
  background: var(--b2b-bg-surface-hover);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.b2b-card:hover::before {
  background: linear-gradient(90deg, transparent 0%, var(--b2b-accent) 50%, transparent 100%);
}

/* ----- Decorative Elements ----- */
.b2b-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.b2b-glow-orb--blue {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
}

.b2b-glow-orb--purple {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.10) 0%, transparent 70%);
}

.b2b-section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
}

/* ----- Scroll Animations ----- */
.b2b-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--b2b-ease), transform 0.7s var(--b2b-ease);
}

.b2b-animate--scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s var(--b2b-ease), transform 0.7s var(--b2b-ease);
}

.b2b-animate--left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s var(--b2b-ease), transform 0.7s var(--b2b-ease);
}

.b2b-animate--right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s var(--b2b-ease), transform 0.7s var(--b2b-ease);
}

.b2b-animate.is-visible,
.b2b-animate--scale.is-visible,
.b2b-animate--left.is-visible,
.b2b-animate--right.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger children */
.b2b-stagger > .b2b-animate:nth-child(1) { transition-delay: 0s; }
.b2b-stagger > .b2b-animate:nth-child(2) { transition-delay: 0.08s; }
.b2b-stagger > .b2b-animate:nth-child(3) { transition-delay: 0.16s; }
.b2b-stagger > .b2b-animate:nth-child(4) { transition-delay: 0.24s; }
.b2b-stagger > .b2b-animate:nth-child(5) { transition-delay: 0.32s; }
.b2b-stagger > .b2b-animate:nth-child(6) { transition-delay: 0.40s; }

/* ----- Counter Animation ----- */
@keyframes b2b-count-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.b2b-counter-pop {
  animation: b2b-count-pop 0.4s var(--b2b-ease);
}

/* ----- Pulse Dot ----- */
@keyframes b2b-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
}

.b2b-pulse {
  animation: b2b-pulse 2s infinite;
}

/* ----- Float Animation ----- */
@keyframes b2b-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.b2b-float {
  animation: b2b-float 3s ease-in-out infinite;
}

/* ----- Shimmer ----- */
@keyframes b2b-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ----- Responsive Utilities ----- */
@media screen and (max-width: 575px) {
  .b2b-card {
    padding: 24px;
  }
}


/* ----- Light Mode Color System ----- */
.b2b-light-mode {
  /* Background layers */
  --b2b-bg-deepest: #f8fafc;
  --b2b-bg-deep: #f1f5f9;
  --b2b-bg-base: #ffffff;
  --b2b-bg-surface: rgba(241, 245, 249, 0.7);
  --b2b-bg-surface-hover: rgba(226, 232, 240, 0.9);
  --b2b-bg-glass: rgba(255, 255, 255, 0.85);

  /* Brand accent */
  --b2b-accent: #2563eb;
  --b2b-accent-light: #3b82f6;
  --b2b-accent-glow: rgba(37, 99, 235, 0.12);
  --b2b-accent2: #9333ea;
  --b2b-accent2-glow: rgba(147, 51, 234, 0.1);
  --b2b-success: #059669;
  --b2b-success-glow: rgba(5, 150, 105, 0.12);

  /* Text */
  --b2b-text-primary: #0f172a;
  --b2b-text-secondary: #334155;
  --b2b-text-muted: #475569;
  --b2b-text-dim: #64748b;

  /* Borders */
  --b2b-border-subtle: rgba(15, 23, 42, 0.05);
  --b2b-border-light: rgba(15, 23, 42, 0.08);
  --b2b-border-medium: rgba(15, 23, 42, 0.12);
}

/* Specific Light Mode overrides */
.b2b-light-mode .b2b-section-title {
  background: linear-gradient(135deg, #0f172a 0%, #334155 50%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.b2b-light-mode .b2b-btn--secondary {
  background: rgba(15, 23, 42, 0.04);
  color: #0f172a;
  border-color: var(--b2b-border-light);
}

.b2b-light-mode .b2b-btn--secondary:hover {
  background: rgba(15, 23, 42, 0.08);
  border-color: var(--b2b-border-medium);
  color: #0f172a;
}

.b2b-light-mode .b2b-card::before {
  background: linear-gradient(90deg, transparent 0%, rgba(15, 23, 42, 0.08) 50%, transparent 100%);
}

.b2b-light-mode .b2b-card:hover {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
}

.b2b-light-mode .b2b-section-divider {
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.04), transparent);
}
