:root {
  color-scheme: dark;
  --cocoa-950: #160d0b;
  --cocoa-900: #1c1210;
  --cocoa-800: #2d1c18;
  --cream: #fff1d8;
  --cream-muted: #d8c9bd;
  --coral: #dd746f;
  --coral-light: #f7b0a7;
  --amber: #f3bc67;
  --sage: #96b27b;
}

* { box-sizing: border-box; }
html { background: var(--cocoa-950); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cream);
  background:
    radial-gradient(circle at 82% 8%, rgba(221,116,111,.16), transparent 30rem),
    radial-gradient(circle at 6% 62%, rgba(243,188,103,.08), transparent 28rem),
    var(--cocoa-950);
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Noto Sans KR", sans-serif;
}

main { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.site-nav { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:24px 0 0; color:var(--cream-muted); font-size:13px; }
.site-nav div { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:16px; }
.site-nav a, footer a, .legal a { color:var(--coral-light); text-decoration:none; }
.site-nav a:hover, footer a:hover, .legal a:hover { color:var(--cream); text-decoration:underline; }
.nav-brand { color:var(--cream) !important; font-size:18px; font-weight:800; letter-spacing:-.03em; }
.hero { min-height: 760px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 64px; padding: 70px 0 50px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 16px; color: var(--coral-light); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
h1 { margin: 0; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.18; letter-spacing: -.045em; word-break: keep-all; }
h1 span { display: block; white-space: nowrap; }
.lead { max-width: 610px; margin: 24px 0 28px; color: var(--cream-muted); font-size: 18px; line-height: 1.75; word-break: keep-all; }
.store-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 200px)); width: min(100%, 416px); align-items: center; gap: 16px; }
.app-store-badge { display: flex; min-width: 0; height: 60px; align-items: center; justify-content: center; border-radius: 10px; }
.app-store-badge img { display: block; width: auto; height: 62px; }
.google-play-badge { display: flex; width: 100%; min-width: 0; height: 64px; align-items: center; justify-content: center; }
.google-play-badge img { display: block; width: min(100%, 200px); height: auto; max-height: 62px; }
.app-store-badge:focus-visible, .google-play-badge:focus-visible, .store-button:focus-visible { outline: 3px solid var(--coral-light); outline-offset: 4px; }
.store-button {
  width: 200px; max-width: 100%; min-width: 0; height: 64px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-inline: auto; padding: 0 8px;
  border: 1px solid rgba(255,241,216,.18); border-radius: 10px; color: var(--cream); text-decoration: none;
  background: linear-gradient(145deg, #35211c, #231613); box-shadow: 0 14px 38px rgba(0,0,0,.24);
}
.store-button.disabled { opacity: .48; cursor: not-allowed; }
.store-icon { flex: 0 0 24px; width: 24px; color: var(--sage); font-size: 20px; text-align: center; }
.store-button small, .store-button strong { display: block; }
.store-button small { margin-bottom: 3px; color: var(--cream-muted); font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.store-button strong { font-size: 12px; }
.install-note { margin: 15px 4px 0; color: rgba(216,201,189,.68); font-size: 12px; line-height: 1.65; }

.phone-stage { position: relative; display: grid; place-items: center; min-height: 660px; }
.phone { position: relative; z-index: 2; width: min(345px, 82vw); padding: 10px; border: 1px solid rgba(255,241,216,.28); border-radius: 50px; background: #090605; box-shadow: 0 45px 100px rgba(0,0,0,.52), inset 0 0 0 4px #251714; transform: rotate(2deg); }
.phone::before { content: ""; position: absolute; z-index: 3; top: 18px; left: 50%; width: 82px; height: 22px; border-radius: 14px; background: #090605; transform: translateX(-50%); }
.phone img { display: block; width: 100%; border-radius: 40px; }
.glow { position: absolute; border-radius: 999px; filter: blur(2px); }
.glow-one { width: 360px; height: 360px; background: rgba(221,116,111,.22); }
.glow-two { width: 240px; height: 240px; right: 3%; bottom: 8%; background: rgba(243,188,103,.15); }

.event { padding: 12px 0 70px; scroll-margin-top: 24px; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.event-panel { overflow:hidden; border:1px solid rgba(255,241,216,.16); border-radius:28px; background:#251137; box-shadow:0 24px 60px rgba(0,0,0,.24); }
.event-visual { position:relative; }
.event-art-link { display:block; }
.event-mobile-cta { display:none; }
.event-mobile-cta img { display:block; width:100%; height:auto; }
.event-art { display:block; }
.event-art img { display:block; width:100%; height:auto; }
.event-art-link:focus-visible { outline:3px solid var(--cream); outline-offset:-4px; }
.event-mobile-cta:focus-visible { outline:3px solid var(--cream); outline-offset:4px; border-radius:12px; }
.event-terms { padding:28px clamp(22px, 4vw, 48px) 32px; background:rgba(22,13,11,.7); }
.event-rule + .event-rule { margin-top:24px; }
.event-rule h3 { margin:0 0 12px; color:var(--coral-light); font-size:18px; }
.event-rule ol, .event-rule ul { display:grid; gap:10px; margin:0; padding-left:22px; }
.event-rule li, .event-rule p { color:var(--cream-muted); font-size:14px; line-height:1.75; word-break:keep-all; overflow-wrap:break-word; }
.event-rule:first-child h3 { font-size:24px; }
.event-rule:first-child li { color:var(--cream); font-size:18px; }
.event-rule li::marker { color:var(--coral-light); font-weight:700; }
.event-rule strong { color:var(--cream); font-weight:800; }
.event-rule ol strong { color:var(--amber); }
.event-rule a { color:var(--coral-light); }
.event-rule .event-note { margin:16px 0 0; font-size:12px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 60px 0; }
.features article { min-height: 210px; padding: 28px; border: 1px solid rgba(255,241,216,.1); border-radius: 26px; background: rgba(45,28,24,.64); }
.features span { color: var(--coral-light); font-size: 12px; font-weight: 900; letter-spacing: .15em; }
.features h2 { margin: 28px 0 12px; font-size: 18px; letter-spacing: .02em; }
.features p { margin: 0; color: var(--cream-muted); font-size: 14px; line-height: 1.7; word-break: keep-all; }

.feedback { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 42px; margin: 40px 0 90px; padding: 36px 46px; border-radius: 34px; background: linear-gradient(125deg, rgba(221,116,111,.18), rgba(45,28,24,.82)); }
.feedback img { width: 180px; border-radius: 38px; box-shadow: 0 18px 45px rgba(0,0,0,.28); }
.feedback h2 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 38px); }
.feedback p:last-child { margin: 0; color: var(--cream-muted); line-height: 1.75; }
footer { padding: 32px 20px 48px; color: rgba(216,201,189,.5); text-align: center; font-size: 12px; }
.apple-legal { display: block; max-width: 720px; margin: 12px auto 0; color: rgba(216,201,189,.82); font-size: 10px; line-height: 1.5; }
.legal { width:min(800px, calc(100% - 40px)); padding-bottom:72px; }
.legal > h1 { margin-top:42px; }
.legal .lead { max-width:720px; }
.effective { margin:0 0 34px; color:var(--coral-light); font-size:13px; }
.legal-card { margin-top:18px; padding:24px 26px; border:1px solid rgba(255,241,216,.12); border-radius:22px; background:rgba(45,28,24,.7); }
.legal-card h2 { margin:0 0 12px; color:var(--cream); font-size:20px; }
.legal-card h3 { margin:24px 0 8px; color:var(--cream); font-size:16px; }
.legal-card p { margin:0; color:var(--cream-muted); line-height:1.8; word-break:keep-all; }
.legal-card p + p { margin-top:14px; }

@media (max-width: 820px) {
  main { width: min(100% - 28px, 600px); }
  .hero { grid-template-columns: 1fr; gap: 8px; padding-top: max(42px, env(safe-area-inset-top)); text-align: center; }
  .site-nav { padding-top:max(18px, env(safe-area-inset-top)); }
  .lead { font-size: 16px; }
  .store-actions { justify-content: center; }
  .install-note { text-align: center; }
  .phone-stage { min-height: 600px; }
  .event-panel { border-radius:20px; }
  .event-terms { padding:24px 22px; }
  .event-rule h3 { font-size:16px; }
  .event-rule:first-child h3 { font-size:20px; }
  .event-rule:first-child li { font-size:16px; }
  .event-rule .event-note { font-size:12px; }
  .features { grid-template-columns: 1fr; padding-top: 30px; }
  .features article { min-height: 0; }
  .feedback { grid-template-columns: 1fr; text-align: center; padding: 32px 24px; }
  .feedback img { width: 132px; margin: auto; border-radius: 30px; }
}

@media (max-width: 640px) {
  .event-mobile-cta { display:block; position:absolute; left:50%; bottom:7%; width:92%; max-width:420px; transform:translateX(-50%); }
}

@media (max-width: 420px) {
  .hero { padding-bottom: 24px; }
  .store-actions { grid-template-columns: 1fr; width: min(100%, 250px); margin: 0 auto; }
  h1 { font-size: 28px; letter-spacing: -.055em; }
  .phone { width: 306px; }
  .phone-stage { min-height: 610px; }
  .site-nav { align-items:flex-start; }
  .site-nav div { gap:10px; }
}

@media (max-width: 340px) {
  h1 { font-size: 23px; letter-spacing: -.06em; }
  .phone { width: 280px; transform: none; }
  .glow-one { width: 280px; height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .store-button { transition: none; }
}
