:root {
  --bg: #f4f6ff;
  --surface: #ffffff;
  --surface-soft: #eef1ff;
  --surface-blue: #4a3bf5;
  --surface-dark: #25204f;
  --text: #111629;
  --muted: #66718b;
  --line: #e1e6f5;
  --accent: #3f34f4;
  --accent-soft: #dfe2ff;
  --success: #dbf6df;
  --danger: #ffdede;
  --shadow: 0 18px 48px rgba(71, 80, 122, 0.09);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }

.site-shell { min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner,
.page,
.footer-inner {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 72px;
}
.brand {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-right: auto;
  margin-left: 28px;
}
.nav-link {
  color: #35405b;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.nav-link.is-active {
  color: var(--accent);
  border-color: var(--accent);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.auth-link { color: #1a2238; }

.page {
  display: grid;
  gap: 48px;
  padding: 42px 0 72px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
}
.btn-small { min-height: 44px; padding: 0 18px; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 20px rgba(63, 52, 244, 0.25);
}
.btn-muted {
  background: var(--surface-soft);
  color: var(--accent);
  border-color: var(--line);
}
.btn-light {
  background: #fff;
  color: var(--accent);
}
.btn-block { width: 100%; }

.mini-badge,
.badge,
.pill,
.status-tag,
.status-pill,
.save-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.status-pill.active { background: var(--success); color: #19803a; }
.status-pill.expired { background: var(--danger); color: #c03434; }
.save-pill { background: #ffe7d6; color: #d36b23; }

.hero,
.section-shell,
.catalog-shell,
.listing-shell,
.docs-layout,
.account-layout,
.admin-shell,
.form-card,
.panel-list,
.table-card {
  width: 100%;
}

.page-admin-shell {
  padding-top: 28px;
  width: min(100%, calc(100% - 40px));
  max-width: 1680px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  min-height: calc(100vh - 180px);
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 98px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: calc(100vh - 130px);
  overflow: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-sidebar h1,
.admin-panel-head h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.admin-sidebar p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-nav {
  display: grid;
  gap: 10px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  color: #34405b;
  font-weight: 700;
}

.admin-nav-link.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 14px 30px rgba(63, 52, 244, 0.2);
}

.admin-sidebar-footer {
  margin-top: auto;
}

.admin-panel {
  display: grid;
  gap: 20px;
  min-width: 0;
  width: 100%;
}

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.admin-frame-wrap {
  width: 100%;
  min-height: calc(100vh - 220px);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,0.7);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.admin-frame {
  display: block;
  width: 100%;
  min-width: 100%;
  min-height: calc(100vh - 248px);
  height: calc(100vh - 248px);
  border: 0;
  border-radius: 18px;
  background: #fff;
}

.admin-embed-body {
  margin: 0;
  background: #fff;
}

.admin-embed {
  width: 100%;
  padding: 24px;
}

.hero-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 530px);
  gap: 44px;
  align-items: center;
}
.hero-copy h1,
.bundles-hero h1 {
  margin: 14px 0 18px;
  font-size: clamp(56px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}
.hero-copy h1 em,
.bundles-hero h1 em { color: var(--accent); font-style: italic; }
.hero-copy p,
.bundles-hero p,
.section-head p,
.copy-section p,
.account-main > .section-head p,
.docs-article p,
.pricing-card p,
.faq-card p,
.footer-muted,
.footer-links a,
.author-line,
.secure-note,
.community-card a {
  color: var(--muted);
  line-height: 1.6;
}
.hero-actions,
.pill-row,
.section-head,
.billing-toggle,
.download-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.trust-row {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 28px;
  color: #8892a7;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
}
.hero-visual-frame {
  min-height: 420px;
  border-radius: 28px;
  background: linear-gradient(180deg, #dde2ff 0%, #ecf0ff 100%);
  position: relative;
  overflow: hidden;
}
.hero-visual-frame::before,
.hero-visual-frame::after {
  content: "";
  position: absolute;
  background: rgba(255,255,255,0.65);
  border-radius: 999px;
}
.hero-visual-frame::before {
  width: 70px;
  height: 240px;
  right: 86px;
  top: 80px;
}
.hero-visual-frame::after {
  width: 28px;
  height: 190px;
  right: 168px;
  bottom: 62px;
}
.hero-card {
  position: absolute;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.hero-card-light {
  width: 180px;
  height: 108px;
  top: 62px;
  left: 52px;
  background: #fff;
}
.hero-card-dark {
  width: 238px;
  height: 88px;
  right: 40px;
  bottom: 56px;
  background: #23233b;
}

.soft-panel,
.cta-band {
  background: #eef1ff;
  border-radius: 34px;
  padding: 38px;
}
.section-head {
  justify-content: space-between;
  margin-bottom: 22px;
}
.section-head h2,
.copy-section h2,
.docs-article h2,
.account-main h2,
.center-title {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -0.04em;
}
.link-arrow,
.text-link { color: var(--accent); font-weight: 600; }

.category-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.3fr 1fr;
  gap: 16px;
}
.category-card,
.quote-card,
.pricing-card,
.faq-card,
.buy-card,
.developer-card,
.docs-feature-card,
.community-card,
.download-card,
.enterprise-panel,
.key-card {
  background: var(--surface);
  border-radius: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.category-card-image {
  min-height: 222px;
  background: linear-gradient(145deg, #f6f2ea, #dfe7f4);
}
.category-card-primary {
  background: var(--surface-blue);
  color: #fff;
}
.category-card-primary p { color: rgba(255,255,255,0.82); }
.category-card-docs {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.docs-chip {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
}
.category-icon {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: var(--accent-soft);
  margin-bottom: 18px;
}
.category-arrow {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  align-items: center;
  justify-content: center;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.market-card {
  overflow: hidden;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.market-card-art {
  height: 190px;
  background: linear-gradient(145deg, #0c1118, #1a2b3a 70%);
}
.market-art-theme { background: linear-gradient(145deg, #0d1319, #17303f 68%); }
.market-art-plugin { background: linear-gradient(145deg, #15222d, #0b1319 68%); }
.market-art-bundle { background: linear-gradient(145deg, #d4f0e8, #b0d0c5 70%); }
.market-card-body { padding: 22px; }
.market-card h3 {
  margin: 16px 0 10px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.price-inline {
  color: var(--accent);
  white-space: nowrap;
}
.market-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
}
.rating small { color: var(--muted); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.stars { color: var(--accent); font-size: 22px; letter-spacing: 0.22em; }
.quote-meta { color: var(--muted); font-size: 13px; }

.cta-band {
  text-align: center;
  background: var(--surface-dark);
  color: #fff;
  padding: 58px 40px;
}
.cta-band p { color: rgba(255,255,255,0.82); max-width: 640px; margin: 0 auto 22px; }

.catalog-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 34px;
}
.sidebar-card,
.docs-sidebar,
.account-sidebar {
  background: #eef1ff;
  border-radius: 24px;
  padding: 28px;
  min-height: 100%;
}
.sidebar-link,
.toc-link {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  color: #4d5c77;
  margin-bottom: 8px;
}
.sidebar-link.is-active,
.toc-link.is-active {
  background: #fff;
  color: var(--accent);
  box-shadow: var(--shadow);
}
.sidebar-divider {
  height: 1px;
  background: var(--line);
  margin: 28px 0;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #46536f;
}
.check-box {
  width: 20px;
  height: 20px;
  border: 1px solid #cfd7ea;
  border-radius: 6px;
  background: #fff;
}
.check-box.is-on { background: var(--accent); border-color: var(--accent); }
.catalog-main { display: grid; gap: 24px; }
.catalog-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
}
.catalog-actions { display: flex; gap: 12px; }
.filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: #2f3b53;
}

.bundles-hero {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.billing-toggle { justify-content: center; color: var(--muted); }
.switch {
  width: 48px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent-soft);
  position: relative;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.14);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.pricing-card ul {
  padding-left: 18px;
  color: #3d4963;
  line-height: 2;
}
.pricing-price {
  margin: 26px 0;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.05em;
}
.pricing-price small {
  font-size: 18px;
  color: var(--muted);
}
.pricing-card-featured {
  border: 2px solid var(--accent);
  position: relative;
}
.pricing-card-featured .badge {
  position: absolute;
  top: -14px;
  left: 32px;
}
.compare-table,
.account-table {
  width: 100%;
  border-collapse: collapse;
}
.compare-table th,
.compare-table td,
.account-table th,
.account-table td {
  text-align: left;
  padding: 18px 14px;
  border-bottom: 1px solid var(--line);
}
.compare-table th,
.account-table th {
  color: #7b869d;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.14em;
}
.faq-shell {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 34px;
}
.team-support-card {
  margin-top: 26px;
  min-height: 160px;
  border-radius: 18px;
  background: linear-gradient(145deg, #17342e, #0f1d24);
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.faq-list { display: grid; gap: 14px; }

.listing-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
}
.breadcrumbs {
  color: #7f89a0;
  font-size: 13px;
  margin-bottom: 18px;
}
.listing-hero-image {
  min-height: 460px;
  border-radius: 24px;
  background: linear-gradient(145deg, #0d1419, #19303e 68%);
}
.listing-thumb-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.listing-thumb {
  min-height: 76px;
  border-radius: 14px;
  background: #dbe2f0;
  border: 2px solid transparent;
}
.listing-thumb.is-active { border-color: var(--accent); }
.listing-thumb-light { background: linear-gradient(145deg, #f7f7f7, #dfe8f4); }
.listing-thumb-dark { background: linear-gradient(145deg, #2d3136, #0d1018); }
.listing-thumb-count {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #d7d5ff;
}
.tab-row-underlined {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin: 26px 0;
}
.copy-section {
  max-width: 840px;
}
.highlights-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 28px;
  border-radius: 20px;
  background: #e8ebff;
  margin: 24px 0;
}
.strike {
  color: #8e97ac;
  text-decoration: line-through;
}
.license-choice {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}
.license-choice.is-active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #4b5974;
  font-size: 14px;
}
.developer-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}
.dev-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(145deg, #f1c7a0, #c08055);
}

.docs-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 230px;
  gap: 36px;
}
.docs-article h1,
.account-main h1 {
  margin: 0 0 20px;
  font-size: clamp(48px, 4vw, 64px);
  letter-spacing: -0.06em;
}
.intro-copy {
  font-size: 24px;
  color: #59667f;
}
.docs-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}
.community-card { display: grid; gap: 14px; margin-top: 28px; }

.account-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 34px;
}
.account-main { display: grid; gap: 28px; }
.table-card,
.downloads-grid,
.keys-list {
  display: grid;
  gap: 22px;
}
.downloads-grid {
  grid-template-columns: 1.2fr 1fr;
}
.download-card,
.enterprise-panel {
  min-height: 290px;
}
.enterprise-panel {
  background: var(--surface-blue);
  color: #fff;
}
.enterprise-panel p { color: rgba(255,255,255,0.82); }
.download-select {
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  min-width: 220px;
}
.key-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.form-card,
.panel-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px;
}
.stack-form,
.stack-form label {
  display: grid;
  gap: 10px;
}
.stack-form input,
.stack-form textarea,
.stack-form select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 38px 0 52px;
}
.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand {
  font-size: 24px;
  font-weight: 700;
}
.footer-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.bottom-nav { display: none; }

@media (max-width: 1100px) {
  .hero-home,
  .catalog-shell,
  .listing-shell,
  .docs-layout,
  .account-layout,
  .admin-shell,
  .faq-shell,
  .downloads-grid {
    grid-template-columns: 1fr;
  }

  .market-grid,
  .testimonials-grid,
  .pricing-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar-inner,
  .page,
  .footer-inner {
    width: min(100%, calc(100% - 40px));
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    min-height: auto;
    padding: 16px 0;
    flex-wrap: wrap;
  }
  .main-nav {
    order: 3;
    margin: 0;
    width: 100%;
    overflow-x: auto;
  }
  .page {
    gap: 28px;
    padding: 26px 0 44px;
  }
  .market-grid,
  .testimonials-grid,
  .pricing-grid,
  .category-grid,
  .docs-feature-grid,
  .feature-grid,
  .highlights-box {
    grid-template-columns: 1fr;
  }
  .catalog-topbar {
    grid-template-columns: 1fr;
  }
  .listing-thumb-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-sidebar {
    position: static;
    max-height: none;
  }
}
