:root {
  --ink: #17211d;
  --muted: #667069;
  --paper: #f4f1e9;
  --paper-2: #ebe7dc;
  --card: #fbfaf6;
  --line: rgba(23, 33, 29, 0.14);
  --green: #176a4f;
  --green-2: #bde5cd;
  --lime: #d7ef69;
  --orange: #e76f3c;
  --dark: #11251e;
  --shadow: 0 22px 60px rgba(36, 43, 38, 0.09);
  --radius: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.36;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.10'/%3E%3C/svg%3E");
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  color: #fff;
  background: var(--dark);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: background .25s, border-color .25s;
}

.topbar.scrolled {
  border-color: var(--line);
  background: rgba(244, 241, 233, 0.88);
}

.nav {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 32px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: var(--dark);
  background: var(--lime);
  font-size: 13px;
}

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a { color: #3d4741; font-size: 14px; font-weight: 700; text-decoration: none; }
.nav-links > a:hover { color: var(--green); }

.language {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language a { padding: 6px 11px; color: var(--muted); font-size: 12px; text-decoration: none; }
.language a[aria-current="page"] { color: white; background: var(--dark); }

.menu-button { display: none; border: 0; background: none; }

.hero {
  position: relative;
  display: grid;
  min-height: 760px;
  grid-template-columns: 1.12fr .88fr;
  align-items: center;
  gap: 60px;
  padding-block: 86px 110px;
}

.hero > *, .feature > *, .section-head > * { min-width: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 26px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.eyebrow::before { width: 30px; height: 1px; content: ""; background: currentColor; }

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

h1 {
  max-width: 780px;
  margin-bottom: 28px;
  font-size: clamp(48px, 6.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -.065em;
}

h1 .accent { color: var(--green); }

.hero-copy > p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 36px;
  color: #56615a;
  font-size: clamp(17px, 1.6vw, 21px);
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(23, 33, 29, .12); }
.button.primary { color: #fff; background: var(--dark); }
.button.secondary { background: rgba(255,255,255,.32); }
.button .arrow { font-size: 18px; }

.hero-visual { position: relative; min-height: 500px; }

.orbit {
  position: absolute;
  inset: 4% 0 0 2%;
  border: 1px solid rgba(23, 106, 79, .28);
  border-radius: 50%;
  transform: rotate(-14deg);
}

.orbit::before, .orbit::after {
  position: absolute;
  width: 13px;
  aspect-ratio: 1;
  border: 5px solid var(--paper);
  border-radius: 50%;
  content: "";
  background: var(--orange);
}

.orbit::before { top: 12%; right: 12%; }
.orbit::after { bottom: 9%; left: 12%; background: var(--green); }

.profile-card {
  position: absolute;
  inset: 9% 9% 7% 8%;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px;
  border-radius: 160px 160px 28px 28px;
  color: white;
  background: var(--dark);
  box-shadow: var(--shadow);
  transform: rotate(3deg);
}

.profile-card::after {
  position: absolute;
  right: -15%;
  bottom: -10%;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid rgba(215,239,105,.35);
  border-radius: 50%;
  content: "";
}

.terminal-dots { display: flex; gap: 7px; }
.terminal-dots span { width: 7px; aspect-ratio: 1; border-radius: 50%; background: var(--lime); }
.terminal-dots span:nth-child(2) { opacity: .55; }
.terminal-dots span:nth-child(3) { opacity: .25; }

.code-lines { position: relative; z-index: 1; display: grid; gap: 13px; }
.code-line { height: 9px; border-radius: 99px; background: rgba(255,255,255,.14); }
.code-line:nth-child(1) { width: 63%; background: var(--lime); }
.code-line:nth-child(2) { width: 90%; }
.code-line:nth-child(3) { width: 74%; }
.code-line:nth-child(4) { width: 42%; background: var(--green-2); }

.profile-label { position: relative; z-index: 1; }
.profile-label strong { display: block; max-width: 280px; font-size: 30px; line-height: 1.12; letter-spacing: -.04em; }
.profile-label small { display: block; margin-top: 12px; color: #c1cfc8; }

.floating-chip {
  position: absolute;
  z-index: 3;
  padding: 12px 17px;
  border: 1px solid rgba(23,33,29,.08);
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 14px 36px rgba(23,33,29,.13);
  font-size: 13px;
  font-weight: 800;
}

.chip-ai { top: 5%; right: -2%; }
.chip-app { bottom: 10%; left: -5%; }
.chip-api { right: -5%; bottom: 28%; color: var(--dark); background: var(--lime); }

.proof-strip { border-block: 1px solid var(--line); }
.proof-grid { display: grid; grid-template-columns: 1.15fr repeat(3, 1fr); }
.proof-item { padding: 32px 28px; border-left: 1px solid var(--line); }
.proof-item:first-child { padding-left: 0; border-left: 0; }
.proof-item .num { display: block; margin-bottom: 5px; font-size: 30px; font-weight: 900; letter-spacing: -.05em; }
.proof-item .label { color: var(--muted); font-size: 13px; }
.proof-intro { display: flex; align-items: center; color: var(--green); font-size: 14px; font-weight: 800; }

section { padding-block: 120px; }
.section-head { display: grid; grid-template-columns: .78fr 1.22fr; align-items: end; gap: 50px; margin-bottom: 54px; }
.section-head .eyebrow { margin-bottom: 0; }
h2 { margin-bottom: 0; font-size: clamp(38px, 4.8vw, 66px); line-height: 1.06; letter-spacing: -.055em; }
.section-lead { max-width: 590px; margin: 18px 0 0; color: var(--muted); }

.feature-list { display: grid; gap: 28px; }

.feature {
  display: grid;
  overflow: hidden;
  min-height: 530px;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.feature:nth-child(even) .feature-media { order: 2; }
.feature-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(36px, 5vw, 70px); }
.project-no { margin-bottom: 22px; color: var(--green); font-size: 12px; font-weight: 900; letter-spacing: .13em; }
.feature h3 { margin-bottom: 18px; font-size: clamp(30px, 3vw, 44px); line-height: 1.12; letter-spacing: -.045em; }
.feature-copy > p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.tag { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: #49534d; font-size: 11px; font-weight: 750; }

.project-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; color: var(--green); font-size: 13px; font-weight: 850; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.feature-media { position: relative; min-height: 460px; overflow: hidden; background: #dbe8e1; }
.feature-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.feature:hover .feature-media > img { transform: scale(1.025); }
.feature-media.rag img { object-position: center; }
.feature-media.app { padding: 46px; background: linear-gradient(145deg,#0d867d,#2450dd); }
.feature-media.app img { border-radius: 28px; box-shadow: 0 26px 50px rgba(8, 28, 85, .3); }

.work { background: var(--dark); color: white; }
.work .eyebrow { color: var(--lime); }
.work .section-lead { color: #aab9b1; }

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter {
  padding: 9px 15px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  color: #c8d4cd;
  background: transparent;
  cursor: pointer;
}
.filter.active, .filter:hover { color: var(--dark); border-color: var(--lime); background: var(--lime); }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px;
  background: rgba(255,255,255,.045);
  transition: transform .25s, background .25s;
}
.project-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.08); }
.project-card.hidden { display: none; }
.project-icon { display: grid; width: 46px; aspect-ratio: 1; margin-bottom: 48px; place-items: center; border-radius: 14px; color: var(--dark); background: var(--lime); font-size: 20px; }
.project-card h3 { margin-bottom: 12px; font-size: 23px; line-height: 1.22; letter-spacing: -.035em; }
.project-card p { margin-bottom: 24px; color: #aab9b1; font-size: 14px; }
.project-card .tags { margin-top: auto; }
.project-card .tag { color: #bfd0c6; border-color: rgba(255,255,255,.16); }

.capability-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.capability {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.3);
}
.capability-index { color: var(--orange); font-size: 13px; font-weight: 900; }
.capability h3 { margin-bottom: 8px; font-size: 24px; letter-spacing: -.035em; }
.capability p { margin-bottom: 14px; color: var(--muted); font-size: 14px; }
.stack { color: var(--green); font-size: 12px; font-weight: 800; }

.process { padding-top: 20px; }
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-block: 1px solid var(--line); }
.process-step { position: relative; padding: 30px 24px 34px; border-left: 1px solid var(--line); }
.process-step:first-child { border-left: 0; }
.process-step span { color: var(--orange); font-size: 12px; font-weight: 900; }
.process-step h3 { margin: 50px 0 8px; font-size: 18px; }
.process-step p { margin: 0; color: var(--muted); font-size: 13px; }

.cta { padding-top: 90px; }
.cta-box {
  position: relative;
  overflow: hidden;
  padding: clamp(46px, 8vw, 96px);
  border-radius: var(--radius);
  color: white;
  background: var(--green);
}
.cta-box::after { position: absolute; right: -6%; bottom: -48%; width: 430px; aspect-ratio: 1; border: 80px solid var(--lime); border-radius: 50%; content: ""; opacity: .8; }
.cta-box h2 { position: relative; z-index: 1; max-width: 760px; }
.cta-box p { position: relative; z-index: 1; max-width: 650px; margin: 25px 0 30px; color: #d2eadf; }
.cta-box .button { position: relative; z-index: 1; color: var(--dark); border-color: var(--lime); background: var(--lime); }

footer { padding: 38px 0 46px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .nav-links { position: absolute; top: 66px; right: 24px; display: none; width: min(280px, calc(100vw - 48px)); flex-direction: column; align-items: stretch; gap: 0; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 11px 8px; }
  .language { margin-top: 8px; align-self: flex-start; }
  .menu-button { display: block; cursor: pointer; }
  .menu-button { position: relative; z-index: 2; margin-left: auto; color: var(--ink); font-size: 22px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 20px; padding-top: 70px; }
  .hero-visual { min-height: 520px; width: min(520px, 100%); margin-inline: auto; }
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
  .proof-intro { grid-column: 1/-1; padding: 22px 0; border-bottom: 1px solid var(--line); }
  .proof-item:nth-child(2) { padding-left: 0; border-left: 0; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-media { order: 0; }
  .feature-media { min-height: 380px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(odd) { border-left: 0; }
}

@media (max-width: 600px) {
  .shell { width: min(calc(100% - 28px), 1180px); }
  section { padding-block: 84px; }
  h1 { font-size: clamp(40px, 11.2vw, 48px); }
  .hero { padding-block: 56px 76px; }
  .hero-visual { width: 100%; max-width: 100%; min-height: 420px; overflow: hidden; }
  .orbit { inset-inline: 2%; }
  .profile-card { inset-inline: 5%; padding: 28px; border-radius: 120px 120px 24px 24px; }
  .profile-label strong { font-size: 25px; }
  .floating-chip { max-width: 126px; overflow: hidden; padding: 10px 13px; text-overflow: ellipsis; white-space: nowrap; }
  .chip-ai { right: 10px; }
  .chip-api { right: 10px; }
  .chip-app { left: 0; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-item, .proof-item:nth-child(2) { padding: 21px 0; border-left: 0; border-top: 1px solid var(--line); }
  .proof-item:nth-child(2) { border-top: 0; }
  .feature-media { min-height: 300px; }
  .feature-media.app { padding: 26px; }
  .project-grid, .capability-grid, .process-grid { grid-template-columns: 1fr; }
  .process-step, .process-step:nth-child(odd) { border-left: 0; border-top: 1px solid var(--line); }
  .process-step:first-child { border-top: 0; }
  .process-step h3 { margin-top: 22px; }
  .capability { grid-template-columns: 44px 1fr; padding: 26px; }
  .cta-box::after { width: 250px; border-width: 45px; opacity: .3; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .hero-actions, .filter-row, .cta { display: none; }
  body { background: white; color: black; }
  .hero { min-height: auto; padding-block: 45px; }
  .hero-visual { display: none; }
  .proof-strip { page-break-after: always; }
  section { padding-block: 48px; }
  .feature, .project-card, .capability { break-inside: avoid; box-shadow: none; }
  .work { color: black; background: white; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card { min-height: auto; border-color: #bbb; background: white; }
  .project-card p, .project-card .tag, .work .section-lead { color: #333; }
}
