:root {
  --bg: #1A1233;
  --bg-deep: #130D27;
  --surface: #221A3D;
  --surface-2: #2E2550;
  --line: rgba(255, 255, 255, 0.08);
  --text: #FFFFFF;
  --muted: #B7A9D9;
  --lilac: #C9B8F0;
  --orange: #F26B1D;
  --orange-btn: #E0570F;
  --amber: #F5A23A;
  --radius: 20px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--amber); }
a:hover { color: #FFC074; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--orange);
  display: grid; place-items: center; font-weight: 800; font-size: 19px; color: #fff;
}
.brand-name { font-weight: 600; font-size: 19px; letter-spacing: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 28px;
  font: 700 19px/1 Inter, system-ui, sans-serif; text-decoration: none;
  border: none; cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--orange-btn); color: #fff; box-shadow: 0 10px 30px rgba(242, 107, 29, 0.3); }
.btn-primary:hover { background: #F26B1D; color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.85); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn svg { flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--amber); font-weight: 600; font-size: 15px; margin: 0 0 14px; }
.hero h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.05; letter-spacing: -1.5px; margin: 0 0 20px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 32px; max-width: 520px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta-note { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* Visual: stacked photo cards with a swipe */
.stack { position: relative; height: 460px; max-width: 360px; margin: 0 auto; width: 100%; }
.card {
  position: absolute; inset: 40px 30px 60px 30px; border-radius: 26px;
  border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.card .scene { position: absolute; inset: 0; }
.card .sun { position: absolute; width: 64px; height: 64px; border-radius: 50%; right: 36px; top: 40px; background: rgba(255, 255, 255, 0.35); }
.card .hill { position: absolute; left: -20%; right: -20%; bottom: -30%; height: 70%; border-radius: 50% 50% 0 0; background: rgba(0, 0, 0, 0.25); }
.card .hill.two { left: 30%; right: -40%; bottom: -38%; background: rgba(0, 0, 0, 0.18); }
.card-1 { background: #3D7A8C; transform: rotate(-8deg) translateX(-26px); }
.card-2 { background: #7A4FD0; transform: rotate(5deg) translateX(18px); }
.card-3 { background: #C2562A; transform: rotate(-1deg); animation: swipe 5s ease-in-out infinite; }
.card-meta {
  position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; font-weight: 600;
}
.chip { background: rgba(19, 13, 39, 0.75); border-radius: 12px; padding: 6px 10px; display: inline-flex; gap: 6px; align-items: center; }
.swipe-actions { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 22px; }
.round {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line);
}
.round.keep { background: var(--orange-btn); border-color: transparent; }
@keyframes swipe {
  0%, 55% { transform: rotate(-1deg) translateX(0); opacity: 1; }
  70% { transform: rotate(12deg) translateX(140px); opacity: 0; }
  71% { transform: rotate(-1deg) translateX(0); opacity: 0; }
  85%, 100% { transform: rotate(-1deg) translateX(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .card-3 { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-title { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.8px; margin: 0 0 12px; font-weight: 800; }
.section-lead { color: var(--muted); font-size: 18px; margin: 0 0 40px; max-width: 620px; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-num {
  width: 40px; height: 40px; border-radius: 12px; background: rgba(242, 107, 29, 0.14);
  color: var(--amber); display: grid; place-items: center; font-weight: 800; margin-bottom: 18px;
}
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.use { border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); background: var(--surface); }
.use h3 { margin: 14px 0 6px; font-size: 20px; }
.use p { margin: 0; color: var(--muted); font-size: 15px; }
.use-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; color: var(--amber); }

.final-cta {
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  padding: 56px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.final-cta .section-title { margin: 0; }
.final-cta p { color: var(--muted); margin: 0 0 8px; font-size: 18px; }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; border-top: 1px solid var(--line); padding-top: 28px; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ---------- Invite page ---------- */
.invite { min-height: calc(100vh - 80px); display: flex; align-items: center; padding: 24px 0 64px; }
.invite .wrap { max-width: 480px; width: 100%; }
.invite-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 36px 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
}
.invite-card h1 { margin: 0; font-size: 28px; line-height: 1.2; letter-spacing: -0.5px; }
.invite-card p { margin: 0; color: var(--muted); }
.code-box {
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 20px; border-radius: 16px;
  border: 1px solid #B8752E; background: rgba(242, 107, 29, 0.08);
}
.code { font-size: 26px; font-weight: 700; letter-spacing: 5px; color: var(--amber); font-variant-numeric: tabular-nums; }
.copy-btn {
  min-height: 44px; padding: 0 14px; border-radius: 12px; border: none; background: var(--surface-2);
  color: #fff; font: 600 14px Inter, sans-serif; cursor: pointer;
}
.copy-btn:hover { background: #3A3160; }
.invite-steps { text-align: left; color: var(--muted); font-size: 15px; margin: 4px 0 0; padding-left: 20px; }
.invite-steps li { margin: 4px 0; }
.invite-card .btn { width: 100%; }
.small { font-size: 13px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding: 16px 0 40px; }
  .stack { height: 400px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uses { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .btn { font-size: 17px; padding: 0 20px; }
  .cta-row .btn { width: 100%; }
  .site-header .btn-sm { display: none; }
  .final-cta { padding: 40px 20px; }
  .final-cta .btn { width: 100%; }
}
