:root {
  --pink: #d10069;
  --paper: #fdf8fa;
  --ink: #111;
  --muted: #746872;
  --line: #e8dfe4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  scrollbar-width: thin;
  scrollbar-color: var(--pink) var(--paper);
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-thumb {
  background: var(--pink);
  border-radius: 8px;
}

body {
  margin: 0;
  background: var(--paper);
  font-family: 'Plus Jakarta Sans',sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

button,input {
  font: inherit;
}

button {
  cursor: pointer;
}

a,button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}

::selection {
  background: var(--pink);
  color: white;
}

[hidden] {
  display: none!important;
}

.shell {
  width: min(1200px,calc(100% - 64px));
  margin: auto;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
}

.promo {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #111;
  color: #fff;
  font-size: 12px;
  padding: 0 14px;
  text-align: center;
}

.promo strong {
  color: #ff85bf;
}

.nav-wrap {
  background: #fdf8facf;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid #1111110e;
}

.nav {
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1.3px;
  white-space: nowrap;
}

.brand span {
  color: var(--pink);
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
}

.nav-links a:last-child {
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 50px;
}

.hero {
  padding: 184px 0 76px;
  background-image: linear-gradient(#d1006905 1px,transparent 1px),linear-gradient(90deg,#d1006905 1px,transparent 1px);
  background-size: 64px 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  color: var(--pink);
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 22px;
  display: block;
}

.hero h1 {
  font-size: clamp(48px,5.2vw,74px);
  font-weight: 500;
  letter-spacing: -3.6px;
  line-height: 1.06;
  margin: 0 0 24px;
}

em {
  font-family: 'Instrument Serif',serif;
  font-weight: 400;
  color: var(--pink);
}

.lead {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 510px;
  margin: 0 0 28px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 60px;
  background: var(--pink);
  color: white;
  font-size: 12px;
  font-weight: 800;
  padding: 18px 24px;
  min-height: 52px;
  line-height: 1.5;
  transition: transform .2s,background .2s;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  background: #b7005c;
}

.btn.outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.micro {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin: 17px 0 0;
}

.reward-art {
  position: relative;
  background: var(--pink);
  border-radius: 30px;
  aspect-ratio: 1/1.04;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
}

.reward-art:before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#ffffff12 1px,transparent 1px),linear-gradient(90deg,#ffffff12 1px,transparent 1px);
  background-size: 38px 38px;
}

.orbit {
  position: absolute;
  border: 1px solid #ffffff45;
  border-radius: 50%;
  width: 340px;
  height: 340px;
  transform: rotate(-20deg) scaleX(1.4);
}

.orbit.two {
  width: 230px;
  height: 230px;
  transform: rotate(45deg) scaleX(1.5);
}

.reward-ticket {
  position: relative;
  background: var(--paper);
  border-radius: 22px;
  padding: 29px 30px;
  width: 76%;
  transform: rotate(-8deg);
  box-shadow: 12px 18px 0 #940b5045,0 24px 45px #640d3830;
}

.ticket-top {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1.6px;
  font-weight: 700;
  border-bottom: 1px dashed #ceb7c3;
  padding-bottom: 19px;
}

.ticket-value {
  font-family: 'Instrument Serif',serif;
  font-size: clamp(65px,7vw,104px);
  letter-spacing: -4px;
  line-height: 1.15;
  margin: 20px 0 0;
  color: #111;
}

.ticket-value small {
  font-family: 'Plus Jakarta Sans';
  font-size: 22px;
  letter-spacing: -1px;
}

.ticket-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 10px;
}

.pix-symbol {
  width: 30px;
  height: 30px;
  color: var(--pink);
}

.art-chip {
  position: absolute;
  bottom: 24px;
  right: 20px;
  background: #111;
  color: #fff;
  border-radius: 50px;
  padding: 13px 18px;
  font-size: 11px;
  font-weight: 700;
  transform: rotate(5deg);
}

.spark {
  position: absolute;
  top: 24px;
  left: 24px;
  color: white;
  font-size: 50px;
  line-height: 1;
}

.section {
  padding: 74px 0;
}

.section h2 {
  font-size: clamp(34px,3.4vw,48px);
  font-weight: 500;
  letter-spacing: -1.8px;
  line-height: 1.1;
  margin: 0 0 20px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 32px;
  margin-top: 40px;
}

.step {
  border-top: 1px solid #ddcbd5;
  padding: 23px 0 0;
}

.step-num {
  font-family: 'Instrument Serif';
  color: var(--pink);
  font-size: 42px;
  margin-bottom: 19px;
}

.step h3 {
  font-size: 17px;
  margin: 0 0 13px;
}

.step p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0;
}

.generator-section {
  padding: 24px 0 80px;
}

.generator-grid {
  display: grid;
  grid-template-columns: .85fr 1fr;
  gap: 64px;
  align-items: start;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 30px;
  padding: 46px;
}

.generator-grid h2 {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1.1;
  margin: 0 0 22px;
}

.generator-grid p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.reward-note {
  background: #111;
  color: white;
  border-radius: 19px;
  padding: 23px;
  margin-top: 26px;
}

.reward-note .eyebrow {
  color: #ff85bf;
  margin: 0 0 12px;
}

.reward-note p {
  color: #ded1d8;
  margin: 0;
  font-size: 12px;
}

.reward-note b {
  display: block;
  font-family: 'Instrument Serif';
  font-size: 34px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 10px;
}

.field {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 9px;
}

input {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid #dfd3da;
  background: #fdf8fa;
  border-radius: 13px;
  padding: 16px;
  font-size: 15px;
}

input::placeholder {
  color: #a18a97;
  font-size: 13px;
}

.generate-btn {
  width: 100%;
}

.privacy {
  font-size: 11px!important;
  line-height: 1.8!important;
  margin: 15px 0 0;
}

.result {
  margin-top: 23px;
  border-top: 1px solid var(--line);
  padding-top: 23px;
}

.result .eyebrow {
  margin-bottom: 10px;
}

.code-box {
  padding: 18px;
  background: #fff0f7;
  border: 1px dashed #da8ab3;
  border-radius: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.code-box output {
  font-size: clamp(15px,2vw,21px);
  font-weight: 800;
  color: var(--pink);
  letter-spacing: .5px;
  overflow-wrap: anywhere;
  min-width: 0;
}

.copy-small {
  background: #fff;
  border: 1px solid #e9c1d5;
  border-radius: 30px;
  padding: 10px 14px;
  font-size: 11px;
  flex-shrink: 0;
  color: var(--pink);
}

.result-buttons {
  display: grid;
  gap: 10px;
  margin: 17px 0;
}

.result-buttons .btn {
  width: 100%;
  font-size: 11px;
}

.link-row {
  display: flex;
  gap: 8px;
}

.link-row input {
  font-size: 11px;
  padding: 13px;
}

.link-row button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 13px;
  padding: 0 14px;
  font-size: 12px;
}

.feedback {
  font-size: 12px;
  color: var(--pink);
  line-height: 1.7;
  margin: 12px 0;
  min-height: 20px;
}

.rules {
  border-top: 1px solid var(--line);
  padding: 50px 0 65px;
}

.rules-layout {
  display: grid;
  grid-template-columns: .8fr 1fr;
  gap: 70px;
}

.rules h2 {
  font-size: 35px;
  letter-spacing: -1.4px;
  font-weight: 500;
  margin: 0 0 20px;
}

.rules p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

summary {
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.6;
}

details p {
  font-size: 13px!important;
  margin: 12px 0 0;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 27px 0 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}

.footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer .brand {
  text-decoration: none;
  color: #111;
  font-size: 20px;
}

@media (max-width:900px) {
  .hero-grid {
    gap: 28px;
  }
  .hero h1 {
    font-size: 51px;
    letter-spacing: -2.5px;
  }
  .generator-grid {
    gap: 30px;
    padding: 32px;
  }
  .generator-grid h2 {
    font-size: 36px;
  }
  .rules-layout {
    gap: 35px;
  }
  .reward-ticket {
    padding: 22px;
  }
  .ticket-value {
    font-size: 75px;
  }
  .steps {
    gap: 22px;
  }
}

@media (max-width:640px) {
  .shell {
    width: calc(100% - 40px);
  }
  .promo {
    font-size: 10px;
    gap: 5px;
  }
  .nav {
    height: 70px;
  }
  .brand {
    font-size: 21px;
  }
  .nav-links {
    gap: 10px;
    font-size: 11px;
  }
  .nav-links a:last-child {
    padding: 10px 12px;
  }
  .hero {
    padding: 148px 0 36px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero h1 {
    font-size: clamp(43px,11vw,62px);
    letter-spacing: -2.4px;
    margin-bottom: 20px;
  }
  .hero .eyebrow {
    margin-bottom: 17px;
  }
  .lead {
    font-size: 14px;
    line-height: 1.85;
  }
  .hero-actions .btn {
    flex: 1;
    font-size: 11px;
    padding: 16px;
  }
  .micro {
    font-size: 10px;
  }
  .reward-art {
    aspect-ratio: 1.15;
    border-radius: 24px;
  }
  .reward-ticket {
    max-width: 360px;
    padding: 25px;
    width: 77%;
  }
  .ticket-value {
    font-size: clamp(74px,21vw,102px);
  }
  .spark {
    font-size: 35px;
    top: 19px;
    left: 17px;
  }
  .art-chip {
    font-size: 9px;
    bottom: 17px;
    right: 14px;
  }
  .section {
    padding: 42px 0;
  }
  .section h2 {
    font-size: 35px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 28px;
  }
  .step {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 16px;
    padding-top: 19px;
  }
  .step-num {
    grid-row: span 2;
    font-size: 35px;
  }
  .step h3 {
    margin: 4px 0 9px;
    font-size: 16px;
  }
  .step p {
    font-size: 13px;
  }
  .generator-section {
    padding: 0 0 44px;
  }
  .generator-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 25px 20px;
    border-radius: 23px;
  }
  .generator-grid h2 {
    font-size: 35px;
  }
  .generator-grid p {
    font-size: 13px;
  }
  .reward-note {
    padding: 21px;
    margin-top: 20px;
  }
  .rules {
    padding: 35px 0 44px;
  }
  .rules-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .rules h2 {
    font-size: 31px;
  }
  .footer {
    flex-direction: column;
    align-items: start;
    gap: 12px;
  }
  .code-box {
    padding: 14px 12px;
    gap: 8px;
  }
  .copy-small {
    padding: 10px;
  }
  .link-row {
    flex-wrap: wrap;
  }
  .link-row input {
    flex-basis: 100%;
  }
  .link-row button {
    padding: 11px 16px;
  }
  .result-buttons .btn {
    padding: 15px 12px;
  }
}

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

.clipboard-field {
  position: fixed;
  opacity: 0;
}
