@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

html,
body {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #0c0c0c;
  color: #fff;
  overflow-x: hidden;
}

::selection {
  background: rgba(61, 129, 227, 0.3);
}

/* Shiny headline */
@keyframes shiny {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

.animate-shiny {
  animation: shiny 6s linear infinite;
}

/* Liquid-glass */
.liquid-glass {
  background: linear-gradient(160deg, rgba(18, 26, 44, 0.80) 0%, rgba(8, 12, 22, 0.88) 100%);
  background-blend-mode: luminosity;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: none;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.12),
    0 16px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.15) 20%,
      rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 60%,
      rgba(255, 255, 255, 0.15) 80%, rgba(255, 255, 255, 0.45) 100%);
  -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;
}

/* Background video placeholder (cinematic gradient until user drops a video) */
.video-placeholder {
  background:
    radial-gradient(60% 80% at 20% 10%, rgba(0, 210, 255, 0.18), transparent 60%),
    radial-gradient(50% 70% at 85% 30%, rgba(11, 37, 81, 0.55), transparent 65%),
    radial-gradient(80% 80% at 60% 110%, rgba(164, 244, 253, 0.10), transparent 60%),
    linear-gradient(180deg, #050709 0%, #0a0e16 45%, #07090c 100%);
}

.video-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  opacity: 0.4;
}

/* ============ Pricing ============ */
.c3-pricing-section {
  position: relative;
  padding: 40px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

.c3-watermark-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  text-align: center;
  margin-top: 40px;
  z-index: 2;
}

.c3-watermark-main {
  font-size: clamp(3rem, 9vw, 9rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  filter: url(#c3-noise);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.c3-watermark-line-1 {
  color: #fff;
}

.c3-watermark-line-2 {
  background: linear-gradient(to right, #091020 0%, #0B2551 25%, #A4F4FD 65%, #00d2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.c3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 1100px;
  margin-top: 60px;
  transform: translateX(20px);
  position: relative;
  z-index: 3;
}

.c3-card {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
  backdrop-filter: blur(14px) brightness(0.91);
  -webkit-backdrop-filter: blur(14px) brightness(0.91);
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: 44px;
  padding: 50px 24px;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  transition: all 0.6s cubic-bezier(.22, 1, .36, 1);
  overflow: hidden;
  position: relative;
}

.c3-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
}

.c3-card:hover {
  background: rgba(15, 15, 15, 0.6);
  border-color: rgba(34, 211, 238, 0.7);
  transform: translateY(-12px) scale(1.01);
}

.c3-card-pro {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.55));
}

.c3-tier-small {
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
}

.c3-tier-large {
  font-size: 2.8rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  margin-top: 8px;
}

.c3-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
  min-height: 3.2em;
  margin-top: 16px;
  margin-bottom: 40px;
  line-height: 1.5;
}

.c3-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.c3-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 18px;
  line-height: 1.4;
}

.c3-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.c3-btn {
  background: #fff;
  color: #000;
  padding: 10px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.88rem;
  margin-top: auto;
  border: none;
  cursor: pointer;
  align-self: center;
  transition: all 0.3s cubic-bezier(.22, 1, .36, 1);
}

.c3-btn:hover {
  background: #f5f5f5;
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.c3-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
  max-width: 1100px;
  margin-top: 32px;
  padding-right: 20px;
  position: relative;
  z-index: 3;
}

.c3-toggle-label {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
}

.c3-toggle {
  width: 52px;
  height: 28px;
  background: #fff;
  border-radius: 100px;
  position: relative;
  cursor: pointer;
  border: none;
  transition: background 0.3s cubic-bezier(.4, 0, .2, 1);
  padding: 0;
}

.c3-toggle-knob {
  width: 20px;
  height: 20px;
  background: #000;
  border-radius: 50%;
  position: absolute;
  top: 4px;
  left: 4px;
  transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
}

.c3-toggle.active {
  background: rgba(255, 255, 255, 0.2);
}

.c3-toggle.active .c3-toggle-knob {
  transform: translateX(24px);
  background: #fff;
}

@media (max-width: 1024px) {
  .c3-watermark-main {
    font-size: 3.5rem;
    filter: none;
  }

  .c3-watermark-line-2 {
    background: none;
    -webkit-text-fill-color: #00d2ff;
    color: #00d2ff;
  }

  .c3-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    transform: none;
    width: 100vw;
    padding: 0 20px;
    gap: 16px;
    scrollbar-width: none;
  }

  .c3-grid::-webkit-scrollbar {
    display: none;
  }

  .c3-card {
    flex: 0 0 320px;
    scroll-snap-align: center;
  }

  .c3-toggle-wrap {
    justify-content: center;
    padding-right: 0;
  }
}

/* ============ Coverflow Carousel ============ */
.cf-section {
  position: relative;
  z-index: 10;
  padding: 80px 20px 120px;
  overflow: hidden;
}

.cf-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
  position: relative;
  z-index: 3;
}

.cf-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.cf-sub {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Planet glow arc behind the cards */
.cf-planet {
  position: absolute;
  left: 50%;
  bottom: -62%;
  width: 150%;
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(0, 210, 255, 0.30) 0%, rgba(11, 37, 81, 0.55) 28%, rgba(7, 9, 12, 0) 55%);
  box-shadow:
    0 -2px 60px 8px rgba(0, 210, 255, 0.25),
    inset 0 40px 120px rgba(164, 244, 253, 0.18);
  pointer-events: none;
  z-index: 1;
}

.cf-planet::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border-top: 1.5px solid rgba(164, 244, 253, 0.55);
  -webkit-mask: linear-gradient(#000 0 0);
  filter: blur(0.5px);
}

.cf-rays {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: 60%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  background:
    repeating-conic-gradient(from 90deg at 50% 120%,
      rgba(164, 244, 253, 0) 0deg, rgba(164, 244, 253, 0) 4deg,
      rgba(164, 244, 253, 0.10) 4.4deg, rgba(164, 244, 253, 0) 5deg);
  -webkit-mask: radial-gradient(80% 90% at 50% 120%, #000 30%, transparent 75%);
  mask: radial-gradient(80% 90% at 50% 120%, #000 30%, transparent 75%);
}

/* Stage */
.cf-stage {
  position: relative;
  height: clamp(420px, 62vh, 520px);
  perspective: 1600px;
  z-index: 3;
}

.cf-track {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.cf-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(260px, 78vw, 340px);
  height: clamp(380px, 64vh, 440px);
  border-radius: 32px;
  overflow: hidden;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.7s cubic-bezier(.22, 1, .36, 1), opacity 0.7s cubic-bezier(.22, 1, .36, 1), filter 0.7s ease;
  background: linear-gradient(160deg, rgba(20, 24, 33, 0.9), rgba(8, 10, 14, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  will-change: transform, opacity;
}

.cf-card-glass {
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12), 0 30px 80px rgba(0, 0, 0, 0.55);
}

/* Illustration area */
.cf-art {
  position: relative;
  height: 252px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cf-art-bg {
  position: absolute;
  inset: 0;
  opacity: 0.95;
}

.cf-art-rays {
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(from 90deg at 50% 18%,
      rgba(255, 255, 255, 0) 0deg, rgba(255, 255, 255, 0) 3deg,
      rgba(255, 255, 255, 0.12) 3.4deg, rgba(255, 255, 255, 0) 4deg);
  -webkit-mask: radial-gradient(70% 80% at 50% 20%, #000 0%, transparent 70%);
  mask: radial-gradient(70% 80% at 50% 20%, #000 0%, transparent 70%);
  opacity: 0.7;
}

.cf-icon {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 8px 26px rgba(0, 0, 0, 0.45));
}

.cf-platform {
  position: absolute;
  bottom: 30px;
  left: 50%;
  width: 150px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(60% 100% at 50% 40%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 70%);
  filter: blur(2px);
  z-index: 1;
}

.cf-body {
  position: relative;
  padding: 28px 26px;
  background: linear-gradient(180deg, rgba(8, 10, 14, 0) 0%, rgba(8, 10, 14, 0.85) 35%, rgba(8, 10, 14, 0.95) 100%);
  margin-top: -40px;
}

.cf-card-title {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.cf-card-desc {
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
}

/* Dim/scale states applied inline via JS; this dims the non-active cards' art */
.cf-card[data-pos="side"] .cf-art-bg {
  filter: saturate(0.6) brightness(0.5);
}

.cf-card[data-pos="side"] {
  border-color: rgba(255, 255, 255, 0.06);
}

/* Controls */
.cf-controls {
  position: relative;
  z-index: 3;
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.cf-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(.22, 1, .36, 1);
  backdrop-filter: blur(8px);
}

.cf-arrow:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.06);
}

.cf-dots {
  display: flex;
  gap: 10px;
}

.cf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.4s cubic-bezier(.22, 1, .36, 1);
}

.cf-dot.active {
  width: 28px;
  border-radius: 100px;
  background: #fff;
}

/* cf-card / cf-stage sizes use clamp() above and scale fluidly across all widths. */

/* ============ Small phones (≈390px) ============ */
@media (max-width: 420px) {

  /* Carousel: tighter, more compact on small screens */
  .cf-section {
    padding: 48px 16px 64px;
  }

  .cf-head {
    margin-bottom: 28px;
  }

  .cf-sub {
    font-size: 0.95rem;
    margin-top: 14px;
    line-height: 1.5;
  }

  .cf-stage {
    height: clamp(380px, 56vh, 460px);
  }

  .cf-card {
    width: 80vw;
    height: 380px;
  }

  .cf-art {
    height: 208px;
  }

  .cf-card-title {
    font-size: 1.3rem;
  }

  .cf-card-desc {
    font-size: 0.9rem;
    margin-top: 10px;
  }

  .cf-controls {
    margin-top: 32px;
  }
}