/* ═══════════════════════════════════════════════════════════════════════════════
   DIGIOPS PRICING PAGE - Ultra Modern Light Theme
   Animated backgrounds, glassmorphism, dramatic effects
═══════════════════════════════════════════════════════════════════════════════ */

:root {
  --bg-dark: #e8ecf3;
  --bg-gradient: linear-gradient(135deg, #e8ecf3 0%, #d4dbe8 50%, #eef1f6 100%);

  --text: #1a2332;
  --text-muted: #5a6a7a;
  --text-dark: #1a1a2e;

  --accent-primary: #1e6bb8;
  --accent-secondary: #27ae60;
  --accent-glow: rgba(30, 107, 184, 0.5);

  --pro-gradient: linear-gradient(135deg, #1e6bb8 0%, #27ae60 50%, #2ecc71 100%);
  --pro-glow: rgba(30, 107, 184, 0.4);

  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(30, 107, 184, 0.15);
  --glass-shine: rgba(255, 255, 255, 0.8);

  --success: #27ae60;
  --success-glow: rgba(39, 174, 96, 0.4);

  --r-xl: 24px;
  --r-lg: 16px;
  --r-md: 12px;

  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-dark);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ANIMATED BACKGROUND
═══════════════════════════════════════════════════════════════════════════════ */
.pricing-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--bg-gradient);
  overflow: hidden;
}

.pricing-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.05) 0%, transparent 40%);
  animation: bgPulse 25s ease-in-out infinite;
}

@keyframes bgPulse {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(2%, 2%) rotate(1deg); }
  50% { transform: translate(-1%, 3%) rotate(-1deg); }
  75% { transform: translate(3%, -2%) rotate(2deg); }
}

/* Floating orbs - subtle */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-primary);
  top: 5%;
  left: 5%;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-secondary);
  top: 50%;
  right: 5%;
  animation-delay: -7s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: #f59e0b;
  bottom: 10%;
  left: 25%;
  animation-delay: -12s;
  opacity: 0.15;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(20px, 30px) scale(1.02); }
}

/* Grid pattern overlay */
.pricing-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 107, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 107, 184, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════════════════════════════════ */
.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 24px 120px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════════════════════ */
.hero {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out;
}

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

.hero h1 {
  margin: 0 0 24px;
  font-weight: 800;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero .accent {
  background: var(--pro-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero .accent::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--pro-gradient);
  border-radius: 2px;
  opacity: 0.5;
}

.hero .sublead {
  color: var(--text-muted);
  margin: 20px auto 0;
  font-size: 1.2rem;
  font-weight: 500;
  max-width: 500px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   BILLING TOGGLE - Pill Style
═══════════════════════════════════════════════════════════════════════════════ */
.billing-toggle {
  position: relative;
  display: inline-flex;
  gap: 4px;
  padding: 6px;
  background: var(--glass-bg);
  border-radius: 999px;
  user-select: none;
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 var(--glass-shine);
}

.billing-toggle .thumb {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 120px;
  pointer-events: none;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  transform: translateX(0);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.3s ease;
}

.toggle-btn {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 999px;
  cursor: pointer;
  outline: none;
  transition: color 0.3s ease, transform 0.2s ease;
}

.toggle-btn:hover:not(.active) {
  color: var(--text);
}

.toggle-btn.active {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.toggle-btn:focus-visible {
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Ripple */
.toggle-btn::after {
  content: "";
  position: absolute;
  left: var(--ripple-x, 50%);
  top: var(--ripple-y, 50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  opacity: 0;
}

.toggle-btn.press::after {
  animation: ripple 0.6s ease-out forwards;
}

@keyframes ripple {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(25); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SECTION SUBTITLES
═══════════════════════════════════════════════════════════════════════════════ */
.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PRICING GRID
═══════════════════════════════════════════════════════════════════════════════ */
.grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(3, 1fr);
  margin: 48px 0 64px;
  perspective: 1000px;
}

@media (max-width: 1024px) {
  .grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CARDS - Glassmorphism
═══════════════════════════════════════════════════════════════════════════════ */
.card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: cardFadeIn 0.6s ease-out backwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(40px) rotateX(10deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

/* Glow border on hover */
.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--r-xl);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover::before {
  opacity: 0.6;
}

/* Shine effect - bottom to top on all cards */
.card::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    0deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 100%
  );
  transition: bottom 0.7s ease;
  pointer-events: none;
  z-index: 2;
}

.card:hover::after {
  bottom: 100%;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.25),
    0 0 30px rgba(99, 102, 241, 0.15);
}

/* Light card specifics */
.card.light {
  background: rgba(255, 255, 255, 0.05);
}

/* PRO Card - Extra special */
.card.pro {
  background: var(--pro-gradient);
  border: none;
  box-shadow:
    0 8px 30px rgba(245, 158, 11, 0.25),
    0 0 40px rgba(245, 158, 11, 0.15);
  transform: scale(1.05);
}

.card.pro::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.5), rgba(255,255,255,0.2));
}

.card.pro:hover {
  transform: translateY(-10px) scale(1.07);
  box-shadow:
    0 25px 50px rgba(245, 158, 11, 0.3),
    0 0 50px rgba(245, 158, 11, 0.2);
}

.card.pro:hover::before {
  opacity: 0.4;
}

.card .muted {
  color: var(--text-muted);
}

.card.pro .muted {
  color: rgba(0, 0, 0, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CARD INNER
═══════════════════════════════════════════════════════════════════════════════ */
.card-inner {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 32px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.kicker {
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 16px;
  color: var(--accent-primary);
}

.card.pro .kicker {
  color: rgba(0, 0, 0, 0.7);
}

.price {
  font-size: 64px;
  line-height: 1;
  font-weight: 900;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #1a2332 0%, #3a4a5a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card.pro .price {
  background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.per {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.card.pro .per {
  color: rgba(0, 0, 0, 0.6);
}

.ul {
  margin: 20px 0 32px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.card.pro .ul {
  color: rgba(0, 0, 0, 0.8);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════════════════════ */
.btn-outline,
.btn-solid,
.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: var(--r-lg);
  font-size: 1rem;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Button shine effect */
.btn-outline::before,
.btn-solid::before,
.btn-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-outline:hover::before,
.btn-solid:hover::before,
.btn-dark:hover::before {
  left: 100%;
}

/* Outline Button */
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
}

.btn-outline:hover {
  background: var(--accent-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
}

/* Solid Button (Pro card) */
.btn-solid {
  background: #fff;
  color: #b45309;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Dark Button */
.btn-dark {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FASTTRACK SECTION
═══════════════════════════════════════════════════════════════════════════════ */
.ft {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  padding: 56px 48px;
  backdrop-filter: blur(20px);
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

/* Decorative gradient blob - subtle */
.ft::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.ft h2 {
  text-align: center;
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  position: relative;
}

.ft .sub {
  text-align: center;
  margin: 0 0 32px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1.1rem;
}

.ft p {
  margin: 16px 0;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  position: relative;
}

.ft .inline-strong {
  font-weight: 800;
  color: var(--success);
}

.ft .actions {
  text-align: center;
  margin-top: 32px;
}

.ft .btn-solid {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.ft .btn-solid:hover {
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   IMPLEMENTATION SUPPORT SECTION
═══════════════════════════════════════════════════════════════════════════════ */
.impl-section {
  margin-top: 64px;
  padding: 56px 0;
  position: relative;
  animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.impl-section .section-subtitle {
  margin-bottom: 8px;
}

.impl-subtitle {
  text-align: center;
  margin: 0 0 48px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 1.1rem;
}

.impl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.impl-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  align-items: stretch;
}

.impl-grid-2 .impl-card {
  height: 100%;
}

@media (max-width: 1024px) {
  .impl-grid,
  .impl-grid-2 {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }
}

.impl-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
}

.impl-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.impl-card.impl-featured {
  background: linear-gradient(135deg, rgba(30, 107, 184, 0.1) 0%, rgba(39, 174, 96, 0.1) 100%);
  border-color: rgba(30, 107, 184, 0.3);
}

.impl-card.impl-featured:hover {
  transform: translateY(-8px);
}

.impl-card.impl-premium {
  background: linear-gradient(135deg, rgba(247, 149, 29, 0.08) 0%, rgba(255, 169, 64, 0.08) 100%);
  border-color: rgba(247, 149, 29, 0.25);
}

.impl-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pro-gradient);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.impl-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: var(--pro-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  box-shadow: 0 8px 24px rgba(30, 107, 184, 0.25);
}

.impl-card.impl-premium .impl-icon {
  background: linear-gradient(135deg, #f7951d 0%, #ffa940 100%);
  box-shadow: 0 8px 24px rgba(247, 149, 29, 0.25);
}

.impl-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.impl-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-primary);
  margin-bottom: 4px;
}

.impl-card.impl-premium .impl-price {
  color: #f7951d;
}

.impl-price-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  min-height: 40px;
}

.impl-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  text-align: left;
  flex: 1;
}

.impl-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.impl-features li:last-child {
  border-bottom: none;
}

.impl-features li i {
  color: var(--success);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.impl-ideal {
  background: rgba(0, 0, 0, 0.03);
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.impl-ideal strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.impl-price-alt {
  display: block;
  font-size: 0.8rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-top: 4px;
}

.impl-card-bottom {
  margin-top: auto;
}

.impl-disclaimer {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: var(--r-md);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.4;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.impl-cta {
  text-align: center;
  margin-top: 32px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FOOTER LINKS
═══════════════════════════════════════════════════════════════════════════════ */
.pricing-footer {
  text-align: center;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
}

.pricing-footer a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-footer a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

.pricing-footer a:hover {
  color: var(--text);
}

.pricing-footer a:hover::after {
  width: 100%;
}

.pricing-footer .sep {
  color: var(--text-muted);
  margin: 0 16px;
  opacity: 0.3;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .wrap {
    padding: 60px 16px 100px;
  }

  .card.pro {
    transform: scale(1);
  }

  .card.pro:hover {
    transform: translateY(-12px) scale(1.02);
  }

  .card-inner {
    padding: 40px 24px;
    min-height: 380px;
  }

  .price {
    font-size: 52px;
  }

  .ft {
    padding: 40px 24px;
  }

  .billing-toggle {
    flex-wrap: wrap;
    border-radius: var(--r-lg);
  }

  .toggle-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════════════════════════════════════ */
.grid, .card, .card-inner { min-width: 0; }
.price, .kicker, .ul, .per { word-break: keep-all; }

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}
