/* Suho landing — suho-design skill tokens, static, framework-free */

/* no-CLS font fallbacks */
@font-face {
  font-family: "General Sans Fallback";
  src: local("Segoe UI Semibold"), local("Arial");
  size-adjust: 97%;
  ascent-override: 94%;
}
@font-face {
  font-family: "Pretendard Fallback";
  src: local("Segoe UI"), local("Arial");
  size-adjust: 100%;
}

:root {
  /* suho-design v2 — hanji light */
  --hanji: #faf7f0;
  --hanji-raised: #ffffff;
  --ink: #1c1917;
  --ink-dim: #6e6862;
  --line: #e8e2d8;
  --seal: #d93a25;
  --seal-deep: #a82415;
  --gild: #b08a47;
  --jade: #3e7a5e;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --display: "General Sans", "General Sans Fallback", system-ui, sans-serif;
  --body: "Pretendard Variable", Pretendard, "Pretendard Fallback", "Malgun Gothic", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--hanji);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; border-radius: 4px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.mono { font-family: var(--mono); font-size: 0.88em; }
.dim { color: var(--ink-dim); }
.jade { color: var(--jade); }
.hanja { color: var(--seal-deep); font-size: 0.82em; margin-left: 0.28em; }

/* ---------- nav ---------- */
.nav {
  max-width: 1120px; margin: 0 auto; padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.wordmark { font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.01em; }
.nav-link { color: var(--ink-dim); text-decoration: none; font-size: 0.95rem; }
.nav-link:hover { color: var(--ink); }
.btn-launch {
  background: linear-gradient(135deg, var(--seal), var(--seal-deep));
  color: #fff; text-decoration: none; font-weight: 600; font-size: 0.9rem;
  padding: 8px 17px; border-radius: 9px; box-shadow: 0 4px 14px rgba(217, 58, 37, 0.22);
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.btn-launch:hover { transform: translateY(-1px); box-shadow: 0 7px 20px rgba(217, 58, 37, 0.3); }

main { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- 1 · hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px;
  align-items: center; padding: 40px 0 60px;
}
h1 {
  font-family: var(--display); font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(2.3rem, 5.2vw, 3.6rem); line-height: 1.07; margin: 0 0 16px;
}
.sub { color: var(--ink-dim); font-size: 1.15rem; max-width: 34ch; margin: 0 0 26px; }
.ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 10px;
  text-decoration: none; font-weight: 600; font-size: 1rem;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.btn-primary {
  background: linear-gradient(135deg, var(--seal), var(--seal-deep));
  color: #fff; box-shadow: 0 6px 22px rgba(217, 58, 37, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(217, 58, 37, 0.32); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-dim); }

/* the signature: 3D Suho Card */
.hero-stage {
  position: relative; perspective: 1200px;
  display: grid; place-items: center; padding: 30px 0;
  background: radial-gradient(closest-side, var(--hanji-raised) 40%, var(--hanji) 100%);
  border-radius: 24px;
}
.card3d { will-change: transform; transition: transform 160ms ease-out; }
.card-face {
  width: min(420px, 82vw); aspect-ratio: 1.586;
  border-radius: 18px; padding: 26px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(150deg, #ffffff 0%, #fdfaf4 55%, #faf7f0 100%);
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(28, 25, 23, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.card-top { display: flex; align-items: center; gap: 16px; }
.card-id { flex: 1; }
.card-name { font-family: var(--display); font-weight: 600; font-size: 1.55rem; }
.card-upid { color: var(--seal-deep); font-size: 1rem; }
.card-qr { border-radius: 8px; width: 72px; height: 72px; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; }
.chip {
  font-family: var(--mono); font-size: 0.8rem; color: var(--gild);
  border: 1px solid rgba(168, 127, 46, 0.5); border-radius: 999px; padding: 2px 12px;
}
.card-net { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-dim); }
.card-glow {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 62%; height: 40px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(217, 58, 37, 0.18), transparent 70%);
  filter: blur(14px); pointer-events: none;
}

/* seal mark: ink pressed on paper, never flat */
.seal {
  display: inline-flex; align-items: center; justify-content: center;
  border: 2.5px solid var(--seal); border-radius: 7px; color: var(--seal);
  font-weight: 700; transform: rotate(-4deg);
  box-shadow: inset 0 0 8px rgba(120, 30, 20, 0.3);
  user-select: none;
}
.seal-hero { width: 58px; height: 58px; font-size: 1.25rem; border-width: 3px; border-radius: 10px; }

/* hero load sequence: ink -> card rises -> seal stamps -> copy fades */
body.pre .hero-copy > *, body.pre .card3d, body.pre .card-glow { opacity: 0; }
body.loaded .card3d { animation: rise 420ms var(--ease) 150ms both; }
body.loaded .card-glow { animation: fade 420ms var(--ease) 300ms both; }
body.loaded .seal-hero { animation: stamp 300ms var(--ease) 620ms both; }
body.loaded .hero-copy h1 { animation: fade 380ms var(--ease) 800ms both; }
body.loaded .hero-copy .sub { animation: fade 380ms var(--ease) 900ms both; }
body.loaded .hero-copy .ctas { animation: fade 380ms var(--ease) 1000ms both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes stamp {
  0% { opacity: 0; transform: scale(1.18) rotate(0deg); }
  60% { opacity: 1; transform: scale(0.97) rotate(-5deg); }
  100% { opacity: 1; transform: scale(1) rotate(-4deg); }
}

/* ---------- shared section rhythm ---------- */
section { padding: 72px 0; }
h2 {
  font-family: var(--display); font-weight: 600; letter-spacing: -0.015em;
  font-size: clamp(1.7rem, 3vw, 2.1rem); margin: 0 0 14px;
}
.eyebrow { color: var(--ink-dim); font-size: 0.85rem; letter-spacing: 0.04em; margin: 0 0 10px; }
.eyebrow [lang="ko"] { color: var(--gild); }

/* scroll reveals: 14px rise + fade, 80ms stagger */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 300ms var(--ease), transform 300ms var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 2 · the problem ---------- */
.problem { max-width: 720px; }
.problem .line {
  font-family: var(--display); font-weight: 500; letter-spacing: -0.01em;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin: 26px 0 14px;
}
.gild-rule {
  border: 0; height: 1px; margin: 0; width: 140px;
  background: linear-gradient(90deg, rgba(168, 127, 46, 0.6), transparent);
}

/* ---------- 3 · how suho guards ---------- */
/* Text cards — the words carry the features; the seal is the only mark, and only
   where a feature is about verification. */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 34px; }
.gcard {
  background: var(--hanji-raised);
  border: 1px solid var(--line); border-radius: 14px; padding: 28px 26px;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.05);
  display: flex; flex-direction: column;
}
/* the onboarding moment leads the grid, full width */
.gcard.wide { grid-column: 1 / -1; }
.gcard-head { display: flex; align-items: center; gap: 13px; margin-bottom: 9px; }
.gcard-head h3 { margin: 0; }
.seal-card { width: 36px; height: 36px; font-size: 0.9rem; border-width: 2.5px; border-radius: 8px; flex: none; }
.gcard h3 { font-family: var(--display); font-weight: 600; font-size: 1.18rem; margin: 0 0 9px; letter-spacing: -0.01em; }
.gcard p { color: var(--ink-dim); font-size: 0.98rem; line-height: 1.5; margin: 0 0 18px; max-width: 46ch; }
.fact {
  font-family: var(--mono); font-size: 0.78rem; color: var(--ink-dim);
  text-decoration: none; border-bottom: 1px dotted rgba(110, 106, 99, 0.5);
  align-self: flex-start; margin-top: auto; /* pin to card bottom for even rows */
}
.fact:hover { color: var(--seal-deep); border-bottom-color: var(--seal); }

/* ---------- 4 · live on giwa ---------- */
.live { padding-top: 40px; padding-bottom: 40px; }
.strip {
  list-style: none; margin: 0; padding: 26px 0; display: flex; flex-wrap: wrap;
  gap: 14px 38px; justify-content: center;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.strip a { font-family: var(--mono); font-size: 0.9rem; color: var(--ink-dim); text-decoration: none; }
.strip a:hover { color: var(--ink); }
.strip .cred { color: var(--gild); }

/* ---------- 5 · footer ---------- */
footer {
  border-top: 1px solid var(--line); margin-top: 24px; padding: 56px 24px 52px;
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
}
.demo-note { color: var(--ink-dim); margin: 0; }
.foot-links { display: flex; gap: 12px; color: var(--ink-dim); }
.foot-links a { color: var(--ink); text-decoration: none; }
.foot-links a:hover { color: var(--seal-deep); }
.honesty { color: var(--ink-dim); font-size: 0.78rem; font-style: italic; max-width: 52ch; margin: 2px 0 10px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 40px; padding-top: 24px; }
  .hero-stage { order: -1; }
  .grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
@media (max-width: 420px) {
  body { font-size: 16px; }
  .card-face { padding: 18px; }
  .card-name { font-size: 1.25rem; }
  .card-qr { width: 56px; height: 56px; }
  .btn { width: 100%; text-align: center; }
}

/* ---------- reduced motion: transforms collapse to fades ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.loaded .card3d,
  body.loaded .card-glow,
  body.loaded .seal-hero,
  body.loaded .hero-copy h1,
  body.loaded .hero-copy .sub,
  body.loaded .hero-copy .ctas { animation: fade 200ms ease both; }
  .reveal { transform: none; transition: opacity 200ms ease; }
  .btn-primary:hover { transform: none; }
  .card3d { transition: none; }
}

/* header links (Docs + GitHub) */
.nav-links { display: flex; gap: 20px; align-items: baseline; }
