:root {
  --green: #04c584;
  --green-hover: #10df99;
  --mint: #f3fdfa;
  --heading: #2b2b2b;
  --body: #434444;
  --muted: #7b7b7b;
  --placeholder: #999999;
  --line: #e1e1e1;
  --paper: #fbfbfb;
  --neutral: #f5f5f5;
  --white: #ffffff;
  --slate-900: #34464b;
  --slate-700: #436068;
  --teal: #1c6c73;
  --error: #fe493d;
  --shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI",
    Roboto, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--heading);
  background: var(--white);
  letter-spacing: 0;
  font-weight: 500;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(16px, 4vw, 40px);
  color: var(--heading);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header,
.site-header.scrolled,
.site-header.menu-open {
  color: var(--heading);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--neutral);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 2px;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand small {
  margin-top: 3px;
  opacity: 0.78;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--body);
  font-size: 14px;
  font-weight: 500;
}

.nav a:hover {
  color: var(--green);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  border-radius: 2px;
  font-weight: 700;
  letter-spacing: -1px;
  white-space: nowrap;
}

.header-cta {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid #d8dfe6;
  border-radius: 16px;
  background: var(--white);
  color: var(--heading);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
}

.menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 90vh;
  display: grid;
  align-items: center;
  padding: 128px clamp(16px, 4vw, 40px) 64px;
  color: var(--heading);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 42%, rgba(251, 251, 251, 0.42) 100%),
    url("assets/hero-consulting.png") center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.23;
  font-weight: 700;
  letter-spacing: -1px;
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 30px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.7;
}

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

.button.primary {
  border: 0;
  background: var(--green);
  color: var(--white);
  box-shadow: none;
}

.button.secondary {
  border: 1px solid var(--green);
  background: var(--white);
  color: var(--green);
}

.button.primary:hover,
.header-cta:hover {
  background: var(--green-hover);
  color: var(--white);
}

.button.secondary:hover {
  background: var(--mint);
}

.hero-panel {
  position: relative;
  z-index: 1;
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 980px;
  margin-top: 44px;
  background: transparent;
  box-shadow: none;
}

.hero-panel div {
  min-height: 134px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--heading);
  box-shadow: var(--shadow);
}

.hero-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.hero-panel strong {
  display: block;
  margin: 10px 0 8px;
  color: var(--heading);
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
}

.hero-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.section {
  padding: 76px clamp(16px, 4vw, 40px);
}

.section-label {
  color: var(--green);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}

.intro-grid,
.section-heading,
.profile {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.intro h2,
.section-heading h2,
.profile h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3.3vw, 42px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.intro p,
.section-heading > p,
.profile-copy > p,
.contact > div > p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.services {
  background: var(--paper);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.service-card {
  min-height: 250px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 2px;
  background: var(--neutral);
  color: var(--slate-900);
  font-size: 15px;
}

.service-card h3,
.timeline h3 {
  margin-bottom: 12px;
  color: var(--heading);
  font-size: 20px;
  font-weight: 700;
}

.service-card p,
.timeline p {
  color: var(--muted);
  line-height: 1.62;
}

.service-card p {
  min-height: 52px;
}

.service-card small {
  display: inline-flex;
  margin-top: 16px;
  padding: 4px 10px;
  border-radius: 41px;
  background: var(--mint);
  color: var(--green);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.analysis {
  background: var(--white);
}

.data-card {
  margin-top: 36px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.data-row {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  min-width: 720px;
  border-bottom: 1px solid var(--line);
}

.data-row:last-child {
  border-bottom: 0;
}

.data-row span,
.data-row strong,
.data-row em {
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.4;
}

.data-head {
  background: var(--neutral);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.data-row strong {
  color: var(--heading);
  font-weight: 700;
  text-align: right;
}

.data-row em {
  color: var(--body);
  font-style: normal;
}

.process {
  background: var(--paper);
  color: var(--heading);
}

.process .section-heading {
  grid-template-columns: 1fr;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  border-top: 0;
}

.timeline li {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.timeline li:last-child {
  margin-right: 0;
}

.timeline span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  border-radius: 2px;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
}

.timeline p {
  color: var(--muted);
}

.profile {
  background: var(--white);
}

.profile-list {
  margin: 34px 0 0;
}

.profile-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.profile-list dt {
  color: var(--green);
  font-weight: 800;
}

.profile-list dd {
  margin: 0;
  color: var(--muted);
}

.profile-card {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  box-shadow: var(--shadow);
  text-align: center;
}

.profile-initial {
  display: grid;
  place-items: center;
  width: 156px;
  height: 156px;
  margin-bottom: 30px;
  border: 8px solid var(--white);
  border-radius: 2px;
  background: var(--green);
  color: var(--white);
  font-size: 40px;
  font-weight: 800;
}

.profile-card strong {
  font-size: 28px;
}

.profile-card p {
  max-width: 340px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 560px);
  gap: clamp(32px, 6vw, 80px);
  padding: 76px clamp(16px, 4vw, 40px);
  background: var(--paper);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--body);
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0 16px;
  min-height: 48px;
  font: inherit;
  color: var(--body);
  background: var(--white);
}

input:focus,
textarea:focus {
  border-color: var(--green-hover);
  outline: 0;
  background: var(--mint);
}

textarea {
  padding-top: 13px;
  resize: vertical;
}

.form-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 28px clamp(16px, 4vw, 40px);
  background: var(--white);
  border-top: 1px solid var(--neutral);
  color: var(--muted);
  font-size: 13px;
}

.footer p {
  margin: 0;
}

.disclaimer {
  max-width: 620px;
}

@media (max-width: 980px) {
  .nav,
  .header-cta {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .site-header.menu-open .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 12px 20px 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
  }

  .site-header.menu-open .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: auto;
    padding-top: 124px;
  }

  .hero-panel,
  .service-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-grid,
  .section-heading,
  .profile,
  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand small {
    font-size: 12px;
  }

  .site-header.menu-open .nav {
    top: 68px;
  }

  .hero {
    padding: 106px 18px 42px;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 62%, rgba(251, 251, 251, 0.78) 100%),
      url("assets/hero-consulting.png") center / cover no-repeat;
  }

  h1 {
    font-size: 40px;
  }

  .button {
    width: 100%;
  }

  .hero-panel,
  .service-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero-panel div {
    min-height: auto;
  }

  .section,
  .contact {
    padding: 72px 18px;
  }

  .service-card {
    min-height: auto;
  }

  .timeline li {
    border-bottom: 1px solid var(--line);
  }

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

  .profile-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .profile-card {
    min-height: 330px;
    padding: 30px 20px;
  }

  .profile-initial {
    width: 126px;
    height: 126px;
    font-size: 32px;
  }

  .contact-form {
    padding: 22px;
  }

  .footer {
    display: grid;
  }
}

.edit-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 56px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  box-shadow: var(--shadow);
}

.edit-fab:hover {
  background: var(--green-hover);
}

.file-warning {
  max-width: 640px;
  margin: 96px auto;
  padding: 0 24px;
  color: var(--body);
}

.file-warning h1 {
  margin: 0 0 16px;
  color: var(--heading);
}

.file-warning ol {
  margin: 0 0 24px;
  padding-left: 20px;
  line-height: 1.7;
}

.file-warning-note {
  margin-top: 16px;
  color: var(--muted);
}

.admin-page {
  background: var(--paper);
}

.admin-header,
.admin-main {
  max-width: 920px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.admin-header h1 {
  margin: 8px 0 12px;
}

.admin-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.admin-status {
  margin: 24px 0;
  color: var(--muted);
}

.admin-status.is-error {
  color: var(--error);
}

.admin-form {
  display: grid;
  gap: 24px;
}

.admin-section {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.admin-section h2 {
  margin: 0;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--heading);
  font-weight: 700;
}

.admin-form input,
.admin-form textarea,
.admin-json {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font: inherit;
  color: var(--body);
  background: var(--white);
}

.admin-form textarea:focus,
.admin-form input:focus {
  outline: 2px solid var(--green-hover);
  border-color: var(--green-hover);
}

.admin-help {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 768px) {
  .admin-header {
    flex-direction: column;
  }

  .admin-actions {
    width: 100%;
  }

  .admin-actions .button {
    flex: 1;
  }
}
