:root {
  --blue: #0868ef;
  --ink: #0a0a0a;
}

* {
  box-sizing: border-box;
}

html {
  background: #fff;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--font-geist-sans), "Apple SD Gothic Neo", "Noto Sans KR", Arial, sans-serif;
}

button,
a { font: inherit; }

button { cursor: default; }

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  width: calc(100% - 96px);
  max-width: 1440px;
  margin: 0 auto;
  gap: 42px;
  height: 80px;
  padding: 0;
  background: #fff;
  border-bottom: 1px solid #efefef;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: #050505;
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -0.7px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 37px;
  min-width: 0;
}

.main-nav a,
.main-nav button {
  padding: 0;
  border: 0;
  color: #0b0b0b;
  background: transparent;
  font-size: 16px;
  font-weight: 720;
  letter-spacing: -0.4px;
  text-decoration: none;
  white-space: nowrap;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

.auth-actions button {
  min-width: 112px;
  height: 50px;
  border-radius: 28px;
  font-size: 16px;
  font-weight: 760;
}

.login-button {
  border: 1.5px solid #111;
  background: #fff;
  color: #111;
}

.signup-button {
  border: 1.5px solid var(--blue);
  background: var(--blue);
  color: #fff;
}

.home-main {
  min-height: 1370px;
  background: #000;
  color: #fff;
  overflow: hidden;
}

.intro-copy {
  width: min(560px, calc(100% - 40px));
  margin: 0 auto;
  padding: 93px 0 120px;
  text-align: center;
}

.intro-copy h1 {
  margin: 0 0 56px;
  font-size: clamp(32px, 2.7vw, 42px);
  font-weight: 800;
  letter-spacing: -1.6px;
  line-height: 1.15;
}

.copy-block { margin: 0 0 42px; }

.copy-block p,
.reality,
blockquote p {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.45px;
  line-height: 1.85;
}

.ellipsis {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 78px 0 70px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

blockquote { margin: 0 0 42px; }

blockquote span {
  display: block;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.1;
}

blockquote p { margin: 15px 0 8px; }

.programs-main {
  width: calc(100% - 96px);
  max-width: 1440px;
  margin: 0 auto;
  min-height: calc(100vh - 80px);
  padding: 125px 0 42px;
  background: #fff;
}

.programs-main > h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 850;
  letter-spacing: -1.2px;
  line-height: 1.2;
}

.category-tabs {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  height: 120px;
  border-bottom: 1px solid #ddd;
}

.category-tabs button {
  position: relative;
  height: 52px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 16px;
  white-space: nowrap;
}

.category-tabs button.active {
  font-weight: 760;
}

.category-tabs button.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #111;
}

.program-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0 28px;
}

.select-shell,
.search-shell {
  height: 50px;
  border: 1px solid #d8d8d8;
  border-radius: 9px;
  background: #fff;
  color: #1b1b1b;
}

.select-shell {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: 132px;
  padding: 0 15px;
  font-size: 15px;
  font-weight: 650;
}

.select-shell.compact {
  min-width: 110px;
  font-weight: 500;
}

.select-shell span {
  font-size: 20px;
  line-height: 1;
  transform: translateY(-2px);
}

.toolbar-right {
  display: flex;
  gap: 12px;
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 330px;
  padding: 0 15px;
}

.search-shell > span {
  color: #444;
  font-size: 27px;
  line-height: 1;
  transform: rotate(-18deg);
}

.search-shell input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111;
  font-size: 16px;
}

.search-shell input::placeholder { color: #777; }

.course-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 29px;
}

.course-card { min-width: 0; }

.course-thumb {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 420 / 236;
  border-radius: 16px;
  background: #eef1f6;
}

.course-thumb > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.heart {
  position: absolute;
  z-index: 2;
  top: 17px;
  right: 17px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
}

.course-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: #666;
  font-size: 14px;
  white-space: nowrap;
}

.course-kind {
  padding: 2px 5px;
  border-radius: 4px;
  background: #f0f0f0;
  color: #555;
}

.rating {
  margin-left: 3px;
  color: #ffbf00;
  font-size: 19px;
  line-height: 1;
}

.course-card h2 {
  overflow: hidden;
  margin: 11px 0 10px;
  color: #111;
  font-size: 17px;
  font-weight: 760;
  letter-spacing: -0.35px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.installment,
.monthly,
.total {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.75;
}

.monthly {
  color: #222;
  font-size: 16px;
}

.monthly strong {
  font-size: 21px;
  font-weight: 850;
}

.total { text-decoration: underline; }

@media (max-width: 920px) {
  .site-header {
    width: calc(100% - 64px);
    gap: 18px;
  }
  .main-nav { gap: 18px; }
  .main-nav button:nth-of-type(2) { display: none; }
  .programs-main {
    width: calc(100% - 64px);
    padding-top: 80px;
  }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .site-header {
    width: auto;
    margin: 0;
    height: auto;
    min-height: 68px;
    padding: 14px 16px;
    flex-wrap: wrap;
  }
  .brand { font-size: 17px; }
  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .main-nav button { display: none; }
  .auth-actions button {
    min-width: 70px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }
  .intro-copy { padding-top: 68px; }
  .intro-copy h1 { margin-bottom: 48px; }
  .copy-block p,
  .reality,
  blockquote p { font-size: 15px; }
  .programs-main {
    width: auto;
    margin: 0;
    padding: 56px 16px 36px;
  }
  .programs-main > h1 { font-size: 30px; }
  .category-tabs {
    height: 92px;
    gap: 4px;
    overflow-x: auto;
  }
  .program-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .toolbar-right { width: 100%; }
  .search-shell { flex: 1; width: auto; }
  .course-grid { grid-template-columns: 1fr; gap: 34px; }
}
