:root {
  --ink: #171713;
  --paper: #f2f0e8;
  --white: #fff;
  --acid: #d7ff36;
  --signal: #ff4f2e;
  --safe: #43d17a;
  --line: rgba(23, 23, 19, 0.2);
  --muted: #706f68;
  --mono: "SFMono-Regular", "Roboto Mono", "Courier New", monospace;
  --display: "Bodoni 72", "Bodoni Moda", "Didot", "Songti SC", serif;
  --sans: Inter, "Helvetica Neue", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
}

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

.share-grain,
.share-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.share-grain {
  opacity: 0.19;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.84' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.21'/%3E%3C/svg%3E");
}

.share-grid {
  background-image:
    linear-gradient(rgba(23, 23, 19, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 19, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
}

.share-header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 0 clamp(22px, 5vw, 76px);
  border-bottom: 1px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  justify-self: start;
}

.brand-mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  background: var(--ink);
  transform: rotate(-4deg);
}

.brand-mark svg {
  width: 29px;
  fill: none;
  stroke: var(--acid);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-name {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.brand-name span {
  padding: 0 2px;
  color: var(--signal);
}

.share-system,
.back-link {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.share-system {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  background: rgba(242, 240, 232, 0.86);
}

.share-system i,
.scan-live i,
.domain-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--safe);
  box-shadow: 0 0 0 0 rgba(67, 209, 122, 0.45);
  animation: pulse 2.2s infinite;
}

.back-link {
  justify-self: end;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink);
  transition: color 180ms ease, border-color 180ms ease;
}

.back-link:hover {
  color: var(--signal);
  border-color: var(--signal);
}

.back-link span {
  margin-left: 7px;
}

.share-main {
  width: min(1320px, calc(100% - clamp(28px, 6vw, 94px)));
  margin: 0 auto;
  padding: clamp(32px, 5vw, 74px) 0 24px;
}

.share-card {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(400px, 0.82fr);
  min-height: min(760px, calc(100vh - 160px));
  border: 1px solid var(--ink);
  box-shadow: 13px 13px 0 var(--acid);
  animation: card-in 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.share-story {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: clamp(38px, 5vw, 78px);
  color: var(--paper);
  background: var(--ink);
}

.share-story::after {
  position: absolute;
  right: -125px;
  bottom: -200px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(215, 255, 54, 0.42);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(215, 255, 54, 0.06),
    0 0 0 78px rgba(215, 255, 54, 0.035);
  content: "";
}

.story-number {
  position: absolute;
  top: -33px;
  right: -8px;
  color: rgba(242, 240, 232, 0.045);
  font-family: var(--mono);
  font-size: clamp(120px, 18vw, 270px);
  font-weight: 800;
  letter-spacing: -0.12em;
  line-height: 1;
  user-select: none;
}

.story-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(32px, 5vw, 64px);
  color: var(--acid);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.eyebrow::before {
  width: 34px;
  height: 1px;
  background: var(--acid);
  content: "";
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(48px, 6.2vw, 90px);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.97;
}

h1 em {
  color: var(--acid);
  font-style: italic;
}

.share-lead {
  max-width: 520px;
  margin: clamp(28px, 4vw, 48px) 0 0;
  color: rgba(242, 240, 232, 0.66);
  font-size: 14px;
  letter-spacing: 0.035em;
  line-height: 1.9;
}

.share-features {
  max-width: 540px;
  margin: clamp(34px, 5vw, 58px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(242, 240, 232, 0.22);
}

.share-features li {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 16px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(242, 240, 232, 0.22);
}

.share-features > li > span {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 11px;
}

.share-features div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.share-features b {
  font-size: 13px;
  letter-spacing: 0.06em;
}

.share-features small {
  color: rgba(242, 240, 232, 0.46);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.story-foot {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 45px;
  color: rgba(242, 240, 232, 0.36);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.scan-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(30px, 4vw, 55px);
  background: var(--paper);
}

.scan-head {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.scan-live {
  display: flex;
  align-items: center;
  gap: 7px;
}

.qr-frame {
  position: relative;
  width: min(100%, 390px);
  margin-top: clamp(28px, 4vw, 48px);
  padding: 17px;
}

.qr-mat {
  padding: clamp(12px, 2vw, 20px);
  background: var(--white);
  box-shadow: 0 12px 32px rgba(23, 23, 19, 0.1);
}

.qr-mat img {
  display: block;
  width: 100%;
  height: auto;
}

.corner {
  position: absolute;
  width: 31px;
  height: 31px;
  border-color: var(--signal);
}

.corner-a {
  top: 0;
  left: 0;
  border-top: 2px solid;
  border-left: 2px solid;
}

.corner-b {
  top: 0;
  right: 0;
  border-top: 2px solid;
  border-right: 2px solid;
}

.corner-c {
  right: 0;
  bottom: 0;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.corner-d {
  bottom: 0;
  left: 0;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.scan-copy {
  width: 100%;
  margin-top: 29px;
  text-align: center;
}

.scan-copy p {
  margin: 0 0 10px;
  color: var(--signal);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.scan-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.scan-copy > span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
}

.domain-chip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  margin-top: 26px;
  padding: 14px 16px;
  border: 1px solid var(--ink);
  background: var(--acid);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.domain-chip:hover {
  box-shadow: 5px 5px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.domain-chip b {
  font-size: 15px;
}

.share-actions {
  display: flex;
  width: 100%;
  justify-content: space-between;
  margin-top: 13px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.share-actions a {
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
}

.share-actions a:hover {
  border-color: var(--signal);
  color: var(--signal);
}

.page-foot {
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 7px rgba(67, 209, 122, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(67, 209, 122, 0);
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@media (max-width: 960px) {
  .share-card {
    grid-template-columns: 1fr;
  }

  .share-story {
    min-height: 700px;
  }

  .scan-panel {
    padding-block: 46px;
  }

  .qr-frame {
    width: min(100%, 430px);
  }
}

@media (max-width: 640px) {
  .share-header {
    grid-template-columns: 1fr auto;
    min-height: 68px;
  }

  .share-system {
    display: none;
  }

  .back-link {
    font-size: 9px;
  }

  .share-main {
    width: calc(100% - 28px);
    padding-top: 20px;
  }

  .share-card {
    box-shadow: 7px 7px 0 var(--acid);
  }

  .share-story {
    min-height: 650px;
    padding: 34px 27px;
  }

  h1 {
    font-size: clamp(43px, 14.5vw, 64px);
  }

  .share-features div {
    display: block;
  }

  .share-features small {
    display: block;
    margin-top: 4px;
  }

  .story-foot span:last-child {
    display: none;
  }

  .scan-panel {
    padding: 28px 23px 34px;
  }

  .qr-frame {
    padding: 12px;
  }

  .corner {
    width: 23px;
    height: 23px;
  }

  .page-foot {
    gap: 15px;
    font-size: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .share-header,
  .page-foot,
  .share-actions {
    display: none;
  }

  .share-main {
    width: 100%;
    padding: 0;
  }

  .share-card {
    min-height: 100vh;
    box-shadow: none;
  }
}
