:root {
  color-scheme: light;
  --bg: #f6f6f1;
  --surface: #fffffc;
  --surface-soft: #ecece7;
  --text: #17181b;
  --text-soft: #676970;
  --line: #deded7;
  --accent: #5a50d3;
  --accent-hover: #4b42be;
  --accent-soft: #ece9fb;
  --dark: #111214;
  --dark-surface: #1b1c1f;
  --dark-line: #303137;
  --dark-text: #f5f5f0;
  --dark-muted: #a1a2a8;
  --radius: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Noto Sans KR", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 42%, transparent);
  outline-offset: 3px;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-right > a {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 160ms ease;
}

.nav-right > a:hover {
  color: var(--text);
}

.nav-right .nav-store {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
}

.lang-wrap select {
  padding: 9px 28px 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.hero {
  min-height: calc(100vh - 72px);
  padding-top: clamp(72px, 10vw, 132px);
  padding-bottom: clamp(72px, 9vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow > span:first-child {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: clamp(3.6rem, 7.4vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
  font-weight: 800;
}

.hero h1 span {
  display: block;
}

.hero h1 span:last-child {
  color: var(--accent);
}

.hero-sub {
  max-width: 620px;
  margin: 34px 0 0;
  color: var(--text);
  font-size: clamp(1.12rem, 1.8vw, 1.38rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.hero-desc {
  max-width: 610px;
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 1rem;
}

.cta-row {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  min-height: 52px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: color-mix(in srgb, var(--text-soft) 50%, var(--line));
}

.trust-row {
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  list-style: none;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

.trust-row li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-row li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
}

.product-preview {
  position: relative;
  width: min(100%, 470px);
  justify-self: end;
  padding: 30px;
  border: 1px solid var(--dark-line);
  border-radius: 30px;
  background: var(--dark);
  color: var(--dark-text);
  box-shadow: 0 28px 70px rgba(17, 18, 20, 0.16);
}

.preview-topline {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--dark-muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.15em;
}

.preview-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8078f2;
}

.product-preview > h2 {
  margin: 13px 0 16px;
  font-size: clamp(2.1rem, 4vw, 2.85rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.preview-filter {
  width: fit-content;
  padding: 8px 11px;
  display: flex;
  gap: 18px;
  align-items: center;
  border-radius: 10px;
  background: #242529;
  color: var(--dark-text);
  font-size: 0.78rem;
  font-weight: 650;
}

.preview-status {
  margin: 12px 0 20px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--dark-muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.preview-status span:first-child {
  color: #8078f2;
}

.preview-card {
  padding: 22px;
  border: 1px solid var(--dark-line);
  border-radius: 18px;
  background: var(--dark-surface);
}

.preview-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-symbol {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #27283b;
  color: #918af9;
  font-weight: 800;
}

.preview-label {
  padding: 5px 9px;
  border-radius: 8px;
  background: #27243e;
  color: #9c96ff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.preview-card h3 {
  margin: 26px 0 8px;
  font-size: 1.35rem;
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.preview-card p {
  margin: 0;
  color: var(--dark-muted);
  font-size: 0.78rem;
}

.preview-action {
  margin-top: 22px;
  padding: 12px;
  border-radius: 11px;
  background: #8078f2;
  color: #fff;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 750;
}

.preview-insight {
  margin-top: 12px;
  padding: 17px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 12px;
  border: 1px solid var(--dark-line);
  border-radius: 16px;
  background: var(--dark-surface);
}

.preview-insight span {
  display: block;
  color: var(--dark-muted);
  font-size: 0.56rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.preview-insight strong {
  display: block;
  margin-top: 2px;
  font-size: 1.75rem;
  line-height: 1;
}

.preview-insight p {
  margin: 0;
  color: var(--dark-muted);
  font-size: 0.7rem;
}

.preview-bars {
  height: 44px;
  display: flex;
  align-items: end;
  gap: 4px;
}

.preview-bars i {
  width: 6px;
  min-height: 6px;
  border-radius: 3px;
  background: #8078f2;
}

.section {
  padding-top: clamp(80px, 10vw, 136px);
  padding-bottom: clamp(80px, 10vw, 136px);
}

.section-intro {
  max-width: 760px;
}

.section-intro h2,
.routine-heading h2,
.support-copy h2 {
  margin: 18px 0 0;
  font-size: clamp(2.2rem, 4.8vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.section-intro > p:last-child,
.support-copy > p {
  max-width: 640px;
  margin: 20px 0 0;
  color: var(--text-soft);
  font-size: 1.02rem;
}

.feature-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.feature-card {
  min-height: 330px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-number {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.feature-card h3 {
  margin: auto 0 10px;
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.feature-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.feature-card-accent {
  background: var(--accent-soft);
}

.mini-heatmap {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.mini-heatmap i {
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 4px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.mini-heatmap i.mid {
  background: color-mix(in srgb, var(--accent) 48%, var(--surface));
}

.mini-heatmap i.on {
  background: var(--accent);
}

.routine-section {
  padding: clamp(80px, 10vw, 136px) 0;
  background: var(--dark);
  color: var(--dark-text);
}

.routine-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(54px, 8vw, 120px);
}

.routine-heading {
  align-self: start;
  position: sticky;
  top: 112px;
}

.routine-heading .section-label {
  color: #918af9;
}

.routine-heading h2 {
  max-width: 520px;
}

.flow-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  min-height: 154px;
  padding: 24px 0;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  border-top: 1px solid var(--dark-line);
}

.flow-list li:last-child {
  border-bottom: 1px solid var(--dark-line);
}

.flow-list > li > span {
  color: #918af9;
  font-size: 0.72rem;
  font-weight: 800;
}

.flow-list h3 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}

.flow-list p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--dark-muted);
  font-size: 0.94rem;
}

.support-panel {
  padding: clamp(28px, 5vw, 64px);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(42px, 8vw, 110px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.support-copy h2 {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
}

.coffee-link {
  width: fit-content;
  margin-top: 28px;
  min-height: 48px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 13px;
  background: var(--accent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 750;
}

.wallet-list {
  align-self: center;
}

.wallet {
  padding: 17px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
}

.wallet:last-child {
  border-bottom: 1px solid var(--line);
}

.wallet span {
  display: block;
  margin-bottom: 4px;
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.wallet code {
  display: block;
  max-width: 480px;
  color: var(--text);
  font-size: 0.74rem;
  word-break: break-all;
}

.copy-btn {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 750;
  cursor: pointer;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  min-height: 112px;
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 800;
}

.footer-inner p:not(.footer-brand) {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 0.75rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 650;
}

.footer-links a:hover {
  color: var(--text);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 30;
  padding: 10px 14px;
  border: 1px solid var(--dark-line);
  border-radius: 11px;
  background: var(--dark);
  color: var(--dark-text);
  font-size: 0.78rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.legal-page {
  background: var(--bg);
}

.legal-header {
  border-bottom: 1px solid var(--line);
}

.legal-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-back {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 650;
}

.legal-back:hover {
  color: var(--text);
}

.legal-main {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) 0;
}

.legal-main article + article {
  margin-top: 84px;
  padding-top: 84px;
  border-top: 1px solid var(--line);
}

.legal-main h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.legal-date {
  margin: 18px 0 48px;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 650;
}

.legal-main h2 {
  margin: 38px 0 8px;
  font-size: 1.15rem;
  letter-spacing: -0.025em;
}

.legal-main p {
  margin: 0 0 14px;
  color: var(--text-soft);
}

.legal-main a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #111214;
    --surface: #1b1c1f;
    --surface-soft: #242529;
    --text: #f5f5f0;
    --text-soft: #a1a2a8;
    --line: #303137;
    --accent: #8078f2;
    --accent-hover: #918af9;
    --accent-soft: #24223a;
  }

  .site-header {
    background: color-mix(in srgb, var(--bg) 88%, transparent);
  }

  .product-preview {
    box-shadow: none;
  }

  .routine-section {
    background: #090a0b;
  }
}

@media (max-width: 940px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .product-preview {
    width: min(100%, 620px);
    justify-self: start;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 250px;
  }

  .routine-layout,
  .support-panel {
    grid-template-columns: 1fr;
  }

  .routine-heading {
    position: static;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(var(--container), calc(100% - 32px));
  }

  .nav {
    min-height: 64px;
  }

  .nav-right {
    gap: 8px;
  }

  .nav-right > a:not(.nav-store) {
    display: none;
  }

  .nav-store {
    font-size: 0.76rem !important;
  }

  .hero {
    padding-top: 64px;
    padding-bottom: 80px;
    gap: 54px;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 17vw, 5.1rem);
  }

  .hero-sub {
    margin-top: 28px;
  }

  .cta-row {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .trust-row {
    display: grid;
  }

  .product-preview {
    padding: 22px;
    border-radius: 24px;
  }

  .preview-insight {
    grid-template-columns: auto 1fr;
  }

  .preview-bars {
    display: none;
  }

  .section-intro h2,
  .routine-heading h2,
  .support-copy h2 {
    font-size: 2.5rem;
  }

  .feature-grid {
    margin-top: 36px;
  }

  .support-panel {
    padding: 24px;
    border-radius: 20px;
  }

  .wallet {
    align-items: flex-start;
  }

  .wallet code {
    max-width: 210px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-main {
    width: min(760px, calc(100% - 32px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
