/* ---------- Base & Variables ---------- */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #05080f;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-glow: rgba(0, 229, 255, 0.2);
  --text: #e6f1ff;
  --text-muted: #9aa7b8;
  --accent1: #7c6cff;
  --accent2: #00e5ff;
  --accent3: #00ffa3;
  --danger: #ff4757;
  --warning: #ffa502;
  --radius: 20px;
  --glow: 0 0 30px rgba(0, 229, 255, 0.25);
  --font-main: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: ""; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: -1;
  background: 
    radial-gradient(100vw 600px at 0% 0%, rgba(124,108,255,0.06) 0%, transparent 60%),
    radial-gradient(80vw 800px at 100% 50%, rgba(0,229,255,0.04) 0%, transparent 50%);
}

.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- Universal Header ---------- */
header {
  position: fixed; top: 0; width: 100%; z-index: 100;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(5, 8, 15, 0.65); border-bottom: 1px solid var(--stroke);
}
.bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.brand-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
#logo { height: 38px; filter: drop-shadow(0 2px 10px rgba(124,108,255,0.3)); }
.brand-title { font-size: 1.3rem; font-weight: 800; }
nav { display: flex; gap: 8px; align-items: center; }
.nav-link { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 8px 14px; border-radius: 999px; transition: color 0.2s, background 0.2s; }
.nav-link:hover { color: var(--text); background: var(--bg-card); }
.nav-link.active { color: var(--text); background: var(--bg-card-hover); border: 1px solid var(--stroke); }
.login-button { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 10px 20px; border-radius: 999px; cursor: pointer; text-decoration: none; background: linear-gradient(135deg, var(--accent2), var(--accent1)); color: #05080f; border: none; box-shadow: 0 4px 15px rgba(0,229,255,0.25); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.login-button:hover { box-shadow: 0 8px 25px rgba(124,108,255,0.45); transform: translateY(-2px); }

/* ---------- Pricing Hero ---------- */
main { padding: 140px 0 80px; position: relative; }
.pricing-bg-glow {
  position: absolute; top: -50px; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(124,108,255,0.15) 0%, transparent 60%);
  z-index: -1; pointer-events: none;
}

.pricing-hero { text-align: center; margin-bottom: 60px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: rgba(124, 108, 255, 0.1); border: 1px solid rgba(124, 108, 255, 0.25); color: var(--accent1); font-size: 0.85rem; font-weight: 700; border-radius: 99px; margin-bottom: 24px; text-transform: uppercase; letter-spacing: 1px; }
.pricing-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; margin: 0 0 20px; letter-spacing: -1px; }
.gradient-text { background: linear-gradient(135deg, var(--accent2), var(--accent1)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.pricing-hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; line-height: 1.6; }

/* ---------- Pricing Grid ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; align-items: stretch;
}

/* Base Card Styles */
.plan-card {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 32px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2); transition: transform 0.3s, border-color 0.3s;
  position: relative;
}
.plan-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.15); box-shadow: 0 30px 60px rgba(0,0,0,0.3); }

/* Pro Card Glow */
.plan-card.pro {
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.8), rgba(8, 12, 20, 0.95)), linear-gradient(135deg, #9b59b6, var(--accent2));
  background-origin: border-box; background-clip: padding-box, border-box;
  border: 1px solid transparent; box-shadow: 0 20px 50px rgba(0, 229, 255, 0.1);
  transform: translateY(-8px);
}
.plan-card.pro:hover {
  transform: translateY(-12px); box-shadow: 0 30px 60px rgba(0, 229, 255, 0.2);
}
@media (max-width: 1050px) { .plan-card.pro { transform: translateY(0); } .plan-card.pro:hover { transform: translateY(-4px); } }

.popular-badge {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  color: #000; font-weight: 800; font-size: 0.8rem; padding: 6px 16px;
  border-radius: 99px; white-space: nowrap; box-shadow: 0 4px 10px rgba(0,229,255,0.3); display: flex; align-items: center; gap: 6px;
}

/* Card Internals */
.plan-header { margin-bottom: 24px; text-align: center; border-bottom: 1px solid var(--stroke); padding-bottom: 24px; }
.plan-header h3 { font-size: 1.4rem; font-weight: 700; margin: 0 0 12px; color: #fff; }
.plan-card.free h3 { color: var(--text-muted); }
.plan-card.starter h3 { color: #3498db; }
.plan-card.pro h3 { background: linear-gradient(135deg, #9b59b6, var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.plan-card.business h3 { color: #f39c12; }
.plan-card.enterprise h3 { color: #e74c3c; }

.price { font-size: 2.5rem; font-weight: 800; color: #fff; line-height: 1; margin-bottom: 8px; }
.period { font-size: 0.9rem; color: var(--text-muted); }

.plan-features { list-style: none; padding: 0; margin: 0 0 32px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: var(--text-muted); line-height: 1.4; }
.plan-features li i { color: var(--accent3); margin-top: 3px; font-size: 0.85rem; }
.plan-features li.excluded { opacity: 0.45; }
.plan-features li.excluded i { color: var(--danger); }
.plan-card.free li i { color: var(--text-muted); }
.plan-card.enterprise li i { color: #e74c3c; }

.plan-footer { margin-top: auto; }
.cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 20px; border-radius: 8px; font-weight: 700; text-decoration: none;
  transition: all 0.2s; border: none; font-size: 1rem; cursor: pointer;
}
.cta.secondary { background: var(--bg-card-hover); border: 1px solid var(--stroke); color: #fff; }
.cta.secondary:hover { background: rgba(255,255,255,0.08); }

.cta.primary { background: linear-gradient(135deg, var(--accent2), var(--accent1)); color: #05080f; box-shadow: var(--glow); }
.cta.primary:hover { box-shadow: 0 8px 25px rgba(124,108,255,0.45); transform: translateY(-2px); }

.cta.outline { background: transparent; border: 1px solid var(--text-muted); color: var(--text-muted); }
.cta.outline:hover { background: rgba(255,255,255,0.05); color: #fff; border-color: #fff; }

.pricing-cta { text-align: center; margin-top: 60px; padding: 24px; background: var(--bg-card); border-radius: 12px; border: 1px solid var(--stroke); }
.pricing-cta p { color: var(--text-muted); margin: 0; font-size: 1.05rem; }
.pricing-cta a { color: var(--accent2); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.pricing-cta a:hover { text-decoration: underline; }

/* Universal Footer */
footer { padding: 60px 0 40px; border-top: 1px solid var(--stroke); background: rgba(0,0,0,0.2); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 16px; font-weight: 700; color: var(--text); }
.footer-logo { height: 40px; filter: grayscale(100%) opacity(0.5); }
.footer-brand p { margin: 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; font-weight: 400; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent2); }

/* Basic Animations */
.slide-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.slide-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; } .delay-3 { transition-delay: 0.3s; } .delay-4 { transition-delay: 0.4s; } .delay-5 { transition-delay: 0.5s; }
