:root {
  color-scheme: light;
  --ink: #202033;
  --muted: #69697b;
  --line: #deddea;
  --surface: #ffffff;
  --page: #f6f5fb;
  --violet: #6552d9;
  --violet-dark: #4d3eb5;
  --violet-soft: #efedff;
  --coral: #e8674a;
  --coral-soft: #fff0eb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 3%, rgba(101, 82, 217, .1), transparent 27rem),
    var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

a { color: inherit; }

.home-shell {
  width: min(100% - 48px, 1160px);
  margin: 0 auto;
  padding: 34px 0 36px;
}

.home-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  min-height: 310px;
  padding: 12px 0 52px;
}

.brand-lockup { margin-bottom: 58px; }

.eyebrow,
.tool-label {
  margin: 0 0 10px;
  color: var(--violet);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.home-head h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: -.055em;
  line-height: 1.08;
}

.home-head h1 em {
  color: var(--violet);
  font-style: normal;
}

.home-head > div > p:last-child {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.teacher-link {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease;
}

.teacher-link:hover { border-color: #b8b3dd; background: #fff; }

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

.tool-panel {
  position: relative;
  min-height: 320px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 14px 45px rgba(38, 33, 73, .07);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tool-panel::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -60px;
  width: 190px;
  height: 190px;
  border: 34px solid var(--violet-soft);
  border-radius: 50%;
  opacity: .8;
  pointer-events: none;
}

.tool-card::after { border-color: var(--coral-soft); }

.tool-panel:hover {
  transform: translateY(-4px);
  border-color: #cbc7e9;
  box-shadow: 0 20px 55px rgba(38, 33, 73, .12);
}

.tool-icon {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--violet-soft);
  color: var(--violet);
  font-size: 28px;
  font-weight: 500;
}

.tool-card .tool-icon { background: var(--coral-soft); color: var(--coral); }
.tool-card .tool-label { color: var(--coral); }

.tool-panel h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -.035em;
  line-height: 1.25;
}

.tool-panel div > p:last-child {
  max-width: 470px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.tool-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--violet);
  font-size: 14px;
  font-weight: 850;
}

.tool-card .tool-action { color: var(--coral); }
.tool-action b { font-size: 19px; }

.status-band {
  margin-top: 20px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #29283c;
  color: #fff;
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 2fr);
  gap: 30px;
}

.status-band .eyebrow { color: #a99dff; }
.status-band h2 { margin: 0; font-size: 22px; line-height: 1.45; }
.status-band dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.status-band dl > div { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.14); }
.status-band dt { color: #afadbe; font-size: 12px; font-weight: 700; }
.status-band dd { margin: 8px 0 0; font-size: 19px; font-weight: 900; }

.usage-note {
  margin-top: 18px;
  padding: 20px 22px;
  border: 1px solid #eadccb;
  border-radius: 16px;
  background: #fffaf3;
}
.usage-note strong { display: block; margin-bottom: 6px; color: #76501c; }
.usage-note p { margin: 0; color: #78664e; line-height: 1.65; }

@media (max-width: 760px) {
  .home-shell { width: min(100% - 24px, 620px); padding-top: 20px; }
  .home-head { min-height: 0; padding-bottom: 36px; }
  .brand-lockup { margin-bottom: 42px; }
  .home-head h1 { font-size: 44px; }
  .home-head > div > p:last-child { font-size: 16px; }
  .primary-tools { grid-template-columns: 1fr; }
  .tool-panel { min-height: 280px; padding: 24px; border-radius: 20px; }
  .status-band { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
  .status-band dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 440px) {
  .home-head { gap: 12px; }
  .home-head h1 { font-size: 38px; }
  .teacher-link { padding: 0 12px; font-size: 0; }
  .teacher-link span { font-size: 18px; }
  .tool-panel { min-height: 260px; }
}
