/* ═══════════════════════════════════════════════
   MODERN CARD DESIGN SYSTEM
═══════════════════════════════════════════════ */

:root {
  --card-radius: 16px;
  --card-radius-lg: 20px;
  --card-border: 1px solid rgba(255, 255, 255, 0.08);
  --card-border-hover: 1px solid rgba(77, 171, 255, 0.35);
  --card-bg: rgba(7, 22, 40, 0.65);
  --card-bg-solid: #071628;
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  --card-shadow-hover: 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(13, 110, 253, 0.12);
  --card-glow: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(13, 110, 253, 0.15), transparent 70%);
}

/* ── Service cards (horizontal scroll) ── */
.service-card {
  width: 360px;
  border-radius: var(--card-radius-lg);
  padding: 44px 40px;
  background: linear-gradient(165deg, rgba(12, 35, 64, 0.9) 0%, rgba(5, 13, 26, 0.95) 100%);
  backdrop-filter: blur(12px);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  isolation: isolate;
}
.service-card::before {
  background: var(--card-glow);
  opacity: 0.6;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(77, 171, 255, 0.25), transparent 40%, transparent 60%, rgba(13, 110, 253, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(77, 171, 255, 0.25);
}
.service-card:hover::after { opacity: 1; }
.service-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.25), rgba(26, 140, 255, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(13, 110, 253, 0.15);
}
.service-num {
  font-size: 72px;
  background: linear-gradient(180deg, rgba(77, 171, 255, 0.2), transparent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.service-card:hover .service-num {
  background: linear-gradient(180deg, rgba(77, 171, 255, 0.35), transparent);
  -webkit-background-clip: text;
  background-clip: text;
}
.stag {
  border-radius: 100px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
}

/* ── Product cards ── */
.product-card {
  border-radius: var(--card-radius-lg);
  background: linear-gradient(180deg, rgba(9, 30, 58, 0.95) 0%, rgba(5, 13, 26, 1) 100%);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 110, 253, 0.06) 0%, transparent 35%);
  pointer-events: none;
  z-index: 1;
}
.product-card.featured {
  background: linear-gradient(165deg, #0a2244 0%, #061528 50%, #040d18 100%);
  border: 1px solid rgba(77, 171, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.2), 0 20px 60px rgba(13, 110, 253, 0.15);
}
.product-card.featured:not(:has(.product-badge))::after {
  content: 'Flagship';
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--c-blue), var(--c-arc));
  color: var(--c-white);
  box-shadow: 0 4px 16px rgba(13, 110, 253, 0.4);
}
.product-card-img {
  height: 240px;
}
.product-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 13, 26, 0.4) 60%, rgba(5, 13, 26, 0.95) 100%);
  z-index: 1;
  pointer-events: none;
}
.product-body {
  padding: 36px 32px 32px;
  position: relative;
  z-index: 2;
}
.product-badge {
  z-index: 2;
  backdrop-filter: blur(12px);
  padding: 7px 14px;
  font-size: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.product-link {
  padding: 12px 0;
  border-top: 1px solid var(--c-line);
  margin-top: 8px;
  width: 100%;
}

/* ── Feature cards (product / about pages) ── */
.feature-grid {
  gap: 20px;
}
.feature-card {
  position: relative;
  padding: 32px 28px 28px 28px;
  padding-top: 88px;
  border-radius: var(--card-radius);
  background: linear-gradient(165deg, rgba(12, 35, 64, 0.55) 0%, rgba(7, 22, 40, 0.85) 100%);
  backdrop-filter: blur(8px);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-arc), transparent);
  opacity: 0.7;
}
.feature-card::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -30%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.12), transparent 70%);
  pointer-events: none;
  transition: opacity 0.35s;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(77, 171, 255, 0.3);
  box-shadow: var(--card-shadow-hover);
}
.feature-card:hover::after { opacity: 1.5; }
.feature-card-icon {
  position: absolute;
  top: 28px;
  left: 28px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.22), rgba(26, 140, 255, 0.06));
  border: 1px solid rgba(77, 171, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.feature-card-icon svg {
  width: 22px;
  height: 22px;
  color: var(--c-glow);
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1.3;
}
.feature-card p {
  font-size: 14px;
  line-height: 1.7;
}

/* Icon colour accents by position */
.feature-grid .feature-card:nth-child(3n+1) .feature-card-icon {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.28), rgba(13, 110, 253, 0.06));
}
.feature-grid .feature-card:nth-child(3n+2) .feature-card-icon {
  background: linear-gradient(135deg, rgba(26, 140, 255, 0.22), rgba(77, 171, 255, 0.06));
}
.feature-grid .feature-card:nth-child(3n) .feature-card-icon {
  background: linear-gradient(135deg, rgba(100, 180, 255, 0.18), rgba(13, 110, 253, 0.05));
}

/* ── Explore cards ── */
.explore-card {
  position: relative;
  padding: 40px 36px;
  border-radius: var(--card-radius-lg);
  background: linear-gradient(165deg, rgba(12, 35, 64, 0.5) 0%, rgba(5, 13, 26, 0.9) 100%);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  min-height: 240px;
}
.explore-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(0deg, rgba(13, 110, 253, 0.08), transparent);
  pointer-events: none;
}
.explore-card:hover {
  transform: translateY(-8px);
  border-color: rgba(77, 171, 255, 0.35);
  box-shadow: var(--card-shadow-hover);
}
.explore-card-num {
  font-size: 56px;
  background: linear-gradient(180deg, rgba(77, 171, 255, 0.35), rgba(13, 110, 253, 0.05));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.explore-card-link {
  margin-top: auto;
  padding-top: 16px;
}

/* ── Testimonial cards ── */
.testimonial-card,
.testi-card {
  position: relative;
  padding: 40px 36px 36px;
  border-radius: var(--card-radius-lg);
  background: linear-gradient(165deg, rgba(12, 35, 64, 0.6) 0%, rgba(7, 22, 40, 0.95) 100%);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
}
.testimonial-card::before,
.testi-card::before {
  content: '\201C';
  position: absolute;
  top: 12px;
  right: 28px;
  font-family: 'Instrument Serif', serif;
  font-size: 120px;
  line-height: 1;
  color: rgba(13, 110, 253, 0.12);
  pointer-events: none;
}
.testimonial-card:hover,
.testi-card:hover {
  transform: translateY(-6px);
  border-color: rgba(77, 171, 255, 0.25);
  box-shadow: var(--card-shadow-hover);
}
.testimonial-card blockquote,
.testi-quote {
  position: relative;
  z-index: 1;
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 28px;
  padding-top: 8px;
}
.testimonial-card cite,
.testi-name {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 800;
  color: var(--c-white);
}
.testimonial-card cite::before,
.testi-info::before {
  content: attr(data-initial);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--c-blue), #6366f1);
  color: var(--c-white);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.35);
}
.testimonial-card .role,
.testi-role {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-slate);
}
.testimonial-card cite {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.testimonial-card cite::before {
  margin-bottom: 12px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line);
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--c-blue), var(--c-arc));
  color: var(--c-white);
  box-shadow: 0 4px 16px rgba(13, 110, 253, 0.3);
}
.testimonial-meta strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--c-white);
}
.testimonial-meta span {
  font-size: 12px;
  color: var(--c-slate);
}

/* ── Pricing tiers ── */
.pricing-tier {
  position: relative;
  padding: 36px 28px;
  border-radius: var(--card-radius);
  background: linear-gradient(180deg, rgba(7, 22, 40, 0.9), rgba(5, 13, 26, 0.95));
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
  overflow: hidden;
}
.pricing-tier::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--card-glow);
  opacity: 0.4;
  pointer-events: none;
}
.pricing-tier:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 171, 255, 0.2);
  box-shadow: var(--card-shadow-hover);
}
.pricing-tier.featured {
  border: 1px solid rgba(77, 171, 255, 0.5);
  background: linear-gradient(165deg, #0c2850 0%, #071628 60%, #050d1a 100%);
  box-shadow: 0 0 40px rgba(13, 110, 253, 0.2), var(--card-shadow);
  transform: scale(1.03);
}
.pricing-tier.featured::after {
  content: 'Popular';
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 100px;
  background: var(--c-blue);
  color: var(--c-white);
}
.pricing-tier .price {
  font-size: 42px;
  color: var(--c-white);
  background: linear-gradient(135deg, var(--c-white), var(--c-glow));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Market cards (about / markets) ── */
.market-card {
  padding: 36px 32px;
  border-radius: var(--card-radius);
  background: linear-gradient(165deg, rgba(12, 35, 64, 0.45) 0%, rgba(7, 22, 40, 0.8) 100%);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}
.market-card:hover {
  transform: translateX(6px);
  border-color: rgba(77, 171, 255, 0.25);
}
.market-block {
  padding: 0;
  border: none;
}
.markets-card-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.market-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.market-card-header h3 {
  margin: 0;
  font-size: 22px;
}
.market-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-slate);
}
.testimonial-card:nth-child(2) .testimonial-avatar {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}
.testimonial-card:nth-child(3) .testimonial-avatar {
  background: linear-gradient(135deg, #0ea5e9, var(--c-blue));
}
.testimonial-card:nth-child(4) .testimonial-avatar {
  background: linear-gradient(135deg, #10b981, #059669);
}

/* ── Product gallery ── */
.product-gallery-item {
  border-radius: var(--card-radius-lg);
  overflow: hidden;
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.product-gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}
.product-gallery-img-wrap {
  border-radius: var(--card-radius-lg) var(--card-radius-lg) 0 0;
}
.product-gallery-item figcaption {
  padding: 16px 20px;
  background: var(--c-deep);
  border-top: 1px solid var(--c-line);
}

/* ── Summit / highlight banner ── */
.summit-banner {
  border-radius: var(--card-radius-lg);
  border: 1px solid rgba(77, 171, 255, 0.25);
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.14) 0%, rgba(7, 22, 40, 0.9) 50%, rgba(5, 13, 26, 0.95) 100%);
  box-shadow: 0 20px 60px rgba(13, 110, 253, 0.1);
  position: relative;
  overflow: hidden;
}
.summit-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-arc), transparent);
}

/* ── Float cards (hero) ── */
.float-card {
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(12, 35, 64, 0.85), rgba(5, 13, 26, 0.92));
  backdrop-filter: blur(16px);
  border: 1px solid rgba(77, 171, 255, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.meta-tag {
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 14px;
}

@media (max-width: 1024px) {
  .pricing-tier.featured { transform: none; }
}

@media (max-width: 768px) {
  .service-card { width: 300px; padding: 36px 28px; }
  .feature-card { padding-top: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .service-card:hover,
  .product-card:hover,
  .feature-card:hover,
  .explore-card:hover,
  .testimonial-card:hover,
  .pricing-tier:hover,
  .market-card:hover {
    transform: none;
  }
}
