:root {
  --bg: #0c1020;
  --panel: #141a30;
  --panel-soft: #181f38;
  --text: #f5f7ff;
  --muted: #aab2ce;
  --line: rgba(255, 255, 255, 0.11);
  --primary: #7c6cff;
  --primary-bright: #9f93ff;
  --green: #45d596;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.pricing-shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: fixed; z-index: 1000; top: -80px; left: 18px; padding: 11px 16px; border-radius: 10px; background: #fff; color: #111827; }
.skip-link:focus { top: 16px; }

.pricing-header { position: sticky; z-index: 40; top: 0; border-bottom: 1px solid var(--line); background: rgba(12, 16, 32, 0.86); backdrop-filter: blur(18px); }
.header-row { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: var(--primary); box-shadow: 0 10px 28px rgba(124, 108, 255, 0.32); }
.brand > span:last-child { display: grid; gap: 1px; }
.brand small { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.header-row nav { display: flex; gap: 25px; margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 700; }
.header-row nav a:hover, .header-row nav a[aria-current="page"] { color: var(--white); }
.header-button { padding: 10px 15px; border-radius: 11px; background: var(--white); color: #171b2d; font-size: 12px; font-weight: 800; }

.pricing-hero { position: relative; overflow: hidden; padding: 105px 0 90px; text-align: center; background: radial-gradient(circle at 50% -20%, rgba(124, 108, 255, 0.35), transparent 48%), linear-gradient(180deg, #0f1428, var(--bg)); }
.pricing-hero:before { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px); background-size: 48px 48px; content: ""; mask-image: linear-gradient(to bottom, #000, transparent); }
.hero-inner { position: relative; }
.eyebrow, .section-label { margin: 0 0 15px; color: var(--primary-bright); font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.pricing-hero h1 { margin: 0; font-size: clamp(44px, 7vw, 76px); line-height: 1.06; letter-spacing: -.055em; }
.pricing-hero h1 span { color: var(--primary-bright); }
.hero-lead { max-width: 680px; margin: 26px auto 0; color: var(--muted); font-size: 18px; line-height: 1.8; }
.hero-points { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 30px; color: #d7dcf0; font-size: 13px; }
.hero-points span::first-letter { color: var(--green); }
.catalog-status { min-height: 18px; margin: 25px 0 0; color: #7f89aa; font-size: 11px; }
.catalog-status.connected { color: var(--green); }
.catalog-status.warning { color: #f5c66b; }

.plans-section { padding: 90px 0 100px; }
.plans-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 36px; }
.plans-heading h2, .compare-copy h2, .faq-layout h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.04em; }
.plans-heading > p { max-width: 440px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.plan-card { position: relative; display: flex; min-height: 430px; flex-direction: column; padding: 25px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(180deg, var(--panel-soft), var(--panel)); box-shadow: 0 20px 55px rgba(0,0,0,.14); }
.plan-card.featured { border-color: rgba(159, 147, 255, .75); box-shadow: 0 24px 70px rgba(74, 61, 175, .2); }
.popular-badge { position: absolute; top: -13px; right: 20px; padding: 7px 11px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 900; }
.plan-name { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.plan-name > span { font-size: 19px; font-weight: 850; }
.plan-name small { color: #818aa8; font-size: 10px; }
.plan-price { display: flex; align-items: flex-end; gap: 9px; margin: 35px 0 9px; }
.plan-price strong { font-size: 52px; line-height: .9; letter-spacing: -.06em; }
.plan-price span { margin-bottom: 4px; color: #8992b0; font-size: 10px; font-weight: 800; }
.plan-duration { margin: 0; color: var(--primary-bright); font-size: 13px; }
.plan-card ul { display: grid; gap: 11px; margin: 25px 0; padding: 22px 0 22px 18px; border-top: 1px solid var(--line); color: #cbd1e4; font-size: 12px; line-height: 1.5; }
.plan-button { margin-top: auto; padding: 13px; border: 1px solid rgba(159,147,255,.55); border-radius: 12px; background: rgba(124,108,255,.11); color: #dcd8ff; font-size: 13px; font-weight: 850; text-align: center; transition: transform .18s ease, background .18s ease; }
.plan-button:hover { transform: translateY(-1px); background: var(--primary); color: #fff; }
.plan-card.featured .plan-button { border-color: var(--primary); background: var(--primary); color: #fff; }

.compare-section { padding: 0 0 100px; }
.compare-card { display: grid; grid-template-columns: .82fr 1.18fr; gap: 65px; padding: 46px; border: 1px solid var(--line); border-radius: 30px; background: #11172b; }
.compare-copy > p:not(.section-label) { margin: 18px 0 25px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.secondary-button { display: inline-flex; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; color: #e9ebf7; font-size: 13px; font-weight: 800; }
.secondary-button:hover { border-color: var(--primary); }
.compare-table { display: grid; align-self: center; }
.compare-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 70px; gap: 14px; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.compare-row:last-child { border-bottom: 0; }
.compare-row strong { color: #d8dced; font-size: 11px; text-align: center; }
.compare-row .yes { color: var(--green); font-size: 18px; }
.compare-head { min-height: 38px; color: #727c9c; font-size: 10px; font-weight: 800; text-transform: uppercase; }

.billing-section { padding: 0 0 100px; }
.billing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.billing-grid article { padding: 27px; border: 1px solid var(--line); border-radius: 21px; background: rgba(20, 26, 48, .7); }
.billing-grid span { color: var(--primary-bright); font-size: 11px; font-weight: 900; }
.billing-grid h3 { margin: 20px 0 9px; font-size: 19px; }
.billing-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }

.pricing-faq { padding: 90px 0; background: #f6f7fb; color: #192033; }
.faq-layout { display: grid; grid-template-columns: .65fr 1.35fr; gap: 80px; }
.faq-layout .section-label { color: #5b50d6; }
.faq-list details { padding: 21px 0; border-bottom: 1px solid #dfe3ec; }
.faq-list details:first-child { padding-top: 0; }
.faq-list summary { font-weight: 800; cursor: pointer; }
.faq-list p { margin: 12px 0 0; color: #667085; font-size: 14px; line-height: 1.75; }
.pricing-cta { padding: 70px 0; background: var(--primary); }
.pricing-cta .pricing-shell { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.pricing-cta p { margin: 0 0 8px; color: #d8d3ff; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.pricing-cta h2 { margin: 0; font-size: clamp(27px, 4vw, 40px); letter-spacing: -.04em; }
.pricing-cta a { padding: 14px 18px; border-radius: 13px; background: #fff; color: #252051; font-size: 13px; font-weight: 900; white-space: nowrap; }

footer { padding: 32px 0; border-top: 1px solid var(--line); }
footer .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
footer .footer-row > div { display: grid; gap: 5px; }
footer small { color: #7f89aa; font-size: 11px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 12px; }
footer nav a:hover { color: #fff; }

@media (max-width: 980px) {
  .header-row nav { display: none; }
  .header-button { margin-left: auto; }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-card { grid-template-columns: 1fr; gap: 35px; }
  .billing-grid { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; gap: 35px; }
}

@media (max-width: 620px) {
  .pricing-shell { width: min(100% - 28px, 1160px); }
  .header-row { min-height: 68px; gap: 11px; }
  .brand > span:last-child { display: none; }
  .header-button { padding: 10px 12px; font-size: 11px; }
  .pricing-hero { padding: 72px 0 65px; }
  .pricing-hero h1 { font-size: 43px; }
  .hero-lead { font-size: 16px; }
  .hero-points { display: grid; gap: 10px; }
  .plans-section { padding: 68px 0; }
  .plans-heading { display: grid; gap: 16px; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card { min-height: 390px; }
  .compare-section, .billing-section { padding-bottom: 68px; }
  .compare-card { padding: 25px 20px; }
  .compare-row { grid-template-columns: minmax(0, 1fr) 70px 48px; gap: 8px; }
  .pricing-faq { padding: 68px 0; }
  .pricing-cta .pricing-shell { display: grid; }
  .pricing-cta a { text-align: center; }
  footer .footer-row { display: grid; }
  footer nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
