/* Lyncela — tokens from design handoff (ref/lyncela-Design). One accent, one radius scale (8/16/24). */
@font-face {
  font-family: "Pretendard";
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/Pretendard.woff2") format("woff2");
}

:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --wash: #F7F7F8;
  --line: rgba(112, 115, 124, 0.22);
  --ink: #2E2F33;
  --ink-88: rgba(46, 47, 51, 0.88);
  --ink-61: rgba(46, 47, 51, 0.61);
  --ink-28: rgba(46, 47, 51, 0.28);
  --blue: #0066FF;
  --blue-strong: #0054D1;
  --inverse-bg: #292A2D;
  --inverse-ink: #FFFFFF;
  --header-bg: rgba(255, 255, 255, 0.86);
  --shadow: 0 6px 24px rgba(23, 23, 23, 0.10);
  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(72px, 11vw, 150px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #141415; --surface: #1B1C1E; --wash: #212225;
  --line: rgba(174, 176, 182, 0.22);
  --ink: #F7F7F8; --ink-88: rgba(255, 255, 255, 0.88); --ink-61: rgba(255, 255, 255, 0.61); --ink-28: rgba(255, 255, 255, 0.38);
  --blue: #1A75FF; --blue-strong: #3385FF;
  --inverse-bg: #0F0F10;
  --header-bg: rgba(20, 20, 21, 0.86);
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.40);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141415; --surface: #1B1C1E; --wash: #212225;
    --line: rgba(174, 176, 182, 0.22);
    --ink: #F7F7F8; --ink-88: rgba(255, 255, 255, 0.88); --ink-61: rgba(255, 255, 255, 0.61); --ink-28: rgba(255, 255, 255, 0.38);
    --blue: #1A75FF; --blue-strong: #3385FF;
    --inverse-bg: #0F0F10;
    --header-bg: rgba(20, 20, 21, 0.86);
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.40);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-height: 1.6;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-strong); }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2 { letter-spacing: -0.04em; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1360px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  background: var(--header-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand img { width: 30px; height: 30px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); font-size: 15px; font-weight: 600; }
.site-nav a { color: var(--ink-61); }
.site-nav a:hover { color: var(--ink); }
.theme-toggle {
  padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: transparent; color: var(--ink-61);
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  transition: background 120ms ease-out, color 120ms ease-out;
}
.theme-toggle:hover { background: var(--wash); color: var(--ink); }
.theme-toggle::after { content: "다크"; }
:root[data-theme="dark"] .theme-toggle::after { content: "라이트"; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle::after { content: "라이트"; } }
:lang(en) .theme-toggle::after { content: "Dark"; }
:root[data-theme="dark"] :lang(en) .theme-toggle::after { content: "Light"; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :lang(en) .theme-toggle::after { content: "Light"; } }
@media (max-width: 720px) { .site-nav .nav-link { display: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 12px;
  font-size: 16px; font-weight: 700; white-space: nowrap;
  transition: background 120ms ease-out, transform 120ms ease-out, opacity 120ms ease-out;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #FFFFFF; }
.btn-primary:hover { background: var(--blue-strong); color: #FFFFFF; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--wash); color: var(--ink); }
.btn-small { padding: 10px 18px; border-radius: 8px; font-size: 15px; font-weight: 600; }

/* hero */
.hero { padding: clamp(56px, 9vw, 120px) var(--gutter) clamp(48px, 7vw, 88px); max-width: 1360px; margin: 0 auto; }
.hero h1 { font-size: clamp(44px, 8.6vw, 120px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800; }
.hero h1 .accent { position: relative; display: inline-block; }
.hero h1 .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.07em; height: 0.09em;
  background: var(--blue); opacity: 0.18;
}
.hero h1 .soft { display: block; color: var(--ink-61); font-weight: 700; }
.hero-lede { margin-top: clamp(28px, 4.5vw, 52px); max-width: 44ch; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.7; font-weight: 500; color: var(--ink-61); }
.hero-lede small { display: block; margin-top: 10px; font-size: 15px; color: var(--ink-28); font-weight: 500; }

/* hero visual: three real screenshots, staggered */
.hero-visual { padding: 0 var(--gutter) clamp(64px, 9vw, 120px); max-width: 1360px; margin: 0 auto; }
.shelf {
  position: relative; overflow: hidden;
  border-radius: 24px; border: 1px solid var(--line); background: var(--wash);
  aspect-ratio: 16 / 7;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2.5vw, 36px);
  padding: clamp(20px, 4vw, 56px) clamp(24px, 6vw, 96px) 0;
}
.shelf img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  border-radius: 22px 22px 0 0; border: 1px solid var(--line); border-bottom: 0;
  box-shadow: var(--shadow); background: var(--surface);
}
.shelf img:nth-child(2) { margin-top: clamp(24px, 5vw, 72px); }
.shelf img:nth-child(3) { margin-top: clamp(12px, 2.5vw, 36px); }
@media (max-width: 640px) {
  .shelf { aspect-ratio: 4 / 3; grid-template-columns: repeat(2, 1fr); }
  .shelf img:nth-child(3) { display: none; }
}

/* studio */
.studio { background: var(--wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.studio .wrap { max-width: 1100px; padding-top: var(--section); padding-bottom: var(--section); display: flex; flex-direction: column; gap: clamp(48px, 8vw, 104px); }
.statement { font-size: clamp(28px, 4.4vw, 62px); line-height: 1.28; letter-spacing: -0.035em; font-weight: 700; }
.statement .soft { color: var(--ink-61); }
.statement .blue { color: var(--blue); }
.principles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.principles > div { background: var(--surface); padding: 28px 24px; display: flex; flex-direction: column; gap: 8px; }
.principles h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.principles p { font-size: 15px; line-height: 1.65; font-weight: 500; color: var(--ink-61); }

/* section header */
.section { padding-top: var(--section); padding-bottom: var(--section); }
.section.tight { padding-top: 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 640px; }
.section-head h2 { font-size: clamp(32px, 5vw, 68px); line-height: 1.08; font-weight: 800; }
.section-head p { margin-top: 16px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.7; font-weight: 500; color: var(--ink-61); }

/* app cards */
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 2vw, 28px); }
.app-card {
  display: flex; flex-direction: column; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: box-shadow 160ms ease-out, transform 160ms ease-out;
}
.app-card:hover { color: var(--ink); box-shadow: var(--shadow); transform: translateY(-3px); }
.app-card:active { transform: translateY(0); }
.app-media { position: relative; aspect-ratio: 4 / 3; background: var(--wash); border-bottom: 1px solid var(--line); overflow: hidden; }
.app-media img.shot {
  position: absolute; left: 18%; right: 18%; top: 12%; width: 64%; height: auto;
  border-radius: 20px 20px 0 0; border: 1px solid var(--line); border-bottom: 0; box-shadow: var(--shadow);
}
.app-media img.icon { position: absolute; left: 20px; top: 20px; width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.app-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; font-weight: 600; color: var(--ink-28); }
.tag { padding: 4px 10px; border-radius: 9999px; background: var(--wash); border: 1px solid var(--line); color: var(--ink-61); }
.app-body h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.025em; }
.app-body .en { font-size: 13px; font-weight: 600; color: var(--ink-28); }
.app-body p { font-size: 15px; line-height: 1.65; font-weight: 500; color: var(--ink-61); }
.app-body .more { margin-top: auto; padding-top: 16px; font-size: 14px; font-weight: 700; color: var(--blue); }

/* how */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(20px, 2.5vw, 36px); }
.steps > div { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; border-top: 2px solid var(--ink); }
.steps h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.025em; }
.steps p { font-size: 15px; line-height: 1.7; font-weight: 500; color: var(--ink-61); }

/* support */
.support { border-top: 1px solid var(--line); }
.support .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(40px, 6vw, 80px); align-items: start; }
.support h2 { font-size: clamp(34px, 5.6vw, 76px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 800; }
.support .lede { margin-top: 20px; max-width: 40ch; font-size: 17px; line-height: 1.75; font-weight: 500; color: var(--ink-61); }
.support-list { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.support-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--line); color: var(--ink); }
.support-row:last-child { border-bottom: 0; }
.support-row .label { display: flex; align-items: center; gap: 14px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.support-row .label img { width: 36px; height: 36px; border-radius: 9px; }
.support-row .links { display: flex; gap: 18px; font-size: 14px; font-weight: 700; }
.support-row .links a { color: var(--blue); }
.support-row.mail { transition: background 120ms ease-out; }
.support-row.mail:hover { background: var(--wash); color: var(--ink); }
.support-row.mail .label { flex-direction: column; align-items: flex-start; gap: 4px; }
.support-row.mail .label small { font-size: 13px; font-weight: 600; color: var(--ink-28); }
.support-row.mail .go { font-size: 15px; font-weight: 700; color: var(--blue); }
@media (max-width: 480px) { .support-row { flex-direction: column; align-items: flex-start; } }

/* footer */
.site-footer { background: var(--wash); border-top: 1px solid var(--line); }
.site-footer .top { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; padding-top: clamp(44px, 6vw, 72px); padding-bottom: clamp(44px, 6vw, 72px); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 48px; height: 48px; object-fit: contain; }
.footer-brand .name { display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.025em; line-height: 1; }
.footer-brand .sub { display: block; margin-top: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.22em; color: var(--ink-61); line-height: 1; }
.footer-tagline { margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--ink-61); max-width: 32ch; line-height: 1.6; }
.footer-biz { margin-top: 18px; font-size: 13px; line-height: 1.7; font-weight: 500; color: var(--ink-61); }
.footer-biz a { color: var(--ink-61); }
.footer-biz a:hover { color: var(--ink); }
.footer-cols { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 72px); }
.footer-cols div { display: flex; flex-direction: column; gap: 12px; font-size: 14px; font-weight: 500; }
.footer-cols strong { color: var(--ink); font-weight: 700; }
.footer-cols a { color: var(--ink-61); }
.footer-cols a:hover { color: var(--ink); }
.site-footer .legal { border-top: 1px solid var(--line); }
.site-footer .legal .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; font-size: 13px; font-weight: 500; color: var(--ink-28); }

/* inverse band (app pages) */
.band { background: var(--inverse-bg); color: var(--inverse-ink); border-top: 1px solid var(--line); }
.band .wrap { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(64px, 9vw, 128px); }
.band h2 { font-size: clamp(30px, 5vw, 64px); line-height: 1.08; letter-spacing: -0.045em; font-weight: 800; max-width: 20ch; }
.band .btn { background: #FFFFFF; color: #2E2F33; padding: 16px 28px; font-size: 17px; }
.band .btn:hover { background: #FFFFFF; color: #2E2F33; opacity: 0.86; }

/* app detail */
.detail-hero { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(40px, 6vw, 72px); }
.back { display: inline-block; font-size: 14px; font-weight: 600; color: var(--ink-61); margin-bottom: clamp(24px, 4vw, 44px); }
.back:hover { color: var(--ink); }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(36px, 5vw, 72px); align-items: center; }
.detail-hero h1 { font-size: clamp(38px, 6.6vw, 88px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 800; margin-top: 22px; }
.detail-hero .en { display: block; margin-top: 16px; font-size: 16px; font-weight: 600; color: var(--ink-28); }
.detail-hero .lede { margin-top: 24px; max-width: 40ch; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.72; font-weight: 500; color: var(--ink-61); }
.detail-hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.detail-hero .note { font-size: 14px; font-weight: 600; color: var(--ink-61); align-self: center; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.shots img { border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.shots img:nth-child(2) { margin-top: clamp(20px, 4vw, 48px); }
.features { background: var(--wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features .wrap { padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(64px, 9vw, 128px); }
.features h2 { font-size: clamp(28px, 4.4vw, 56px); line-height: 1.12; font-weight: 800; max-width: 24ch; margin-bottom: clamp(36px, 5vw, 64px); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(20px, 2.5vw, 32px); }
.feature-grid > div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 12px; }
.feature-grid h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.025em; }
.feature-grid p { font-size: 15px; line-height: 1.7; font-weight: 500; color: var(--ink-61); }
.detail-links { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); display: flex; flex-wrap: wrap; gap: 16px 32px; font-size: 15px; font-weight: 700; }

/* prose pages (support / privacy) */
.sheet { max-width: 720px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--gutter) clamp(64px, 9vw, 120px); }
.sheet h1 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.12; font-weight: 800; margin-top: 12px; }
.sheet .sub { margin-top: 12px; font-size: 15px; font-weight: 500; color: var(--ink-61); }
.sheet h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin: 44px 0 12px; }
.sheet h3 { font-size: 16px; font-weight: 700; margin: 24px 0 6px; }
.sheet p, .sheet li { font-size: 16px; line-height: 1.75; font-weight: 500; color: var(--ink-88); }
.sheet p + p { margin-top: 12px; }
.sheet ul { padding-left: 1.15rem; margin: 10px 0; }
.sheet li { margin-bottom: 6px; }
.sheet li ul { margin: 6px 0 0; }
.sheet a { border-bottom: 1px solid var(--line); }
.sheet a:hover { border-color: var(--blue-strong); }
.sheet .rule { height: 1px; background: var(--line); margin: 40px 0; }
.sheet .qa { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin-bottom: 12px; }
.sheet .qa h3 { margin: 0 0 6px; font-size: 16px; }
.sheet .qa p { font-size: 15px; color: var(--ink-61); }
.sheet .qa p + p { margin-top: 8px; }
.sheet .biz { list-style: none; padding: 0; }
.sheet strong { font-weight: 700; color: var(--ink); }

/* reveal on scroll: pure CSS scroll-driven animation, off under reduced motion */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 28%;
    }
    @keyframes reveal { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  }
}
