:root {
  color-scheme: dark;
  --bg: #09090d;
  --surface: rgba(24, 24, 32, 0.82);
  --surface-strong: #181820;
  --surface-soft: #111118;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f7f7fb;
  --muted: #aaaab8;
  --accent: #ff6b81;
  --accent-soft: rgba(255, 107, 129, 0.14);
  --accent-line: rgba(255, 107, 129, 0.36);
  --success: #62d99c;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  font-family: Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 12% -8%, var(--accent-soft), transparent 30rem),
    radial-gradient(circle at 94% 24%, rgba(99, 102, 241, 0.09), transparent 26rem),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.cookiebot {
  --accent: #ffb45e;
  --accent-soft: rgba(255, 180, 94, 0.13);
  --accent-line: rgba(255, 180, 94, 0.36);
}

body.schoolbot {
  --accent: #61c7ff;
  --accent-soft: rgba(97, 199, 255, 0.13);
  --accent-line: rgba(97, 199, 255, 0.36);
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 8px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 13, 0.78);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent-line);
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 11px;
  border-radius: 9px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--text);
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(270px, 0.7fr);
  align-items: center;
  gap: 64px;
  padding: 104px 0 84px;
}

.hero.compact {
  min-height: 510px;
  grid-template-columns: 1fr;
  padding-bottom: 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 800px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero.compact h1 {
  max-width: 880px;
  font-size: clamp(3rem, 7vw, 5.4rem);
}

.gradient-text {
  background: linear-gradient(105deg, #fff 20%, var(--accent) 110%);
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 720px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.3vw, 1.25rem);
  word-break: keep-all;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-strong);
  color: var(--text);
  text-decoration: none;
  font-weight: 850;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button.primary {
  border-color: transparent;
  background: var(--accent);
  color: #111118;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--accent-line);
}

.button.primary:hover {
  background: color-mix(in srgb, var(--accent), white 12%);
}

.hero-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, var(--surface), rgba(14, 14, 20, 0.7));
  box-shadow: var(--shadow);
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 26px;
}

.terminal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff6b6b;
}

.terminal-dot:nth-child(2) {
  background: #ffd166;
}

.terminal-dot:nth-child(3) {
  background: #62d99c;
}

.stat-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.stat:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.stat dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.stat dd {
  margin: 0;
  font-weight: 900;
}

.online {
  color: var(--success);
}

.section {
  padding: 88px 0;
}

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

.section-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.section h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.section-heading p,
.muted {
  color: var(--muted);
}

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

.card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  text-decoration: none;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card::after {
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--accent-soft);
  filter: blur(8px);
  content: "";
}

.card:hover {
  z-index: 1;
  transform: translateY(-6px);
  border-color: var(--accent-line);
}

.card.cookie {
  --accent: #ffb45e;
  --accent-soft: rgba(255, 180, 94, 0.13);
  --accent-line: rgba(255, 180, 94, 0.36);
}

.card.school {
  --accent: #61c7ff;
  --accent-soft: rgba(97, 199, 255, 0.13);
  --accent-line: rgba(97, 199, 255, 0.36);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 36px;
  border: 1px solid var(--accent-line);
  border-radius: 15px;
  background: var(--accent-soft);
  font-size: 1.55rem;
}

.card h3 {
  margin-bottom: 9px;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.card p {
  max-width: 490px;
  color: var(--muted);
}

.card-link {
  position: relative;
  z-index: 2;
  margin-top: auto;
  color: var(--accent);
  font-weight: 850;
}

.feature-grid,
.team-grid,
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature,
.person,
.link-box {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface-soft);
}

.feature strong,
.person strong,
.link-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.06rem;
}

.feature p,
.person p,
.link-box p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.person.empty {
  border-style: dashed;
  background: transparent;
}

.person-link {
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.person-link:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.person-label {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.command-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.command-list li {
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-soft);
  color: var(--muted);
}

code {
  padding: 0.15em 0.42em;
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
  font-weight: 800;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  align-items: start;
  justify-content: space-between;
  gap: 64px;
  padding: 72px 0 110px;
}

.legal-nav {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 7px;
}

.legal-nav a {
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.legal-nav a:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.legal-content h1 {
  margin-bottom: 14px;
  font-size: clamp(2.7rem, 6vw, 4.6rem);
}

.legal-meta {
  margin-bottom: 50px;
  color: var(--muted);
}

.legal-content section {
  margin-bottom: 46px;
  scroll-margin-top: 100px;
}

.legal-content h2 {
  margin-bottom: 13px;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.legal-content h3 {
  margin: 24px 0 8px;
  font-size: 1.05rem;
}

.legal-content p,
.legal-content li {
  color: #c4c4cf;
}

.legal-content ul {
  padding-left: 1.25rem;
}

.notice {
  margin: 28px 0;
  padding: 18px 20px;
  border: 1px solid var(--accent-line);
  border-radius: 15px;
  background: var(--accent-soft);
}

.notice p:last-child {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 800px) {
  .shell {
    width: min(100% - 28px, 680px);
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 13px 0 11px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-links a {
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 84px 0 70px;
  }

  .hero.compact {
    padding-top: 72px;
  }

  .card-grid,
  .feature-grid,
  .team-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 290px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-top: 52px;
  }

  .legal-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(2.75rem, 15vw, 4rem);
  }

  .section {
    padding: 68px 0;
  }

  .command-list {
    grid-template-columns: 1fr;
  }

  .actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
