:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #eef3f4;
  --text: #17212b;
  --muted: #61707d;
  --line: #dbe2e8;
  --primary: #0f766e;
  --primary-dark: #0a5f59;
  --accent: #c2410c;
  --danger: #b42318;
  --success: #137333;
  --warning: #a15c00;
  --shadow: 0 20px 60px rgba(23, 33, 43, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.12), transparent 460px),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  backdrop-filter: blur(18px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  text-decoration: none;
  font-weight: 900;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: block;
  flex: 0 0 auto;
}

.nav a,
.icon-text,
.plain-link,
.footer button {
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-weight: 750;
}

.nav a:hover,
.icon-text:hover,
.plain-link:hover,
.footer button:hover {
  color: var(--primary);
}

.hero,
.band,
.activate {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 70px);
  padding: 70px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 46px;
  align-items: center;
}

.hero-copy {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

.price-line {
  width: min(760px, 100%);
  margin-bottom: 22px;
  color: #334155;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.42;
  font-weight: 950;
}

.offer-card {
  width: min(680px, 100%);
  min-height: 92px;
  margin-bottom: 18px;
  padding: 18px 28px;
  border: 1px solid rgba(15, 118, 110, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 18px;
  box-shadow: 0 14px 35px rgba(15, 118, 110, 0.1);
}

.offer-card span {
  color: var(--accent);
  font-size: clamp(42px, 5vw, 58px);
  font-weight: 950;
}

.offer-card strong {
  font-size: clamp(19px, 2.2vw, 26px);
}

.hero-actions,
.section-actions,
.actions,
.query-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  width: min(680px, 100%);
}

.button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 850;
  white-space: nowrap;
}

.button.primary {
  background: var(--primary);
  color: white;
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.secondary {
  background: var(--surface-soft);
  color: var(--text);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.hero-buy {
  width: 100%;
  min-height: 76px;
  padding: 0 34px;
  font-size: clamp(22px, 2.6vw, 32px);
}

.hero-benefits {
  width: min(760px, 100%);
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.hero-benefits li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #334155;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.38;
  font-weight: 850;
}

.hero-benefits li::before {
  content: "*";
  color: #4f46e5;
  font-weight: 950;
}

.plain-link {
  margin-top: 18px;
  padding: 0;
  display: block;
  text-align: left;
}

.risk-banner {
  width: fit-content;
  max-width: 100%;
  margin-top: 22px;
  padding: 11px 14px;
  border: 1px solid rgba(194, 65, 12, 0.22);
  border-radius: 8px;
  background: rgba(194, 65, 12, 0.09);
  color: #8a2c0a;
  font-weight: 850;
}

.hero-panel,
.panel,
.status-card,
.guide,
.info-grid article,
.modal-card,
.more-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 24px;
}

.process {
  display: grid;
  gap: 12px;
}

.process div {
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.process span,
.step span {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--primary);
  color: white;
  font-weight: 900;
}

.feature-list {
  margin: 20px 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.75;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.trust-row div {
  padding: 14px 10px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.trust-row strong,
.trust-row span {
  display: block;
}

.trust-row strong {
  margin-bottom: 5px;
  font-size: 20px;
}

.trust-row span {
  color: var(--muted);
  font-size: 12px;
}

.band,
.activate {
  padding: 70px 0;
}

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

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.7;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.info-grid article {
  padding: 22px;
  box-shadow: none;
}

.info-grid span {
  color: var(--primary);
  font-weight: 950;
}

.info-grid h3 {
  margin: 12px 0 8px;
  font-size: 20px;
}

.info-grid p,
.compact p,
.guide li,
.status-card p,
.modal-card p,
.more-grid span {
  color: var(--muted);
  line-height: 1.65;
}

.redeem-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
}

.workspace,
.status-panel {
  min-width: 0;
}

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

.step {
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.step span {
  background: var(--surface-soft);
  color: var(--muted);
}

.step strong {
  font-size: 14px;
}

.step.is-active,
.step.is-done {
  border-color: rgba(15, 118, 110, 0.38);
  color: var(--text);
}

.step.is-active span,
.step.is-done span {
  background: var(--primary);
  color: white;
}

.panel {
  padding: 22px;
}

.field + .field {
  margin-top: 18px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 850;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--text);
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

textarea {
  resize: vertical;
  min-height: 210px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.13);
}

.account-preview {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.07);
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
}

.account-preview span {
  color: var(--muted);
  font-size: 13px;
}

.account-preview strong {
  word-break: break-all;
}

.member-warning {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(161, 92, 0, 0.28);
  border-radius: 8px;
  background: rgba(161, 92, 0, 0.08);
  color: #794600;
  font-size: 14px;
  line-height: 1.55;
}

.actions,
.query-row {
  margin-top: 18px;
}

.query-row input {
  flex: 1;
  min-width: 220px;
}

.compact {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  box-shadow: none;
}

.compact h3,
.guide h3,
.status-card h3 {
  margin-bottom: 8px;
  font-size: 20px;
  letter-spacing: 0;
}

.status-panel {
  position: sticky;
  top: 84px;
  align-self: start;
  display: grid;
  gap: 16px;
}

.status-card {
  padding: 24px;
  min-height: 220px;
  border-top: 5px solid var(--primary);
}

.status-label {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.status-card.success {
  border-top-color: var(--success);
}

.status-card.error {
  border-top-color: var(--danger);
}

.status-card.warning {
  border-top-color: var(--warning);
}

.guide {
  padding: 22px;
  box-shadow: none;
}

.guide ol {
  margin: 10px 0 0;
  padding-left: 20px;
}

.guide a {
  color: var(--primary);
  font-weight: 750;
}

.tutorial-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}

.tutorial-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.07);
  text-decoration: none;
}

.tutorial-links a:hover {
  background: rgba(15, 118, 110, 0.12);
}

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-weight: 750;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-contact img {
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  object-fit: cover;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 20px;
}

.modal.is-open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 23, 0.54);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 26px;
}

.modal-card.wide {
  width: min(760px, 100%);
}

.modal-card h2 {
  margin-bottom: 18px;
  font-size: 26px;
}

.close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.contact-line {
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 8px;
  background: var(--surface-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 900;
}

.qr-box {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 850;
}

.qr-box img {
  width: min(260px, 100%);
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: contain;
}

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

.more-grid article {
  padding: 16px;
  box-shadow: none;
}

.more-grid strong,
.more-grid span {
  display: block;
}

.more-grid strong {
  margin-bottom: 8px;
}

.more-grid button {
  width: 100%;
  min-height: 40px;
  margin-top: 14px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 850;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  transform: translateX(-50%) translateY(18px);
  min-width: 190px;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border-radius: 8px;
  background: #101820;
  color: white;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 960px) {
  .hero,
  .redeem-layout,
  .info-grid {
    grid-template-columns: 1fr;
  }

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

  .status-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .topbar,
  .hero,
  .band,
  .activate,
  .footer {
    width: min(100% - 22px, 1180px);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 14px;
  }

  .hero {
    padding-top: 32px;
    gap: 28px;
  }

  .trust-row,
  .steps,
  .more-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .section-actions,
  .actions,
  .query-row,
  .footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button,
  .query-row input {
    width: 100%;
  }

  .panel,
  .hero-panel,
  .modal-card {
    padding: 18px;
  }
}
