@font-face {
  font-family: "TNS Landing";
  src: url("/assets/pretendard-landing.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #f7f8fa;
  --surface: #fff;
  --ink: #202938;
  --muted: #536174;
  --line: #dbe1e9;
  --night: #0b1423;
  --night-panel: #101d30;
  --light: #f4f7fb;
  --light-muted: #bbc7d9;
  --accent: #b7d1ff;
  --focus: #1d4ed8;
  --font: "TNS Landing", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --gutter: clamp(24px, 6.25vw, 96px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 400 16px/1.65 var(--font); }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
.footer { --focus: var(--accent); }
.wrap { width: min(calc(100% - 2 * var(--gutter)), 1248px); margin-inline: auto; }
section[id] { scroll-margin-block-start: 16px; }

.skip-link {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: var(--gutter);
  transform: translateY(calc(-100% - 20px));
  padding: 10px 16px;
  color: var(--ink);
  background: var(--surface);
}
.skip-link:focus { transform: translateY(0); outline-color: var(--focus); }

.home-page {
  --canvas: #fbfaf4;
  --ink: #17223a;
  --muted: #4c5868;
  --line: #e2dfd3;
  --home-blue: #2648ce;
  --home-yellow: #fff0a8;
  --home-pale-blue: #e8f0ff;
  --home-error: #9c2424;
  --home-success: #1b5a3e;
}

.home-page .site-header { border-color: var(--line); }
.home-page .brand-mark { border-color: var(--ink); background: var(--home-yellow); color: var(--ink); }
.home-page .wordmark-dot { color: var(--home-blue); }
.home-page .nav-scenes { color: var(--muted); }
.home-page .nav-scenes:hover { color: var(--ink); }
.home-page .workspace-link { color: var(--ink); border-color: var(--line); background: var(--surface); }
.home-page .workspace-link:hover { color: var(--home-blue); border-color: var(--home-blue); }

.site-header {
  --header-height: 76px;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgb(244 247 251 / .19);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  width: fit-content;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.047em;
  line-height: 1;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-right: 9px;
  border: 1px solid rgb(244 247 251 / .6);
  border-radius: 7px;
  font: 650 15px/1 var(--mono);
  letter-spacing: -.11em;
  padding-inline-end: 2px;
}
.wordmark-dot { color: var(--accent); }
.site-header nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 42px); }
.nav-scenes, .workspace-link, .text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; gap: 9px; }
.nav-scenes { font-size: 14px; color: var(--light-muted); }
.workspace-link {
  padding-inline: 14px;
  border: 1px solid rgb(244 247 251 / .37);
  border-radius: 7px;
  font-size: 14px;
  white-space: nowrap;
  background: rgb(11 20 35 / .5);
}
.workspace-link:hover, .nav-scenes:hover, .text-link:hover { color: var(--light); }
.workspace-link:hover { background: var(--night-panel); border-color: var(--light-muted); }

.intro {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(24px, 3.6vw, 52px);
  padding-block: clamp(32px, 4.3vw, 62px) clamp(40px, 4.7vw, 68px);
}
.intro h1 {
  font-size: clamp(35px, 4.3vw, 64px);
  font-weight: 760;
  line-height: 1.19;
  letter-spacing: -.067em;
  word-break: keep-all;
}
.intro h1 span { color: var(--home-blue); }
.intro-copy { max-width: 35ch; margin-top: 19px; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.67; color: var(--muted); word-break: keep-all; }
.intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 24px; }
.hero-carousel { min-width: 0; }
.hero-viewport {
  aspect-ratio: 1.42;
  overflow: hidden;
  border-radius: 22px;
  background: var(--home-pale-blue);
  touch-action: pan-y pinch-zoom;
}
.hero-track {
  display: grid;
  height: 100%;
}
.hero-visual {
  grid-area: 1 / 1;
  position: relative;
  isolation: isolate;
  display: grid;
  min-width: 0;
  align-items: end;
  overflow: hidden;
}
.hero-visual[aria-hidden="true"] { opacity: 0; pointer-events: none; }
.hero-visual[aria-hidden="false"] { z-index: 1; }
.hero-photo img, .hero-app picture {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-photo img { object-fit: cover; object-position: 48% 48%; transform-origin: 52% 44%; }
.hero-app { background: var(--home-pale-blue); }
.hero-app img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.hero-app-note {
  visibility: hidden;
  margin-top: 2px;
  color: var(--muted);
  text-align: right;
  font-size: 11px;
  font-weight: 650;
}
.hero-carousel[data-app-slide] .hero-app-note { visibility: visible; }
.hero-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  margin-top: 9px;
}
.hero-tabs button {
  min-height: 44px;
  padding: 5px 3px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: clamp(12px, 1.14vw, 15px);
  font-weight: 680;
  white-space: nowrap;
}
.hero-tabs button:hover { background: var(--surface); color: var(--ink); }
.hero-tabs button:focus-visible { outline-offset: 2px; }
.hero-tabs [aria-selected="true"], .hero-tabs [aria-selected="true"]:hover {
  border-color: #d4defd;
  background: var(--home-pale-blue);
  color: var(--home-blue);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-visual { transition: opacity 240ms ease-out; }
  .hero-track[data-direction] .hero-visual[aria-hidden="false"] {
    animation: hero-scene-in 400ms cubic-bezier(.22, .72, .25, 1) both;
  }
  .hero-track[data-direction="next"] { --hero-entrance: 26px; }
  .hero-track[data-direction="previous"] { --hero-entrance: -26px; }
  .hero-photo:not([aria-hidden="true"]) img { animation: hero-photo-drift 4.4s ease-out both; }
  .hero-photo:not([aria-hidden="true"]) .hero-message {
    animation: hero-message-in 520ms cubic-bezier(.22, .72, .25, 1) 140ms both;
  }
}
@keyframes hero-scene-in {
  from { opacity: 0; transform: translateX(var(--hero-entrance)); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes hero-photo-drift {
  from { transform: scale(1); }
  to { transform: translate3d(-.65%, .3%, 0) scale(1.055); }
}
@keyframes hero-message-in {
  from { opacity: .7; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-message {
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 16px;
  padding: 9px 13px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 4px 15px rgb(23 34 58 / .16);
  word-break: keep-all;
}
.hero-message span { display: block; color: var(--muted); font-size: 11px; }
.hero-message strong { display: block; font-size: clamp(13px, 1.13vw, 16px); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  gap: 13px;
  min-height: 50px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 7px;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color 160ms ease;
}
.button-light { color: var(--ink); background: var(--home-yellow); border-color: rgb(23 34 58 / .14); }
.button-light:hover { background: #ffe685; }
.button:disabled { cursor: wait; opacity: .75; }
.text-link { font-size: 15px; color: var(--home-blue); }
.home-page .text-link:hover { color: var(--ink); }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }

h2 { font-size: clamp(33px, 3.7vw, 53px); line-height: 1.27; letter-spacing: -.056em; font-weight: 730; word-break: keep-all; }
.scenes { padding-block: clamp(40px, 5vw, 72px) clamp(46px, 7vw, 99px); background: var(--surface); }
.scenes-heading p { margin-top: 10px; color: var(--muted); word-break: keep-all; }
.scenarios {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(20px, 3vw, 34px);
}
.home-case {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--canvas);
  word-break: keep-all;
}
.home-case-yellow { background: #fff5cd; }
.home-case-blue { background: var(--home-pale-blue); }
.case-photo { display: block; width: 100%; height: auto; aspect-ratio: 1.92; object-fit: cover; background: var(--home-pale-blue); }
.case-copy { padding: clamp(16px, 2.05vw, 28px); }
.home-case h3 { font-size: clamp(20px, 1.85vw, 27px); font-weight: 730; line-height: 1.32; letter-spacing: -.036em; }
.home-case p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.home-case .case-topic { margin: 0 0 7px; color: var(--home-blue); font-weight: 680; font-size: 13px; }
.back-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  gap: 8px;
  color: var(--focus);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.case-library-link { margin-top: 15px; }
.faq { margin-top: clamp(46px, 6vw, 82px); }
.faq h2 { margin-bottom: 16px; font-size: clamp(25px, 2.6vw, 38px); }
.faq details { max-width: 720px; border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 44px; padding: 11px 0; cursor: pointer; font-weight: 650; word-break: keep-all; }
.faq p { padding-bottom: 13px; color: var(--muted); word-break: keep-all; }

.waitlist { padding-block: clamp(52px, 6.6vw, 95px); background: var(--home-pale-blue); }
.waitlist-grid { display: grid; grid-template-columns: 1fr minmax(0, .96fr); gap: clamp(24px, 7vw, 92px); align-items: center; }
.waitlist-copy { margin-top: 15px; max-width: 35ch; color: var(--muted); word-break: keep-all; }
.signup label { display: block; margin-bottom: 7px; font-size: 15px; font-weight: 650; }
.signup-row { display: flex; gap: 8px; }
.signup input[type="email"] {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 8px 13px;
  border: 1px solid #7c8797;
  border-radius: 7px;
  color: var(--ink);
  background: var(--surface);
  font-size: 16px;
}
.signup input[type="email"]::placeholder { color: var(--muted); }
.signup input[type="email"][aria-invalid="true"] { border-color: var(--home-error); }
.signup .signup-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin: 5px 0 0;
  font-size: 14px;
}
.signup-consent input { width: 17px; height: 17px; margin: 0; accent-color: var(--home-blue); }
.signup-note, .signup-status { margin-top: 7px; color: var(--muted); font-size: 13px; word-break: keep-all; }
.signup-status { min-height: 1.7em; }
.signup-status[data-state="success"] { color: var(--home-success); }
.signup-status[data-state="error"] { color: var(--home-error); }

.footer { color: var(--light); background: var(--night); }
.home-page .footer { --focus: var(--home-blue); color: var(--ink); background: var(--canvas); }
.footer-inner { min-height: 94px; padding-block: 16px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }

.directory { padding-block: clamp(30px, 3.3vw, 47px) clamp(54px, 7vw, 104px); }
.directory-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.44fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 5vw, 72px);
}
.directory-heading { min-width: 0; }
.directory-heading h1 {
  margin-top: 10px;
  font-size: clamp(37px, 4.3vw, 64px);
  font-weight: 760;
  line-height: 1.17;
  letter-spacing: -.058em;
  word-break: keep-all;
}
.directory-heading h1 span { color: var(--home-blue); }
.directory-heading p { max-width: 48ch; margin-top: 16px; color: var(--muted); font-size: clamp(16px, 1.6vw, 20px); word-break: keep-all; }
.directory-heading .scope-note { max-width: 58ch; margin-top: 12px; font-size: 14px; }
.home-page .back-link { color: var(--home-blue); }
.directory-feature {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
}
.directory-feature img, .startup-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.15;
  object-fit: cover;
  object-position: center 43%;
  background: var(--home-pale-blue);
}
.directory-feature > div { display: grid; gap: 3px; padding: 13px 16px 15px; }
.directory-feature strong { font-size: clamp(17px, 1.65vw, 22px); letter-spacing: -.025em; }
.directory-feature span { color: var(--muted); font-size: 14px; word-break: keep-all; }
.directory-feature:hover strong, .directory-feature span[aria-hidden] { color: var(--home-blue); }
.case-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: clamp(22px, 2.6vw, 36px);
}
.case-topics a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}
.case-topics a:hover { border-color: var(--home-blue); color: var(--home-blue); }
.case-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, .55fr) auto;
  align-items: end;
  gap: 10px 12px;
  max-width: 760px;
  margin-top: 18px;
}
.case-controls label { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 650; }
.case-controls input, .case-controls select, .case-reset {
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid #7c8797;
  border-radius: 7px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
}
.case-controls input, .case-controls select { width: 100%; }
.case-controls input::placeholder { color: var(--muted); }
.case-reset { white-space: nowrap; font-weight: 650; }
.case-reset:not(:disabled):hover { background: var(--canvas); }
.case-reset:disabled { opacity: .6; cursor: default; }
.case-count { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
.case-empty { padding-block: 32px; color: var(--muted); word-break: keep-all; }
.case-group { margin-top: clamp(30px, 5vw, 65px); }
.case-group:first-child { margin-top: clamp(18px, 2vw, 28px); }
.case-group-heading { margin-bottom: 17px; }
.case-group-heading h2, .directory-faq h2, .startup-guide h2 {
  font-size: clamp(25px, 2.65vw, 39px);
  line-height: 1.25;
  letter-spacing: -.04em;
  word-break: keep-all;
}
.case-group-heading p { margin-top: 5px; color: var(--muted); word-break: keep-all; }
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(13px, 1.6vw, 22px);
  align-items: start;
}
.use-case {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  scroll-margin-block: 14px;
  word-break: keep-all;
}
.use-case:target { outline: 2px solid var(--home-blue); outline-offset: 3px; }
.use-case-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.85;
  object-fit: cover;
  object-position: 50% 49%;
  background: var(--home-pale-blue);
}
.use-case-body { padding: clamp(14px, 1.65vw, 22px); }
.use-case .case-topic { margin-bottom: 6px; color: var(--home-blue); font-size: 13px; font-weight: 700; }
.use-case h3, .startup-work-grid h3 { font-size: clamp(19px, 1.7vw, 23px); font-weight: 730; line-height: 1.35; letter-spacing: -.03em; }
.use-case-action { margin-top: 8px; color: var(--muted); line-height: 1.65; }
.use-case-result {
  display: grid;
  gap: 2px;
  margin: 13px 0 0;
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--home-pale-blue);
  font-size: 14px;
}
.use-case-result dt { font-size: 12px; font-weight: 700; }
.use-case-result dd { margin: 0; color: var(--muted); }
.use-case-check { margin-top: 6px; font-size: 14px; }
.use-case-check summary { min-height: 42px; padding-block: 9px; color: var(--home-blue); font-weight: 680; cursor: pointer; }
.use-case-check p { margin: 0 0 4px; color: var(--muted); line-height: 1.65; }
.directory-faq, .startup-definition, .startup-work, .startup-flow { margin-top: clamp(36px, 6vw, 80px); }
.directory-answers, .startup-work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 16px;
}
.directory-answers > div, .startup-work-grid > section, .startup-definition {
  padding: clamp(16px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  word-break: keep-all;
}
.directory-answers p, .startup-guide section > p, .startup-flow p { margin-top: 8px; color: var(--muted); }
.directory-answers a, .startup-work-grid a { color: var(--home-blue); font-weight: 680; text-decoration: underline; text-underline-offset: 3px; }
.startup-work-grid a { display: inline-block; margin-top: 10px; }
.startup-definition { background: var(--home-pale-blue); }
.startup-definition p { max-width: 75ch; }
.startup-photo { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; }
.startup-photo img { aspect-ratio: 1.55; }
.startup-flow { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); align-items: center; gap: clamp(18px, 4vw, 52px); }
.startup-flow img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }
.startup-flow figcaption { margin-top: 4px; color: var(--muted); font-size: 13px; text-align: right; }
.directory-return { margin-top: 25px; }

@media (max-width: 940px) {
  .scenarios { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .signup-row { flex-wrap: wrap; }
  .signup-row .button { width: 100%; }
}
@media (max-width: 760px) {
  .intro { grid-template-columns: minmax(0, 1fr); }
  .intro h1 { font-size: clamp(34px, 8.7vw, 58px); }
  .hero-viewport { aspect-ratio: 1.49; }
  .directory-intro, .startup-flow { grid-template-columns: minmax(0, 1fr); }
  .directory-feature img { aspect-ratio: 2.4; }
}
@media (max-width: 640px) {
  .site-header { min-height: 64px; }
  .wordmark { font-size: 20px; }
  .brand-mark { width: 29px; height: 29px; margin-right: 7px; }
  .workspace-link { padding-inline: 10px; font-size: 13px; }
  .nav-scenes { display: none; }
  .intro-copy { margin-top: 13px; }
  .intro-actions { margin-top: 17px; gap: 6px 13px; }
  .hero-carousel { margin-inline: -6px; }
  .hero-viewport { border-radius: 15px; }
  .hero-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-message { margin: 10px; }
  .scenarios { grid-template-columns: minmax(0, 1fr); }
  .waitlist-grid { grid-template-columns: minmax(0, 1fr); }
  .waitlist h2 { font-size: clamp(32px, 8vw, 50px); }
  .footer-inner { min-height: 81px; }
  .directory-heading p { font-size: 16px; }
  .case-controls { grid-template-columns: minmax(0, 1fr) auto; }
  .case-controls > div:first-child { grid-column: 1 / -1; }
  .case-grid, .directory-answers, .startup-work-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 350px) {
  :root { --gutter: 17px; }
  .intro-actions { gap: 5px 11px; }
  .button, .text-link { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
