:root {
  --bg: #111111;
  --bg-soft: #141414;
  --panel: #161616;
  --panel-strong: #191919;
  --border: #262626;
  --border-strong: #333333;
  --text: #ffffff;
  --muted: #a3a3a3;
  --muted-soft: #c5c5c5;
  --accent: #5d3aa8;
  --accent-strong: #4d2f8f;
  --accent-soft: rgba(93, 58, 168, 0.14);
  --success: #6ee7b7;
  --max-width: 1180px;
  --max-narrow: 780px;
  --radius: 12px;
  --radius-sm: 9px;
  --shadow: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

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

button,
input {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
}

.landing-shell,
.subpage-shell {
  width: min(var(--max-width), calc(100vw - 2rem));
  margin: 0 auto;
}

.landing-shell {
  padding: 3rem 0 4rem;
}

.subpage-shell {
  padding: 4rem 0 4rem;
}

.page-home .landing-shell {
  width: min(1080px, calc(100vw - 2rem));
}

.hero-block {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.9rem;
  padding: 3rem 0 5rem;
}

.hero-brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.hero-brand img {
  width: 7rem;
}

.hero-brand span {
  font-size: clamp(3.4rem, 7vw, 5.6rem);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.hero-brand-text .ghosty-word {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-size: clamp(4.2rem, 9vw, 6.2rem);
}

.ghosty-g-wrap {
  display: inline-grid;
  color: var(--accent);
}

.ghosty-g-top,
.ghosty-g-bot {
  grid-area: 1 / 1;
}

.ghosty-g-top {
  clip-path: inset(0 0 51% 0);
  animation: ghostGTop 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ghosty-g-bot {
  clip-path: inset(49% 0 0 0);
  animation: ghostGBot 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ghosty-rest {
  display: inline-block;
  animation: ghostyTrail 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.62s both;
}

.hero-caption,
.hero-microcopy,
.hero-official,
.hero-legal,
.section-heading p,
.panel-copy p,
.pricing-copy,
.pricing-footnote,
.docs-hero p,
.docs-callout p,
.docs-group-head p,
.docs-item p,
.subpage-footer-panel p,
.redirect-card p,
.notice-item p,
.footer-copy {
  color: var(--muted);
}

.hero-caption {
  max-width: 28rem;
  font-size: 0.95rem;
}

.hero-actions,
.section-actions,
.inline-list,
.filter-row,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions {
  justify-content: center;
}

.button {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.8rem 1.15rem;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.button:hover,
.button:focus-visible,
.filter-chip:hover,
.filter-chip:focus-visible,
.back-link:hover,
.back-link:focus-visible {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.045);
}

.button:focus-visible,
.filter-chip:focus-visible,
.search-field input:focus-visible,
.back-link:focus-visible {
  outline: 2px solid rgba(93, 58, 168, 0.45);
  outline-offset: 2px;
}

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.button-wide {
  width: 100%;
}

.button-icon {
  min-width: 3rem;
  width: 3rem;
  padding-inline: 0;
}

.button-icon-small {
  min-width: 2.7rem;
  width: 2.7rem;
}

.button-icon i {
  font-size: 1rem;
}

.hero-microcopy,
.hero-official,
.pricing-footnote {
  max-width: 32rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

.hero-official {
  color: var(--muted-soft);
  font-weight: 500;
}

.hero-legal {
  margin: 0;
  max-width: 32rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

.hero-legal a,
.pricing-footnote a {
  color: var(--muted-soft);
  text-decoration: underline;
  text-decoration-color: rgba(197, 197, 197, 0.42);
  text-underline-offset: 0.18em;
}

.section-block {
  padding: 1rem 0 5rem;
}

.section-heading {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.75rem;
}

.section-heading.centered,
.pricing-hero,
.redirect-card {
  text-align: center;
}

.section-heading h2,
.pricing-hero h1,
.docs-hero h1,
.redirect-card h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.section-heading p,
.pricing-hero p,
.docs-hero p {
  margin: 0;
  max-width: 44rem;
  line-height: 1.7;
}

.section-heading.centered p,
.pricing-hero p,
.redirect-card p {
  margin-inline: auto;
}

.section-label,
.group-kicker,
.card-label,
.pricing-tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(93, 58, 168, 0.28);
  background: rgba(93, 58, 168, 0.07);
  color: #cdb9ff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-heading.centered .section-label,
.pricing-hero .section-label,
.redirect-card .section-label {
  margin-inline: auto;
}

.download-panel,
.surface-card,
.pricing-card,
.docs-callout,
.docs-group,
.subpage-footer-panel,
.notice-item,
.redirect-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.download-panel,
.subpage-footer-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
  padding: 1.5rem;
}

.panel-copy h3,
.surface-card h3,
.pricing-card h2,
.docs-callout h2,
.docs-group-head h2,
.docs-item h3,
.subpage-footer-panel h2,
.notice-item strong,
.redirect-card h1 {
  margin: 0;
}

.panel-copy h3,
.surface-card h3,
.pricing-card h2,
.docs-callout h2,
.docs-group-head h2,
.subpage-footer-panel h2,
.notice-item strong {
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.panel-copy {
  display: grid;
  gap: 0.85rem;
}

.panel-copy p,
.panel-note,
.subpage-footer-panel p,
.notice-item p {
  margin: 0;
  line-height: 1.7;
}

.panel-actions {
  display: grid;
  align-content: center;
  gap: 1rem;
}

.inline-list {
  gap: 1rem 1.25rem;
}

.inline-list span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted-soft);
  font-size: 0.95rem;
}

.inline-list i,
.card-list li::before {
  color: var(--accent);
}

.feature-preview-grid,
.pricing-grid,
.pricing-notice {
  display: grid;
  gap: 1rem;
}

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

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

.pricing-notice {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}

.surface-card,
.pricing-card,
.notice-item {
  padding: 1.4rem;
}

.surface-card {
  display: grid;
  gap: 0.9rem;
}

.card-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card-list li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--muted-soft);
  line-height: 1.6;
}

.card-list li::before {
  content: "";
  position: absolute;
  top: 0.62rem;
  left: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: currentColor;
}

.pricing-card {
  display: grid;
  gap: 1rem;
}

.pricing-card-featured {
  border-color: rgba(93, 58, 168, 0.45);
  background:
    linear-gradient(180deg, rgba(93, 58, 168, 0.12), rgba(255, 255, 255, 0.02)),
    var(--panel);
}

.pricing-price {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.pricing-copy {
  margin: 0;
  line-height: 1.7;
}

.site-footer {
  width: min(var(--max-width), calc(100vw - 2rem));
  margin: 0 auto;
  padding: 0 0 2.5rem;
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-brand img {
  width: 2.6rem;
}

.footer-brand span {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.footer-links {
  justify-content: center;
}

.footer-links a {
  color: var(--muted-soft);
}

.footer-copy {
  margin: 0;
  font-size: 0.95rem;
}

.page-subpage {
  background: var(--bg);
}

.docs-shell,
.pricing-shell,
.redirect-shell {
  width: min(var(--max-narrow), calc(100vw - 2rem));
}

.pricing-shell {
  width: min(1280px, calc(100vw - 2rem));
}

.pricing-shell-volt {
  width: min(1320px, calc(100vw - 2rem));
  padding-top: 6rem;
}

.back-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0 1.1rem;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.docs-hero,
.pricing-hero {
  display: grid;
  gap: 1rem;
  margin-top: 2.25rem;
  margin-bottom: 2rem;
}

.pricing-hero-volt {
  margin-top: 0;
  margin-bottom: 2.75rem;
  justify-items: center;
}

.pricing-hero-volt h1 {
  font-size: clamp(2.2rem, 4vw, 3.35rem);
}

.pricing-hero-volt p {
  max-width: none;
  color: var(--muted);
  font-size: 0.98rem;
}

.docs-callout,
.redirect-card {
  padding: 1.4rem;
}

.docs-callout {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
  border-color: rgba(93, 58, 168, 0.45);
}

.feature-browser {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.4rem;
  padding: 0 1rem;
  border-radius: 0.7rem;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.search-field i {
  color: var(--muted);
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-field input::placeholder {
  color: var(--muted);
}

.filter-chip {
  min-height: 2.5rem;
  padding: 0 0.9rem;
  border-radius: 0.7rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted-soft);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.filter-chip.is-active,
.filter-chip[aria-pressed="true"] {
  border-color: rgba(93, 58, 168, 0.45);
  background: var(--accent-soft);
  color: var(--text);
}

.browser-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.docs-groups {
  display: grid;
  gap: 1.25rem;
}

.docs-group {
  padding: 1.4rem;
}

.docs-group-head {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 0.9rem;
}

.docs-list {
  display: grid;
}

.docs-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.docs-item:first-child {
  border-top: 0;
}

.docs-item h3 {
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.docs-item p {
  margin: 0.35rem 0 0;
  line-height: 1.65;
}

.item-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
  max-width: 16rem;
}

.item-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.3rem 0.65rem;
  border-radius: 0.7rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted-soft);
  font-size: 0.8rem;
}

.overlay-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.overlay-panel {
  position: relative;
  width: min(760px, calc(100vw - 1.5rem));
  max-height: min(78vh, 920px);
  margin: 5vh auto 0;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #151515;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.overlay-modal.is-open .overlay-backdrop {
  opacity: 1;
}

.overlay-modal.is-open .overlay-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.overlay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.95rem;
  border-bottom: 1px solid var(--border);
}

.overlay-head h2 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.overlay-close {
  width: 2.6rem;
  min-width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.overlay-body {
  overflow: auto;
  max-height: calc(78vh - 4.75rem);
  padding: 1rem;
}

.tos-content p {
  margin: 0 0 0.9rem;
  color: var(--muted-soft);
  line-height: 1.65;
}

.tos-content p strong {
  color: var(--text);
}

.empty-state {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
}

.empty-state strong,
.empty-state span {
  line-height: 1.6;
}

.subpage-footer-panel {
  margin-top: 2rem;
}

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

.pricing-footnote {
  margin: 1.25rem 0 0;
  text-align: center;
}

.pricing-grid-volt {
  gap: 1.4rem;
  align-items: stretch;
}

.pricing-card-volt {
  padding: 1.4rem 1.15rem 1.25rem;
  border-radius: 10px;
  box-shadow: none;
}

.pricing-card-volt h2 {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.plan-head {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.plan-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.plan-title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 1.2rem;
}

.plan-price-row .pricing-price {
  font-size: clamp(2.15rem, 3vw, 2.75rem);
  line-height: 1;
}

.price-unit {
  color: var(--muted-soft);
  font-size: 0.96rem;
  white-space: nowrap;
}

.pricing-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
}

.plan-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.button-plan-main,
.button-plan-side {
  min-height: 2.45rem;
}

.button-plan-main {
  justify-content: center;
  background: rgba(255, 255, 255, 0.01);
}

.button-plan-side {
  padding-inline: 0.85rem;
}

.card-list-volt {
  gap: 0.7rem;
}

.card-list-volt li {
  font-size: 0.95rem;
  line-height: 1.55;
}

.card-list-volt li::before {
  width: 0.36rem;
  height: 0.36rem;
  top: 0.62rem;
}

.pricing-footnote-volt {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.pricing-product-section {
  margin-bottom: 2.75rem;
}

.pricing-product-head {
  margin-bottom: 1.4rem;
}

.pricing-product-head h2 {
  margin: 0 0 0.3rem;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.pricing-product-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.pricing-grid-elite {
  grid-template-columns: minmax(0, 420px);
}

.pricing-back-row {
  display: flex;
  justify-content: center;
  margin-top: 1.65rem;
}

/* ---- features page: open, editorial layout ---- */
.page-features .docs-groups {
  gap: 2.75rem;
}

.page-features .docs-group {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.page-features .docs-group-head {
  margin-bottom: 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.page-features .docs-group-head h2 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-features .docs-item {
  padding: 1.25rem 0;
}

.page-features .docs-item h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.page-features .item-tags span {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  padding: 0;
  min-height: auto;
}

.page-features .item-tags {
  gap: 0.65rem;
}

.back-link-center {
  justify-content: center;
}

.redirect-shell {
  min-height: 100vh;
  display: grid;
  align-items: center;
}

.redirect-card {
  display: grid;
  gap: 1rem;
  padding: 2rem 1.5rem;
}

@keyframes ghostGTop {
  from {
    opacity: 0;
    transform: translateY(-0.32em);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes ghostGBot {
  from {
    opacity: 0;
    transform: translateY(0.32em);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes ghostyTrail {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .feature-preview-grid,
  .pricing-grid,
  .pricing-grid-wide,
  .pricing-notice {
    grid-template-columns: 1fr;
  }

  .pricing-grid-volt {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .download-panel,
  .subpage-footer-panel {
    grid-template-columns: 1fr;
  }

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

  .item-tags {
    justify-content: flex-start;
    max-width: none;
  }
}

@media (max-width: 760px) {
  .landing-shell,
  .subpage-shell,
  .site-footer {
    width: min(var(--max-width), calc(100vw - 1.2rem));
  }

  .landing-shell {
    padding-top: 1.25rem;
  }

  .subpage-shell {
    padding-top: 1.5rem;
  }

  .hero-block {
    min-height: auto;
    padding: 3.5rem 0 4rem;
  }

  .hero-brand {
    flex-direction: column;
    gap: 0.65rem;
  }

  .hero-brand img {
    width: 5.5rem;
  }

  .hero-brand-text .ghosty-word {
    font-size: clamp(3.6rem, 14vw, 5rem);
  }

  .hero-actions,
  .section-actions,
  .footer-links {
    display: grid;
  }

  .hero-actions > *,
  .section-actions > *,
  .subpage-footer-panel .hero-actions > * {
    width: 100%;
  }

  .hero-actions .button-icon {
    width: 100%;
    min-width: 0;
  }

  .feature-preview-grid,
  .pricing-grid,
  .pricing-grid-wide,
  .pricing-notice,
  .docs-groups {
    gap: 0.9rem;
  }

  .download-panel,
  .surface-card,
  .pricing-card,
  .docs-callout,
  .docs-group,
  .subpage-footer-panel,
  .notice-item,
  .redirect-card {
    padding: 1.1rem;
  }

  .section-block {
    padding-bottom: 3.5rem;
  }

  .plan-actions {
    grid-template-columns: 1fr;
  }

  .overlay-panel {
    width: min(100vw - 1rem, 760px);
    margin-top: 0.5rem;
    max-height: calc(100vh - 1rem);
  }

  .overlay-body {
    max-height: calc(100vh - 5.4rem);
  }
}
