:root {
  --font-sans: "Pretendard", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, Menlo, "Pretendard", monospace;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 30, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 20, 30, 0.08);
  --transition-theme: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  --z-header: 100;
  --z-overlay: 200;
  --btn-height: 36px;
  color-scheme: light;
  --color-bg: #ffffff;
  --color-bg-subtle: #f6f6f8;
  --color-bg-elevated: #ffffff;
  --color-text: #16171a;
  --color-text-muted: #63666f;
  --color-border: #e5e5ea;
  --color-accent: #4f46e5;
  --color-accent-contrast: #ffffff;
  --color-accent-subtle: #ecebfc;
  --color-success: #15803d;
  --color-success-bg: #dcfce7;
  --color-danger: #b91c1c;
  --color-danger-bg: #fee2e2;
  --code-bg: #1e1e26;
  --code-border: #34353f;
  --code-text: #e4e6eb;
  --code-comment: #8b8fa3;
  --code-string: #4ade80;
  --code-keyword: #a78bfa;
  --code-function: #fbbf24;
  --code-number: #f0876e;
  --code-punctuation: #9a9da6;
  --code-inline-bg: #e9ebf1;
  --code-inline-text: #383b46;
}
:root:root[data-theme=dark] {
  color-scheme: dark;
  --color-bg: #101114;
  --color-bg-subtle: #1a1b20;
  --color-bg-elevated: #1d1e24;
  --color-text: #f1f2f4;
  --color-text-muted: #9a9da6;
  --color-border: #2a2c33;
  --color-accent: #8b87f7;
  --color-accent-contrast: #101114;
  --color-accent-subtle: #26243f;
  --color-success: #4ade80;
  --color-success-bg: #143324;
  --color-danger: #f87171;
  --color-danger-bg: #3a1a1a;
  --code-inline-bg: #2a2c35;
  --code-inline-text: #cfd2db;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height, 80px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  transition: var(--transition-theme);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a {
  color: inherit;
}
a[target=_blank]::after {
  content: "";
  display: inline-block;
  width: 0.75em;
  height: 0.75em;
  margin-left: 0.25em;
  vertical-align: -0.05em;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.app-main {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6) var(--space-16);
}
.app-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-4) var(--space-6);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-theme);
}
.app-header__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  transition: var(--transition-theme);
}
.app-header__logo:hover, .app-header__logo:focus-visible {
  background: var(--color-bg-subtle);
}
.app-nav {
  flex: 1;
  min-width: 0;
}
.app-nav__list {
  display: flex;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.app-nav__list::-webkit-scrollbar {
  display: none;
}
.app-nav__link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: var(--transition-theme);
}
.app-nav__link:hover, .app-nav__link:focus-visible {
  color: var(--color-text);
}
.app-nav__link--page {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.app-nav__link-icon {
  color: var(--color-text-muted);
  opacity: 0.7;
}
.app-footer {
  padding: var(--space-8) var(--space-6);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-align: center;
  border-top: 1px solid var(--color-border);
}
.app-footer__text {
  margin: 0;
}

@media (max-width: 640px) {
  .app-header {
    padding: var(--space-3) var(--space-4);
    gap: var(--space-3);
  }
  .app-nav__list {
    gap: var(--space-4);
  }
}
.contact__item:hover, .contact__item:focus-within, .case-study-list__link:hover, .case-study-list__link:focus-visible, .component-more-list__link:hover, .component-more-list__link:focus-visible, .component-card:hover, .component-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.app-header__theme-toggle .app-header__theme-icon--moon {
  display: none;
}
[data-theme=dark] .app-header__theme-icon--sun {
  display: none;
}
[data-theme=dark] .app-header__theme-icon--moon {
  display: block;
}

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-12) 0;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}
.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 480px;
  height: 480px;
  margin-top: -240px;
  margin-left: -240px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  opacity: 0.16;
  pointer-events: none;
  will-change: transform;
  z-index: 0;
}
[data-theme=dark] .hero__glow {
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  opacity: 0.26;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.hero__title {
  font-size: clamp(2.5rem, 1.3rem + 6vw, 5.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-6);
  max-width: 900px;
  text-wrap: balance;
}
.hero__title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.hero__title .word > span {
  display: inline-block;
  will-change: transform;
}
.hero__hl-letter {
  display: inline-block;
  will-change: transform, filter;
}
.hero__subtitle {
  margin: 0;
  max-width: 480px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}
.hero__scroll-cue {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 34px;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  z-index: 1;
}
.hero__scroll-cue span {
  width: 3px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-text-muted);
  animation: heroScrollCue 1.6s ease infinite;
}

@keyframes heroScrollCue {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(10px);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll-cue span {
    animation: none;
  }
}
@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding: var(--space-12) 0 var(--space-16);
  }
  .hero__scroll-cue {
    display: none;
  }
}
.component-list__heading {
  margin-top: var(--space-16);
  padding-top: var(--space-12);
  font-size: 1.25rem;
}
.component-list__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}
.component-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-theme), transform 0.2s ease, box-shadow 0.2s ease;
}
.component-card__preview {
  position: relative;
  height: 180px;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}
.component-card__preview.component-demo {
  border: none;
  border-radius: 0;
  margin: 0;
}
.component-card__preview h1, .component-card__preview h2 {
  font-size: 1.05rem;
}
.component-card__preview::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--space-12);
  background: linear-gradient(to bottom, transparent, var(--color-bg-subtle));
}
.component-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.component-card__title {
  margin: 0 0 var(--space-2);
  font-size: 1.1rem;
}
.component-card__link {
  color: var(--color-text);
  text-decoration: none;
}
.component-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.component-card:hover .component-card__link, .component-card__link:focus-visible {
  text-decoration: underline;
}
.component-card__summary {
  margin: 0 0 var(--space-4);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.component-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.component-card__tag {
  padding: 2px var(--space-2);
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  border-radius: 999px;
  font-size: 0.75rem;
}

.content-view__back {
  margin: 0 0 var(--space-6);
  font-size: 0.9rem;
}
.content-view__back a {
  color: var(--color-text-muted);
  text-decoration: none;
}
.content-view__back a:hover, .content-view__back a:focus-visible {
  color: var(--color-accent);
}
.content-view__header {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}
.content-view__title {
  margin: 0 0 var(--space-3);
  font-size: 1.75rem;
}
.content-view__summary {
  margin: 0 0 var(--space-4);
  color: var(--color-text-muted);
}
.content-view__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.content-view__tag {
  padding: 2px var(--space-2);
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  border-radius: 999px;
  font-size: 0.75rem;
}
.content-view__body {
  max-width: 720px;
}
.content-view__body h2 {
  margin: var(--space-12) 0 var(--space-4);
  font-size: 1.35rem;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}
.content-view__body h3 {
  margin: var(--space-8) 0 var(--space-3);
  font-size: 1.05rem;
}
.content-view__body p {
  margin: 0 0 var(--space-4);
}
.content-view__body ul, .content-view__body ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.25em;
}
.content-view__body li {
  margin-bottom: var(--space-2);
}
.content-view__body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--code-inline-bg);
  color: var(--code-inline-text);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
}
.content-view__body pre {
  margin: 0 0 var(--space-6);
  padding: var(--space-4);
  background: var(--code-bg);
  color: var(--code-text);
  border: 1px solid var(--code-border);
  border-radius: var(--radius-md);
  overflow-x: auto;
  line-height: 1.55;
}
.content-view__body pre code {
  background: none;
  padding: 0;
  color: inherit;
}
.content-view__body strong {
  color: var(--color-text);
}

.component__demo {
  margin: 0 0 var(--space-8);
}
.component__demo-label {
  margin: 0 0 var(--space-2);
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.token.comment, .token.prolog, .token.doctype, .token.cdata {
  color: var(--code-comment);
  font-style: italic;
}
.token.string, .token.char, .token.attr-value {
  color: var(--code-string);
}
.token.keyword, .token.atrule, .token.important {
  color: var(--code-keyword);
}
.token.function, .token.class-name {
  color: var(--code-function);
}
.token.number, .token.boolean, .token.constant {
  color: var(--code-number);
}
.token.punctuation, .token.operator {
  color: var(--code-punctuation);
}

.content-view__layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 1fr;
  align-items: start;
  gap: var(--space-8);
}
.content-view__toc {
  position: sticky;
  top: calc(var(--header-height, 80px) + var(--space-6));
  font-size: 0.85rem;
}
.content-view__toc-heading {
  margin: 0 0 var(--space-3);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.content-view__toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--color-border);
}
.content-view__toc-link {
  display: block;
  padding: var(--space-1) 0 var(--space-1) var(--space-4);
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--color-text-muted);
  text-decoration: none;
  line-height: 1.4;
  transition: var(--transition-theme), border-color 0.15s ease;
}
.content-view__toc-link:hover, .content-view__toc-link:focus-visible {
  color: var(--color-text);
}
.content-view__toc-link.is-active {
  color: var(--color-accent);
  border-left-color: var(--color-accent);
  font-weight: 600;
}
.content-view__toc-item--sub .content-view__toc-link {
  padding-left: var(--space-6);
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .content-view__layout {
    display: block;
  }
  .content-view__toc {
    display: none;
  }
}
.component__more {
  max-width: 720px;
  margin-top: var(--space-16);
  padding-top: var(--space-12);
  border-top: 1px solid var(--color-border);
}
.component__more-heading {
  margin: 0 0 var(--space-4);
  font-size: 1.1rem;
}

.component-more-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.component-more-list__link {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  height: 100%;
  padding: var(--space-4);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition-theme), transform 0.2s ease;
}
.component-more-list__title {
  font-weight: 600;
  color: var(--color-accent);
}
.component-more-list__summary {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.career {
  margin-top: var(--space-16);
  padding-top: var(--space-12);
}
.career .accordion__item {
  background: var(--color-bg-subtle);
}
.career__heading {
  font-size: 1.25rem;
  margin: 0 0 var(--space-8);
}
.career__group {
  margin-bottom: var(--space-8);
}
.career__group:last-of-type {
  margin-bottom: 0;
}
.career__group-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-4);
}
.career__reference {
  margin: var(--space-8) 0 0;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: right;
}
.career__reference a {
  color: var(--color-text-muted);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.career__reference a:hover, .career__reference a:focus-visible {
  color: var(--color-accent);
}

.case-study-list__header {
  max-width: 640px;
  margin: 0 0 var(--space-8);
}
.case-study-list__heading {
  margin: 0 0 var(--space-3);
  font-size: 1.75rem;
}
.case-study-list__lead {
  margin: 0;
  color: var(--color-text-muted);
}
.case-study-list__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}
.case-study-list__link {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  height: 100%;
  padding: var(--space-6);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text);
  transition: var(--transition-theme), transform 0.2s ease, box-shadow 0.2s ease;
}
.case-study-list__title {
  font-size: 1.15rem;
  font-weight: 600;
}
.case-study-list__summary {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.case-study-list__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
}
.case-study-list__tag {
  padding: 2px var(--space-2);
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  border-radius: 999px;
  font-size: 0.75rem;
}

.contact {
  padding-top: var(--space-12);
  text-align: center;
  min-height: 100vh;
}
.contact__heading {
  font-size: 1.25rem;
  margin: 0 0 var(--space-3);
}
.contact__lead {
  max-width: 560px;
  margin: 0 auto var(--space-6);
  color: var(--color-text-muted);
}
.contact__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  min-width: 180px;
  padding: var(--space-6) var(--space-6) var(--space-4);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: var(--transition-theme), transform 0.2s ease;
}
.contact__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-1);
  border-radius: 50%;
  background: var(--color-accent-subtle);
  color: var(--color-accent);
}
.contact__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.contact__value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: var(--transition-theme), border-color 0.2s ease;
}
.contact__value:hover, .contact__value:focus-visible {
  border-color: var(--color-accent);
}
