:root {
  color-scheme: dark;
  --bg: #10100f;
  --paper: #161614;
  --paper-soft: #1e1e1b;
  --text: #f4f1ea;
  --muted: #a7a095;
  --quiet: #6f6a62;
  --line: rgba(244, 241, 234, 0.14);
  --accent: #c8ff36;
  --accent-ink: #10100f;
  --blue: #8ab8ff;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.12;
}

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.container {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* header */
.site-header { padding: 26px 0 0; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.logo-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--accent);
  flex-shrink: 0;
}
.logo-mark svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.86rem;
  transition: color 160ms ease;
}
.nav a:not(.btn):hover { color: var(--text); }

/* generic */
.eyebrow {
  display: block;
  margin: 0 0 18px;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 780px; margin-bottom: 24px; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 0.98; letter-spacing: -0.01em; }
h1 .accent-line { color: var(--accent); }
h2 { margin-bottom: 0; font-size: clamp(1.7rem, 3.2vw, 2.2rem); line-height: 1.1; }
.section-sub { max-width: 560px; margin: 14px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(127, 127, 127, 0.04);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-ghost { background: rgba(127, 127, 127, 0.04); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* hero */
.hero { position: relative; padding: 56px 0 70px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero::after {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  width: 640px;
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(215, 255, 95, 0.16), transparent);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  align-items: start;
  gap: 56px;
}
.hero-sub { max-width: 540px; margin: 0 0 30px; color: var(--muted); font-size: 1.2rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  color: var(--quiet);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
}
.status { display: flex; align-items: center; gap: 8px; color: var(--accent); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.phone-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--accent);
}
.phone-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.hero-card h2 { font-size: 1.5rem; }
.hero-card > p { margin: 12px 0 20px; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.mini-list { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mini {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
}
.mini span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  flex-shrink: 0;
}

/* sections */
.section { padding: 60px 0; border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 30px; }

/* feature list — divided columns */
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.feature-card {
  padding: 26px 24px 0 0;
  border-right: 1px solid var(--line);
}
.feature-card + .feature-card { padding-left: 24px; }
.feature-card:last-child { border-right: 0; }
.card-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--accent);
}
.card-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

/* pricing */
.pricing-grid-single { max-width: 440px; }
.price-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.price-tag { color: var(--quiet); font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.price-value { margin: 14px 0; color: var(--accent); font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 800; line-height: 1; }
.price-desc { margin: 0 0 20px; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

.order-summary { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.order-summary strong { color: var(--text); }

.price-action {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease;
}
.price-action:hover { transform: translateY(-2px); }
.price-action:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.price-action span:last-child { font-size: 1.1rem; line-height: 1; }
.price-note { margin-top: 12px; color: var(--quiet); font-size: 0.8rem; line-height: 1.4; }

.order-flow-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}
.flow-title { font-weight: 700; font-size: 1.05rem; margin: 0; }
.flow-amount { color: var(--accent); font-size: 1.6rem; font-weight: 800; margin: 0; }
.flow-apps { color: var(--muted); margin: 0 0 8px; font-size: 0.92rem; }
.flow-waiting { font-size: 1.05rem; margin: 8px 0; }
.flow-hint { color: var(--muted); font-size: 0.85rem; line-height: 1.5; margin: 8px 0 0; }
.order-flow-card .btn { width: 100%; }
#paid-btn { margin-top: 4px; }

.manual-pay {
  width: 100%;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.manual-pay summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.85rem;
  list-style: none;
  transition: color 160ms ease;
}
.manual-pay summary::-webkit-details-marker { display: none; }
.manual-pay summary::after { content: "→"; margin-left: 6px; }
.manual-pay[open] summary::after { content: "↑"; }
.manual-pay summary:hover { color: var(--text); }
.manual-pay .btn { width: 100%; margin-top: 12px; }
.manual-pay .flow-hint { margin-top: 10px; }

.links-list { list-style: none; margin: 0; padding: 0; width: 100%; border-top: 1px solid var(--line); }
.links-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.links-list li span { flex: 1; min-width: 0; font-weight: 600; }
.links-list li .btn { width: 140px; flex: 0 0 auto; min-height: 42px; }

.code-section {
  width: 100%;
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.code-section .eyebrow { margin-bottom: 12px; }
.code-title { margin: 0 0 8px; font-size: 1.25rem; }
.code-desc { margin: 0 0 18px; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.code-request-btn { width: 100%; margin-bottom: 16px; }
.code-request-btn-after { margin-top: 16px; margin-bottom: 0; }
.code-status-box {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  text-align: center;
}
.code-status-hint { margin: 0 0 16px; color: var(--muted); font-size: 0.85rem; }
.otp-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; }
.otp-dot {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
}
.otp-dot-filled {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  font-weight: 800;
  font-size: 0.95rem;
}
.code-status-label { margin: 0; color: var(--quiet); font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

/* support */
.support-panel {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  text-align: left;
}
.support-panel h2 { margin: 0 0 10px; }
.support-panel p { margin: 0; color: var(--muted); line-height: 1.6; }
.support-panel > a { justify-self: start; }

/* footer */
.site-footer { padding: 60px 0 34px; }
.site-footer .section-head { margin-bottom: 20px; }
.legal-grid { display: grid; gap: 0; margin-bottom: 40px; border-top: 1px solid var(--line); }
.legal-grid button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color 160ms ease;
}
.legal-grid button:hover { color: var(--accent); }
.legal-grid button span { color: var(--accent); font-size: 1rem; flex-shrink: 0; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--quiet);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
}
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--text); }
.copyright { margin: 0; }

/* catalog page */
.catalog-hero { padding-bottom: 140px; }
.tools {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0 0 24px;
  padding: 14px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.search {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 160ms ease;
}
.search:focus { border-color: var(--accent); }

.apps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.app-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 80px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease;
}
.app-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.app-card.selected { border-color: var(--accent); background: var(--paper-soft); }
.app-card.app-hidden { display: none; }
.app-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
}
.app-icon-photo { background: #fff; }
.app-icon-photo img { width: 100%; height: 100%; object-fit: cover; }
.app-title { display: block; font-weight: 700; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-price { text-align: right; font-weight: 700; color: var(--accent); white-space: nowrap; font-size: 0.9rem; }

.empty { padding: 48px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

.checkout-bar {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(720px, calc(100% - 24px));
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 12px 12px 12px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.summary small { display: block; color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; }
.summary strong { display: block; margin-top: 3px; font-size: 1.3rem; }
.submit {
  min-width: 200px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
}
.submit:disabled { cursor: not-allowed; opacity: 0.4; }

@media (max-width: 850px) {
  .apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .apps-grid { grid-template-columns: 1fr; }
  .checkout-bar { grid-template-columns: 1fr; gap: 10px; }
  .summary { text-align: center; }
  .submit { width: 100%; }
  .catalog-hero { padding-bottom: 210px; }
}

/* modal */
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal[hidden] { display: none; }
.modal-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 560px;
  max-height: min(78vh, 640px);
  overflow-y: auto;
  width: 100%;
  text-align: left;
  box-shadow: var(--shadow);
}
.modal-card h3 { margin: 0 24px 16px 0; font-size: 1.3rem; }
.modal-card #doc-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  white-space: pre-line;
}
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 1.4rem; color: var(--muted); cursor: pointer; }

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .features-grid, .support-panel { grid-template-columns: 1fr; }
  .feature-card { padding: 22px 0 0; border-right: 0; border-top: 1px solid var(--line); }
  .feature-card:first-child { border-top: 0; }
  .feature-card + .feature-card { padding-left: 0; }
  .support-panel > a { justify-self: stretch; }
  .support-panel > a.btn { width: 100%; }
}
@media (max-width: 800px) {
  .nav { gap: 14px; }
}
@media (max-width: 560px) {
  :root { --radius: 16px; }
  h1 { font-size: 2.6rem; }
  .hero { padding: 44px 0 50px; }
  .hero::after { width: 420px; height: 320px; top: -80px; }
  .section { padding: 44px 0; }
  .hero-actions { display: grid; }
  .btn { width: 100%; min-height: 52px; }
  .price-card { padding: 22px; }
  .app-card { border-radius: 14px; }
  .catalog-hero { padding-bottom: 210px; }
}
