:root {
  --ink: #20243a;
  --muted: #757b91;
  --line: #e6e8f0;
  --purple: #5b55e8;
  --purple-dark: #403abf;
  --paper: #f7f7fb;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 50% -10%, #ffffff 0, var(--paper) 48%, #f0f0f7 100%); font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif; }
a { color: inherit; }
.site-shell { width: min(100% - 40px, 1080px); margin: 0 auto; min-height: 100svh; display: flex; flex-direction: column; }
.site-header { height: 82px; display: flex; align-items: center; justify-content: space-between; }
.site-header nav { display: flex; gap: 20px; color: var(--muted); font-size: 13px; }
.site-header a, .site-footer a { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { width: 17px; height: 17px; border-radius: 6px 6px 6px 2px; background: var(--purple); transform: rotate(-6deg); box-shadow: 7px 3px 0 -2px #a9a6ff; }
.hero { position: relative; overflow: hidden; padding: 86px 0 94px; }
h1 { margin: 16px 0 20px; font-size: clamp(42px, 7vw, 76px); line-height: 1.08; letter-spacing: -.075em; }
.hero > p { width: min(100%, 480px); color: var(--muted); font-size: 16px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; border-radius: 16px; padding: 0 23px; font-size: 14px; font-weight: 800; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.primary { color: #fff; background: linear-gradient(135deg, #6862f5, var(--purple)); box-shadow: 0 12px 28px rgba(91, 85, 232, .25); }
.secondary { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.full { width: 100%; }
.hero-map { position: absolute; z-index: -1; right: -130px; top: 35px; width: 530px; height: 430px; border-radius: 46% 54% 48% 52%; background: linear-gradient(145deg, #e6edff, #dfead8); opacity: .78; transform: rotate(-10deg); overflow: hidden; }
.hero-map::before, .hero-map::after { content: ""; position: absolute; border: 1px solid rgba(91, 85, 232, .18); border-radius: 50%; transform: rotate(24deg); }
.hero-map::before { inset: 55px -40px 30px 35px; }
.hero-map::after { inset: 118px 68px -30px -50px; }
.map-route { position: absolute; width: 620px; height: 150px; left: -30px; top: 174px; border-top: 3px solid rgba(91, 85, 232, .45); border-radius: 50%; transform: rotate(-18deg); }
.map-photo { position: absolute; width: 104px; height: 104px; border: 7px solid #fff; border-radius: 31px; background: linear-gradient(135deg, #e8b278, #6c8a80 50%, #333e6d); box-shadow: 0 16px 30px rgba(30, 36, 61, .2); }
.photo-one { left: 86px; top: 115px; transform: rotate(-14deg); }
.photo-two { left: 226px; top: 218px; transform: rotate(10deg); background: linear-gradient(135deg, #f5c9ac, #9a72ab 48%, #5b55e8); }
.photo-three { left: 355px; top: 90px; transform: rotate(13deg); background: linear-gradient(135deg, #f4be45, #df685b 48%, #384f86); }
.map-label { position: absolute; z-index: 2; padding: 8px 13px; border-radius: 999px; color: #fff; background: rgba(50, 51, 93, .76); font-size: 11px; font-weight: 700; transform: rotate(10deg); }
.label-one { left: 210px; top: 68px; }
.label-two { left: 350px; top: 275px; transform: rotate(-7deg); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-bottom: 80px; }
.feature-grid article { min-height: 220px; padding: 25px; border: 1px solid var(--line); border-radius: 26px; background: rgba(255,255,255,.72); }
.feature-number { color: var(--purple); font-size: 12px; font-weight: 800; }
.feature-grid h2 { margin: 46px 0 9px; font-size: 20px; letter-spacing: -.04em; }
.feature-grid p, .simple-page p, .quiet { color: var(--muted); line-height: 1.85; }
.invite-page, .simple-page { width: min(100%, 620px); margin: 0 auto; padding: 84px 0 100px; }
.invite-page h1, .simple-page h1 { font-size: clamp(38px, 8vw, 58px); }
.invite-orb { width: 72px; height: 72px; margin-bottom: 25px; border-radius: 24px; background: radial-gradient(circle at 34% 28%, #aaa7ff, var(--purple)); box-shadow: 0 20px 38px rgba(91,85,232,.25); }
.invite-card { margin-top: 32px; padding: 32px; border: 1px solid var(--line); border-radius: 30px; background: rgba(255,255,255,.87); box-shadow: 0 22px 70px rgba(47, 52, 84, .1); text-align: center; }
.invite-card.loading { display: flex; min-height: 170px; flex-direction: column; align-items: center; justify-content: center; }
.invite-card h2 { margin: 8px 0; font-size: 29px; letter-spacing: -.05em; }
.invite-by { margin: 0; color: var(--muted); }
.invite-meta { display: flex; justify-content: center; gap: 18px; margin: 24px 0; color: var(--muted); font-size: 12px; }
.invite-icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 16px; color: var(--purple); background: #efefff; font-size: 28px; font-weight: 800; }
.quiet { text-align: center; font-size: 12px; }
.spinner { width: 30px; height: 30px; margin-bottom: 15px; border: 3px solid #e5e5fb; border-top-color: var(--purple); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.invalid { border-color: #f0d8dc; }
.simple-page { flex: 1; }
.simple-page h1 { margin-bottom: 34px; }
.simple-page p { margin: 0 0 22px; }
.site-footer { display: flex; justify-content: space-between; gap: 14px; padding: 24px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

@media (max-width: 760px) {
  .site-shell { width: min(100% - 32px, 620px); }
  .site-header { height: 68px; }
  .hero { padding: 52px 0 38px; }
  .hero-map { position: relative; right: auto; top: auto; width: 100%; height: 300px; margin: 56px 0 0; transform: rotate(-5deg); }
  .feature-grid { grid-template-columns: 1fr; padding-bottom: 48px; }
  .feature-grid article { min-height: auto; }
  .feature-grid h2 { margin-top: 25px; }
  .invite-page, .simple-page { padding: 52px 0 64px; }
  .invite-meta { flex-direction: column; gap: 5px; }
  .site-footer { flex-direction: column; }
}
