:root {
  color-scheme: light;
  --ink: #182126;
  --muted: #617073;
  --paper: #f7f9f7;
  --surface: #ffffff;
  --line: #d8e0df;
  --brand: #008c9a;
  --brand-dark: #005f68;
  --leaf: #3f7d58;
  --sun: #f0b45c;
  --rose: #d46f63;
  --nav-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: var(--nav-height);
  border-bottom: 1px solid rgba(24, 33, 38, 0.1);
  background: rgba(247, 249, 247, 0.92);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1120px, calc(100% - 36px));
  min-height: var(--nav-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo-link img {
  width: clamp(136px, 18vw, 210px);
  height: auto;
  display: block;
}

.menu {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.2vw, 14px);
}

.menu a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: clamp(18px, 2vw, 20px);
  font-weight: 800;
}

.menu a:hover,
.menu a:focus-visible {
  outline: none;
  background: #e8f3f3;
  color: var(--brand-dark);
}

section {
  scroll-margin-top: calc(var(--nav-height) + 18px);
}

.hero {
  min-height: calc(100svh - var(--nav-height));
  display: grid;
  align-items: center;
  padding: clamp(44px, 7vw, 90px) 0;
  background:
    linear-gradient(90deg, rgba(247, 249, 247, 0.96), rgba(247, 249, 247, 0.72)),
    url("assets/ysworks-logo.png") right 8vw center / min(42vw, 440px) auto no-repeat,
    linear-gradient(135deg, #fbfcfb 0%, #ecf5f4 52%, #f7efe7 100%);
}

.hero-inner,
.section-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.eyebrow,
.auth-eyebrow {
  margin: 0 0 18px;
  color: var(--brand-dark);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.25;
  font-weight: 900;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  font-weight: 900;
  word-break: keep-all;
}

h1 {
  max-width: 860px;
  font-size: clamp(54px, 9vw, 112px);
  line-height: 1.02;
}

h2 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.08;
}

.hero-copy {
  max-width: 760px;
  margin: 28px 0 0;
  color: #2d3c40;
  font-size: clamp(25px, 3.4vw, 42px);
  line-height: 1.26;
  font-weight: 800;
  word-break: keep-all;
}

.hero-actions,
.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button,
.auth-button {
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

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

.band {
  padding: clamp(64px, 9vw, 120px) 0;
}

.band.intro {
  background: var(--surface);
}

.lead {
  max-width: 940px;
  margin: 24px 0 0;
  color: #33464a;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.34;
  font-weight: 760;
  word-break: keep-all;
}

.values,
.services {
  display: grid;
  gap: 14px;
  margin-top: 42px;
}

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

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

.value,
.service {
  min-height: 190px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.service {
  min-height: 230px;
  display: grid;
  align-content: space-between;
}

.value b,
.service b {
  display: block;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.16;
  font-weight: 900;
  word-break: keep-all;
}

.value p,
.service p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(19px, 2.3vw, 24px);
  line-height: 1.42;
  font-weight: 700;
  word-break: keep-all;
}

.value:nth-child(1) {
  border-top: 8px solid var(--brand);
}

.value:nth-child(2) {
  border-top: 8px solid var(--leaf);
}

.value:nth-child(3) {
  border-top: 8px solid var(--sun);
}

.business {
  background: #eef4f1;
}

.service small {
  color: var(--rose);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 900;
}

.closing {
  padding: clamp(56px, 8vw, 90px) 0;
  background: var(--ink);
  color: #fff;
}

.closing .section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.closing p {
  max-width: 720px;
  margin: 0;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.16;
  font-weight: 900;
  word-break: keep-all;
}

.closing a {
  flex: 0 0 auto;
  min-height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border: 2px solid #fff;
  border-radius: 8px;
  color: #fff;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 900;
  text-decoration: none;
}

.auth-body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(247, 249, 247, 0.96), rgba(237, 246, 245, 0.88)),
    url("assets/ysworks-logo.png") right 8vw top 8vh / min(38vw, 380px) auto no-repeat;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  align-items: center;
  width: min(960px, calc(100% - 36px));
  margin: 0 auto;
  padding: 48px 0;
}

.auth-panel {
  width: min(680px, 100%);
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.auth-panel h1 {
  font-size: clamp(44px, 7vw, 76px);
}

.auth-copy {
  margin: 18px 0 0;
  color: #33464a;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.32;
  font-weight: 800;
  word-break: keep-all;
}

.auth-form {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field span,
.profile-box span {
  color: var(--muted);
  font-size: 17px;
  font-weight: 900;
}

.auth-field input {
  width: 100%;
  min-height: 60px;
  padding: 0 16px;
  border: 2px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 21px;
  font-weight: 750;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--brand);
}

.auth-form .auth-button {
  width: 100%;
  min-height: 66px;
}

.auth-link,
.auth-message {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.4;
  font-weight: 750;
}

.auth-link a {
  color: var(--brand-dark);
  font-weight: 900;
}

.profile-box {
  display: grid;
  gap: 8px;
  margin-top: 32px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
}

.profile-box strong {
  margin-bottom: 12px;
  font-size: clamp(22px, 3vw, 30px);
  word-break: break-word;
}

.admin-section {
  display: grid;
  gap: 22px;
  margin-top: 36px;
}

.admin-section h2 {
  font-size: clamp(34px, 5vw, 52px);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.user-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.user-table th,
.user-table td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.35;
}

.user-table th {
  color: var(--brand-dark);
  background: #eef7f7;
  font-weight: 900;
}

.user-table td {
  color: #26383c;
  font-weight: 760;
  word-break: break-word;
}

.user-table tr:last-child td {
  border-bottom: 0;
}

.empty-state {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.empty-state strong {
  display: block;
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1.24;
}

.empty-state p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.42;
  font-weight: 750;
}

.report-body {
  background: #f7f9f7;
}

.report-hero {
  padding: clamp(50px, 8vw, 94px) 0 clamp(42px, 7vw, 72px);
  background:
    linear-gradient(90deg, rgba(247, 249, 247, 0.98), rgba(247, 249, 247, 0.82)),
    url("assets/ysworks-logo.png") right 8vw top 58px / min(34vw, 330px) auto no-repeat,
    linear-gradient(135deg, #fbfcfb 0%, #e8f3f1 58%, #f7efe7 100%);
}

.report-hero h1 {
  max-width: 980px;
  font-size: clamp(46px, 7vw, 84px);
}

.report-lead {
  max-width: 900px;
  margin: 24px 0 0;
  color: #314449;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.34;
  font-weight: 800;
  word-break: keep-all;
}

.report-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}

.report-summary div {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.report-summary span,
.opportunity-head span,
.opportunity dt {
  display: block;
  color: var(--brand-dark);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 900;
}

.report-summary strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(21px, 2.5vw, 28px);
  line-height: 1.22;
  word-break: keep-all;
}

.report-section {
  padding: clamp(58px, 8vw, 96px) 0;
  background: var(--surface);
}

.client-section {
  background: #eef4f1;
}

.report-section h2 {
  max-width: 980px;
  font-size: clamp(38px, 5.4vw, 68px);
}

.report-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.opportunity {
  display: grid;
  gap: 18px;
  min-height: 390px;
  padding: 26px;
  border: 1px solid var(--line);
  border-top: 8px solid var(--leaf);
  border-radius: 8px;
  background: #fff;
}

.opportunity.priority {
  border-top-color: var(--brand);
}

.opportunity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.opportunity-head strong {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  background: #e8f3f3;
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 900;
}

.opportunity h3 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.18;
  word-break: keep-all;
}

.opportunity p {
  margin: 0;
  color: #3b4f54;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.48;
  font-weight: 740;
  word-break: keep-all;
}

.opportunity dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.opportunity dl div {
  display: grid;
  gap: 4px;
}

.opportunity dd {
  margin: 0;
  color: #273a3e;
  font-size: 18px;
  line-height: 1.38;
  font-weight: 800;
}

.opportunity a,
.report-table a {
  color: var(--brand-dark);
  font-weight: 900;
}

.report-table-wrap {
  width: 100%;
  margin-top: 34px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.report-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.report-table th,
.report-table td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 19px;
  line-height: 1.42;
  font-weight: 760;
  vertical-align: top;
}

.report-table th {
  color: var(--brand-dark);
  background: #f8fbfb;
  font-weight: 900;
}

.report-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 760px) {
  :root {
    --nav-height: 118px;
  }

  .nav {
    width: min(100% - 28px, 1120px);
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }

  .menu {
    width: 100%;
    justify-content: space-between;
  }

  .menu a {
    flex: 1;
    justify-content: center;
    padding: 0 8px;
    font-size: 19px;
  }

  .hero {
    min-height: auto;
    padding: 54px 0 72px;
    background:
      linear-gradient(180deg, rgba(247, 249, 247, 0.88), rgba(247, 249, 247, 0.96)),
      url("assets/ysworks-logo.png") right 18px top 26px / 190px auto no-repeat,
      linear-gradient(135deg, #fbfcfb 0%, #ecf5f4 52%, #f7efe7 100%);
  }

  .hero-inner,
  .section-inner,
  .auth-shell {
    width: min(100% - 28px, 1120px);
  }

  h1 {
    font-size: clamp(50px, 15vw, 76px);
  }

  .hero-copy,
  .lead {
    font-size: 26px;
  }

  .hero-actions,
  .auth-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button,
  .auth-button {
    width: 100%;
    min-height: 66px;
  }

  .values,
  .services,
  .report-summary,
  .report-list {
    grid-template-columns: 1fr;
  }

  .value,
  .service,
  .opportunity {
    min-height: auto;
    padding: 24px;
  }

  .report-hero {
    background:
      linear-gradient(180deg, rgba(247, 249, 247, 0.92), rgba(247, 249, 247, 0.98)),
      url("assets/ysworks-logo.png") right 18px top 26px / 170px auto no-repeat,
      linear-gradient(135deg, #fbfcfb 0%, #ecf5f4 52%, #f7efe7 100%);
  }

  .report-table th,
  .report-table td {
    font-size: 18px;
  }

  .closing .section-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .closing a {
    width: 100%;
  }
}
