:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-soft: #fff7ed;
  --rose: #f43f5e;
  --ink: #1c1917;
  --muted: #78716c;
  --line: #e7e5e4;
  --paper: #fff;
  --cream: #fffaf5;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 24px 80px rgba(124, 45, 18, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--cream);
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, a { font: inherit; }
button { cursor: pointer; }

.ambient { position: fixed; z-index: -1; border-radius: 999px; filter: blur(3px); pointer-events: none; }
.ambient-one { width: 460px; height: 460px; top: -220px; left: -160px; background: radial-gradient(circle, rgba(249,115,22,.15), transparent 68%); }
.ambient-two { width: 540px; height: 540px; top: 220px; right: -310px; background: radial-gradient(circle, rgba(244,63,94,.10), transparent 68%); }

.site-header {
  position: relative;
  z-index: 5;
  height: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand img { display: block; width: 124px; height: auto; }

.hero { max-width: 1020px; margin: 0 auto; padding: 62px 28px 110px; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  margin-bottom: 24px;
  border: 1px solid rgba(249,115,22,.20);
  border-radius: 999px;
  background: rgba(255,247,237,.88);
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
}
.eyebrow span { font-size: 16px; }
h1 { margin: 0; font-size: clamp(50px, 7vw, 84px); line-height: .98; letter-spacing: -.065em; font-weight: 800; }
h1 span { color: var(--orange); position: relative; }
h1 span::after { content: ""; position: absolute; left: 3%; right: 0; bottom: -7px; height: 8px; border-radius: 50%; background: var(--orange); opacity: .18; transform: rotate(-1deg); }
.hero-copy { max-width: 650px; margin: 26px auto 0; color: var(--muted); font-size: 17px; line-height: 1.8; }

.event-meta {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  margin: 34px auto 0;
  padding: 17px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 8px 30px rgba(28,25,23,.04);
}
.event-meta > div { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: center; text-align: left; }
.event-meta strong { font-size: 14px; }
.event-meta small { grid-column: 2; margin-top: 2px; color: var(--muted); font-size: 10px; }
.meta-icon { grid-row: 1 / span 2; width: 26px; height: 26px; display: grid; place-items: center; color: var(--orange); background: var(--orange-soft); border-radius: 8px; }
.meta-divider { width: 1px; height: 34px; background: var(--line); }

.countdown-wrap { margin-top: 50px; }
.countdown-label { margin: 0 0 16px; color: #a8a29e; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.countdown { display: flex; justify-content: center; align-items: flex-start; gap: 11px; }
.time-box {
  width: 100px;
  padding: 17px 10px 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 34px rgba(28,25,23,.05);
}
.time-box strong { display: block; font-size: 34px; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.time-box span { display: block; margin-top: 9px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.time-box.hot { border-color: rgba(249,115,22,.2); background: linear-gradient(145deg, #fff 20%, #fff7ed); }
.time-box.hot strong { color: var(--orange); }
.separator { padding-top: 22px; color: #d6d3d1; font-size: 25px; font-weight: 800; }

.gift-shell {
  position: relative;
  margin-top: 48px;
  padding: 34px;
  overflow: hidden;
  text-align: left;
  border: 1px solid rgba(249,115,22,.14);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.gift-shell::before { content: ""; position: absolute; width: 240px; height: 240px; top: -160px; right: -90px; border-radius: 50%; background: rgba(249,115,22,.11); }
.gift-head { position: relative; display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; margin-bottom: 24px; }
.gift-kicker { color: var(--orange-dark); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.gift-head h2 { margin: 7px 0 0; font-size: 26px; letter-spacing: -.035em; }
.copy-all { padding: 11px 15px; color: white; border: 0; border-radius: 12px; background: var(--orange); font-size: 12px; font-weight: 800; box-shadow: 0 5px 16px rgba(249,115,22,.25); }
.copy-all:hover { background: var(--orange-dark); }

.gift-grid { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.placeholder-card, .code-card {
  min-height: 66px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fafaf9;
}
.placeholder-index, .code-index { color: #a8a29e; font-size: 10px; font-weight: 800; }
.placeholder-copy { color: #a8a29e; font-size: 11px; font-weight: 800; letter-spacing: .12em; user-select: none; }
.lock-icon { color: #a8a29e; }
.lock-note { position: relative; display: flex; align-items: center; gap: 11px; margin-top: 20px; padding: 13px 15px; border-radius: 14px; background: var(--orange-soft); color: #9a3412; }
.lock-note p { margin: 0; font-size: 11px; line-height: 1.55; font-weight: 600; }

.code-card { background: white; border-color: rgba(249,115,22,.22); animation: codeIn .55s both; animation-delay: var(--delay); }
.code-card code { color: var(--ink); font-size: 14px; font-weight: 800; letter-spacing: .02em; }
.copy-code { padding: 8px 10px; color: var(--orange-dark); border: 1px solid rgba(249,115,22,.20); border-radius: 10px; background: var(--orange-soft); font-size: 10px; font-weight: 800; }
.copy-code:hover { color: white; background: var(--orange); }
.is-revealed { border-color: rgba(16,185,129,.22); }
.is-revealed .gift-kicker { color: #059669; }
.is-revealed .lock-note { color: #047857; background: #ecfdf5; }
.terms { margin: 20px 0 0; color: #a8a29e; font-size: 10px; line-height: 1.6; }

.steps { padding: 96px 28px; color: white; background: var(--ink); }
.section-intro { max-width: 1120px; margin: 0 auto 38px; text-align: center; }
.section-intro span { color: #fb923c; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.section-intro h2 { margin: 8px 0 0; font-size: clamp(34px, 5vw, 52px); letter-spacing: -.05em; }
.step-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-grid article { position: relative; min-height: 235px; padding: 30px; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 22px; background: rgba(255,255,255,.045); }
.step-grid b { position: absolute; top: 16px; right: 20px; color: rgba(255,255,255,.08); font-size: 52px; letter-spacing: -.08em; }
.step-icon { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; background: var(--orange); border-radius: 14px; box-shadow: 0 8px 24px rgba(249,115,22,.28); }
.step-grid h3 { margin: 26px 0 9px; font-size: 19px; }
.step-grid p { margin: 0; color: #a8a29e; font-size: 13px; line-height: 1.7; }

footer { min-height: 130px; padding: 36px 28px; display: flex; align-items: center; justify-content: center; gap: 28px; background: #151311; color: #78716c; font-size: 11px; }
footer img { width: 92px; filter: brightness(0) invert(1); opacity: .9; }
footer a { color: #fb923c; font-weight: 700; text-decoration: none; }

.toast { position: fixed; z-index: 20; left: 50%; bottom: 28px; padding: 12px 18px; color: white; background: var(--ink); border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.22); font-size: 12px; font-weight: 700; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.confetti { position: fixed; z-index: 30; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; left: var(--x); top: -20px; width: 9px; height: 14px; background: var(--color); border-radius: 2px; animation: fall 3.4s var(--delay) cubic-bezier(.2,.7,.25,1) both; }

@keyframes codeIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fall { to { transform: translateY(105vh) rotate(calc(var(--spin) * 180deg)); opacity: .7; } }

@media (max-width: 720px) {
  .site-header { height: 70px; padding: 0 18px; }
  .brand img { width: 104px; }
  .hero { padding: 42px 16px 76px; }
  .desktop-only { display: none; }
  .hero-copy { font-size: 14px; }
  .event-meta { width: 100%; gap: 10px; justify-content: space-around; padding: 14px 10px; }
  .event-meta > div { display: flex; flex-direction: column; gap: 3px; text-align: center; }
  .event-meta .meta-icon { grid-row: auto; margin-bottom: 3px; }
  .event-meta small { grid-column: auto; }
  .meta-divider { height: 48px; }
  .countdown { gap: 5px; }
  .time-box { width: min(20vw, 76px); padding: 14px 5px 11px; border-radius: 14px; }
  .time-box strong { font-size: 27px; }
  .separator { padding-top: 19px; font-size: 18px; }
  .gift-shell { margin-top: 38px; padding: 22px 14px; border-radius: 22px; }
  .gift-head { align-items: flex-start; }
  .gift-head h2 { font-size: 21px; }
  .copy-all { padding: 9px 10px; white-space: nowrap; }
  .gift-grid { grid-template-columns: 1fr; gap: 9px; }
  .placeholder-card, .code-card { min-height: 60px; grid-template-columns: 28px 1fr auto; gap: 8px; padding: 10px; }
  .placeholder-copy { font-size: 10px; }
  .code-card code { font-size: 12px; }
  .steps { padding: 70px 18px; }
  .step-grid { grid-template-columns: 1fr; }
  .step-grid article { min-height: 205px; }
  footer { flex-direction: column; gap: 12px; text-align: center; }
  footer p { margin: 0; }
}

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