/* =============================================
   Design Tokens
============================================= */
:root {
  --font: "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bg: #FFF8EF;
  --card: #FFFFFF;
  --text: #1F2A37;
  --muted: #6B7280;
  --coral: #FF7A2F;
  --mint: #6CC7B8;
  --blue: #7AA7FF;
  --line: rgba(31,42,55,0.06);
  --radius-card: 16px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(31, 42, 55, 0.08);
  --max: 1120px;
}

/* =============================================
   Base
============================================= */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

img, svg {
  max-width: 100%;
  display: block;
}

:focus-visible {
  outline: 2px solid rgba(122,167,255,0.6);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: #fff;
  padding: 8px 12px;
  z-index: 1000;
}

.skip-link:focus { left: 12px; top: 12px; }

/* =============================================
   Layout
============================================= */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }

.section-title h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.section-title .muted { margin: 0; }

.divider {
  height: 40px;
  background-image: radial-gradient(var(--line) 2px, transparent 2px);
  background-size: 16px 16px;
  background-position: 0 0;
}

/* =============================================
   Utilities
============================================= */
.muted { color: var(--muted); }
.center { text-align: center; margin-top: 28px; }

/* =============================================
   Buttons & Pills
============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 122, 47, 0.25);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255,255,255,0.7);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(31,42,55,0.12);
}

.badge {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(122, 167, 255, 0.18);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}

.pill {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(108, 199, 184, 0.2);
  font-size: 0.85rem;
  font-weight: 600;
}

/* =============================================
   Navigation
============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 248, 239, 0.72);
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(255, 248, 239, 0.95);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo { font-weight: 700; font-size: 1.2rem; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link { font-weight: 500; color: var(--muted); }

.nav-link.active {
  color: var(--text);
  position: relative;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--coral);
  border-radius: 999px;
}

.nav-cta { margin-left: 6px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 6px;
}

.nav-toggle span { width: 24px; height: 2px; background: var(--text); }

/* =============================================
   Hero (Photo)
============================================= */
.hero {
  position: relative;
  padding: 140px 0 120px;
}

.hero-photo {
  /* EDIT HERE: 실제 사진 경로로 교체하세요 */
  background-image:
    linear-gradient(180deg, rgba(31,42,55,0.45), rgba(31,42,55,0.15)),
    url("assets/Main_Image.webp");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,248,239,0.65), rgba(255,248,239,0.2));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.hero-text {
  max-width: 680px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin: 18px 0 12px;
}

.hero-subtitle {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--text);
}

.hero .lead { font-size: 1.05rem; }

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.trust { font-size: 0.9rem; color: var(--muted); margin-top: 18px; }

/* =============================================
   Cards & Grids
============================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

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

.card {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 26px rgba(31,42,55,0.12);
}

.icon { font-size: 1.4rem; margin-bottom: 8px; }
.icon {
  width: 40px;
  height: 40px;
  color: var(--text);
  opacity: 0.85;
}

.icon svg {
  width: 100%;
  height: 100%;
}

.how-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.how-line {
  position: absolute;
  top: 50%;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--mint), var(--blue));
  opacity: 0.2;
  z-index: 0;
}

.how-card { position: relative; z-index: 1; }

.program-card ul {
  padding-left: 18px;
  margin: 10px 0 0;
  color: var(--muted);
}

/* =============================================
   Outcomes Gallery
============================================= */
.filter-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 26px 0 20px;
}

.ai-playground {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 26px;
}

.ai-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px;
  box-shadow: var(--shadow);
}


.chip {
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}

.chip.active {
  background: rgba(255, 122, 47, 0.12);
  border-color: rgba(255, 122, 47, 0.3);
  color: var(--text);
}

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

.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
}

.thumb {
  height: 160px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(122,167,255,0.25), rgba(255,122,47,0.2));
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

.thumb.has-image {
  background-size: cover;
  background-position: center;
}


.tag { font-size: 0.85rem; color: var(--muted); }

.note { font-size: 0.85rem; color: var(--muted); margin-top: 18px; }

/* =============================================
   Partners
============================================= */
.logo-marquee {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 18px 0;
}

.logo-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 18s linear infinite;
}

.logo-card {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(255,248,239,0.6);
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  min-width: 160px;
}

.logo-card img {
  max-height: 36px;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
}

/* =============================================
   Contact
============================================= */
.contact-grid {
  display: grid;
  gap: 26px;
}

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

.contact-form {
  display: grid;
  gap: 16px;
  background: #fff;
  padding: 24px;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-form fieldset {
  border: 0;
  padding: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-form label { font-weight: 500; }

.field input,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-family: var(--font);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(122,167,255,0.4);
  border-color: rgba(122,167,255,0.4);
}

.error { color: #d14343; font-size: 0.8rem; }

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

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.contact-card-alt {
  background: rgba(122,167,255,0.08);
  border-color: rgba(122,167,255,0.25);
}

/* =============================================
   Footer & UI
============================================= */
.footer { padding: 36px 0 60px; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  box-shadow: var(--shadow);
}


/* =============================================
   Modal
============================================= */
.modal { position: fixed; inset: 0; display: none; }
.modal.open { display: block; }

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.modal-content {
  position: relative;
  background: #fff;
  max-width: 760px;
  margin: 8vh auto;
  padding: 24px;
  border-radius: 18px;
  z-index: 1;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: none;
  font-size: 24px;
  cursor: pointer;
}

.modal-media { margin-top: 16px; }

.modal-media video {
  width: 100%;
  height: auto;
  max-height: 60vh;
  display: block;
}

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

.ai-image-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.compare {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f6f6f6;
}

.compare img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.compare .after img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare .after {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
}

.compare input[type="range"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
}

.compare .handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--coral);
}

.modal-card {
  background: #fff7f0;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

/* =============================================
   Responsive
============================================= */
@media (max-width: 960px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-playground { grid-template-columns: 1fr; }
  .card-grid,
  .card-grid.three,
  .how-grid { grid-template-columns: 1fr; }
  .how-line { display: none; }
  .contact-cards { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 248, 239, 0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 14px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--line);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-cta { width: 100%; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .gallery { grid-template-columns: 1fr; }
  .modal-content { margin: 6vh 16px; }
  .hero-text { padding: 22px; }
  .ai-image-grid { grid-template-columns: 1fr; }
}
