:root {
  --bg: #f7f8f4;
  --paper: #ffffff;
  --ink: #17201b;
  --muted: #5f6b63;
  --soft: #eef2ec;
  --line: #dce4dc;
  --deep: #111513;
  --green: #00a676;
  --teal: #247b7b;
  --amber: #f2b33d;
  --coral: #e85d4f;
  --blue: #4267d9;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(23, 32, 27, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  line-height: 1.65;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  background: var(--deep);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(220, 228, 220, 0.9);
  background: rgba(247, 248, 244, 0.94);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 178px;
  flex-shrink: 0;
}

.brand-mark {
  position: relative;
  width: 54px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: var(--deep);
  font-weight: 900;
  letter-spacing: 0;
  overflow: hidden;
}

.brand-mark.image-mark {
  background: transparent;
  grid-template-rows: 44px 12px;
  align-content: center;
  gap: 2px;
  overflow: visible;
}

.brand-mark.image-mark::before {
  content: "TJSOFT";
  grid-row: 2;
  color: #14201d;
  font-size: 8px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.03em;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  background: var(--green);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.brand-mark.image-mark::after {
  display: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
}

.brand-mark.image-mark img {
  grid-row: 1;
  width: 44px;
  height: 44px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.brand-copy strong {
  position: relative;
  display: inline-block;
  padding: 4px 8px 8px 1px;
  color: #111513;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 29px;
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  text-shadow:
    1px 1px 0 #e9f5ef,
    2px 2px 0 rgba(0, 166, 118, 0.22),
    0 8px 16px rgba(17, 21, 19, 0.15);
}

.brand-copy strong::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 8px;
  bottom: 0;
  height: 5px;
  border-radius: 2px;
  background: linear-gradient(90deg, #00a676 0%, #18a9d2 58%, #f2b33d 100%);
  transform: skewX(-22deg);
  transform-origin: left center;
}

.brand-copy strong::before {
  content: "TJSOFT";
  position: absolute;
  left: 1px;
  top: 4px;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(24, 169, 210, 0.42);
  text-shadow: none;
}

.brand-copy small {
  display: none;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  padding: 9px 12px;
  color: var(--muted);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--ink);
  background: var(--soft);
  outline: none;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 8px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.language-switcher button {
  min-width: 36px;
  border: 0;
  border-radius: 6px;
  padding: 6px 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.language-switcher button.is-active {
  background: var(--deep);
  color: #fff;
}

.language-switcher button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-button span,
.menu-button span::before,
.menu-button span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.menu-button span {
  position: relative;
}

.menu-button span::before,
.menu-button span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-button span::before {
  top: -6px;
}

.menu-button span::after {
  top: 6px;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px 22px;
}

.section.tight {
  padding-top: 24px;
  padding-bottom: 24px;
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: center;
}

body[data-page="about"] .hero {
  min-height: auto;
  padding-top: 24px;
  padding-bottom: 4px;
}

body[data-page="about"] .section {
  padding-top: 20px;
  padding-bottom: 20px;
}

body[data-page="about"] .hero + .section {
  padding-top: 10px;
}

body[data-page="about"] .hero .lead {
  margin-bottom: 0;
}

body[data-page="about"] .section.tight {
  padding-top: 8px;
  padding-bottom: 12px;
}

body[data-page="about"] h1 {
  max-width: 100%;
  font-size: clamp(22px, 2.7vw, 32px);
  line-height: 1.05;
  white-space: nowrap;
}

body[data-page="company"] .page-hero h1 {
  max-width: 760px;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.14;
}

body[data-page="about"] .section-head {
  margin-bottom: 14px;
}

body[data-page="about"] .grid-3,
body[data-page="about"] .grid-2 {
  gap: 12px;
}

body[data-page="about"] .card,
body[data-page="about"] .feature-panel {
  padding: 18px;
}

body[data-page="about"] .card h3,
body[data-page="about"] .feature-panel h3 {
  margin-bottom: 6px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 54px;
  align-items: center;
}

.hero-grid.hero-single {
  grid-template-columns: minmax(0, 780px);
  justify-content: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
}

.page-hero h1 {
  max-width: 760px;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.14;
}

.lead {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-row.compact {
  margin-top: 14px;
}

.button-row.compact .button {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 13px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid var(--deep);
  border-radius: var(--radius);
  background: var(--deep);
  color: #fff;
  font-weight: 800;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.hero-tile {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-tile.large {
  grid-row: span 2;
}

.hero-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-tile.logo-tile {
  display: grid;
  place-items: center;
  padding: 28px;
  background: #fdfdf9;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stat {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 20px;
}

.section-head h2 {
  margin-bottom: 5px;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.22;
  letter-spacing: 0;
}

.section-head p {
  max-width: 660px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card,
.project-card,
.legal,
.contact-panel,
.feature-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.card,
.feature-panel {
  padding: 24px;
}

.card h3,
.feature-panel h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.card p,
.feature-panel p {
  color: var(--muted);
}

.accent-bar {
  width: 42px;
  height: 4px;
  margin-bottom: 12px;
  border-radius: 4px;
  background: var(--green);
}

.accent-bar.amber {
  background: var(--amber);
}

.accent-bar.coral {
  background: var(--coral);
}

.project-card {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  align-items: stretch;
  max-width: 940px;
  margin: 0 auto;
  overflow: hidden;
}

.project-media {
  position: relative;
  min-height: 170px;
  max-height: 220px;
  background: #f3f5f0;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-page="web"] .page-hero,
body[data-page="game"] .page-hero {
  padding-bottom: 14px;
}

body[data-page="web"] .page-hero h1,
body[data-page="game"] .page-hero h1 {
  max-width: 760px;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.14;
}

body[data-page="web"] .page-hero .lead,
body[data-page="game"] .page-hero .lead {
  max-width: 720px;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.55;
}

body[data-page="web"] .section.tight,
body[data-page="game"] .section.tight {
  padding-top: 12px;
  padding-bottom: 10px;
}

body[data-page="web"] .product-focus-section,
body[data-page="game"] .product-focus-section {
  padding-top: 22px;
  padding-bottom: 30px;
}

body[data-page="web"] .product-focus-section .section-head,
body[data-page="game"] .product-focus-section .section-head {
  margin-bottom: 18px;
}

body[data-page="web"] .product-focus-section .card,
body[data-page="game"] .product-focus-section .card {
  padding: 20px;
}

body[data-page="game"] .product-focus-section .section-head p {
  font-size: 13.5px;
  line-height: 1.5;
}

body[data-page="game"] .product-focus-section .card p {
  font-size: 13.5px;
  line-height: 1.5;
}

body[data-page="web"] .project-card,
body[data-page="game"] .project-card {
  grid-template-columns: minmax(128px, 174px) minmax(0, 1fr);
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

body[data-page="web"] .project-media,
body[data-page="game"] .project-media {
  min-height: 120px;
  max-height: 154px;
}

body[data-page="web"] .project-body,
body[data-page="game"] .project-body {
  padding: 14px 16px;
}

body[data-page="web"] .project-kicker,
body[data-page="game"] .project-kicker {
  margin-bottom: 5px;
  font-size: 12px;
}

body[data-page="web"] .project-body h2,
body[data-page="game"] .project-body h2 {
  margin-bottom: 6px;
  font-size: clamp(18px, 2vw, 22px);
}

body[data-page="web"] .project-body p,
body[data-page="game"] .project-body p {
  margin-bottom: 0;
  font-size: 13.5px;
  line-height: 1.48;
}

body[data-page="web"] .tag-list,
body[data-page="game"] .tag-list {
  gap: 5px;
  margin-top: 10px;
}

body[data-page="web"] .tag-list li,
body[data-page="game"] .tag-list li {
  padding: 4px 6px;
  font-size: 11.5px;
}

.product-mini-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 10px;
}

.product-mini-strip img {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 64px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
}

.project-body {
  align-self: center;
  padding: 18px 20px;
}

.project-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.project-body h2 {
  margin-bottom: 8px;
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.15;
}

.project-body p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.tag-list,
.check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--bg);
  font-size: 12.5px;
  font-weight: 700;
}

.check-list {
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.image-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 190px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.page-hero {
  padding-bottom: 24px;
}

body:not([data-page="about"]) .page-hero {
  padding-top: 28px;
}

.page-hero + .section,
.page-hero + .section.tight {
  padding-top: 12px;
}

.page-hero .lead {
  max-width: 760px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 22px;
  align-items: start;
}

.company-profile {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.company-profile h2 {
  margin-bottom: 14px;
  font-size: 22px;
}

.company-facts {
  margin: 0;
}

.company-facts div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.company-facts div:last-child {
  border-bottom: 0;
}

.company-facts dt {
  color: var(--muted);
  font-weight: 800;
}

.company-facts dd {
  margin: 0;
  font-weight: 800;
}

.contact-panel {
  padding: 28px;
}

.contact-panel h2 {
  margin-bottom: 14px;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list li:last-child {
  border-bottom: 0;
}

.contact-list strong {
  display: block;
}

.contact-list span,
.contact-list a {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field span {
  font-weight: 800;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  padding: 12px 13px;
}

.form-field textarea {
  min-height: 160px;
  resize: vertical;
}

.legal {
  padding: clamp(24px, 5vw, 44px);
}

.legal h2 {
  margin-top: 34px;
  margin-bottom: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 24px;
}

.legal h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal ul {
  padding-left: 20px;
}

.note {
  margin-top: 22px;
  padding: 16px;
  border-left: 4px solid var(--amber);
  background: #fff8e7;
  border-radius: var(--radius);
  color: #70531a;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--deep);
  color: #fff;
}

.footer-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 22px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
}

.copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

@media (max-width: 920px) {
  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: 73px 14px auto 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 14px;
  }

  .language-switcher {
    margin: 6px 4px 2px;
    justify-content: center;
  }

  .hero-grid,
  .contact-layout,
  .company-profile {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .grid-3,
  .grid-2,
  .stats-strip {
    grid-template-columns: 1fr 1fr;
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(3),
  .stat:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .section-head {
    display: block;
  }
}

@media (max-width: 760px) {
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-media {
    min-height: 155px;
    max-height: 205px;
  }

  body[data-page="web"] .project-card,
  body[data-page="game"] .project-card {
    grid-template-columns: 1fr;
  }

  body[data-page="web"] .project-media,
  body[data-page="game"] .project-media {
    min-height: 116px;
    max-height: 142px;
  }
}

@media (max-width: 620px) {
  .nav-wrap {
    padding: 8px 16px;
  }

  .brand {
    min-width: 158px;
    gap: 9px;
  }

  .brand-mark {
    width: 48px;
    height: 56px;
  }

  .brand-mark.image-mark {
    grid-template-rows: 39px 11px;
  }

  .brand-mark.image-mark img {
    width: 39px;
    height: 39px;
  }

  .brand-mark.image-mark::before {
    font-size: 7px;
  }

  .brand-copy strong {
    font-size: 23px;
    letter-spacing: 0.03em;
  }

  .brand-copy small {
    display: none;
  }

  .section {
    padding: 52px 16px;
  }

  .hero-grid {
    gap: 32px;
  }

  body[data-page="about"] h1 {
    white-space: normal;
  }

  .hero-visual,
  .grid-3,
  .grid-2,
  .stats-strip,
  .image-grid {
    grid-template-columns: 1fr;
  }

  .hero-tile {
    min-height: 190px;
  }

  .stat {
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .stat:first-child {
    border-top: 0;
  }

  .project-body,
  .contact-panel {
    padding: 22px;
  }

  .footer-wrap {
    align-items: flex-start;
    flex-direction: column;
  }
}
