/* CELODA coming soon — celoda.ai
   Colors match the official brand tokens already used on ksgglobal.us.
   Do not crop, filter, or recolor the logo. */

:root {
  --navy: #081c44;
  --blue: #2563ff;
  --aqua: #00dcca;
  --coral: #ff7a6b;
  --slate: #203454;
  --body: #3a4d68;
  --offwhite: #f8fafc;
  --line: #e4eaf2;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--navy);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
}

.accent {
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--aqua) 58%, var(--coral));
}

main {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2.75rem, 8vh, 5.5rem) clamp(1.25rem, 5vw, 2rem) 2rem;
}

.hero {
  width: min(40rem, 100%);
  text-align: center;
}

.logo {
  display: block;
  width: min(26rem, 100%);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.brand-aliases {
  margin: 0.6rem 0 0;
  color: #62738c;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
}

.brand-aliases [lang="ko"] {
  font-family: "Noto Sans KR", sans-serif;
}

.brand-aliases [lang="ja"] {
  font-family: "Noto Sans JP", sans-serif;
}

.brand-alias-separator {
  padding: 0 0.18em;
}

.tagline {
  margin: 0.4rem 0 0;
  color: var(--slate);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-wrap: balance;
}

h1 {
  max-width: 12em;
  margin: 2.35rem auto 0;
  font-size: clamp(1.85rem, 4.4vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  text-wrap: balance;
}

.description {
  max-width: 34rem;
  margin: 1.05rem auto 0;
  color: var(--body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  text-wrap: pretty;
}

.status {
  margin: 1.45rem 0 0;
  color: var(--slate);
  font-size: 0.975rem;
  font-weight: 500;
  line-height: 1.5;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.85rem 0 0;
  padding: 0.45rem 0.85rem 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}

.soon::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--coral);
  flex: none;
}

footer {
  padding: 0.5rem clamp(1.25rem, 5vw, 2rem) calc(1.5rem + env(safe-area-inset-bottom));
  text-align: center;
}

footer p {
  margin: 0;
  color: var(--body);
  font-size: 0.875rem;
  line-height: 1.5;
}

footer a {
  color: var(--navy);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

footer a:hover {
  color: var(--blue);
}

footer a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}


/* Language switch */
.lang-switch {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 0.75rem clamp(1.25rem, 5vw, 2rem) 0;
}

.lang-switch button {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--slate);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.lang-switch button:focus-visible,
.channel-links a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Teachers */
.teachers {
  width: min(64rem, 100%);
  margin: 0 auto;
  padding: 1.5rem clamp(1.25rem, 5vw, 2rem) 3rem;
  text-align: center;
}

.teachers h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.teachers-sub {
  max-width: 46rem;
  margin: 0.75rem auto 0;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.teacher-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
}

.teacher-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.teacher-body {
  padding: 0.9rem 1rem 1.1rem;
}

.teacher-body h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.ai-badge {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #eef3ff;
  color: var(--blue);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.teacher-spec {
  margin: 0.35rem 0 0;
  color: var(--slate);
  font-size: 0.875rem;
  font-weight: 600;
}

.teacher-line {
  margin: 0.45rem 0 0;
  color: var(--body);
  font-size: 0.875rem;
  line-height: 1.6;
}

.channels {
  margin-top: 2.25rem;
}

.channels-title {
  margin: 0;
  color: var(--slate);
  font-size: 0.975rem;
  font-weight: 600;
}

.channel-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.channel-links a {
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.channel-links a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Korean: break lines at spaces, not inside words; wider text blocks */
html:lang(ko) body {
  word-break: keep-all;
  overflow-wrap: break-word;
}

html:lang(ko) .teachers-sub,
html:lang(ko) .description {
  max-width: 46rem;
  text-wrap: balance;
}

html:lang(ja) body {
  word-break: normal;
  line-break: strict;
}
