:root {
  color-scheme: light;
  --bg: #f7f8f6;
  --paper: #ffffff;
  --ink: #16201f;
  --muted: #5b6765;
  --line: #d9e0de;
  --teal: #0f766e;
  --teal-dark: #0a4d49;
  --sun: #f5b85a;
  --shadow: 0 20px 55px rgba(16, 32, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 20px;
  line-height: 1.65;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(247, 248, 246, 0.92);
  border-bottom: 1px solid rgba(217, 224, 222, 0.8);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--teal);
  color: white;
  font-weight: 900;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 8px;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: #e5efed;
  outline: none;
}

.main-nav .nav-login-button {
  background: var(--teal);
  color: white;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
}

.main-nav .nav-login-button:hover,
.main-nav .nav-login-button:focus-visible {
  background: var(--teal-dark);
  color: white;
}

.hero {
  position: relative;
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(60px, 8vw, 110px) clamp(20px, 5vw, 72px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 248, 246, 0.96) 0%, rgba(247, 248, 246, 0.82) 38%, rgba(247, 248, 246, 0.18) 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("assets/hero-company.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin: 14px 0 12px;
  font-size: 28px;
  line-height: 1.25;
}

.hero-copy {
  max-width: 690px;
  margin: 26px 0 0;
  color: #33413f;
  font-size: clamp(23px, 3vw, 30px);
  line-height: 1.55;
  font-weight: 600;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 22px;
  border-radius: 8px;
  border: 2px solid var(--teal);
  font-size: 20px;
  font-weight: 800;
}

.button.primary {
  background: var(--teal);
  color: white;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--teal-dark);
}

.section {
  padding: clamp(68px, 9vw, 120px) clamp(20px, 5vw, 72px);
}

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

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.text-stack {
  color: var(--muted);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 600;
}

.text-stack p {
  margin: 0;
}

.text-stack p + p {
  margin-top: 22px;
}

.business {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.service-card {
  min-height: 300px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  box-shadow: var(--shadow);
}

.service-number {
  display: inline-block;
  color: var(--sun);
  font-size: 21px;
  font-weight: 900;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 21px;
  font-weight: 600;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: #43504e;
  font-size: 18px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 800;
  color: var(--teal-dark);
}

.auth-body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(245, 184, 90, 0.12)),
    var(--bg);
}

.auth-main {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: clamp(42px, 7vw, 90px) clamp(20px, 5vw, 72px);
}

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

.admin-panel {
  width: min(1040px, 100%);
}

.auth-panel h1,
.admin-panel h1 {
  font-size: clamp(42px, 7vw, 68px);
}

.auth-copy {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 650;
}

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

.auth-form label {
  display: grid;
  gap: 8px;
  color: #263230;
  font-size: 20px;
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  min-height: 58px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.auth-form input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(15, 118, 110, 0.18);
}

.form-message {
  min-height: 32px;
  margin: 18px 0 0;
  color: var(--teal-dark);
  font-size: 19px;
  font-weight: 800;
}

.auth-switch {
  display: inline-block;
  margin-top: 8px;
  color: var(--teal-dark);
  font-size: 20px;
  font-weight: 900;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 34px 0;
}

@media (max-width: 820px) {
  body {
    font-size: 19px;
  }

  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    font-size: 20px;
  }

  .main-nav a {
    flex: 1 1 auto;
    text-align: center;
    background: #edf3f1;
  }

  .main-nav .nav-login-button {
    flex-basis: 100%;
  }

  .hero {
    min-height: 760px;
    padding-top: 72px;
    align-items: start;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(247, 248, 246, 0.98) 0%, rgba(247, 248, 246, 0.88) 58%, rgba(247, 248, 246, 0.2) 100%);
  }

  .hero-media {
    background-position: 62% center;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    min-height: 62px;
    font-size: 22px;
  }

  .two-column,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 240px;
  }

  .service-card p {
    font-size: 22px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    font-size: 19px;
  }

  .auth-main {
    min-height: auto;
    place-items: stretch;
  }

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

@media (max-width: 420px) {
  .brand {
    font-size: 20px;
  }

  .main-nav {
    gap: 8px;
    font-size: 18px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-copy {
    font-size: 23px;
  }
}
