:root {
  --bg: #0b111b;
  --ink: #0d1730;
  --muted: #5c667a;
  --line: #d9e2ef;
  --navy: #06152e;
  --blue: #1767d8;
  --blue-soft: #eaf3ff;
  --orange: #ff7a18;
  --orange-dark: #e45e00;
  --panel: #ffffff;
  --shadow: 0 18px 50px rgba(9, 24, 52, 0.14);
  --bg-deep: #070b12;
  --panel-2: #141f30;
  --panel-3: #172437;
  --line-soft: rgba(118, 151, 193, 0.22);
  --muted-2: #7f8da4;
  --green: #8af0b2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

/* Header:
   The menu is intentionally aligned to the left, closer to the logo.
   In the previous version it was centered, which made it look too far right. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: clamp(26px, 4vw, 64px);
  min-height: 78px;
  padding: 0 clamp(24px, 5vw, 86px);
  color: #ffffff;
  background: rgba(4, 13, 30, 0.94);
  border-bottom: 1px solid rgba(116, 156, 220, 0.24);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: block;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.brand-name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-name span {
  color: #5ea5ff;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: clamp(18px, 2vw, 30px);
  font-size: 15px;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  padding: 8px 0;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: #ffffff;
}

.main-nav .nav-purchase {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 13px;
  color: #ffffff;
  background: linear-gradient(180deg, #ff8a1f, #ff650b);
  border-radius: 7px;
  box-shadow: 0 6px 14px rgba(255, 102, 11, 0.18);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.main-nav .nav-purchase:hover {
  color: #ffffff;
  background: linear-gradient(180deg, #ff9636, var(--orange-dark));
  box-shadow: 0 8px 18px rgba(255, 102, 11, 0.24);
  transform: translateY(-1px);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--orange);
}

.hero-showcase {
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 62%, rgba(255, 122, 24, 0.18), transparent 34%),
    linear-gradient(110deg, rgba(4, 16, 42, 0.98) 0%, rgba(9, 39, 91, 0.95) 52%, rgba(8, 82, 170, 0.84) 100%),
    #071833;
}

.hero-section,
.intro-video-section {
  color: inherit;
  background: transparent;
}

.hero-section {
  border-bottom: 0;
}

/* Hero:
   The preview image is centered inside the right side.
   This version gives the product preview about 20% more visual space,
   while keeping object-fit: contain to avoid cropping. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(440px, 0.95fr) minmax(540px, 1.25fr);
  align-items: center;
  gap: clamp(44px, 5vw, 72px);
  max-width: 1560px;
  min-height: 650px;
  margin: 0 auto;
  padding: 72px clamp(22px, 4vw, 64px) 66px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #7bb6ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-copy {
  min-width: 0;
  max-width: 680px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(50px, 5.4vw, 78px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy h1 span {
  color: #69adff;
}

.subtitle {
  margin: 24px 0 0;
  color: #d9e8ff;
  font-size: clamp(24px, 2.7vw, 36px);
  font-weight: 800;
  line-height: 1.08;
}

.hero-description {
  max-width: 610px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

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

.button.primary {
  color: #ffffff;
  background: rgba(13, 84, 180, 0.66);
  border-color: #4098ff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.button.primary:hover {
  background: rgba(25, 107, 218, 0.82);
}

.button.purchase {
  color: #ffffff;
  background: linear-gradient(180deg, #ff8a1f, #ff650b);
  box-shadow: 0 14px 30px rgba(255, 102, 11, 0.28);
}

.button.purchase:hover {
  background: linear-gradient(180deg, #ff9636, var(--orange-dark));
}

.button.outline {
  color: var(--blue);
  background: #ffffff;
  border-color: #8fc1ff;
}

.button.wide {
  width: 100%;
}

.button-icon {
  font-size: 22px;
  line-height: 1;
}

.hero-actions .button.primary .button-icon,
.download-actions .button.primary .button-icon {
  color: var(--green);
  font-size: 24px;
  font-weight: 900;
}

.release-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 640px;
  margin: 34px 0 0;
}

.release-meta div {
  padding: 14px 16px;
  border: 1px solid rgba(146, 190, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.release-meta dt {
  color: #9bbde8;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.release-meta dd {
  margin: 4px 0 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.product-preview {
  min-width: 0;
  width: min(100%, 985px);
  justify-self: center;
  align-self: center;
}

.window-frame {
  overflow: hidden;
  border-radius: 10px;
  background: #15191f;
  border: 1px solid rgba(140, 173, 218, 0.42);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  color: #b8c2d4;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #1d222a;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #647084;
}

.window-bar strong {
  margin-left: 6px;
  font-weight: 700;
}

.window-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center center;
  background: #111923;
}

.intro-video-section {
  padding: 18px clamp(22px, 5vw, 78px) 86px;
  border-bottom: 1px solid rgba(23, 103, 216, 0.24);
}

.intro-video-wrap {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.intro-video-wrap h2 {
  max-width: 850px;
  margin: 0 auto;
  color: #f8fbff;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: 0;
}

.intro-video-wrap p:not(.eyebrow) {
  max-width: 780px;
  margin: 18px auto 32px;
  color: #cfe3ff;
  font-size: 19px;
}

.intro-video-frame {
  position: relative;
  overflow: hidden;
  width: min(100%, 1040px);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border: 1px solid rgba(132, 183, 255, 0.45);
  border-radius: 16px;
  background: #07111f;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.intro-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* Mixed version notes:
   Top section comes from the previous blue hero version.
   Lower sections come from the darker practical layout. */
body {
  background: #0b111b;
}

.content-section,
.download-section {
  background: transparent;
}


.console-top {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 14px;
  color: #b8c2d4;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #1d222a;
}

.console-top span {
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 50%;
  background: #647084;
}

.console-top strong {
  margin-left: 4px;
  font-weight: 700;
}

.workspace-section,
.content-section,
.download-section {
  border-top: 1px solid rgba(118, 151, 193, 0.13);
}

.workspace-section {
  background:
    linear-gradient(180deg, rgba(13, 23, 37, 0.98), rgba(9, 15, 25, 0.98)),
    repeating-linear-gradient(90deg, transparent 0 49px, rgba(129, 156, 194, 0.04) 49px 50px);
}

.workspace-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 26px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 58px clamp(22px, 5vw, 78px);
}

.tool-panel,
.overview-card,
.steps-console,
.download-panel {
  background: linear-gradient(180deg, rgba(21, 33, 51, 0.96), rgba(14, 23, 36, 0.96));
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.18);
}

.tool-panel {
  padding: 28px;
}

.panel-label,
.card-kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tool-panel p,
.overview-card p,
.download-panel p,
.section-heading p {
  color: var(--muted-2);
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.overview-card {
  padding: 26px;
}

.overview-card.wide {
  grid-column: 1 / -1;
}

.overview-card h3 {
  margin: 0 0 10px;
  color: #f1f6ff;
  font-size: 21px;
}

.content-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 58px clamp(22px, 5vw, 78px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.section-heading.aligned {
  margin-left: 0;
  text-align: left;
}

.section-heading h2,
.tool-panel h2,
.download-panel h2 {
  color: #f2f7ff;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.12;
}

.compact-heading {
  margin-bottom: 0;
}

.tool-icon {
  position: relative;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 9px;
  background: #0e1826;
  border: 1px solid rgba(92, 153, 231, 0.35);
}

.floor-icon::before,
.wall-icon::before,
.stair-icon::before,
.ramp-icon::before,
.opening-icon::before,
.layer-icon::before,
.layer-icon::after {
  content: "";
  position: absolute;
}

.floor-icon::before {
  left: 12px;
  top: 19px;
  width: 28px;
  height: 15px;
  border: 2px solid #80b9ff;
  transform: skewX(-26deg);
}

.wall-icon::before {
  left: 15px;
  top: 11px;
  width: 22px;
  height: 30px;
  border: 2px solid #80b9ff;
  background: rgba(77, 156, 255, 0.18);
}

.stair-icon::before {
  left: 13px;
  bottom: 14px;
  width: 27px;
  height: 22px;
  background: repeating-linear-gradient(to top, #80b9ff 0 2px, transparent 2px 7px);
  border-left: 2px solid #80b9ff;
  border-bottom: 2px solid #80b9ff;
}

.ramp-icon::before {
  left: 12px;
  top: 16px;
  width: 29px;
  height: 23px;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  background: rgba(77, 156, 255, 0.34);
  border-bottom: 2px solid #80b9ff;
}

.opening-icon::before {
  left: 16px;
  top: 10px;
  width: 20px;
  height: 31px;
  border: 3px solid #80b9ff;
  border-bottom: 0;
}

.layer-icon::before,
.layer-icon::after {
  left: 13px;
  width: 26px;
  height: 10px;
  border: 2px solid #80b9ff;
  transform: skewX(-24deg);
}

.layer-icon::before {
  top: 15px;
}

.layer-icon::after {
  top: 27px;
  opacity: 0.65;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: 32px;
  align-items: start;
}

.steps-console {
  overflow: hidden;
}

.steps-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps-list li {
  position: relative;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  padding: 22px 26px;
  border-top: 1px solid rgba(118, 151, 193, 0.12);
  counter-increment: step;
}

.steps-list li::before {
  content: "0" counter(step);
  color: var(--blue);
  font-weight: 900;
}

.steps-list strong {
  display: block;
  color: #f3f7ff;
  font-size: 18px;
}

.steps-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
}

/* MapChisel-to-Godot comparison */
.comparison-section {
  padding: 68px clamp(22px, 5vw, 78px);
  border-top: 1px solid rgba(118, 151, 193, 0.13);
}

.comparison-section-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.comparison-heading {
  max-width: 820px;
  margin: 0 auto 32px;
  text-align: center;
}

.comparison-heading h2 {
  margin: 0;
  color: #f2f7ff;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.12;
}

.comparison-heading p {
  max-width: 720px;
  margin: 14px auto 0;
  color: var(--muted-2);
  font-size: 17px;
}

.comparison-panel {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(21, 33, 51, 0.96), rgba(14, 23, 36, 0.96));
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.18);
}

.comparison-layout {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(120px, 16fr) minmax(0, 42fr);
  grid-template-areas:
    "left-title transition right-title"
    "left-media transition right-media";
  gap: 18px 22px;
  align-items: start;
}

.comparison-side-title {
  align-self: end;
  margin: 0;
  color: #f1f6ff;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.25;
  text-align: center;
}

.comparison-left-title {
  grid-area: left-title;
}

.comparison-right-title {
  grid-area: right-title;
}

.comparison-left-media {
  grid-area: left-media;
}

.comparison-right-media {
  grid-area: right-media;
}

.comparison-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(132, 165, 207, 0.26);
  border-radius: 9px;
  background: #0b111b;
}

.comparison-media img,
.comparison-media iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.comparison-media img {
  object-fit: contain;
}

.comparison-transition {
  grid-area: transition;
  align-self: center;
  justify-self: center;
  min-width: 0;
  padding: 10px 13px;
  color: #ddebff;
  border: 1px solid rgba(132, 183, 255, 0.34);
  border-radius: 8px;
  background: rgba(20, 100, 205, 0.16);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

.comparison-transition-vertical {
  display: none;
}

.comparison-media iframe:focus-visible {
  outline: 2px solid #72b6ff;
  outline-offset: -4px;
}

.muted-card {
  opacity: 0.92;
}

.file-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 30px;
  margin-bottom: 18px;
  color: #06111f;
  background: var(--green);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 900;
}

.download-section {
  padding: 58px clamp(22px, 5vw, 78px);
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(340px, 1.18fr);
  gap: 34px;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px;
  background:
    linear-gradient(120deg, rgba(21, 35, 54, 0.98), rgba(11, 20, 32, 0.98)),
    radial-gradient(circle at 100% 0%, rgba(255, 122, 24, 0.16), transparent 30rem);
}

.version-table {
  overflow: hidden;
  border: 1px solid rgba(118, 151, 193, 0.19);
  border-radius: 9px;
}

.table-row {
  display: grid;
  grid-template-columns: 1.4fr 0.55fr 0.55fr;
}

.table-row span {
  padding: 13px 14px;
  color: #cdd9ec;
  border-top: 1px solid rgba(118, 151, 193, 0.13);
}

.table-head span {
  color: #f3f7ff;
  background: rgba(255, 255, 255, 0.055);
  border-top: 0;
  font-weight: 900;
}

.download-actions {
  grid-column: 1 / -1;
  margin-top: 0;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 28px clamp(22px, 5vw, 78px);
  text-align: center;
  color: #aebbd0;
  background: var(--bg-deep);
  border-top: 1px solid rgba(118, 151, 193, 0.13);
}

.site-footer span:first-child {
  color: #c7d3e5;
  font-size: 14px;
  font-weight: 600;
}

.site-footer span:last-child {
  color: #7f8da4;
  font-size: 13px;
}
/* Keep the hero product line in the official MapChisel brand casing.
   Other small section labels can remain uppercase. */
.hero-eyebrow {
  text-transform: none;
  letter-spacing: 0;
}

.hero-product-eyebrow,
.intro-video-eyebrow {
  font-size: 16px;
  line-height: 1.4;
}

@media (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .site-header {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 14px;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    gap: 22px;
    padding-bottom: 2px;
  }

  .workspace-shell,
  .split-layout,
  .download-panel {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 980px) {
  .comparison-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "left-title"
      "left-media"
      "transition"
      "right-title"
      "right-media";
    gap: 16px;
  }

  .comparison-transition {
    margin: 4px 0;
  }

  .comparison-transition-horizontal {
    display: none;
  }

  .comparison-transition-vertical {
    display: inline;
  }
}

@media (max-width: 720px) {
  .hero-product-eyebrow,
  .intro-video-eyebrow {
    font-size: 14px;
  }

  .brand-name {
    font-size: 24px;
  }

  .hero-grid {
    min-height: 0;
    padding-top: 46px;
  }

  .hero-actions,
  .download-actions,
  .release-meta,
  .overview-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .content-section,
  .workspace-shell,
  .comparison-section,
  .download-section {
    padding: 42px 20px;
  }

  .comparison-heading {
    margin-bottom: 26px;
  }

  .comparison-heading p {
    font-size: 16px;
  }

  .comparison-panel {
    padding: 20px;
  }

  .comparison-side-title {
    font-size: 18px;
  }

  .download-panel,
  .tool-panel,
  .overview-card {
    padding: 22px;
  }

  .steps-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .table-row {
    grid-template-columns: 1.2fr 0.5fr 0.5fr;
  }

  .site-footer {
    flex-direction: column;
  }
}

/* Documentation page */
.docs-page {
  color: #f2f7ff;
  background: var(--bg-deep);
}

.docs-hero {
  display: flex;
  align-items: center;
  min-height: 380px;
  color: #ffffff;
  background:
    radial-gradient(circle at 74% 68%, rgba(255, 122, 24, 0.16), transparent 32%),
    linear-gradient(110deg, rgba(4, 16, 42, 0.98) 0%, rgba(9, 39, 91, 0.95) 52%, rgba(8, 82, 170, 0.84) 100%),
    #071833;
}

.docs-hero-content {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  padding: 54px 22px 64px;
  text-align: center;
}

.docs-hero-logo {
  display: block;
  width: clamp(130px, 12vw, 160px);
  height: auto;
  margin: 0 auto 22px;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.docs-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.04;
  font-weight: 900;
}

.docs-hero p {
  max-width: 660px;
  margin: 14px auto 0;
  color: #cfe3ff;
  font-size: 18px;
}

.docs-quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.docs-quick-links a {
  padding: 9px 14px;
  color: #ddebff;
  border: 1px solid rgba(132, 183, 255, 0.42);
  border-radius: 8px;
  background: rgba(7, 20, 46, 0.34);
  font-size: 14px;
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.docs-quick-links a:hover {
  color: #ffffff;
  border-color: #72b6ff;
  background: rgba(20, 100, 205, 0.34);
}

.docs-content-area {
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(13, 23, 37, 0.98), rgba(7, 11, 18, 0.98)),
    repeating-linear-gradient(90deg, transparent 0 49px, rgba(129, 156, 194, 0.035) 49px 50px);
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(230px, 260px) minmax(0, 1fr);
  gap: 32px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 58px clamp(22px, 5vw, 78px);
}

.docs-sidebar {
  position: sticky;
  top: 110px;
  align-self: start;
  max-height: calc(100vh - 132px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(21, 33, 51, 0.96), rgba(14, 23, 36, 0.96));
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.18);
}

.docs-sidebar nav {
  display: grid;
  gap: 4px;
}

.docs-sidebar a {
  display: block;
  padding: 9px 10px;
  color: var(--muted-2);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}

.docs-sidebar a:hover {
  color: #f2f7ff;
  background: rgba(75, 146, 237, 0.12);
}

.docs-main {
  display: grid;
  gap: 0;
  min-width: 0;
}

.docs-section {
  padding: 0 0 48px;
  border-bottom: 1px solid rgba(118, 151, 193, 0.13);
}

.docs-section + .docs-section {
  padding-top: 48px;
}

.docs-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.docs-section h2 {
  max-width: 800px;
  margin: 0;
  color: #f2f7ff;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12;
}

.docs-section > p:not(.eyebrow) {
  max-width: 800px;
  margin: 14px 0 0;
  color: var(--muted-2);
  font-size: 17px;
}

.docs-info-card {
  max-width: 800px;
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid rgba(118, 151, 193, 0.26);
  border-left: 3px solid #5ea5ff;
  border-radius: 9px;
  background: linear-gradient(120deg, rgba(20, 37, 59, 0.94), rgba(12, 23, 38, 0.94));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.docs-info-card strong {
  color: #dceaff;
  font-size: 15px;
}

.docs-info-card p {
  margin: 6px 0 0;
  color: var(--muted-2);
}

.docs-workflow-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.docs-workflow-list li,
.docs-tool-card,
.docs-export-card {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(21, 33, 51, 0.96), rgba(14, 23, 36, 0.96));
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.18);
}

.docs-workflow-list li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 20px;
}

.docs-workflow-list > li > span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.docs-workflow-list h3,
.docs-tool-card h3,
.docs-export-card h3 {
  margin: 0;
  color: #f1f6ff;
  font-size: 18px;
}

.docs-workflow-list p,
.docs-tool-card p,
.docs-export-card p {
  margin: 6px 0 0;
  color: var(--muted-2);
  font-size: 15px;
}

.docs-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.docs-tool-card {
  padding: 22px;
}

.docs-tool-card .tool-icon {
  margin-bottom: 16px;
}

.docs-compact-section {
  max-width: 800px;
}

.docs-export-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.docs-export-card {
  padding: 22px;
}

.docs-nav-group + .docs-nav-group {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(118, 151, 193, 0.13);
}

.docs-nav-group {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.docs-nav-group p {
  margin: 0 0 5px;
  padding: 0 10px;
  color: #7bb6ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-section {
  scroll-margin-top: 108px;
}

.docs-section h3 {
  margin: 0;
  color: #f1f6ff;
  font-size: 18px;
  line-height: 1.25;
}

.docs-section h3 + p {
  margin-top: 7px;
}

.docs-fact-grid,
.docs-subsection-grid,
.docs-detail-grid,
.docs-test-grid,
.docs-interface-list {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.docs-fact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.docs-fact-grid article,
.docs-subsection-card,
.docs-detail-grid > div,
.docs-test-grid article,
.docs-interface-list article {
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(21, 33, 51, 0.96), rgba(14, 23, 36, 0.96));
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.18);
}

.docs-fact-number {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.docs-fact-grid p,
.docs-subsection-card p,
.docs-detail-grid p,
.docs-test-grid p,
.docs-interface-list p {
  margin: 7px 0 0;
  color: var(--muted-2);
  font-size: 15px;
}

.docs-interface-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.85fr);
  gap: 20px;
  align-items: start;
  margin-top: 26px;
}

.docs-screenshot-frame {
  overflow: hidden;
  border: 1px solid rgba(129, 156, 194, 0.38);
  border-radius: 10px;
  background: #0b111b;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.docs-screenshot-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 12px;
  color: #b8c8df;
  background: #172234;
  font-size: 12px;
}

.docs-screenshot-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #71829a;
}

.docs-screenshot-bar strong {
  margin-left: 5px;
  font-size: 12px;
}

.docs-screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.docs-interface-list {
  margin-top: 0;
}

.docs-interface-list article {
  padding: 16px 18px;
}

.docs-workflow-list-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.docs-subsection-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.docs-subsection-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.docs-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.docs-test-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.docs-key-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 28px;
  margin-bottom: 14px;
}

.docs-reference-table {
  width: 100%;
  min-width: 560px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(21, 33, 51, 0.96), rgba(14, 23, 36, 0.96));
  color: var(--muted-2);
  font-size: 15px;
}

.docs-table-wrap {
  margin-top: 26px;
  overflow-x: auto;
  border-radius: 10px;
}

.docs-reference-table th,
.docs-reference-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(118, 151, 193, 0.13);
  text-align: left;
  vertical-align: top;
}

.docs-reference-table th {
  color: #dceaff;
  background: rgba(73, 123, 186, 0.12);
  font-size: 13px;
  font-weight: 900;
}

.docs-reference-table td:first-child {
  width: 38%;
  color: #f1f6ff;
  font-weight: 700;
}

.docs-reference-table tr:last-child td {
  border-bottom: 0;
}

kbd {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 7px;
  color: #ddebff;
  border: 1px solid rgba(132, 183, 255, 0.36);
  border-bottom-color: rgba(132, 183, 255, 0.56);
  border-radius: 5px;
  background: rgba(7, 20, 46, 0.66);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.docs-note-card {
  max-width: 800px;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(118, 151, 193, 0.26);
  border-left: 3px solid #72b6ff;
  border-radius: 9px;
  background: linear-gradient(120deg, rgba(20, 37, 59, 0.94), rgba(12, 23, 38, 0.94));
}

.docs-note-card strong {
  color: #dceaff;
  font-size: 15px;
}

.docs-note-card p {
  margin: 6px 0 0;
  color: var(--muted-2);
}

.docs-export-grid-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.docs-activation-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.docs-activation-list li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 11px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(21, 33, 51, 0.96), rgba(14, 23, 36, 0.96));
}

.docs-activation-list span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.docs-activation-list p {
  margin: 0;
  color: var(--muted-2);
}

.docs-activation-list strong {
  color: #f1f6ff;
}

.docs-page a:focus-visible {
  outline: 2px solid #72b6ff;
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  .docs-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
  }

  .docs-nav-group + .docs-nav-group {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .docs-interface-grid {
    grid-template-columns: 1fr;
  }

  .docs-interface-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docs-fact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .docs-hero {
    min-height: 0;
  }

  .docs-hero-content {
    padding: 42px 20px 48px;
  }

  .docs-hero-logo {
    width: 130px;
    margin-bottom: 18px;
  }

  .docs-hero p {
    font-size: 16px;
  }

  .docs-layout {
    padding: 42px 20px;
  }

  .docs-sidebar nav,
  .docs-workflow-list,
  .docs-tool-grid,
  .docs-export-grid,
  .docs-fact-grid,
  .docs-subsection-grid,
  .docs-subsection-grid-three,
  .docs-detail-grid,
  .docs-test-grid,
  .docs-interface-list,
  .docs-activation-list {
    grid-template-columns: 1fr;
  }

  .docs-nav-group {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .docs-nav-group + .docs-nav-group {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .docs-reference-table th,
  .docs-reference-table td {
    padding: 12px 14px;
  }

  .docs-section {
    padding-bottom: 40px;
  }

  .docs-section + .docs-section {
    padding-top: 40px;
  }
}

/* Download page */
.download-page {
  color: #f2f7ff;
  background: var(--bg-deep);
}

.download-hero {
  display: flex;
  align-items: center;
  min-height: 330px;
  color: #ffffff;
  background:
    radial-gradient(circle at 74% 68%, rgba(255, 122, 24, 0.16), transparent 32%),
    linear-gradient(
      110deg,
      rgba(4, 16, 42, 0.98) 0%,
      rgba(9, 39, 91, 0.95) 52%,
      rgba(8, 82, 170, 0.84) 100%
    ),
    #071833;
}

.download-hero-content {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 52px 22px 62px;
  text-align: center;
}

.download-hero-icon {
  display: block;
  width: clamp(68px, 7vw, 80px);
  height: auto;
  margin: 0 auto 18px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.download-hero-eyebrow {
  text-transform: none;
  letter-spacing: 0;
}

.download-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.04;
  font-weight: 900;
}

.download-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 16px auto 0;
  color: #cfe3ff;
  font-size: 18px;
}

.download-hero .button {
  margin-top: 26px;
}

.download-hero .button.primary .button-icon,
.free-preview-download-action .button.primary .button-icon {
  color: var(--green);
  font-size: 24px;
  font-weight: 900;
}

.download-content-area {
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(13, 23, 37, 0.98), rgba(7, 11, 18, 0.98)),
    repeating-linear-gradient(
      90deg,
      transparent 0 49px,
      rgba(129, 156, 194, 0.035) 49px 50px
    );
}

.download-page-layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 58px clamp(22px, 5vw, 78px);
}

.free-preview-panel,
.download-help-card {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(21, 33, 51, 0.96), rgba(14, 23, 36, 0.96));
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.18);
}

.free-preview-panel {
  padding: clamp(26px, 4vw, 42px);
  scroll-margin-top: 110px;
}

.free-preview-panel h2,
.download-help-card h2 {
  margin: 0;
  color: #f2f7ff;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.12;
}

.free-preview-intro {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted-2);
  font-size: 17px;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.download-meta span {
  padding: 7px 11px;
  color: #dceaff;
  border: 1px solid rgba(118, 151, 193, 0.26);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 700;
}

.download-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.download-feature-card {
  padding: 22px;
  border: 1px solid rgba(118, 151, 193, 0.2);
  border-radius: 9px;
  background: rgba(7, 15, 25, 0.26);
}

.download-feature-card h3 {
  margin: 0;
  color: #f1f6ff;
  font-size: 19px;
}

.download-feature-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.download-feature-card li {
  position: relative;
  padding-left: 25px;
  color: var(--muted-2);
}

.download-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}

.download-lock-list li::before {
  content: "—";
  position: absolute;
  left: 2px;
  color: #7f8da4;
  font-weight: 900;
}

.download-locked-card {
  background: rgba(5, 11, 18, 0.34);
}

.free-preview-download-action {
  margin-top: 30px;
}

.free-preview-download-button {
  min-height: 58px;
}

.free-preview-download-button.is-disabled {
  cursor: not-allowed;
  opacity: 0.58;
  pointer-events: none;
}

.download-file-note {
  margin: 10px 0 0;
  color: var(--muted-2);
  font-size: 14px;
}

.download-help-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 22px;
  padding: 26px 28px;
}

.download-help-card p:not(.eyebrow) {
  max-width: 650px;
  margin: 10px 0 0;
  color: var(--muted-2);
}

.docs-help-link {
  flex: 0 0 auto;
  padding: 10px 15px;
  color: #ddebff;
  border: 1px solid rgba(132, 183, 255, 0.42);
  border-radius: 8px;
  background: rgba(20, 100, 205, 0.18);
  font-size: 14px;
  font-weight: 800;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.docs-help-link:hover {
  color: #ffffff;
  border-color: #72b6ff;
  background: rgba(20, 100, 205, 0.32);
}

@media (max-width: 720px) {
  .download-hero {
    min-height: 0;
  }

  .download-hero-content {
    padding: 42px 20px 48px;
  }

  .download-page-layout {
    padding: 42px 20px;
  }

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

  .download-help-card {
    flex-direction: column;
    align-items: stretch;
  }

  .docs-help-link {
    width: 100%;
    text-align: center;
  }
}

/* Features page */
.features-page {
  overflow-x: hidden;
  color: #f2f7ff;
  background: var(--bg-deep);
}

.features-hero {
  display: flex;
  min-height: 400px;
  align-items: center;
  color: #ffffff;
  border-bottom: 1px solid rgba(118, 151, 193, 0.13);
  background:
    radial-gradient(circle at 50% 100%, rgba(255, 122, 24, 0.12), transparent 38%),
    linear-gradient(110deg, rgba(4, 16, 42, 0.98) 0%, rgba(9, 39, 91, 0.95) 52%, rgba(8, 82, 170, 0.84) 100%),
    #071833;
}

.features-hero-content {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 64px 24px;
  text-align: center;
}

.features-hero-content h1 {
  max-width: 880px;
  margin: 0 auto;
  color: #ffffff;
  font-size: clamp(42px, 5.4vw, 66px);
  line-height: 1.02;
  font-weight: 900;
}

.features-hero-content > p:not(.eyebrow) {
  max-width: 760px;
  margin: 20px auto 0;
  color: #cfe3ff;
  font-size: clamp(17px, 1.7vw, 20px);
}

.features-journey-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.features-journey-nav a {
  min-width: 96px;
  padding: 9px 16px;
  color: #ddebff;
  border: 1px solid rgba(132, 183, 255, 0.42);
  border-radius: 999px;
  background: rgba(7, 20, 46, 0.35);
  font-size: 14px;
  font-weight: 800;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.features-journey-nav a:hover {
  color: #ffffff;
  border-color: #72b6ff;
  background: rgba(20, 100, 205, 0.28);
}

.features-flow-section,
.features-export-section,
.features-cta-section {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px clamp(22px, 5vw, 58px);
}

.features-flow-section,
.features-test-section,
.features-export-section,
.features-cta-section {
  border-top: 1px solid rgba(118, 151, 193, 0.13);
}

.features-flow-section,
.features-test-section,
.features-export-section {
  scroll-margin-top: 105px;
}

.features-refine-section {
  max-width: none;
  padding-right: max(clamp(22px, 5vw, 58px), calc((100% - 1240px) / 2 + 58px));
  padding-left: max(clamp(22px, 5vw, 58px), calc((100% - 1240px) / 2 + 58px));
  background:
    linear-gradient(180deg, rgba(13, 23, 37, 0.98), rgba(7, 11, 18, 0.98)),
    repeating-linear-gradient(90deg, transparent 0 49px, rgba(129, 156, 194, 0.035) 49px 50px);
}

.features-section-heading {
  max-width: 800px;
  margin-bottom: 34px;
}

.features-section-heading h2,
.features-cta-panel h2 {
  margin: 0;
  color: #f2f7ff;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.12;
}

.features-section-heading > p:not(.eyebrow),
.features-cta-panel > p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted-2);
  font-size: 17px;
}

.features-flow-layout,
.features-test-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  align-items: center;
  gap: clamp(30px, 4.4vw, 58px);
}

.features-flow-layout-reverse {
  grid-template-columns: minmax(340px, 0.88fr) minmax(0, 1.12fr);
}

.features-flow-layout-reverse .features-screenshot-frame {
  order: 2;
}

.features-screenshot-frame {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(132, 183, 255, 0.26);
  border-radius: 10px;
  background: #111820;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
}

.features-screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.features-capability-panel {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(21, 33, 51, 0.96), rgba(14, 23, 36, 0.96));
}

.features-capability-panel article {
  padding: 15px 18px;
  border-bottom: 1px solid rgba(118, 151, 193, 0.13);
}

.features-capability-panel h3 {
  margin: 0;
  color: #f1f6ff;
  font-size: 17px;
}

.features-capability-panel article p {
  margin: 6px 0 0;
  color: var(--muted-2);
  font-size: 14px;
}

.features-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 18px;
  color: #72b6ff;
  font-size: 14px;
  font-weight: 800;
  transition: color 160ms ease;
}

.features-inline-link:hover {
  color: #ffffff;
}

.features-inline-link span {
  transition: transform 160ms ease;
}

.features-inline-link:hover span {
  transform: translateX(2px);
}

.features-test-section {
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 70%, rgba(23, 103, 216, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(9, 20, 36, 0.99), rgba(7, 11, 18, 0.99));
}

.features-test-inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px clamp(22px, 5vw, 58px);
}

.features-test-layout {
  grid-template-columns: minmax(0, 1.16fr) minmax(340px, 0.84fr);
}

.features-test-capabilities article {
  padding-top: 13px;
  padding-bottom: 13px;
}

.features-note {
  margin: 0;
  padding: 14px 18px;
  color: #cfe3ff;
  border-left: 3px solid var(--blue);
  background: rgba(20, 100, 205, 0.12);
  font-size: 13px;
  font-weight: 700;
}

.features-test-capabilities .features-inline-link {
  margin-top: 16px;
}

.features-export-screenshot {
  margin-bottom: 28px;
}

.features-export-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.features-export-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(21, 33, 51, 0.96), rgba(14, 23, 36, 0.96));
}

.features-file-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  color: #bcd9ff;
  border: 1px solid rgba(132, 183, 255, 0.3);
  border-radius: 6px;
  background: rgba(20, 100, 205, 0.12);
  font-size: 12px;
  font-weight: 900;
}

.features-export-card h3 {
  margin: 16px 0 0;
  color: #f1f6ff;
  font-size: 20px;
}

.features-export-card p {
  margin: 9px 0 0;
  color: var(--muted-2);
  font-size: 14px;
}

.features-export-note {
  max-width: 560px;
  margin-top: 22px;
}

.features-cta-section {
  padding-top: 52px;
  padding-bottom: 52px;
}

.features-cta-panel {
  padding: 34px;
  text-align: center;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 120%, rgba(255, 122, 24, 0.13), transparent 45%),
    linear-gradient(180deg, rgba(21, 33, 51, 0.96), rgba(14, 23, 36, 0.96));
}

.features-cta-panel > p:not(.eyebrow) {
  max-width: 700px;
  margin-right: auto;
  margin-left: auto;
}

.features-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}

.features-secondary-button {
  color: #ddebff;
  border-color: rgba(132, 183, 255, 0.48);
  background: rgba(7, 20, 46, 0.42);
}

.features-secondary-button:hover {
  color: #ffffff;
  border-color: #72b6ff;
  background: rgba(20, 100, 205, 0.3);
}

.features-cta-actions .button.primary .button-icon {
  color: var(--green);
  font-size: 24px;
  font-weight: 900;
}

.features-page a:focus-visible {
  outline: 2px solid #72b6ff;
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .features-flow-layout,
  .features-flow-layout-reverse,
  .features-test-layout {
    grid-template-columns: 1fr;
  }

  .features-flow-layout-reverse .features-screenshot-frame {
    order: 0;
  }

  .features-screenshot-frame {
    max-width: 860px;
  }

  .features-export-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .features-hero {
    min-height: 0;
  }

  .features-hero-content,
  .features-flow-section,
  .features-test-inner,
  .features-export-section,
  .features-cta-section {
    padding: 42px 20px;
  }

  .features-refine-section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .features-hero-content h1 {
    font-size: clamp(37px, 11vw, 50px);
  }

  .features-journey-nav {
    gap: 8px;
  }

  .features-journey-nav a {
    min-width: 86px;
    padding-right: 13px;
    padding-left: 13px;
  }

  .features-section-heading {
    margin-bottom: 26px;
  }

  .features-export-screenshot {
    margin-bottom: 22px;
  }

  .features-export-grid {
    grid-template-columns: 1fr;
  }

  .features-cta-panel {
    padding: 26px 20px;
  }

  .features-cta-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .features-cta-actions .button {
    width: 100%;
  }
}

/* FAQ page */
.faq-page {
  overflow-x: hidden;
  color: #f2f7ff;
  background: var(--bg-deep);
}

.faq-hero {
  display: flex;
  min-height: 380px;
  align-items: center;
  color: #ffffff;
  border-bottom: 1px solid rgba(118, 151, 193, 0.13);
  background:
    radial-gradient(circle at 72% 75%, rgba(255, 122, 24, 0.14), transparent 34%),
    linear-gradient(110deg, rgba(4, 16, 42, 0.98) 0%, rgba(9, 39, 91, 0.95) 52%, rgba(8, 82, 170, 0.84) 100%),
    #071833;
}

.faq-hero-content {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 54px 22px 60px;
  text-align: center;
}

.faq-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1.04;
  font-weight: 900;
}

.faq-hero-content > p:not(.eyebrow) {
  max-width: 720px;
  margin: 15px auto 0;
  color: #cfe3ff;
  font-size: 18px;
}

.faq-category-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 25px;
}

.faq-category-nav a {
  padding: 8px 13px;
  color: #ddebff;
  border: 1px solid rgba(132, 183, 255, 0.42);
  border-radius: 8px;
  background: rgba(7, 20, 46, 0.34);
  font-size: 13px;
  font-weight: 700;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.faq-category-nav a:hover {
  color: #ffffff;
  border-color: #72b6ff;
  background: rgba(20, 100, 205, 0.34);
}

.faq-content {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px clamp(22px, 5vw, 58px);
}

.faq-category {
  display: grid;
  grid-template-columns: minmax(210px, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(30px, 5vw, 62px);
  align-items: start;
  scroll-margin-top: 105px;
}

.faq-category + .faq-category {
  margin-top: 58px;
  padding-top: 58px;
  border-top: 1px solid rgba(118, 151, 193, 0.13);
}

.faq-category-heading h2,
.faq-support-panel h2 {
  margin: 0;
  color: #f2f7ff;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.12;
}

.faq-category-heading > p:not(.eyebrow),
.faq-support-panel > p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted-2);
}

.faq-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.faq-list details {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(21, 33, 51, 0.96), rgba(14, 23, 36, 0.96));
  transition: border-color 160ms ease, background 160ms ease;
}

.faq-list details:hover {
  border-color: rgba(132, 183, 255, 0.38);
}

.faq-list details[open] {
  border-color: rgba(114, 182, 255, 0.46);
  background: linear-gradient(180deg, rgba(23, 39, 62, 0.98), rgba(14, 24, 38, 0.98));
}

.faq-list summary {
  position: relative;
  padding: 18px 58px 18px 20px;
  color: #f1f6ff;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 26px;
  height: 26px;
  color: #9ec9ff;
  border: 1px solid rgba(132, 183, 255, 0.28);
  border-radius: 7px;
  background: rgba(20, 100, 205, 0.11);
  font-size: 20px;
  line-height: 23px;
  text-align: center;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
  color: #ffffff;
  border-color: rgba(132, 183, 255, 0.5);
  background: rgba(20, 100, 205, 0.24);
}

.faq-answer {
  padding: 17px 20px 19px;
  border-top: 1px solid rgba(118, 151, 193, 0.13);
}

.faq-answer p {
  max-width: 760px;
  margin: 0;
  color: var(--muted-2);
  font-size: 15px;
}

.faq-answer a {
  color: #72b6ff;
  font-weight: 700;
}

.faq-answer a:hover {
  color: #ffffff;
}

.faq-support-section {
  padding: 52px clamp(22px, 5vw, 58px);
  border-top: 1px solid rgba(118, 151, 193, 0.13);
  background:
    linear-gradient(180deg, rgba(13, 23, 37, 0.98), rgba(7, 11, 18, 0.98)),
    repeating-linear-gradient(90deg, transparent 0 49px, rgba(129, 156, 194, 0.035) 49px 50px);
}

.faq-support-panel {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px;
  text-align: center;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 120%, rgba(255, 122, 24, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(21, 33, 51, 0.96), rgba(14, 23, 36, 0.96));
}

.faq-support-panel > p:not(.eyebrow) {
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
}

.faq-support-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 25px;
}

.faq-secondary-button {
  color: #ddebff;
  border-color: rgba(132, 183, 255, 0.48);
  background: rgba(7, 20, 46, 0.42);
}

.faq-secondary-button:hover {
  color: #ffffff;
  border-color: #72b6ff;
  background: rgba(20, 100, 205, 0.3);
}

.faq-page a:focus-visible,
.faq-page summary:focus-visible {
  outline: 2px solid #72b6ff;
  outline-offset: 3px;
}

@media (max-width: 850px) {
  .faq-category {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .faq-category-heading {
    max-width: 680px;
  }
}

@media (max-width: 720px) {
  .faq-hero {
    min-height: 0;
  }

  .faq-hero-content,
  .faq-content,
  .faq-support-section {
    padding: 42px 20px;
  }

  .faq-hero h1 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .faq-hero-content > p:not(.eyebrow) {
    font-size: 16px;
  }

  .faq-category-nav {
    gap: 8px;
  }

  .faq-category-nav a {
    max-width: 100%;
  }

  .faq-category + .faq-category {
    margin-top: 42px;
    padding-top: 42px;
  }

  .faq-list summary {
    padding: 17px 52px 17px 17px;
    font-size: 16px;
  }

  .faq-list summary::after {
    right: 16px;
  }

  .faq-answer {
    padding-right: 17px;
    padding-left: 17px;
  }

  .faq-support-panel {
    padding: 26px 20px;
  }

  .faq-support-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .faq-support-actions .button {
    width: 100%;
  }
}

/* Contact page */
.contact-page {
  overflow-x: hidden;
  color: #f2f7ff;
  background: var(--bg-deep);
}

.contact-hero {
  display: flex;
  align-items: center;
  min-height: 380px;
  color: #ffffff;
  border-bottom: 1px solid rgba(118, 151, 193, 0.13);
  background:
    radial-gradient(circle at 74% 68%, rgba(255, 122, 24, 0.16), transparent 32%),
    linear-gradient(110deg, rgba(4, 16, 42, 0.98) 0%, rgba(9, 39, 91, 0.95) 52%, rgba(8, 82, 170, 0.84) 100%),
    #071833;
}

.contact-hero-content {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  padding: 54px 22px 64px;
  text-align: center;
}

.contact-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.04;
  font-weight: 900;
}

.contact-content-section {
  min-height: 380px;
  background:
    linear-gradient(180deg, rgba(13, 23, 37, 0.98), rgba(7, 11, 18, 0.98)),
    repeating-linear-gradient(90deg, transparent 0 49px, rgba(129, 156, 194, 0.035) 49px 50px);
}

.contact-content {
  max-width: 940px;
  margin: 0 auto;
  padding: 72px clamp(22px, 5vw, 78px);
}

.contact-card {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 46px);
  text-align: center;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 120%, rgba(255, 122, 24, 0.1), transparent 45%),
    linear-gradient(180deg, rgba(21, 33, 51, 0.96), rgba(14, 23, 36, 0.96));
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.18);
}

.contact-card h2 {
  margin: 0;
  color: #f2f7ff;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12;
}

.contact-card > p:not(.eyebrow) {
  max-width: 640px;
  margin: 16px auto 0;
  color: var(--muted-2);
  font-size: 17px;
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 13px 20px;
  color: #ffffff;
  border: 1px solid rgba(132, 183, 255, 0.5);
  border-radius: 8px;
  background: linear-gradient(180deg, #287ee8, #1767d8);
  box-shadow: 0 10px 24px rgba(23, 103, 216, 0.24);
  font-size: 17px;
  font-weight: 800;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.contact-email-link:hover {
  border-color: #9ec9ff;
  background: linear-gradient(180deg, #3289f5, #1a70e8);
  transform: translateY(-1px);
}

.contact-page a:focus-visible {
  outline: 2px solid #72b6ff;
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .contact-hero {
    min-height: 280px;
  }

  .contact-hero-content,
  .contact-content {
    padding: 42px 20px;
  }

  .contact-content-section {
    min-height: 0;
  }

  .contact-card > p:not(.eyebrow) {
    font-size: 16px;
  }

  .contact-email-link {
    width: 100%;
  }
}

/* Buy page */
.buy-page {
  overflow-x: hidden;
  color: #f2f7ff;
  background: var(--bg-deep);
}

.buy-hero {
  color: #ffffff;
  border-bottom: 1px solid rgba(118, 151, 193, 0.13);
  background:
    radial-gradient(circle at 76% 70%, rgba(255, 122, 24, 0.17), transparent 33%),
    linear-gradient(110deg, rgba(4, 16, 42, 0.98) 0%, rgba(9, 39, 91, 0.95) 52%, rgba(8, 82, 170, 0.84) 100%),
    #071833;
}

.buy-hero-content {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(70px, 8vw, 108px) 22px clamp(64px, 7vw, 92px);
  text-align: center;
}

.buy-hero h1 {
  max-width: 800px;
  margin: 0 auto;
  color: #ffffff;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.04;
  font-weight: 900;
}

.buy-hero-copy {
  max-width: 700px;
  margin: 18px auto 0;
  color: #cfe3ff;
  font-size: 18px;
}

.buy-preview-button {
  min-height: 58px;
  margin-top: 30px;
  color: #071b22;
  border-color: rgba(205, 255, 224, 0.82);
  background: linear-gradient(180deg, #a1f6c3, #70dda0);
  box-shadow: 0 14px 30px rgba(77, 215, 134, 0.2);
}

.buy-preview-button:hover {
  color: #041418;
  border-color: #e1ffec;
  background: linear-gradient(180deg, #b4facf, #82e7ad);
}

.buy-preview-button .button-icon {
  font-size: 24px;
  font-weight: 900;
}

.buy-preview-note {
  max-width: 690px;
  margin: 15px auto 0;
  color: rgba(224, 237, 255, 0.76);
  font-size: 14px;
}

.buy-process-section {
  background:
    linear-gradient(180deg, rgba(13, 23, 37, 0.98), rgba(8, 13, 21, 0.98)),
    repeating-linear-gradient(
      90deg,
      transparent 0 49px,
      rgba(129, 156, 194, 0.035) 49px 50px
    );
}

.buy-page-layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(58px, 7vw, 86px) clamp(22px, 5vw, 78px);
}

.buy-section-heading {
  text-align: center;
}

.buy-section-heading h2,
.purchase-card h2 {
  margin: 0;
  color: #f2f7ff;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.1;
}

.buy-section-heading > p {
  max-width: 680px;
  margin: 14px auto 0;
  color: var(--muted-2);
  font-size: 17px;
}

.activation-steps {
  display: grid;
  gap: 14px;
  max-width: 900px;
  margin: 36px auto 0;
  padding: 0;
  list-style: none;
}

.activation-steps li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px 24px;
  border: 1px solid rgba(118, 151, 193, 0.2);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(21, 33, 51, 0.96), rgba(14, 23, 36, 0.96));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.13);
}

.activation-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: #071b22;
  border-radius: 9px;
  background: var(--green);
  font-size: 18px;
  font-weight: 900;
}

.activation-steps h3 {
  margin: 1px 0 0;
  color: #f2f7ff;
  font-size: 20px;
}

.activation-steps p {
  margin: 8px 0 0;
  color: var(--muted-2);
}

.activation-warning {
  max-width: 900px;
  margin: 18px auto 0;
  padding: 17px 20px;
  color: #d7e6fa;
  border: 1px solid rgba(255, 177, 83, 0.3);
  border-radius: 9px;
  background: rgba(255, 122, 24, 0.08);
  font-size: 15px;
}

.activation-warning strong {
  color: #ffba78;
}

.purchase-section {
  border-top: 1px solid rgba(118, 151, 193, 0.12);
  background:
    radial-gradient(circle at 50% 15%, rgba(23, 103, 216, 0.13), transparent 38%),
    #070b12;
}

.purchase-card {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 52px);
  text-align: center;
  border: 1px solid rgba(118, 151, 193, 0.26);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 110%, rgba(255, 122, 24, 0.11), transparent 45%),
    linear-gradient(180deg, rgba(23, 36, 55, 0.98), rgba(13, 22, 34, 0.98));
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.24);
}

.purchase-benefits {
  display: grid;
  gap: 12px;
  max-width: 520px;
  margin: 30px auto 0;
  padding: 0;
  text-align: left;
  list-style: none;
}

.purchase-benefits li {
  position: relative;
  padding-left: 30px;
  color: #dce8f8;
}

.purchase-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}

.purchase-license-note {
  margin: 26px 0 0;
  color: var(--muted-2);
  font-size: 16px;
}

.purchase-button {
  min-height: 60px;
  margin-top: 26px;
  border: 0;
  font: inherit;
}

.purchase-button[disabled] {
  cursor: not-allowed;
  opacity: 1;
}

.purchase-button[disabled]:hover {
  background: linear-gradient(180deg, #ff8a1f, #ff650b);
  transform: none;
}

.purchase-follow-up {
  max-width: 580px;
  margin: 16px auto 0;
  color: var(--muted-2);
  font-size: 14px;
}

.purchase-legal {
  max-width: 620px;
  margin: 28px auto 0;
  padding-top: 22px;
  color: #8796aa;
  border-top: 1px solid rgba(118, 151, 193, 0.16);
  font-size: 13px;
}

.purchase-legal a,
.buy-footer-links a {
  color: #8fc1ff;
  text-decoration: underline;
  text-decoration-color: rgba(143, 193, 255, 0.5);
  text-underline-offset: 3px;
}

.purchase-legal a:hover,
.buy-footer-links a:hover {
  color: #c3deff;
}

.buy-footer {
  gap: 16px 28px;
}

.buy-footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  font-size: 13px;
}

.buy-page a:focus-visible,
.buy-page button:focus-visible {
  outline: 2px solid #72b6ff;
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .buy-hero-content {
    padding: 58px 20px 54px;
  }

  .buy-hero-copy,
  .buy-section-heading > p {
    font-size: 16px;
  }

  .buy-preview-button,
  .purchase-button {
    width: 100%;
    white-space: normal;
  }

  .buy-page-layout {
    padding: 48px 20px;
  }

  .activation-steps {
    margin-top: 28px;
  }

  .activation-steps li {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    padding: 19px 17px;
  }

  .activation-step-number {
    width: 40px;
    height: 40px;
  }

  .activation-steps h3 {
    font-size: 18px;
  }

  .purchase-card {
    padding: 30px 20px;
  }
}
