:root {
  --ink: #071b52;
  --muted: #5d6680;
  --blue: #6f2dff;
  --blue-2: #8a55ff;
  --aqua: #80f0ff;
  --lavender: #ded1ff;
  --panel: rgba(255, 255, 255, 0.86);
  --line: rgba(93, 47, 190, 0.14);
  --shadow: 0 24px 70px rgba(46, 82, 145, 0.16);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 4% 22%, rgba(111, 45, 255, 0.12), transparent 22rem),
    radial-gradient(circle at 82% 27%, rgba(128, 240, 255, 0.22), transparent 25rem),
    linear-gradient(180deg, #faf8ff 0%, #f2ecff 42%, #ffffff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.container,
.header-inner {
  width: min(1160px, calc(100% - 44px));
  margin: 0 auto;
}

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0 36%, rgba(255, 255, 255, 0.58) 36% 49%, transparent 49% 100%),
    radial-gradient(ellipse at 50% 0, rgba(255, 255, 255, 0.85), transparent 40rem);
  opacity: 0.78;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 26px 0 10px;
}

.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  min-height: 72px;
  padding: 0 34px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 44px rgba(46, 82, 145, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 188px;
  height: auto;
}

.main-nav,
.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
}

.main-nav {
  justify-content: flex-end;
  gap: 42px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  gap: 4px;
  border: 1px solid rgba(47, 88, 172, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
}

.nav-submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 190px;
  padding: 10px;
  border: 1px solid rgba(93, 47, 190, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(46, 82, 145, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-submenu a {
  display: block;
  padding: 13px 14px;
  border-radius: 6px;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-submenu a:hover,
.nav-submenu a:focus {
  background: rgba(111, 45, 255, 0.08);
  outline: none;
}

.header-actions {
  gap: 12px;
}

.lang-switch {
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  border: 1px solid rgba(47, 88, 172, 0.22);
  border-radius: 8px;
  color: #2c5eb8;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #2f66c8, #6525e8);
  box-shadow: 0 16px 28px rgba(63, 91, 185, 0.22);
}

.button-video {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(111, 45, 255, 0.42);
}

.button-video span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 0.78rem;
}

.hero {
  position: relative;
  padding: 68px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(540px, 1.35fr);
  gap: 52px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: #6f2dff;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  max-width: 540px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.28rem;
  line-height: 1.55;
}

.themes-intro {
  max-width: none;
  white-space: nowrap;
}

.manual-page {
  padding: 64px 0 86px;
}

.manual-document {
  display: grid;
  gap: 28px;
}

.manual-document .document-header {
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(244, 238, 255, 0.86)),
    radial-gradient(circle at 88% 22%, rgba(128, 240, 255, 0.24), transparent 18rem);
  box-shadow: var(--shadow);
}

.manual-document h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.98;
}

.manual-document .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
  color: var(--muted);
}

.manual-document .content {
  display: grid;
  gap: 24px;
}

.manual-document .chapter {
  padding: 28px;
  border: 1px solid rgba(93, 47, 190, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 44px rgba(46, 82, 145, 0.08);
}

.manual-document .chapter-number {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #2f66c8, #6525e8);
  font-weight: 900;
}

.manual-document h2 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.08;
}

.manual-document h3 {
  margin: 28px 0 10px;
  font-size: 1.32rem;
}

.manual-document h4 {
  margin: 22px 0 8px;
}

.manual-document p,
.manual-document li {
  color: var(--muted);
  line-height: 1.7;
}

.manual-document ul,
.manual-document ol {
  padding-left: 22px;
}

.manual-document .quick-grid,
.manual-document .card-grid,
.manual-document .component-grid,
.manual-document .download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.manual-document .quick-item,
.manual-document .card,
.manual-document .component-card,
.manual-document .panel,
.manual-document .step {
  padding: 18px;
  border: 1px solid rgba(93, 47, 190, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.manual-document .quick-item strong,
.manual-document .card strong,
.manual-document .component-card strong,
.manual-document .panel strong,
.manual-document .step strong {
  display: block;
  margin-bottom: 6px;
}

.manual-document .panel a {
  display: inline-block;
  margin-top: 10px;
  color: #4b20b8;
  font-weight: 900;
}

.manual-document .steps {
  display: grid;
  gap: 12px;
  margin: 20px 0;
  counter-reset: step;
}

.manual-document .step {
  position: relative;
  padding-left: 58px;
  counter-increment: step;
}

.manual-document .step::before {
  content: counter(step);
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #6f2dff;
  font-size: 0.86rem;
  font-weight: 900;
}

.manual-document .steps li {
  position: relative;
  min-height: 46px;
  padding: 4px 0 14px 52px;
  color: var(--muted);
  list-style: none;
  counter-increment: step;
}

.manual-document .steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #6f2dff;
  font-weight: 900;
}

.manual-document .badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 9px;
  border-radius: 6px;
  color: #fff;
  background: #6f2dff;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.manual-document .note,
.manual-document .warning,
.manual-document .agency,
.manual-document .success {
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 4px solid #2f66c8;
  border-radius: 8px;
  background: rgba(235, 244, 255, 0.88);
}

.manual-document .warning {
  border-left-color: #d34545;
  background: rgba(255, 239, 239, 0.88);
}

.manual-document .agency {
  border-left-color: #d7a528;
  background: rgba(255, 248, 222, 0.9);
}

.manual-document .success {
  border-left-color: #1b8d70;
  background: rgba(236, 250, 245, 0.9);
}

.manual-document figure {
  margin: 26px 0;
}

.manual-document figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(93, 47, 190, 0.12);
  border-radius: 8px;
  box-shadow: 0 20px 46px rgba(46, 82, 145, 0.14);
}

.manual-document figcaption,
.manual-document .footer-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.manual-document .table-wrap {
  margin: 20px 0;
  overflow-x: auto;
  border: 1px solid rgba(93, 47, 190, 0.12);
  border-radius: 8px;
}

.manual-document table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.manual-document th,
.manual-document td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(93, 47, 190, 0.1);
  text-align: left;
  vertical-align: top;
}

.manual-document th {
  color: #fff;
  background: #071b52;
}

.manual-document .path,
.manual-document code {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(111, 45, 255, 0.1);
  color: #4b20b8;
  font-weight: 800;
}

.manual-document .code-block {
  overflow-x: auto;
  padding: 16px;
  border-radius: 8px;
  color: #f9fbff;
  background: #071b52;
}

.manual-document .code-block code {
  display: inline;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-weight: 700;
}

.manual-document .code-label {
  display: block;
  margin: -16px -16px 14px;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.manual-document pre {
  margin: 0;
  overflow-x: auto;
}

.manual-document details {
  margin: 12px 0;
  border: 1px solid rgba(93, 47, 190, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.manual-document summary {
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 900;
}

.manual-document details > div {
  padding: 0 16px 16px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.builder-window {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.67);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform-origin: center;
}

.builder-window.is-playing {
  animation: pulseWindow 900ms ease;
}

@keyframes pulseWindow {
  0%, 100% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.015);
  }
}

.window-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 13px;
  background: rgba(238, 247, 255, 0.9);
  border-bottom: 1px solid var(--line);
}

.window-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff7468;
}

.window-chrome span:nth-child(2) {
  background: #ffc75e;
}

.window-chrome span:nth-child(3) {
  background: #49ca7b;
}

.builder-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 430px;
  background: #fff;
}

.builder-sidebar {
  padding: 14px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.builder-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  color: #fff;
  margin: -14px -14px 12px;
  padding: 9px 12px;
  background: #1f2c3d;
  font-size: 0.84rem;
}

.builder-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 11px;
  color: #32445c;
  font-size: 0.72rem;
  text-align: center;
}

.builder-tabs span:first-child {
  color: var(--blue);
  border-bottom: 2px solid var(--blue-2);
}

.builder-search {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #7b899c;
  font-size: 0.8rem;
}

.group-title {
  margin: 14px 0 8px;
  color: #33445d;
  font-size: 0.82rem;
  font-weight: 800;
}

.widget-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.widget-grid span {
  display: grid;
  min-height: 54px;
  place-items: center;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #33445d;
  background: #fff;
  font-size: 0.68rem;
  text-align: center;
}

.site-preview {
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #fff;
}

.preview-nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  min-height: 62px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
}

.preview-nav strong {
  font-family: Georgia, serif;
  font-size: 1.5rem;
}

.preview-nav nav {
  display: flex;
  gap: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}

.preview-hero {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 265px;
  padding: 34px 50px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.16)),
    radial-gradient(circle at 78% 40%, rgba(11, 127, 215, 0.25), transparent 11rem),
    linear-gradient(135deg, #bfe7ff, #f9fdff 55%, #9fcbd6);
}

.preview-hero::after {
  content: "";
  position: absolute;
  right: 26px;
  bottom: 18px;
  width: 210px;
  height: 170px;
  border-radius: 49% 51% 38% 62% / 52% 34% 66% 48%;
  background:
    radial-gradient(circle at 54% 22%, #f7ca88 0 11px, transparent 12px),
    linear-gradient(135deg, #133b61 0 38%, #2f6894 38% 48%, #233957 48% 100%);
  opacity: 0.42;
}

.selected-block {
  position: relative;
  width: min(380px, 72%);
  padding: 12px 18px;
  border: 2px dashed #087cff;
  z-index: 1;
}

.selected-block small {
  position: absolute;
  top: -30px;
  left: 50%;
  display: grid;
  width: 74px;
  height: 30px;
  place-items: center;
  border-radius: 6px 6px 0 0;
  color: #fff;
  background: #087cff;
}

.selected-block h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  line-height: 0.98;
}

.preview-hero p {
  position: relative;
  z-index: 1;
  margin: 10px 0 14px 18px;
  color: #203b57;
  font-size: 0.94rem;
}

.preview-hero button {
  position: relative;
  z-index: 1;
  width: max-content;
  margin-left: 18px;
  padding: 12px 18px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: #07979d;
  font-weight: 800;
}

.preview-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 16px 28px 24px;
}

.preview-card {
  position: relative;
  display: flex;
  min-height: 112px;
  align-items: end;
  padding: 0 12px 12px;
  border-radius: 4px;
  overflow: hidden;
  color: #fff;
  background-position: center;
  background-size: cover;
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.preview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(8, 16, 42, 0.58));
}

.preview-card {
  isolation: isolate;
}

.preview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.preview-card-sea {
  background-image: url("/assets/img/preview-sea.svg");
}

.preview-card-art {
  background-image: url("/assets/img/preview-art.svg");
}

.preview-card-nature {
  background-image: url("/assets/img/preview-nature.svg");
}

.features {
  padding: 24px 0 48px;
  background: rgba(255, 255, 255, 0.68);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 22px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 50px rgba(25, 82, 135, 0.08);
}

.feature-card h2 {
  margin: 0 0 8px;
  font-size: 1.28rem;
}

.feature-card p,
.step-card p,
.pricing-panel p,
.site-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.56;
}

.feature-icon {
  width: 76px;
  height: 76px;
  border-radius: 13px;
  background: linear-gradient(135deg, #b9ecff, #e7f6ff);
}

.feature-icon::before {
  content: "";
  display: block;
  width: 34px;
  height: 34px;
  margin: 21px;
  background: var(--ink);
  clip-path: polygon(0 0, 84% 50%, 51% 59%, 65% 100%, 47% 100%, 34% 64%, 0 83%);
}

.feature-icon-devices {
  background: linear-gradient(135deg, #a9f0ed, #e8fffb);
}

.feature-icon-devices::before {
  width: 42px;
  height: 34px;
  border: 4px solid #0b567b;
  border-radius: 5px;
  background: transparent;
  clip-path: none;
}

.feature-icon-code {
  background: linear-gradient(135deg, #ded9ff, #f0efff);
}

.feature-icon-code::before {
  width: 48px;
  height: 38px;
  margin: 19px 14px;
  background: #42148c;
  clip-path: polygon(22% 0, 0 50%, 22% 100%, 31% 86%, 17% 50%, 31% 14%, 22% 0, 78% 0, 69% 14%, 83% 50%, 69% 86%, 78% 100%, 100% 50%, 78% 0, 58% 0, 42% 100%, 52% 100%, 68% 0);
}

.steps {
  padding: 56px 0 64px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading h2,
.pricing-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: center;
}

.step-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  right: -24px;
  width: 42px;
  height: 1px;
  background: #a8bfdc;
}

.step-card span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 999px;
  background: #bdeaff;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 900;
}

.step-card:nth-child(2) span {
  background: #a9f0ed;
}

.step-card:nth-child(3) span {
  background: var(--lavender);
}

.step-card h3 {
  margin: 0;
}

.pricing-strip {
  padding: 12px 0 74px;
}

.pricing-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background:
    radial-gradient(circle at 5% 0, rgba(111, 45, 255, 0.12), transparent 18rem),
    rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.pricing-panel > div {
  max-width: 760px;
}

.ad-strip {
  padding: 18px 0 74px;
}

.ad-banner-link {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: #04112d;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ad-banner-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 74px rgba(46, 82, 145, 0.22);
}

.ad-banner-link picture,
.ad-banner-link img {
  display: block;
}

.ad-banner-link img {
  width: 100%;
  height: auto;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.site-footer img {
  display: block;
  width: 188px;
  height: auto;
}

.site-footer p {
  color: var(--muted);
}

.features-hero {
  padding: 54px 0 42px;
}

.features-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(460px, 1.15fr);
  gap: 54px;
  align-items: center;
}

.features-hero h1 {
  max-width: 690px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.45rem, 4.8vw, 4.25rem);
  line-height: 1.02;
}

.features-hero-media {
  position: relative;
  max-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  background: #fff;
}

.features-hero-media img,
.showcase-image-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.features-floating-card {
  position: absolute;
  right: 22px;
  bottom: 22px;
  max-width: 250px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 44px rgba(18, 34, 85, 0.18);
  backdrop-filter: blur(16px);
}

.features-floating-card strong,
.features-floating-card span {
  display: block;
}

.features-floating-card strong {
  margin-bottom: 6px;
  color: var(--ink);
}

.features-floating-card span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.feature-detail-section {
  padding: 28px 0 64px;
}

.feature-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-detail-card {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 52px rgba(46, 82, 145, 0.08);
}

.feature-detail-number {
  display: inline-flex;
  margin-bottom: 28px;
  color: #6f2dff;
  font-size: 0.86rem;
  font-weight: 900;
}

.feature-detail-card h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.feature-detail-card p,
.plugin-showcase p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.plugin-showcase {
  padding: 8px 0 78px;
}

.plugin-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 42px;
  align-items: center;
}

.showcase-image-card {
  overflow: hidden;
  max-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.plugin-showcase h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1;
}

.showcase-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.showcase-pills span {
  padding: 10px 12px;
  border: 1px solid rgba(111, 45, 255, 0.18);
  border-radius: 999px;
  color: #3d267a;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 800;
}

.plugin-showcase .button {
  margin-top: 26px;
}

.pricing-page-hero {
  padding: 54px 0 42px;
}

.pricing-page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(460px, 1.14fr);
  gap: 54px;
  align-items: center;
}

.pricing-page-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.55rem, 5vw, 4.4rem);
  line-height: 1.02;
}

.pricing-hero-image {
  overflow: hidden;
  max-height: 520px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.pricing-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pricing-promise {
  display: grid;
  gap: 7px;
  max-width: 520px;
  margin-top: 28px;
  padding: 20px;
  border: 1px solid rgba(111, 45, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 42px rgba(46, 82, 145, 0.08);
}

.pricing-promise strong {
  color: var(--ink);
}

.pricing-promise span {
  color: var(--muted);
  line-height: 1.55;
}

.pricing-plans-section {
  padding: 28px 0 56px;
}

.pricing-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pricing-plan-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 52px rgba(46, 82, 145, 0.08);
}

.pricing-plan-free {
  background:
    radial-gradient(circle at 92% 0, rgba(128, 240, 255, 0.28), transparent 12rem),
    rgba(255, 255, 255, 0.92);
  border-color: rgba(111, 45, 255, 0.26);
}

.pricing-label {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 8px 10px;
  border-radius: 999px;
  color: #4b1db4;
  background: rgba(111, 45, 255, 0.1);
  font-size: 0.82rem;
  font-weight: 900;
}

.pricing-plan-card h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

.pricing-price {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 900;
}

.pricing-plan-card p:not(.pricing-price) {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.pricing-values {
  padding: 0 0 78px;
}

.pricing-values-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0 0, rgba(111, 45, 255, 0.14), transparent 20rem),
    rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.pricing-values-panel h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.pricing-values-list {
  display: grid;
  gap: 12px;
}

.pricing-values-list span {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.auth-section,
.reserved-section {
  padding: 72px 0 92px;
}

.auth-grid,
.reserved-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.55fr);
  gap: 42px;
  align-items: center;
}

.auth-copy h1,
.reserved-panel h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.02;
}

.auth-card,
.reserved-card {
  display: grid;
  gap: 18px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0, rgba(111, 45, 255, 0.12), transparent 14rem),
    rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.auth-card h2 {
  margin: 0;
  font-size: 1.6rem;
}

.auth-card label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.auth-card input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(93, 47, 190, 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.auth-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  color: #8a1f1f;
  background: #fff0f0;
  font-weight: 800;
}

.auth-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding-top: 4px;
  color: var(--muted);
  text-align: center;
}

.auth-secondary a {
  color: var(--brand);
  font-weight: 900;
  text-decoration: none;
}

.reserved-card span {
  color: var(--muted);
}

.reserved-card strong {
  color: var(--ink);
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}

.reserved-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.reserved-action-card {
  display: grid;
  gap: 12px;
  min-height: 210px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0, rgba(111, 45, 255, 0.1), transparent 12rem),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 40px rgba(19, 35, 80, 0.08);
}

.reserved-action-card span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(180, 235, 255, 0.9), rgba(216, 207, 255, 0.9));
  color: var(--ink);
  font-weight: 900;
}

.reserved-action-card h2 {
  margin: 0;
  font-size: 1.35rem;
}

.reserved-action-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-metric {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #2f66c8, #6525e8);
  font-size: 1.08rem;
}

.reserved-user-note {
  border-color: rgba(111, 45, 255, 0.22);
}

.admin-upload-panel {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding: 28px;
  border: 1px solid rgba(111, 45, 255, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0, rgba(111, 45, 255, 0.12), transparent 14rem),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(19, 35, 80, 0.08);
}

.admin-upload-panel h2,
.admin-upload-panel p {
  margin: 0;
}

.admin-upload-panel h2 {
  font-size: 1.55rem;
}

.admin-upload-panel p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.6;
}

.downloads-section {
  padding: 72px 0 96px;
}

.downloads-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
  gap: 42px;
  align-items: center;
}

.downloads-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  line-height: 1.02;
}

.downloads-user-card,
.download-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0, rgba(111, 45, 255, 0.12), transparent 14rem),
    rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.downloads-user-card {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.downloads-user-card span,
.download-card span {
  color: var(--muted);
  font-weight: 800;
}

.downloads-user-card strong {
  color: var(--ink);
  font-size: 1.18rem;
  overflow-wrap: anywhere;
}

.downloads-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 38px;
}

.download-card {
  display: grid;
  gap: 16px;
  align-content: start;
  min-height: 300px;
  padding: 28px;
}

.download-card-featured {
  background:
    linear-gradient(135deg, rgba(54, 100, 211, 0.94), rgba(111, 45, 255, 0.94)),
    #3a5fd2;
  color: #fff;
}

.download-card h2 {
  margin: 0;
  font-size: 1.55rem;
}

.download-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.download-meta {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  overflow-wrap: anywhere;
  font-weight: 800;
}

.download-card-featured p,
.download-card-featured span {
  color: rgba(255, 255, 255, 0.82);
}

.download-card .button {
  align-self: end;
  justify-self: start;
}

.download-card .button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.themes-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 38px;
}

.theme-preview-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(93, 47, 190, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.admin-files-section {
  padding: 72px 0 96px;
}

.admin-files-hero {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.admin-files-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  line-height: 1.02;
}

.admin-files-status {
  margin-top: 24px;
}

.auth-success {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  color: #176039;
  background: #eaf8f0;
  font-weight: 800;
}

.admin-files-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.admin-file-card {
  display: grid;
  gap: 16px;
  align-content: start;
  min-height: 360px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0, rgba(111, 45, 255, 0.1), transparent 12rem),
    rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.admin-file-card > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(180, 235, 255, 0.9), rgba(216, 207, 255, 0.9));
  color: var(--ink);
  font-weight: 900;
}

.admin-file-card h2 {
  margin: 0;
  font-size: 1.4rem;
}

.admin-file-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-file-card label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.admin-file-card input[type="file"] {
  width: 100%;
  padding: 12px;
  border: 1px dashed rgba(93, 47, 190, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.admin-file-card input[type="text"] {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(93, 47, 190, 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.admin-file-card .button {
  align-self: end;
  justify-self: start;
}

.admin-files-list {
  margin-top: 34px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 40px rgba(19, 35, 80, 0.08);
}

.admin-files-list h2,
.admin-files-list h3,
.admin-files-list p {
  margin: 0;
}

.admin-files-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 20px;
}

.admin-files-list article {
  display: grid;
  gap: 12px;
}

.admin-files-list ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-files-list li {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.admin-files-list li div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-files-list strong {
  overflow-wrap: anywhere;
}

.admin-files-list span,
.admin-files-list p {
  color: var(--muted);
}

.admin-delete-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(180, 34, 34, 0.18);
  border-radius: 8px;
  background: #fff0f0;
  color: #8a1f1f;
  cursor: pointer;
  font-weight: 900;
}

.admin-delete-button:hover {
  background: #ffe1e1;
}

@media (max-width: 1080px) {
  .hero-grid,
  .feature-grid,
  .steps-grid,
  .features-hero-grid,
  .plugin-showcase-grid,
  .pricing-page-hero-grid,
  .pricing-values-panel,
  .auth-grid,
  .reserved-panel,
  .downloads-hero {
    grid-template-columns: 1fr;
  }

  .builder-window {
    max-width: 860px;
  }

  .step-card:not(:last-child)::after {
    display: none;
  }

  .feature-detail-grid,
  .pricing-plan-grid,
  .reserved-actions-grid,
  .downloads-grid,
  .themes-list-grid,
  .admin-files-grid,
  .admin-files-list-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  .container,
  .header-inner {
    width: min(100% - 24px, 1160px);
  }

  .header-inner {
    grid-template-columns: 1fr auto auto;
    padding: 12px;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    display: none;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(93, 47, 190, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(46, 82, 145, 0.14);
  }

  .main-nav.is-open {
    display: grid;
  }

  .nav-dropdown {
    display: grid;
    min-height: 0;
  }

  .nav-submenu {
    position: static;
    min-width: 0;
    margin-top: 4px;
    padding: 0 0 0 12px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    background: transparent;
  }

  .manual-document .quick-grid,
  .manual-document .card-grid,
  .manual-document .component-grid,
  .manual-document .download-grid {
    grid-template-columns: 1fr;
  }

  .manual-document .document-header,
  .manual-document .chapter {
    padding: 22px;
  }

  .header-actions .button {
    display: none;
  }

  .admin-upload-panel,
  .admin-files-hero {
    display: grid;
    justify-content: stretch;
  }

  .hero {
    padding-top: 40px;
  }

  .builder-shell {
    grid-template-columns: 1fr;
  }

  .builder-sidebar {
    display: none;
  }

  .preview-nav nav {
    display: none;
  }

  .selected-block {
    width: 92%;
  }

  .preview-cards {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .pricing-panel,
  .site-footer .container {
    display: grid;
  }

  .feature-detail-grid,
  .pricing-plan-grid,
  .reserved-actions-grid,
  .downloads-grid,
  .themes-list-grid,
  .admin-files-grid,
  .admin-files-list-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .brand img {
    width: 162px;
  }

  .hero h1 {
    font-size: 3.1rem;
  }

  .lead {
    font-size: 1.08rem;
  }

  .hero-actions .button,
  .pricing-panel .button {
    width: 100%;
  }

  .preview-hero {
    padding: 34px 20px;
  }

  .feature-card {
    grid-template-columns: 1fr;
  }
}
