/* ================================================================
   MOZPROTECH · pricing.css
   Design: Professional dark SaaS · Restrained · Legible
   Fonts: Outfit (headings) · Inter (body)
================================================================ */

/* ──────────────────────────────────────
   TOKENS
────────────────────────────────────── */
:root {
  --bg:             #090e1a;
  --bg-card:        #0e1526;
  --bg-card-pro:    #0d1628;

  --cyan:           #00e5c8;
  --cyan-faint:     rgba(0, 229, 200, 0.08);
  --cyan-border:    rgba(0, 229, 200, 0.28);
  --cyan-glow:      rgba(0, 229, 200, 0.14);

  --border:         rgba(255, 255, 255, 0.07);
  --border-hover:   rgba(255, 255, 255, 0.13);
  --border-pro:     rgba(0, 229, 200, 0.30);

  --text-1:         #f0f4ff;       /* primary — very readable */
  --text-2:         #8a9abf;       /* secondary */
  --text-3:         #4a5878;       /* muted */

  --font-head:      'Outfit', sans-serif;
  --font-body:      'Inter', sans-serif;

  --radius:         18px;
  --radius-sm:      10px;
  --radius-pill:    999px;

  --ease:           cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:       cubic-bezier(0, 0, 0.2, 1);
}

/* ──────────────────────────────────────
   RESET
────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* ──────────────────────────────────────
   SECTION
────────────────────────────────────── */
.pricing {
  position: relative;
  padding: 110px 24px 130px;
  overflow: hidden;
}

/* ── Background ── */
.pricing__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.pricing__bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
}

.pricing__bg-glow--left {
  background: radial-gradient(circle, rgba(0, 60, 200, 0.10) 0%, transparent 70%);
  top: -180px;
  left: -160px;
}

.pricing__bg-glow--right {
  background: radial-gradient(circle, rgba(0, 229, 200, 0.055) 0%, transparent 70%);
  bottom: -120px;
  right: -140px;
}

.pricing__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 100%);
}

/* ── Container ── */
.pricing__container {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
}

/* ──────────────────────────────────────
   HEADER
────────────────────────────────────── */
.pricing__header {
  text-align: center;
  margin-bottom: 52px;
}

.pricing__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
  opacity: 0.85;
}

.pricing__title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-1);
  margin-bottom: 16px;
}

.pricing__subtitle {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 420px;
  margin: 0 auto;
}

/* ──────────────────────────────────────
   CONTROLS
────────────────────────────────────── */
.pricing__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

/* Billing toggle */
.billing-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 2px;
}

.billing-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  transition: color 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease);
}

.billing-toggle__btn:hover:not(.billing-toggle__btn--active) {
  color: var(--text-2);
}

.billing-toggle__btn--active {
  background: rgba(0, 229, 200, 0.10);
  border-color: var(--cyan-border);
  color: var(--cyan);
}

.billing-toggle__save {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--cyan);
  color: var(--bg);
  letter-spacing: 0.03em;
}

/* Currency select */
.currency-select-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.currency-select-wrap__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.currency-select-wrap__field {
  position: relative;
}

.currency-select-wrap__select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  padding: 9px 38px 9px 13px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.currency-select-wrap__select:focus,
.currency-select-wrap__select:hover {
  border-color: var(--cyan-border);
  box-shadow: 0 0 0 3px var(--cyan-faint);
}

.currency-select-wrap__select option {
  background: #0e1526;
}

.currency-select-wrap__icon {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  color: var(--text-3);
  pointer-events: none;
}

/* ──────────────────────────────────────
   GRID
────────────────────────────────────── */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

/* ──────────────────────────────────────
   CARD
────────────────────────────────────── */
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition:
    transform 0.32s var(--ease),
    border-color 0.24s var(--ease),
    box-shadow 0.32s var(--ease);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Pro card */
.card--pro {
  background: var(--bg-card-pro);
  border-color: var(--border-pro);
  transform: translateY(-10px);
  box-shadow:
    0 0 0 1px rgba(0, 229, 200, 0.12),
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(0, 229, 200, 0.06);
}

.card--pro:hover {
  transform: translateY(-16px);
  box-shadow:
    0 0 0 1px rgba(0, 229, 200, 0.20),
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(0, 229, 200, 0.10);
}

/* Pro top bar */
.card__top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--cyan) 50%, transparent 100%);
  opacity: 0.7;
}

/* Badge */
.card__badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--cyan);
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

/* Card header */
.card__header {
  margin-bottom: 24px;
}

.card__plan {
  display: block;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.card__desc {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-3);
  min-height: 42px;
}

/* Pricing block */
.card__pricing {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.card__price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  flex-wrap: wrap;
}

.card__symbol {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-2);
  padding-bottom: 5px;
}

.card__amount {
  font-family: var(--font-head);
  font-size: clamp(34px, 3.5vw, 46px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-1);
  line-height: 1;
  transition: opacity 0.18s var(--ease), transform 0.2s var(--ease);
}

.card--pro .card__amount {
  color: var(--cyan);
}

.card__period {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 400;
  align-self: flex-end;
  padding-bottom: 6px;
}

.card__note {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 6px;
  min-height: 16px;
  line-height: 1.5;
}

.card__saving {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--cyan);
  background: var(--cyan-faint);
  border: 1px solid rgba(0, 229, 200, 0.15);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-top: 8px;
  min-height: 20px;
  letter-spacing: 0.03em;
  transition: opacity 0.2s;
}

.card__saving:empty {
  opacity: 0;
  pointer-events: none;
}

/* Price animation */
.card__amount--out {
  opacity: 0;
  transform: translateY(8px);
}

.card__amount--in {
  animation: amountIn 0.26s var(--ease-out) forwards;
}

@keyframes amountIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Features */
.card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 32px;
  flex: 1;
}

.card__feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.5;
}

.card__check {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--cyan-faint);
  border: 1px solid rgba(0, 229, 200, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}

.card__check::after {
  content: '';
  width: 8px;
  height: 5px;
  border-left: 1.4px solid var(--cyan);
  border-bottom: 1.4px solid var(--cyan);
  transform: rotate(-45deg) translate(0.5px, -1px);
  opacity: 0.9;
}

.card:hover .card__check {
  background: rgba(0, 229, 200, 0.12);
  border-color: rgba(0, 229, 200, 0.28);
}

/* ──────────────────────────────────────
   BUTTONS
────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    background 0.22s var(--ease),
    border-color 0.22s var(--ease),
    color 0.22s var(--ease);
}

.btn:active {
  transform: scale(0.98) !important;
}

/* Label & arrow */
.btn__label {
  position: relative;
  z-index: 1;
}

.btn__arrow {
  display: flex;
  align-items: center;
  width: 16px;
  height: 16px;
  position: relative;
  z-index: 1;
  transition: transform 0.22s var(--ease);
}

.btn__arrow svg {
  width: 16px;
  height: 16px;
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* Outline — Starter */
.btn--outline {
  background: transparent;
  border: 1px solid var(--cyan-border);
  color: var(--cyan);
}

.btn--outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cyan-faint);
  opacity: 0;
  transition: opacity 0.22s var(--ease);
  border-radius: inherit;
}

.btn--outline:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 229, 200, 0.15), 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn--outline:hover::before {
  opacity: 1;
}

/* Primary — Professional */
.btn--primary {
  background: var(--cyan);
  color: #060c18;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 229, 200, 0.30);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.20) 50%, transparent 60%);
  background-size: 200% 100%;
  background-position: -200% 0;
  border-radius: inherit;
  transition: background-position 0s;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 229, 200, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
  background: #1af0d6;
}

.btn--primary:hover::before {
  animation: shimmer 0.5s ease forwards;
}

@keyframes shimmer {
  from { background-position: -200% 0; }
  to   { background-position: 200% 0; }
}

/* Ghost — Enterprise */
.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-2);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-hover);
  color: var(--text-1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* ──────────────────────────────────────
   FOOTER
────────────────────────────────────── */
.pricing__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 48px;
}

.pricing__footer-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
  padding: 0 22px;
  transition: color 0.2s;
}

.pricing__footer-item:hover {
  color: var(--text-2);
}

.pricing__footer-item svg {
  width: 13px;
  height: 13px;
  color: var(--cyan);
  flex-shrink: 0;
  opacity: 0.8;
}

.pricing__footer-sep {
  width: 1px;
  height: 14px;
  background: var(--border);
  flex-shrink: 0;
}

/* ──────────────────────────────────────
   RESPONSIVE
────────────────────────────────────── */
@media (max-width: 960px) {
  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .card--pro {
    transform: none;
    order: -1;
  }
  .card--pro:hover {
    transform: translateY(-6px);
  }
}

@media (max-width: 640px) {
  .pricing {
    padding: 80px 16px 100px;
  }
  .pricing__controls {
    flex-direction: column;
    align-items: flex-start;
  }
  .pricing__footer {
    flex-direction: column;
    gap: 14px;
  }
  .pricing__footer-item {
    padding: 0;
  }
  .pricing__footer-sep {
    display: none;
  }
}

@media (max-width: 400px) {
  .card {
    padding: 26px 20px 30px;
  }
}
