:root {
  --bg: #050a10;
  --surface: #0d1520;
  --surface-2: #121d2a;
  --ink: #f4f8fc;
  --muted: #a7b5c7;
  --line: rgba(104, 143, 194, 0.34);
  --brand: #4d82ff;
  --accent: #83c8ff;
  --good: #79dda8;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    var(--bg);
  background-size: 88px 88px, 88px 88px, auto;
  color: var(--ink);
  font-family: "Manrope", "Noto Sans KR", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 28px;
  align-items: center;
  width: min(calc(100% - 32px), var(--max));
  min-height: 68px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 10, 16, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-right: auto;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.main-nav,
.locale-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.main-nav a,
.locale-switch a {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
}

.locale-switch a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(760px, calc(100svh - 112px));
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3, 8, 14, 0.98) 0%, rgba(3, 8, 14, 0.9) 38%, rgba(3, 8, 14, 0.28) 72%, rgba(3, 8, 14, 0.2) 100%),
    linear-gradient(0deg, rgba(3, 8, 14, 0.94), transparent 46%),
    url("/tools/unity_diff_merge_tool/assets/imgs/hero.png") center / cover no-repeat;
}

.hero-inner {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: clamp(58px, 9vw, 112px) 0;
}

.kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: 0;
}

h1 {
  font-size: 7rem;
}

h2 {
  max-width: 23ch;
  font-size: 3.35rem;
}

h3 {
  font-size: 1.18rem;
}

.hero-copy {
  max-width: 720px;
  margin: 18px 0 0;
  color: #d8e3ef;
  font-size: 1.28rem;
}

.hero-badges,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-badges span {
  padding: 7px 10px;
  border: 1px solid rgba(131, 200, 255, 0.32);
  border-radius: 6px;
  background: rgba(6, 18, 32, 0.74);
  color: #d8edff;
  font-size: 0.82rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(131, 200, 255, 0.44);
  border-radius: 7px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.button-primary {
  border-color: var(--brand);
  background: var(--brand);
}

.section {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 38px;
}

.section-head p,
.section > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.feature-grid,
.workflow-grid,
.role-grid {
  display: grid;
  gap: 14px;
}

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

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

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

.feature,
.workflow-step,
.role {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.feature,
.workflow-step {
  padding: 22px;
}

.feature p,
.workflow-step p,
.role p {
  margin: 10px 0 0;
  color: var(--muted);
}

.step-number {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
}

.visual-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 14px;
}

.visual-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #08111b;
}

.visual-grid img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--ink);
}

td strong {
  color: var(--good);
}

.role {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  overflow: hidden;
}

.role img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.role-copy {
  padding: 22px;
}

.vcs-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.vcs-list div {
  padding: 18px;
  border-top: 2px solid var(--brand);
  background: var(--surface);
  font-weight: 750;
}

.faq-list {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 18px 34px 18px 0;
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  color: var(--accent);
  font-size: 1.2rem;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  max-width: 76ch;
  margin: -2px 34px 18px 0;
  color: var(--muted);
}

.signup {
  background: var(--surface-2);
}

.signup-inner {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 100px) 0;
}

.signup p {
  max-width: 66ch;
  color: var(--muted);
}

.signup form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  max-width: 720px;
  margin-top: 24px;
}

.signup input,
.signup button {
  min-height: 50px;
  border-radius: 7px;
  font: inherit;
}

.signup label,
.signup input {
  width: 100%;
}

.signup label {
  display: block;
}

.signup input {
  min-width: 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #07101a;
  color: var(--ink);
}

.signup button {
  padding: 0 20px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: white;
  font-weight: 750;
  cursor: pointer;
}

footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .feature-grid,
  .workflow-grid,
  .vcs-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visual-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-nav,
  .hero-inner,
  .section,
  .signup-inner,
  footer {
    width: min(calc(100% - 20px), var(--max));
  }

  .site-nav {
    min-height: 60px;
  }

  .locale-switch {
    gap: 10px;
  }

  .locale-switch a {
    font-size: 0.76rem;
  }

  .hero {
    min-height: calc(100svh - 100px);
    background-position: 62% center;
  }

  .hero-inner {
    padding: 64px 0;
  }

  h1 {
    font-size: 3.4rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .feature-grid,
  .workflow-grid,
  .role-grid,
  .vcs-list {
    grid-template-columns: 1fr;
  }

  .role {
    grid-template-columns: 1fr;
  }

  .role img {
    height: 190px;
  }

  .signup form {
    grid-template-columns: 1fr;
  }
}
