:root {
  color-scheme: dark;
  --bg: #0a0c0f;
  --panel: #0d0f12;
  --panel-2: #11151b;
  --panel-3: #161a21;
  --line: #1f242c;
  --line-2: #2a3038;
  --text: #e6e6e6;
  --muted: #9aa0a6;
  --dim: #666666;
  --cyan: #5ec3ff;
  --cyan-soft: rgba(94, 195, 255, 0.18);
  --amber: #ffb84d;
  --green: #6fd99f;
  --red: #f08080;
  --blue: #5ec3ff;
  --shadow: rgba(0, 0, 0, 0.40);
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", ui-sans-serif, sans-serif;
  --display: var(--sans);
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

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

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

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

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

button,
input {
  font: inherit;
}

.site-main {
  min-height: calc(100vh - 210px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  min-height: 76px;
  padding: 14px 42px;
  background: rgba(8, 12, 16, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

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

.brand {
  gap: 11px;
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}

.brand img {
  border-radius: 8px;
}

.brand span span,
.site-footer strong span {
  color: var(--cyan);
}

.main-nav {
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a,
.account-nav a {
  min-height: 36px;
  padding: 8px 11px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active,
.account-nav a:hover,
.account-nav a.active {
  color: var(--text);
  background: var(--panel-2);
  border-color: var(--line);
}

.main-nav a.active,
.account-nav a.active {
  border-bottom-color: var(--cyan);
}

.header-actions {
  justify-content: flex-end;
  gap: 10px;
}

.nav-email {
  max-width: 180px;
  overflow: hidden;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.button,
button {
  border: 0;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.button.primary {
  color: #06151f;
  background: var(--cyan);
  border: 1px solid var(--cyan);
}

.button.primary:hover {
  background: #82d2ff;
  border-color: #82d2ff;
}

.button.secondary,
.button.ghost {
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.button.secondary:hover,
.button.ghost:hover {
  background: var(--panel-3);
  border-color: var(--line-2);
}

.button.danger {
  color: #fff;
  background: var(--red);
  border: 1px solid var(--red);
}

.button.small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.72rem;
}

.button.full {
  width: 100%;
}

.hero,
.trust-strip,
.feature-trio,
.showcase-band,
.split-band,
.page-hero,
.section-band,
.feature-grid,
.pricing-grid,
.timeline,
.architecture,
.doc-list,
.docs-shell,
.doc-card.single,
.auth-layout,
.account-shell,
.pricing-note {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 54px;
  align-items: center;
  min-height: 680px;
  padding: 58px 0 54px;
}

.hero-copy {
  max-width: 620px;
}

.hero h1,
.page-hero h1,
.auth-layout h1,
.account-content h1,
.section-heading h1,
.split-band h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.hero h1 {
  max-width: 720px;
  font-size: 4.4rem;
}

.page-hero h1,
.auth-layout h1 {
  max-width: 840px;
  font-size: 3.2rem;
}

.account-content h1 {
  font-size: 2.1rem;
}

.section-heading h2,
.split-band h2 {
  font-size: 2.1rem;
  line-height: 1.1;
  letter-spacing: -0.005em;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.product-figure,
.showcase-band img,
.page-hero.with-media img {
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 70px var(--shadow);
}

.product-figure {
  margin: 0;
}

.product-figure img,
.showcase-band img,
.page-hero.with-media img {
  border-radius: 8px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 34px;
}

.trust-strip article,
.feature-trio article,
.feature-tile,
.price-card,
.form-card,
.doc-card,
.table-wrap,
.stat-card,
.invoice-box,
.payment-panel,
.license-reveal,
.notice,
.settings-list,
.timeline article,
.architecture .node,
.account-hero,
.address-box,
.auth-points,
.payment-side {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.trust-strip article {
  min-height: 132px;
  padding: 24px;
  border-left: 2px solid var(--cyan);
}

.trust-strip strong,
.feature-trio h2,
.feature-tile h2 {
  display: block;
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 1.45rem;
  line-height: 1.1;
}

.trust-strip span,
.feature-trio p,
.feature-tile p,
.timeline p,
.doc-card p,
.form-note,
.split-band p,
.notice,
.payment-side p {
  color: var(--muted);
  line-height: 1.68;
}

.feature-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 32px 0 58px;
}

.feature-trio article,
.feature-tile {
  padding: 24px;
}

.feature-trio span,
.feature-tile span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 30px;
  margin-bottom: 18px;
  color: #06151f;
  background: var(--cyan);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
}

.showcase-band {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 36px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
  padding: 56px 0;
}

.split-band .button {
  margin-top: 14px;
}

.faq-teaser {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.faq-teaser a {
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: 18px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-teaser a:hover {
  border-color: var(--cyan);
}

.page-hero,
.section-band,
.feature-grid,
.pricing-grid,
.timeline,
.architecture,
.doc-list,
.auth-layout,
.account-shell,
.docs-shell {
  padding: 52px 0;
}

.page-hero.compact {
  padding-bottom: 22px;
}

.page-hero.with-media {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 36px;
  align-items: center;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading.inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.price-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 318px;
  padding: 24px;
}

.price-card.featured:nth-child(2) {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan-soft);
}

.price-card h2,
.price-card h3 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 1.8rem;
}

.price-card strong {
  font-size: 2rem;
}

.price-card p,
.selectable small {
  color: var(--muted);
  line-height: 1.65;
}

.check-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.pricing-note {
  margin-bottom: 48px;
  padding: 18px;
}

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

.feature-grid.long .feature-tile {
  min-height: 320px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 8px 18px;
  padding: 24px;
}

.timeline article > span {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
}

.timeline h2,
.timeline p {
  grid-column: 2;
}

.timeline span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #06151f;
  background: var(--cyan);
  border-radius: 8px;
  font-family: var(--mono);
  font-weight: 800;
}

.timeline h2,
.timeline p {
  margin: 0;
}

.architecture {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 0;
}

.architecture .node {
  min-height: 96px;
  padding: 20px;
  color: var(--muted);
  font-family: var(--mono);
}

.architecture .node.accent {
  color: #1a1408;
  background: var(--amber);
  border-color: var(--amber);
}

.closing-note {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 64px;
  padding: 28px 32px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 2px solid var(--cyan);
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.7;
}

.closing-note p {
  margin: 0;
}

.docs-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
}

.doc-toc {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 8px;
  align-self: start;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.doc-toc span,
.account-nav-title {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.doc-toc a {
  min-height: 34px;
  padding: 7px 8px;
  color: var(--muted);
  border-radius: 8px;
}

.doc-toc a:hover {
  color: var(--text);
  background: var(--panel-2);
}

.doc-list {
  display: grid;
  gap: 16px;
  padding: 0;
}

.doc-card {
  padding: 24px;
}

.doc-card.single {
  padding: 28px;
}

.doc-card h2,
.table-wrap h2,
.license-reveal h2 {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 1.8rem;
}

.doc-card h2 a {
  color: var(--text);
}

.prose {
  color: var(--muted);
  line-height: 1.75;
}

.prose h1,
.prose h2,
.prose h3 {
  color: var(--text);
}

.prose code,
code {
  overflow-wrap: anywhere;
  color: var(--amber);
  font-family: var(--mono);
}

.back-link {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 42px;
  align-items: start;
}

.auth-copy {
  padding: 10px 0;
}

.auth-points {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding: 16px;
}

.auth-points span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.auth-points span::before {
  content: "::";
  margin-right: 8px;
  color: var(--cyan);
}

.form-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  box-shadow: 0 18px 60px var(--shadow);
}

.form-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

input:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.checkbox-line {
  display: flex !important;
  gap: 10px !important;
  align-items: center;
}

.checkbox-line input {
  width: 18px;
  min-height: 18px;
}

.form-error {
  margin: 0;
  padding: 12px;
  color: #fff;
  background: #3a171a;
  border: 1px solid var(--red);
  border-radius: 8px;
}

.form-note {
  margin: 0;
  text-align: center;
}

.form-note a,
td a {
  color: var(--blue);
}

.account-shell {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.account-nav {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 6px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.account-nav-title {
  padding: 4px 8px 10px;
}

.account-content {
  min-width: 0;
}

.account-hero {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 24px;
}

.dashboard-grid,
.invoice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.stat-card,
.invoice-box {
  min-height: 116px;
  padding: 22px;
}

.stat-card span,
.invoice-box span,
.settings-list span,
.payment-side span,
.address-box span {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.stat-card strong,
.invoice-box strong,
.payment-side strong {
  display: block;
  margin-top: 12px;
  font-size: 1.45rem;
}

.table-wrap {
  overflow-x: auto;
  padding: 18px;
}

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

th,
td {
  padding: 13px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.empty-row {
  color: var(--dim);
  text-align: center;
}

.empty-state {
  padding: 24px;
  color: var(--dim);
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
}

.tier-picker {
  display: grid;
  gap: 18px;
}

.account-pricing {
  width: 100%;
  padding: 0;
}

.selectable {
  min-height: 165px;
  cursor: pointer;
}

.selectable input {
  width: 18px;
  min-height: 18px;
}

.selectable span {
  display: grid;
  gap: 6px;
}

.selectable em {
  color: var(--amber);
  font-size: 1.55rem;
  font-style: normal;
  font-weight: 900;
}

.form-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.form-actions span {
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-pill.paid {
  color: #06151f;
  background: var(--green);
}

.status-pill.expired,
.status-pill.cancelled {
  background: #3a171a;
  border-color: var(--red);
}

.payment-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  padding: 20px;
}

.network-warning {
  margin-bottom: 18px;
  padding: 12px;
  color: var(--amber);
  background: #312610;
  border: 1px solid #6f5520;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.payment-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.payment-details div {
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.payment-details dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
}

.payment-details dd {
  margin: 8px 0 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.address-box {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.address-box code,
.license-reveal code {
  display: block;
  padding: 12px;
  color: var(--amber);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.payment-side {
  padding: 18px;
}

.license-reveal,
.notice {
  margin-top: 18px;
  padding: 22px;
}

.license-reveal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.license-reveal > div {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.license-reveal code.key-prefix {
  color: var(--muted);
}

.license-reveal code.key-prefix small {
  color: var(--dim);
}

.tier-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  margin-right: 4px;
  color: var(--cyan);
  background: var(--cyan-soft);
  border: 1px solid var(--cyan);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.action-bar form {
  margin: 0;
}

.stat-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
}

.stat-card small a {
  color: inherit;
}

td a code,
td code {
  color: inherit;
}

.form-success {
  margin: 0;
  padding: 12px;
  color: #052015;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.85rem;
}

.qr-frame {
  margin-top: 14px;
  padding: 10px;
  background: #ffffff;
  border-radius: 8px;
}

.qr-frame svg {
  display: block;
  width: 100%;
  height: auto;
}

.renewal-warning {
  margin-bottom: 18px;
  padding: 14px 16px;
  color: var(--amber);
  background: rgba(255, 184, 77, 0.08);
  border: 1px solid rgba(255, 184, 77, 0.55);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.55;
}

.renewal-warning strong {
  display: block;
  margin-bottom: 4px;
  color: var(--amber);
}

.referral-link {
  max-width: 760px;
  margin-top: 18px;
}

.settings-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.settings-list div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  background: var(--panel);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  min-height: 118px;
  padding: 28px 42px;
  color: var(--muted);
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.site-footer strong {
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.25rem;
}

.site-footer p {
  margin: 6px 0 0;
  line-height: 1.55;
}

.site-footer nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer nav a {
  color: var(--text);
}

.site-footer > p {
  justify-self: end;
  max-width: 430px;
  text-align: right;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    padding: 14px 24px;
  }

  .main-nav,
  .header-actions {
    justify-content: flex-start;
  }

  .hero,
  .showcase-band,
  .split-band,
  .page-hero.with-media,
  .auth-layout,
  .account-shell,
  .docs-shell,
  .payment-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

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

  .page-hero h1,
  .auth-layout h1 {
    font-size: 2.65rem;
  }

  .trust-strip,
  .feature-trio,
  .pricing-grid,
  .feature-grid,
  .dashboard-grid,
  .invoice-grid,
  .payment-details,
  .architecture {
    grid-template-columns: 1fr;
  }

  .account-nav,
  .doc-toc {
    position: static;
  }

  .account-nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 14px;
  }

  .account-nav-title {
    display: none;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }

  .site-footer > p {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .hero,
  .trust-strip,
  .feature-trio,
  .showcase-band,
  .split-band,
  .page-hero,
  .section-band,
  .feature-grid,
  .pricing-grid,
  .timeline,
  .architecture,
  .doc-list,
  .docs-shell,
  .doc-card.single,
  .auth-layout,
  .account-shell,
  .pricing-note {
    width: min(100% - 28px, 1180px);
  }

  .header-actions,
  .hero-actions,
  .section-heading.inline,
  .account-hero,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .faq-teaser {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

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

  .page-hero h1,
  .auth-layout h1 {
    font-size: 2.15rem;
  }

  .settings-list div {
    grid-template-columns: 1fr;
  }
}
