:root {
  color-scheme: light;
  --ink: #28231e;
  --muted: #71685f;
  --paper: #f6efe5;
  --card: rgba(255, 252, 247, 0.84);
  --line: rgba(76, 58, 43, 0.16);
  --coffee: #8f4829;
  --coffee-bright: #c76b36;
  --sage: #68755d;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 82% 8%, rgba(199, 107, 54, 0.16), transparent 29rem),
    radial-gradient(circle at 8% 78%, rgba(104, 117, 93, 0.14), transparent 26rem),
    var(--paper);
}

a { color: inherit; text-underline-offset: 0.22em; }

.site-header,
main,
footer {
  width: min(100% - 2rem, 74rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.5rem;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand-mark {
  width: 1.75rem;
  height: 1.75rem;
  border: 0.42rem solid var(--coffee);
  border-top-color: var(--coffee-bright);
  border-radius: 50%;
  transform: rotate(-18deg);
  box-shadow: inset 0 0 0 0.18rem var(--paper);
}

nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.3rem; }
nav a { color: var(--muted); font-size: 0.9rem; font-weight: 650; text-decoration: none; }
nav a:hover { color: var(--coffee); }
.language-link { padding-left: 1.2rem; border-left: 1px solid var(--line); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(19rem, 0.92fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
  min-height: calc(100vh - 8rem);
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--coffee);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p { margin-top: 0; }

h1 {
  margin-bottom: 1.8rem;
  font-size: clamp(3.1rem, 7vw, 6.5rem);
  line-height: 0.96;
  letter-spacing: -0.075em;
}

.lead {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.7;
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 2.2rem; }
.hero-actions a { color: var(--coffee); font-weight: 750; }
.hero-actions .store-badge {
  display: inline-flex;
  padding: 0.86rem 1.15rem;
  border-radius: 0.85rem;
  color: #fffaf4;
  background: var(--ink);
  font-weight: 750;
  box-shadow: 0 0.8rem 2rem rgba(40, 35, 30, 0.16);
  text-decoration: none;
}

.trace-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 2.2rem;
  background: var(--card);
  box-shadow: 0 2rem 5rem rgba(80, 54, 35, 0.13);
  backdrop-filter: blur(18px);
  transform: rotate(1.5deg);
}

.trace-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; color: var(--muted); }
.trace-card-header strong { color: var(--ink); font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.06em; }
.trace-card svg { display: block; width: 100%; margin-top: 1.2rem; overflow: visible; }
.grid-line { fill: none; stroke: rgba(76, 58, 43, 0.1); stroke-width: 1; }
.trace-fill { fill: url(#traceFill); }
.trace-line { fill: none; stroke: var(--coffee-bright); stroke-linecap: round; stroke-width: 7; }
.trace-card circle { fill: #fffaf4; stroke: var(--coffee); stroke-width: 5; }
.trace-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.8rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem 0 clamp(5rem, 9vw, 9rem);
}

.feature-grid article {
  min-height: 17rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background: rgba(255, 252, 247, 0.7);
}

.number { color: var(--coffee-bright); font-size: 0.8rem; font-weight: 850; letter-spacing: 0.12em; }
.feature-grid h2 { margin: 4rem 0 0.8rem; font-size: 1.35rem; letter-spacing: -0.04em; }
.feature-grid p,
.explanation p,
.privacy-callout > p,
.legal section p,
.legal section li { color: var(--muted); line-height: 1.75; }

.explanation {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 8vw, 8rem);
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-block: 1px solid var(--line);
}

.explanation h2,
.privacy-callout h2,
.page-header h1 { font-size: clamp(2.5rem, 5.7vw, 5rem); line-height: 1.02; letter-spacing: -0.065em; }
.explanation-copy { padding-top: 1rem; font-size: 1.08rem; }

.privacy-callout {
  max-width: 55rem;
  margin: clamp(5rem, 10vw, 10rem) auto;
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: 2rem;
  color: #f9f2e9;
  background: var(--ink);
  box-shadow: 0 2rem 5rem rgba(40, 35, 30, 0.18);
}

.privacy-callout .eyebrow { color: #e9a878; }
.privacy-callout h2 { color: #fffaf4; }
.privacy-callout > p { color: #d6cec5; }
.privacy-callout a { display: inline-block; margin-top: 1rem; color: #f1b386; font-weight: 800; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
footer p { margin: 0; }

.legal { width: min(100% - 2rem, 52rem); padding: clamp(3rem, 7vw, 6rem) 0 5rem; }
.back { display: inline-block; margin-bottom: 3.5rem; color: var(--coffee); font-weight: 750; text-decoration: none; }
.page-header { margin-bottom: 3rem; }
.page-header h1 { margin-bottom: 1.5rem; }
.updated { color: var(--muted); font-size: 0.9rem; }

.legal section,
.notice {
  margin-top: 1rem;
  padding: clamp(1.35rem, 4vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: rgba(255, 252, 247, 0.78);
}

.legal section h2 { margin-bottom: 0.85rem; font-size: 1.25rem; letter-spacing: -0.035em; }
.legal section h3 { margin: 1.5rem 0 0.55rem; color: #51483f; font-size: 1rem; }
.legal section p:last-child { margin-bottom: 0; }
.legal section ul { margin-bottom: 0; padding-left: 1.3rem; }
.notice { margin-bottom: 2rem; border-color: rgba(104, 117, 93, 0.3); background: rgba(237, 241, 231, 0.82); }
.notice strong { color: var(--sage); }
.contact-button {
  display: inline-flex;
  margin-top: 0.5rem;
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  color: #fffaf4;
  background: var(--coffee);
  font-weight: 780;
  text-decoration: none;
}

@media (max-width: 780px) {
  .site-header { align-items: flex-start; padding-top: 1.4rem; }
  .site-header nav { justify-content: flex-end; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 5rem; }
  .trace-card { transform: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: auto; }
  .feature-grid h2 { margin-top: 2.5rem; }
  .explanation { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .brand span:last-child { display: none; }
  .site-header nav { gap: 0.6rem 0.85rem; }
  .language-link { padding-left: 0.8rem; }
  h1 { font-size: clamp(2.9rem, 15vw, 4.6rem); }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: no-preference) {
  .feature-grid article { transition: transform 180ms ease, box-shadow 180ms ease; }
  .feature-grid article:hover { transform: translateY(-0.25rem); box-shadow: 0 1.3rem 3rem rgba(80, 54, 35, 0.1); }
}
