:root {
  --red: #ff252f;
  --red-dark: #e71520;
  --ink: #081226;
  --muted: #5e6c82;
  --line: #e9edf3;
  --soft: #f6f8fb;
  --btc: #f7931a;
  --shadow: 0 18px 50px rgba(22, 42, 78, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 75% 35%, rgba(233, 243, 255, .95), transparent 36%),
    linear-gradient(180deg, #f7f9fc 0%, #eef4fb 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

a { color: inherit; }

.page-shell {
  width: min(1540px, calc(100% - 40px));
  min-height: calc(100vh - 40px);
  margin: 20px auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(211, 220, 232, .9);
  border-radius: 28px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.site-header {
  min-height: 118px;
  padding: 24px clamp(28px, 5vw, 78px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
}

.brand-pin {
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 50% 50% 50% 8px;
  transform: rotate(-45deg);
  background: linear-gradient(145deg, #ff4048, #ee101b);
  box-shadow: 0 7px 14px rgba(255, 37, 47, .22);
}

.brand-pin span {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: #fff;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1;
  letter-spacing: -.045em;
}

.brand-copy small {
  max-width: 340px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.error-chip {
  color: var(--red);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  padding: 12px 4px 14px;
  border-bottom: 4px solid var(--red);
}

.hero {
  position: relative;
  min-height: 665px;
  padding: clamp(46px, 6vw, 82px) clamp(28px, 5vw, 78px) 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(440px, .92fr);
  align-items: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 65% 28%, rgba(233, 243, 255, .92), transparent 34%),
    linear-gradient(180deg, #fff 0%, #fff 66%, #fbfcfe 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 125px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(245, 249, 253, 0), rgba(241, 246, 251, .9));
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

h1 {
  margin: 0 0 22px;
  color: #050c1e;
  font-size: clamp(48px, 5.6vw, 88px);
  line-height: .98;
  letter-spacing: -.066em;
  font-weight: 900;
}

h1 span { color: var(--red); }

.lead {
  margin: 0 0 10px;
  color: #53637b;
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1.18;
  letter-spacing: -.025em;
  font-weight: 520;
}

.joke {
  margin: 0;
  color: #68778d;
  font-size: clamp(16px, 1.35vw, 21px);
}

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

.btn {
  min-height: 62px;
  padding: 0 26px;
  border-radius: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 4px solid rgba(255, 37, 47, .18); outline-offset: 3px; }

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #ff3b43 0%, var(--red) 100%);
  box-shadow: 0 12px 26px rgba(255, 37, 47, .25);
}

.btn-primary:hover { box-shadow: 0 16px 32px rgba(255, 37, 47, .30); }

.btn-secondary {
  color: #16223a;
  background: rgba(255, 255, 255, .92);
  border-color: #dce3ec;
  box-shadow: 0 8px 22px rgba(31, 52, 85, .08);
}

.btc-note {
  width: fit-content;
  max-width: 720px;
  margin-top: 26px;
  padding: 15px 22px 15px 15px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #ffe0d5;
  border-radius: 24px;
  background: linear-gradient(90deg, #fff4ef 0%, #fffaf7 100%);
  box-shadow: 0 8px 28px rgba(74, 44, 26, .04);
}

.btc-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--btc);
  font-size: 31px;
  font-weight: 800;
  box-shadow: 0 7px 18px rgba(247, 147, 26, .22);
}

.btc-note p {
  margin: 0;
  color: #34425b;
  font-size: 17px;
  line-height: 1.42;
}

.btc-note strong { color: #17233a; }
.btc-note .accent { color: var(--red-dark); }

.hero-art {
  position: relative;
  z-index: 1;
  align-self: stretch;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  margin: -34px -74px -48px -80px;
  overflow: hidden;
}

.hero-art img {
  width: min(890px, 130%);
  height: auto;
  display: block;
  object-fit: contain;
  object-position: right bottom;
  filter: saturate(1.02) contrast(1.01);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.28) 8%, #000 25%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.28) 8%, #000 25%, #000 100%);
}

.site-footer {
  min-height: 56px;
  padding: 16px clamp(28px, 5vw, 78px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 18px;
  color: #8994a6;
  border-top: 1px solid var(--line);
  background: #fbfcfe;
  font-size: 12px;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    padding-bottom: 0;
  }
  .hero-copy { max-width: 850px; }
  .hero-art {
    min-height: 440px;
    margin: -40px -28px 0 20%;
  }
  .hero-art img { width: 100%; }
}

@media (max-width: 720px) {
  body { background: #fff; }
  .page-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .site-header {
    min-height: 88px;
    padding: 18px 20px;
  }
  .brand { gap: 12px; }
  .brand-pin { width: 38px; height: 38px; }
  .brand-pin span { inset: 11px; }
  .brand-copy strong { font-size: 20px; }
  .brand-copy small { font-size: 11px; max-width: 210px; }
  .error-chip { display: none; }
  .hero {
    min-height: auto;
    padding: 42px 20px 0;
  }
  h1 { font-size: clamp(48px, 14vw, 66px); }
  .lead { font-size: 24px; }
  .joke { font-size: 15px; }
  .actions { display: grid; }
  .btn { width: 100%; min-height: 58px; padding: 0 18px; font-size: 16px; }
  .btc-note { align-items: flex-start; border-radius: 20px; }
  .btc-note p { font-size: 15px; }
  .desktop-only { display: none; }
  .hero-art {
    min-height: 325px;
    margin: -8px -20px 0 -50px;
  }
  .hero-art img {
    width: 135%;
    max-width: none;
  }
  .site-footer { padding: 14px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
