/* Hash 기본 테마(ResolvedTheme)와 기본 키 컬러(테라코타)를 웹 토큰으로 옮긴다. */
:root {
  color-scheme: light dark;
  --background: #F2F2F7;
  --surface: #FFFFFF;
  --surface-2: #F7F7FA;
  --text: #1C1C1E;
  --secondary: #6C6C70;
  --tertiary: #9A9AA0;
  --separator: #D8D8DC;
  --hairline: #E5E5EA;
  --chrome: rgba(255, 255, 255, .72);
  --accent: #C4583A;
  --accent-strong: #A94528;
  --accent-soft: #F8E6E0;
  --on-accent: #FFFFFF;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px rgba(28, 28, 30, .08);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, .05), 0 28px 60px rgba(28, 28, 30, .14);

  --blue-bg: #DCEBFF; --blue: #1F5FD1;
  --green-bg: #DDF3E2; --green: #217A3F;
  --red-bg: #FFE2E0; --red: #C2352F;
  --teal-bg: #D7EFF3; --teal: #0F7383;
  --purple-bg: #EEE3FF; --purple: #7440C0;
  --orange-bg: #FFE9D2; --orange: #B4570A;

  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --corner: 16px;
  --panel: 28px;
  --capsule: 999px;
  --page: 1180px;
  --gutter: 40px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #000000;
    --surface: #1C1C1E;
    --surface-2: #232326;
    --text: #FFFFFF;
    --secondary: #AEAEB2;
    --tertiary: #7C7C82;
    --separator: #38383A;
    --hairline: #2A2A2D;
    --chrome: rgba(28, 28, 30, .72);
    --accent: #E2775A;
    --accent-strong: #F08C70;
    --accent-soft: #3A211A;
    --on-accent: #1C0F0A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
    --shadow-lift: 0 2px 6px rgba(0, 0, 0, .5), 0 28px 60px rgba(0, 0, 0, .5);

    --blue-bg: #14294A; --blue: #8DB5FF;
    --green-bg: #13301D; --green: #7FD49A;
    --red-bg: #3D1716; --red: #FF8F88;
    --teal-bg: #0F2E34; --teal: #74D1DE;
    --purple-bg: #2A1A42; --purple: #C4A2FF;
    --orange-bg: #3A240E; --orange: #FFB673;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 4px; }
h1, h2, h3 { margin: 0; letter-spacing: -.035em; line-height: 1.25; }
p { margin: 0; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 50; padding: 12px 20px; background: var(--surface); border-radius: var(--capsule); }
.skip:focus { top: 12px; }
.accent { color: var(--accent); }
.muted { color: var(--secondary); }

/* 버튼 */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border-radius: var(--capsule); border: 0;
  font: inherit; font-size: 16px; font-weight: 650; letter-spacing: -.02em;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s;
}
.button.primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent); }
.button.primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.button.ghost { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.button.ghost:hover { transform: translateY(-1px); }
.button:active { transform: scale(.97); }
.button.small { min-height: 38px; padding: 8px 16px; font-size: 14px; box-shadow: none; }
.button.large { min-height: 56px; padding: 14px 30px; font-size: 17px; }
.button.is-disabled { background: var(--hairline); color: var(--secondary); box-shadow: none; cursor: default; }
.button.is-disabled:hover { transform: none; background: var(--hairline); }

/* 상단 바 */
.topbar { position: sticky; top: 0; z-index: 20; transition: background-color .3s, box-shadow .3s; }
.topbar.is-scrolled { background: var(--chrome); backdrop-filter: saturate(1.6) blur(20px); -webkit-backdrop-filter: saturate(1.6) blur(20px); box-shadow: 0 1px 0 var(--hairline); }
.topbar-inner { max-width: var(--page); margin: auto; padding: 0 var(--gutter); height: 68px; 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; font-size: 20px; font-weight: 700; letter-spacing: -.04em; }
.brand img { border-radius: 9px; box-shadow: 0 0 0 1px var(--hairline); }
.top-nav { display: flex; align-items: center; gap: 28px; }
.top-nav a:not(.button) { color: var(--secondary); text-decoration: none; font-size: 14px; font-weight: 550; }
.top-nav a:not(.button):hover { color: var(--text); }

/* 공통 섹션 */
section { max-width: var(--page); margin: 0 auto; padding: 120px var(--gutter); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--accent); margin-bottom: 18px; }
h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 750; }
.section-copy { margin-top: 20px; font-size: 18px; color: var(--secondary); max-width: 620px; }

/* 칩 · 기록 행 (앱의 RecordRow·HashChip) */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 11px; border-radius: var(--capsule); background: var(--hairline); color: var(--secondary); font-size: 13px; font-weight: 600; white-space: nowrap; }
.meta { font-size: 13px; color: var(--secondary); }
.c-blue { background: var(--blue-bg); color: var(--blue); }
.c-green { background: var(--green-bg); color: var(--green); }
.c-red { background: var(--red-bg); color: var(--red); }
.c-teal { background: var(--teal-bg); color: var(--teal); }
.c-purple { background: var(--purple-bg); color: var(--purple); }
.c-orange { background: var(--orange-bg); color: var(--orange); }

.record-list { list-style: none; margin: 0; padding: 0; }
.record { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 14px 4px; border-bottom: 1px solid var(--hairline); }
.record:last-child { border-bottom: 0; }
.record strong { font-size: 16px; font-weight: 650; letter-spacing: -.02em; display: block; }
.record-body { display: block; font-size: 14px; color: var(--secondary); }
.record-time { font-size: 14px; font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; padding-top: 1px; }
.record-time.red { color: var(--red); }
.record-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--tertiary); margin: 1px 0 0 4px; position: relative; transition: background-color .2s, border-color .2s; }
.record-check.on { background: var(--accent); border-color: var(--accent); }
.record-check.on::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.record.done strong { color: var(--tertiary); text-decoration: line-through; }

/* 다이얼 (앱 상단 해시 다이얼) */
.dial { display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: var(--capsule); background: var(--chrome); box-shadow: 0 0 0 1px var(--hairline); }
.dial-mark { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 22px; font-weight: 700; flex: none; transition: background-color .35s var(--ease), transform .35s var(--ease); }
.dial-mark.sun { background: #FF9F0A; color: #3A1E00; font-size: 20px; }
.dial-label { display: flex; flex-direction: column; line-height: 1.25; }
.dial-label strong { font-size: 17px; letter-spacing: -.03em; }
.dial-label span { font-size: 12px; color: var(--secondary); }
.dial.mini .dial-mark { width: 34px; height: 34px; }

/* 1. 첫 화면 */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-top: 64px; padding-bottom: 96px; position: relative; }
.hero::before { content: ""; position: absolute; inset: -140px -30vw auto; height: 760px; z-index: -1; background: radial-gradient(48% 52% at 72% 38%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), radial-gradient(36% 40% at 18% 22%, color-mix(in srgb, var(--blue) 10%, transparent), transparent 70%); pointer-events: none; }
.eyebrow { display: inline-flex; padding: 6px 14px; border-radius: var(--capsule); background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 650; margin-bottom: 28px; }
.hero h1 { font-size: clamp(42px, 6vw, 76px); font-weight: 800; line-height: 1.12; letter-spacing: -.05em; }
.lede { margin-top: 28px; font-size: 19px; color: var(--secondary); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-demo { position: relative; }
.demo-card { position: relative; z-index: 2; background: var(--surface); border-radius: var(--panel); padding: 20px 20px 16px; box-shadow: var(--shadow-lift); }
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 8px; }
.demo-title { font-size: 13px; font-weight: 650; color: var(--accent); }
.hero-demo .record-list { height: 250px; overflow: hidden; }
.record.is-new { animation: drop-in .55s var(--ease) both; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-14px) scale(.98); } to { opacity: 1; transform: none; } }

.compose { margin-top: 8px; }
.suggestions { display: flex; flex-wrap: wrap; gap: 6px; min-height: 34px; padding: 4px 2px; }
.suggestion { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 3px 12px; border-radius: var(--capsule); border: 1.5px dashed var(--accent); background: transparent; color: var(--accent); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; animation: pop .35s var(--ease) both; }
.suggestion:hover { background: var(--accent-soft); }
.suggestion.is-confirmed { border-style: solid; background: var(--accent); color: var(--on-accent); }
.suggestion.hash { border-color: currentColor; }
.suggestion.hash.c-blue, .suggestion.hash.c-green, .suggestion.hash.c-red, .suggestion.hash.c-teal, .suggestion.hash.c-purple, .suggestion.hash.c-orange { border-style: solid; border-color: transparent; cursor: default; }
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.compose-bar { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 18px; border-radius: var(--capsule); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hairline); transition: box-shadow .2s; }
.compose-bar:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.compose-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.compose-bar input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; padding: 10px 0; outline: none; }
.compose-bar input::placeholder { color: var(--tertiary); }
.compose-send { width: 40px; height: 40px; border-radius: 50%; border: 0; flex: none; background: var(--accent); color: var(--on-accent); font-size: 18px; font-weight: 700; cursor: pointer; transition: transform .2s var(--ease), opacity .2s; }
.compose-send:active { transform: scale(.9); }
.compose-hint { margin-top: 10px; font-size: 12px; color: var(--secondary); text-align: center; }

/* 카드 뒤에 깔려 가장자리 밖으로만 보인다 */
.float-chip { position: absolute; z-index: 1; padding: 8px 16px; border-radius: var(--capsule); font-size: 15px; font-weight: 700; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
.float-chip:nth-of-type(1) { top: -30px; right: 12%; }
.float-chip:nth-of-type(2) { top: 34%; left: -62px; animation-delay: -2s; }
.float-chip:nth-of-type(3) { bottom: 24%; right: -52px; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }

/* 2. 왜 Hash */
.merge { display: grid; grid-template-columns: auto 120px minmax(0, 1fr); align-items: center; gap: 28px; padding: 48px; border-radius: 36px; background: var(--surface); box-shadow: var(--shadow); margin-bottom: 64px; }
.merge-apps { display: flex; flex-direction: column; gap: 14px; }
.merge-app { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 10px; border-radius: var(--capsule); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hairline); font-weight: 650; transition: transform .9s var(--ease), opacity .9s var(--ease); }
.merge-app i { font-style: normal; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 16px; }
.a1 i { background: #FF9F0A; } .a2 i { background: #FF453A; } .a3 i { background: #0A84FF; }
.merge-arrow { height: 2px; background: linear-gradient(90deg, transparent, var(--accent)); position: relative; transform-origin: left; transform: scaleX(0); transition: transform .8s .4s var(--ease); }
.merge-arrow::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 9px solid var(--accent); }
.merge-record { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 22px 24px; border-radius: var(--corner); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hairline); opacity: 0; transform: translateX(-24px) scale(.96); transition: opacity .8s .7s var(--ease), transform .8s .7s var(--ease); }
.merge-record strong { font-size: 19px; letter-spacing: -.03em; display: block; }
.merge-body { color: var(--secondary); font-size: 15px; }
.merge.is-visible .merge-arrow { transform: scaleX(1); }
.merge.is-visible .merge-record { opacity: 1; transform: none; }
.merge.is-visible .a1 { transform: translateX(14px); }
.merge.is-visible .a3 { transform: translateX(14px); }

.reason-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.reason { padding: 36px; border-radius: var(--panel); background: var(--surface); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.reason:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.reason-number { display: block; font-size: 13px; font-weight: 750; color: var(--accent); font-variant-numeric: tabular-nums; margin-bottom: 18px; }
.reason h3 { font-size: 23px; font-weight: 720; margin-bottom: 12px; }
.reason p { color: var(--secondary); font-size: 16px; }

.trust { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border-radius: var(--panel); overflow: hidden; background: var(--hairline); }
.trust li { background: var(--surface); padding: 28px 24px; display: flex; flex-direction: column; gap: 4px; }
.trust strong { font-size: 44px; font-weight: 800; letter-spacing: -.05em; line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; }
.trust span { font-size: 14px; color: var(--secondary); }

/* 3. 해시마다 다른 공간 */
.space-demo { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.space-demo > * { min-width: 0; }
.space-tabs { display: flex; flex-direction: column; gap: 10px; }
.space-tab { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 12px 20px; border: 0; border-radius: var(--corner); font: inherit; font-size: 18px; font-weight: 700; letter-spacing: -.03em; text-align: left; cursor: pointer; opacity: .55; transform: scale(.98); transition: opacity .25s, transform .25s var(--ease), box-shadow .25s; }
.space-tab span { font-size: 13px; font-weight: 600; opacity: .8; }
.space-tab:hover { opacity: .85; }
.space-tab[aria-selected="true"] { opacity: 1; transform: none; box-shadow: var(--shadow); }
.space-stage { position: relative; min-height: 440px; padding: 24px; border-radius: 32px; background: var(--surface); box-shadow: var(--shadow-lift); overflow: hidden; }
.space-stage::before { content: ""; position: absolute; inset: 0 0 auto; height: 160px; background: linear-gradient(180deg, var(--stage-wash, var(--blue-bg)), transparent); opacity: .7; transition: background .4s; pointer-events: none; }
.space-stage[data-active="trip"] { --stage-wash: var(--teal-bg); }
.space-stage[data-active="read"] { --stage-wash: var(--purple-bg); }
.space-stage[data-active="health"] { --stage-wash: var(--red-bg); }
.space-dial { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: var(--capsule); background: var(--chrome); backdrop-filter: blur(16px); box-shadow: 0 0 0 1px var(--hairline); margin-bottom: 18px; }
.space-dial .dial-mark { background: var(--blue); color: #fff; }
.space-stage[data-active="trip"] .dial-mark { background: var(--teal); }
.space-stage[data-active="read"] .dial-mark { background: var(--purple); }
.space-stage[data-active="health"] .dial-mark { background: var(--red); }
.dial-arrows { color: var(--tertiary); font-size: 12px; letter-spacing: -2px; }
.space-dial.is-turning .dial-mark { transform: rotate(-120deg) scale(.9); }
.space-panel { position: relative; animation: panel-in .45s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.project-goal { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border-radius: var(--corner); background: var(--surface-2); margin-bottom: 16px; }
.project-goal strong { display: block; font-size: 17px; }
.project-goal span { font-size: 13px; color: var(--secondary); }
.progress { height: 8px; border-radius: var(--capsule); background: var(--hairline); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--teal); transition: width 1s .2s var(--ease); }
#panel-trip:not([hidden]) .progress span { width: 60%; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.board-col { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--corner); background: var(--surface-2); }
.board-col p { font-size: 12px; font-weight: 700; color: var(--secondary); }
.board-card { padding: 10px 12px; border-radius: 12px; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); font-size: 14px; font-weight: 600; animation: pop .4s var(--ease) both; }
.board-card:nth-child(3) { animation-delay: .06s; } .board-card:nth-child(4) { animation-delay: .12s; }
.board-card.done { color: var(--tertiary); text-decoration: line-through; }
.link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.link-card { display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 14px; border-radius: var(--corner); background: var(--surface-2); animation: pop .4s var(--ease) both; }
.link-card:nth-child(2) { animation-delay: .05s; } .link-card:nth-child(3) { animation-delay: .1s; } .link-card:nth-child(4) { animation-delay: .15s; }
.link-card strong { font-size: 14px; line-height: 1.4; padding: 0 4px; }
.link-card span:last-child { font-size: 12px; color: var(--secondary); padding: 0 4px; }
.link-thumb { height: 84px; border-radius: 10px; }
.t1 { background: linear-gradient(135deg, #FFB88C, #DE6262); }
.t2 { background: linear-gradient(135deg, #C9D6FF, #6A82FB); }
.t3 { background: linear-gradient(135deg, #B7F8DB, #50A7C2); }
.t4 { background: linear-gradient(135deg, #E0C3FC, #8EC5FC); }
.habit { padding: 18px 20px; border-radius: var(--corner); background: var(--surface-2); margin-bottom: 8px; }
.habit-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.streak { font-size: 14px; font-weight: 700; color: var(--orange); }
.habit-days { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; }
.habit-days span { aspect-ratio: 1; border-radius: 6px; background: var(--hairline); animation: pop .3s var(--ease) both; }
.habit-days span.on { background: var(--red); opacity: .85; }
.habit-days span.today { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--red); }
.habit-days span:nth-child(n+5) { animation-delay: .05s; } .habit-days span:nth-child(n+9) { animation-delay: .1s; } .habit-days span:nth-child(n+12) { animation-delay: .15s; }

.mini-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.mini-feature { padding: 26px; border-radius: var(--panel); background: var(--surface); box-shadow: var(--shadow); }
.mini-feature > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 18px; margin-bottom: 16px; }
.mini-feature h3 { font-size: 18px; margin-bottom: 8px; }
.mini-feature p { font-size: 14px; color: var(--secondary); }

/* 4. 기기 */
.device-stage { position: relative; padding-right: 13%; }
.mac-shot { margin: 0; border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lift); transform: perspective(1600px) rotateX(var(--tilt, 8deg)); transform-origin: center bottom; transition: transform .2s linear; }
.window-bar { display: flex; gap: 8px; padding: 14px 16px; background: var(--surface-2); border-bottom: 1px solid var(--hairline); }
.window-bar span { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.window-bar span:nth-child(2) { background: #FEBC2E; } .window-bar span:nth-child(3) { background: #28C840; }
.device-stage .phone { position: absolute; right: 0; bottom: -56px; width: 21%; margin: 0; padding: 8px; border-radius: 44px; background: #111; box-shadow: var(--shadow-lift); transform: translateY(var(--rise, 40px)); transition: transform .2s linear; }
.device-stage .phone img { border-radius: 36px; }

/* 5. 다운로드 */
.download .section-head { text-align: center; margin-inline: auto; }
.platform-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.platform { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 44px 28px 32px; border-radius: var(--panel); background: var(--surface); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.platform:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.platform.is-recommended { box-shadow: 0 0 0 2px var(--accent), var(--shadow-lift); }
.recommend { display: none; position: absolute; top: 16px; padding: 3px 12px; border-radius: var(--capsule); background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; }
.platform.is-recommended .recommend { display: inline-block; }
.platform-icon { width: 56px; height: 56px; margin: 12px 0 8px; fill: none; stroke: var(--text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.platform h3 { font-size: 22px; }
.platform p { font-size: 14px; color: var(--secondary); margin-bottom: 18px; }
.platform .button { width: 100%; margin-top: auto; }
.windows-steps { margin-top: 32px; padding: 32px 36px; border-radius: var(--panel); background: var(--surface); box-shadow: var(--shadow); }
.windows-steps h3 { font-size: 18px; margin-bottom: 20px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.step-number { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 750; }
.steps p { font-size: 15px; color: var(--secondary); }
.steps strong { color: var(--text); font-weight: 650; }

.beta { display: inline-block; vertical-align: middle; margin-left: 4px; padding: 2px 9px; border-radius: var(--capsule); border: 1.5px dashed var(--accent); color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: .02em; line-height: 1.4; }
.sub-link { margin-top: 10px; font-size: 13px; color: var(--secondary); text-decoration: none; }
.sub-link:hover { color: var(--accent); text-decoration: underline; }
.steps-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--secondary); }

/* 웹 버전 요청 */
.web-request { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 28px; margin-top: 20px; padding: 28px 32px; border-radius: var(--panel); background: linear-gradient(120deg, var(--accent-soft), var(--surface) 60%); box-shadow: var(--shadow); }
.web-request-art { position: relative; height: 92px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); padding: 10px 12px; display: flex; gap: 5px; align-items: flex-start; }
.browser-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--separator); }
.web-buddy { position: absolute; left: 50%; top: 54%; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 24px; font-weight: 800; animation: buddy 2.6s ease-in-out infinite; }
@keyframes buddy { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-7px) rotate(-8deg); } 60% { transform: translateY(0) rotate(6deg); } }
.web-request-text h3 { font-size: 20px; margin-bottom: 6px; }
.web-request-text p { font-size: 15px; color: var(--secondary); }
.web-request-action { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.request-button { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 12px 26px 12px 14px; border: 0; border-radius: var(--capsule); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; font-weight: 700; letter-spacing: -.02em; cursor: pointer; box-shadow: 0 0 0 2px var(--accent), 0 8px 22px color-mix(in srgb, var(--accent) 22%, transparent); transition: transform .2s var(--ease), background-color .25s, color .25s; }
.request-button:hover { transform: translateY(-2px) rotate(-1deg); }
.request-button:active { transform: scale(.94); }
.request-emoji { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); font-size: 20px; transition: transform .3s var(--ease); }
.request-button:hover .request-emoji { transform: rotate(-14deg) scale(1.1); }
.request-button.is-done { background: var(--accent); color: var(--on-accent); }
.request-button.is-done .request-emoji { background: color-mix(in srgb, var(--on-accent) 22%, transparent); }
.request-button.is-wiggle { animation: wiggle .5s var(--ease); }
@keyframes wiggle { 20% { transform: rotate(-6deg); } 40% { transform: rotate(5deg); } 60% { transform: rotate(-3deg); } 80% { transform: rotate(2deg); } }
.request-count { font-size: 14px; color: var(--secondary); }
.request-count strong { display: inline-block; min-width: 1ch; color: var(--accent); font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.request-count strong.is-bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: translateY(-6px) scale(1.35); } }
.burst { position: absolute; pointer-events: none; font-size: 13px; font-weight: 800; color: var(--accent); animation: burst .9s var(--ease) forwards; }
@keyframes burst { from { opacity: 1; transform: translate(0, 0) scale(.6); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.1) rotate(var(--r)); } }

/* 6. 자주 묻는 질문 */
.faq-list { max-width: 820px; display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: var(--corner); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 24px; font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--secondary); font-size: 18px; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--secondary); font-size: 16px; animation: panel-in .3s var(--ease) both; }

.closing { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; padding-top: 80px; padding-bottom: 140px; }
.closing img { border-radius: 22px; box-shadow: var(--shadow-lift); }
.closing h2 { font-size: clamp(32px, 4.6vw, 54px); }

/* 바닥글 */
.footer { border-top: 1px solid var(--hairline); }
.footer-inner { max-width: var(--page); margin: auto; padding: 32px var(--gutter) 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-brand img { border-radius: 7px; }
.footer-sub { font-weight: 450; font-size: 13px; color: var(--secondary); padding-left: 10px; border-left: 1px solid var(--separator); }
.footer nav { display: flex; gap: 24px; }
.footer nav a { color: var(--secondary); font-size: 14px; text-decoration: none; }
.footer nav a:hover { color: var(--text); }
.footer small { flex-basis: 100%; font-size: 12px; color: var(--tertiary); }

/* 스크롤 등장 (스크립트가 있을 때만 숨긴다) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reason-grid .reveal:nth-child(2), .js .mini-features .reveal:nth-child(2), .js .platform-grid .reveal:nth-child(2) { transition-delay: .08s; }
.js .reason-grid .reveal:nth-child(3), .js .mini-features .reveal:nth-child(3), .js .platform-grid .reveal:nth-child(3) { transition-delay: .16s; }
.js .reason-grid .reveal:nth-child(4), .js .mini-features .reveal:nth-child(4) { transition-delay: .24s; }
/* 첫 화면은 관찰을 기다리지 않고 열리자마자 올라온다 */
.js .hero .reveal { opacity: 1; transform: none; transition: none; animation: rise .9s var(--ease) both; }
.js .hero .reveal:nth-child(2) { animation-delay: .08s; } .js .hero .reveal:nth-child(3) { animation-delay: .16s; } .js .hero .reveal:nth-child(4) { animation-delay: .24s; }
.js .hero-demo.reveal { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* 반응형 */
@media (max-width: 1020px) {
  :root { --gutter: 32px; }
  .hero { grid-template-columns: 1fr; gap: 56px; padding-top: 40px; }
  .hero-demo { max-width: 560px; }
  .space-demo { grid-template-columns: 1fr; }
  .space-tabs { flex-direction: row; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
  .space-tab { flex: none; min-height: 52px; font-size: 16px; }
  .mini-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .merge { grid-template-columns: 1fr; justify-items: start; padding: 36px; }
  .merge-apps { flex-direction: row; flex-wrap: wrap; }
  .merge-arrow { width: 2px; height: 48px; margin-left: 24px; background: linear-gradient(180deg, transparent, var(--accent)); transform-origin: top; transform: scaleY(0); }
  .merge-arrow::after { right: -5px; top: auto; bottom: -10px; border: 6px solid transparent; border-top: 9px solid var(--accent); }
  .merge.is-visible .merge-arrow { transform: scaleY(1); }
  .merge-record { width: 100%; transform: translateY(-16px) scale(.97); }
  .merge.is-visible .a1, .merge.is-visible .a3 { transform: none; }
}
@media (max-width: 1020px) and (min-width: 761px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .web-request { grid-template-columns: 100px minmax(0, 1fr); }
  .web-request-action { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 18px; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  section { padding-top: 80px; padding-bottom: 80px; }
  .topbar-inner { height: 60px; }
  .top-nav { gap: 0; }
  .top-nav a:not(.button) { display: none; }
  .hero { padding-top: 24px; padding-bottom: 72px; }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .lede { font-size: 17px; margin-top: 22px; }
  .hero-actions .button { flex: 1 1 auto; }
  .demo-card { padding: 16px 14px 14px; border-radius: 24px; }
  .float-chip { font-size: 13px; padding: 6px 12px; }
  .float-chip:nth-of-type(2) { left: -6px; bottom: auto; top: -18px; }
  .float-chip:nth-of-type(1) { right: 4px; }
  .float-chip:nth-of-type(3) { display: none; }
  .section-head { margin-bottom: 36px; }
  .section-copy { font-size: 16px; }
  .merge { padding: 24px 20px; border-radius: 28px; margin-bottom: 40px; }
  .merge-app { padding: 6px 14px 6px 6px; font-size: 14px; }
  .merge-app i { width: 28px; height: 28px; font-size: 14px; }
  .merge-record { padding: 18px; grid-template-columns: 28px minmax(0, 1fr); }
  .merge-record strong { font-size: 17px; }
  .reason-grid { grid-template-columns: 1fr; gap: 14px; }
  .reason { padding: 26px 24px; }
  .reason h3 { font-size: 20px; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 36px; }
  .trust li { padding: 22px 18px; }
  .trust strong { font-size: 36px; }
  .space-stage { padding: 16px; min-height: 420px; border-radius: 26px; }
  .board { grid-template-columns: 1fr; }
  .board-col { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .board-col p { flex-basis: 100%; }
  .link-thumb { height: 64px; }
  .mini-features { grid-template-columns: 1fr; gap: 12px; }
  .device-stage { padding-right: 0; padding-bottom: 0; }
  .device-stage .phone { position: relative; width: 52%; margin: -30% auto 0; bottom: auto; border-radius: 34px; padding: 6px; }
  .device-stage .phone img { border-radius: 28px; }
  .platform-grid { grid-template-columns: 1fr; gap: 14px; }
  .platform { padding: 40px 22px 24px; }
  .windows-steps { padding: 24px 20px; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .web-request { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 18px; padding: 28px 20px; }
  .web-request-art { width: 120px; }
  .faq summary { padding: 14px 18px; font-size: 16px; }
  .faq details p { padding: 0 18px 18px; font-size: 15px; }
  .closing { padding-bottom: 100px; }
  .footer-inner { padding-bottom: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .merge-arrow { transform: none; }
  .merge-record { opacity: 1; transform: none; }
  .mac-shot, .device-stage .phone { transform: none; }
}
@media (forced-colors: active) {
  .chip, .suggestion, .demo-card, .reason, .platform, .space-stage { border: 1px solid CanvasText; }
}
