:root {
  --primary: #183B5B;
  --secondary: #EAF4FB;
  --accent: #F28C28;
  --background: #FFFFFF;
  --text: #334155;
  --muted: #64748B;
  --line: #D9E6EF;
  --shadow: 0 14px 32px rgba(24, 59, 91, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  line-height: 1.75;
}

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

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

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

.brand {
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.teacher-finder-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.teacher-finder-link:focus-visible,
.nav a:focus-visible {
  outline: 3px solid rgba(242, 140, 40, 0.42);
  outline-offset: 3px;
}

.intro {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0 56px;
}

.intro h1 {
  max-width: 720px;
  color: var(--primary);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.intro p:last-child {
  max-width: 680px;
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.75;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.version {
  border-top: 1px solid var(--line);
}

.version-header {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0;
}

.version-name {
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.version-header p:last-child {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.hero-section,
.card-section,
.content-section,
.cta-section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-section,
.content-section {
  background: #fff;
}

.content {
  max-width: 680px;
}

h2 {
  color: var(--primary);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

h3 {
  color: var(--primary);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.description,
.card p {
  max-width: 680px;
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(242, 140, 40, 0.16);
}

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

.card {
  min-height: 170px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--secondary);
  box-shadow: var(--shadow);
}

.card p {
  margin-top: 12px;
  color: var(--muted);
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
}

.cta-section h2,
.cta-section .description {
  color: #fff;
}

.cta-section .description {
  color: rgba(255, 255, 255, 0.82);
}

.version-compact {
  --section-space: 64px;
  --title-desc-gap: 16px;
  --desc-button-gap: 24px;
  --card-gap: 16px;
}

.version-balanced {
  --section-space: 80px;
  --title-desc-gap: 24px;
  --desc-button-gap: 32px;
  --card-gap: 24px;
}

.version-luxury {
  --section-space: 112px;
  --title-desc-gap: 32px;
  --desc-button-gap: 40px;
  --card-gap: 32px;
}

.version .hero-section,
.version .card-section,
.version .content-section {
  padding: var(--section-space) 0;
}

.version .cta-section {
  margin-top: var(--section-space);
  margin-bottom: var(--section-space);
  padding: var(--section-space);
  gap: var(--card-gap);
}

.version .description {
  margin-top: var(--title-desc-gap);
}

.version .button {
  margin-top: var(--desc-button-gap);
}

.version .card-grid {
  gap: var(--card-gap);
}

.cta-section .button {
  flex: 0 0 auto;
  margin-top: 0;
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .cta-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .nav {
    min-height: auto;
    padding: 18px 0;
    align-items: center;
    flex-wrap: wrap;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 14px;
  }

  .teacher-finder-link {
    min-height: 44px;
    margin-left: auto;
    padding: 0 12px;
    font-size: 14px;
  }

  .intro {
    padding: 56px 0 42px;
  }

  .intro h1 {
    max-width: 620px;
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  .version-compact {
    --section-space: 48px;
  }

  .version-balanced {
    --section-space: 64px;
  }

  .version-luxury {
    --section-space: 80px;
  }

  .version .cta-section {
    padding: var(--section-space) 24px;
  }
}

@media (max-width: 480px) {
  .nav,
  .intro,
  .version-header,
  .hero-section,
  .card-section,
  .content-section,
  .cta-section {
    width: min(100% - 40px, 1120px);
  }

  .intro h1 {
    max-width: 330px;
    font-size: 32px;
  }

  .button {
    width: 100%;
  }
}
