:root {
  --brand-50:  #f3f2fd;
  --brand-100: #e3dcfa;
  --brand-200: #d1c4f4;
  --brand-300: #c4b5f0;
  --brand-400: #BFAEED;
  --brand-500: #9b86e0;
  --brand-600: #7b62cd;
  --brand-700: #604da1;
  --brand-800: #463a78;
  --brand-900: #281f45;

  --gray-50:  #F7FAFC;
  --gray-100: #EDF2F7;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E0;
  --gray-500: #718096;
  --gray-600: #4A5568;
  --gray-700: #2D3748;
  --gray-900: #1A202C;

  --bg: #ffffff;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --radius-card: 16px;
  --radius-pill: 9999px;

  --shadow-card: 0 4px 24px rgba(40, 31, 69, 0.06);
  --shadow-card-emphasized: 0 12px 40px rgba(123, 98, 205, 0.18);

  --gradient-brand: linear-gradient(45deg, #805ad5, #3182ce, #553c9a, #805ad5);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--brand-600);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(191, 174, 237, 0.45), transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(155, 134, 224, 0.18), transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(96, 77, 161, 0.12), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.wordmark {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 1.25rem;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 500;
  color: var(--gray-700);
  margin: 0 0 0.75rem;
}

.subline {
  font-size: 1.0625rem;
  color: var(--gray-500);
  margin: 0;
}

/* ---------- Pricing section ---------- */

.pricing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.tier {
  position: relative;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-card);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tier-name {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-600);
  margin: 0 0 0.5rem;
}

.tier-price {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.1;
  margin: 0 0 0.25rem;
}

.tier-price .currency {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-500);
  vertical-align: top;
  margin-right: 0.15rem;
}

.tier-price .period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-500);
  margin-left: 0.25rem;
}

.tier-desc {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin: 0 0 1.5rem;
  min-height: 2.85rem;
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.tier-features li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--gray-700);
  margin-bottom: 0.65rem;
}

.tier-features li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--brand-500);
  font-weight: 700;
}

.tier-cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.7rem 1.5rem;
  background: var(--gradient-brand);
  background-size: 200% 200%;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(123, 98, 205, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-position 0.4s ease;
}

.tier-cta:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(123, 98, 205, 0.35);
  background-position: 100% 50%;
}

/* ---------- Emphasized tiers (Pro & Max) ---------- */

/* Pro: subtle accent — light purple border, no lift */
.tier-pro {
  border-color: var(--brand-300);
}

/* Max: strongest accent — tinted background, deeper border, slight lift */
.tier-max {
  background: var(--brand-50);
  border-color: var(--brand-500);
  box-shadow: 0 8px 28px rgba(123, 98, 205, 0.12);
  transform: translateY(-4px);
}

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

/* ---------- Footer ---------- */

.footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--gray-500);
}

.footer a {
  color: var(--brand-600);
  font-weight: 500;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 4rem 1.25rem 2.5rem;
  }
  .pricing {
    padding: 2rem 1.25rem 3rem;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .tier {
    padding: 1.75rem 1.5rem;
  }
}
