/* ===== Design tokens ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f1f7f3;
  --bg-card: #f8fbf9;
  --text: #142921;
  --text-dim: #55685e;
  --text-dimmer: #8fa199;
  --border: rgba(20, 41, 33, 0.1);
  --blue: #2e8b3e;
  --coral: #2b7bd6;
  --radius: 18px;
  --max-width: 1140px;
  --gnb-height: 76px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 200;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ===== Dot nav ===== */
.dot-nav {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.dot-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 2px 0;
}
.dot-nav-item::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--text-dimmer);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s;
}
.dot-nav-item:hover::before { border-color: var(--coral); }
.dot-nav-item.is-active::before {
  background: var(--coral);
  border-color: var(--coral);
  transform: scale(1.3);
}
.dot-nav-label {
  display: inline-flex;
  align-items: center;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  opacity: 0;
  transition: opacity 0.25s, max-width 0.3s;
}
.dot-nav-label::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--text-dimmer);
  margin-right: 6px;
  flex-shrink: 0;
  transition: background 0.25s;
}
.dot-nav-item:hover .dot-nav-label,
.dot-nav-item.is-active .dot-nav-label {
  opacity: 1;
  max-width: 160px;
}
.dot-nav-item.is-active .dot-nav-label { color: var(--coral); }
.dot-nav-item.is-active .dot-nav-label::before { background: var(--coral); }
@media (max-width: 900px) {
  .dot-nav { display: none; }
}

/* ===== GNB ===== */
.gnb {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--gnb-height);
  z-index: 100;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.gnb.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.gnb-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 12px 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gnb-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  color: #ffffff;
  transition: color 0.3s var(--ease);
}
.gnb.is-scrolled .gnb-logo { color: var(--text); }
.gnb-logo-img {
  height: 34px;
  width: auto;
  display: block;
}
.gnb-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s var(--ease);
}
.gnb.is-scrolled .gnb-nav { color: var(--text-dim); }
.gnb-nav a { transition: color 0.2s; }
.gnb-nav a:hover, .gnb-nav a:focus-visible,
.gnb-nav a.is-active { color: #ffffff; }
.gnb.is-scrolled .gnb-nav a:hover,
.gnb.is-scrolled .gnb-nav a:focus-visible,
.gnb.is-scrolled .gnb-nav a.is-active { color: var(--text); }

.gnb-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.gnb-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), background 0.3s var(--ease);
}
.gnb.is-scrolled .gnb-toggle span { background: var(--text); }

/* ===== Layout helpers ===== */
.section {
  position: relative;
  padding: 140px 24px;
  overflow: hidden;
}
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 1.15rem;
  color: var(--blue);
  font-weight: 700;
  margin: 0 0 16px;
}
.center { text-align: center; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 20px; font-weight: 700; }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--gnb-height);
  text-align: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-glow {
  position: absolute;
  width: 46vw; height: 46vw;
  max-width: 620px; max-height: 620px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.14;
}
.hero-glow-blue { background: var(--blue); top: -10%; left: -10%; }
.hero-glow-coral { background: var(--coral); bottom: -15%; right: -8%; }
.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 15% 20%, rgba(21,150,78,0.07), transparent),
    radial-gradient(50% 45% at 85% 80%, rgba(13,148,136,0.07), transparent);
}
.hero-slideshow { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(4, 12, 9, 0.55), rgba(4, 12, 9, 0.4) 45%, rgba(4, 12, 9, 0.6));
}

.hero-inner { position: relative; z-index: 3; margin: 0 auto; max-width: 760px; }
.hero-title {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  letter-spacing: -0.01em;
  text-align: center;
  color: #ffffff;
}
.hero-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto 56px;
  text-align: center;
  text-wrap: pretty;
}
/* Responsive line breaks: hidden on mobile (natural wrap),
   shown from tablet/PC widths up (intentional break points). */
.pc-br { display: none; }
@media (min-width: 768px) {
  .pc-br { display: inline; }
}
.hero-title-accent {
  background: linear-gradient(90deg, #6ed37e, #5fa8f2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-scroll-cue {
  display: block;
  width: 1px; height: 40px;
  margin: 0 auto;
  background: linear-gradient(rgba(255, 255, 255, 0.7), transparent);
  animation: scrollcue 1.8s infinite;
}
@keyframes scrollcue {
  0% { opacity: 0; transform: scaleY(0.4); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(0.4); }
}
@media (prefers-reduced-motion: reduce) { .hero-scroll-cue { animation: none; opacity: 0.6; } }

/* ===== Banner (감성 배너) ===== */
.banner {
  padding: 0;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eaf6ee, #e8f1fb);
}
.banner-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-infinity-img {
  width: min(640px, 72%);
  height: auto;
  opacity: 0.16;
}
.banner-text {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.banner-close { background: linear-gradient(135deg, #e8f1fb, #eaf6ee); }

/* ===== Statement sections (Mission / Vision) ===== */
.statement {
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.statement-text {
  font-size: clamp(1.3rem, 2.7vw, 2.1rem);
  max-width: 1080px;
  white-space: normal;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 900px) {
  .statement-text { white-space: nowrap; }
}
.statement-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
}
.blob-a { width: 360px; height: 360px; background: var(--blue); opacity: 0.08; top: -80px; right: -100px; }
.blob-b { width: 280px; height: 280px; background: var(--coral); opacity: 0.08; bottom: -100px; left: -80px; }
.blob-c { width: 420px; height: 420px; background: var(--blue); opacity: 0.06; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.statement .section-inner { position: relative; z-index: 1; }

.vision-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 64px;
}
.vision-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
}
.vision-arrow { color: var(--text-dimmer); font-size: 1.3rem; }

/* ===== Platform ===== */
.platform { background: #eef4fb; min-height: 100vh; display: flex; align-items: center; }
.platform .section-inner { position: relative; z-index: 1; }
.platform-headline { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }

.platform-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.platform-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card-blue h3 { color: var(--blue); }
.card-coral h3 { color: var(--coral); }
.card-neutral h3 { color: var(--text); }
.platform-card p { color: var(--text-dim); font-size: 0.92rem; margin: 0; }
.card-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  margin-bottom: 18px;
}
.card-icon svg { width: 20px; height: 20px; }
.card-blue .card-icon { background: rgba(21, 150, 78, 0.12); }
.card-blue .card-icon svg { fill: var(--blue); }
.card-coral .card-icon { background: rgba(13, 148, 136, 0.12); }
.card-coral .card-icon svg { fill: var(--coral); }
.card-neutral .card-icon { background: var(--border); }
.card-neutral .card-icon svg { fill: var(--text-dim); }

/* ===== Roadmap ===== */
.roadmap-track {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
  margin-top: 56px;
}
.roadmap-step {
  flex: 1;
  max-width: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.roadmap-num {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dimmer);
  margin-bottom: 14px;
}
.roadmap-step h3 { font-size: 1.15rem; color: var(--blue); margin-bottom: 10px; }
.roadmap-step p { color: var(--text-dim); font-size: 0.92rem; margin: 0; }
.roadmap-arrow {
  display: flex;
  align-items: center;
  color: var(--text-dimmer);
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ===== Footer ===== */
.footer {
  background: #0f1d17;
  padding: 40px 24px 24px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #ffffff;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}
.footer-tagline {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  margin: 0;
}
.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 20px;
}
.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 200px));
  justify-content: start;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-col h5 {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 2px;
}
.footer-col a,
.footer-col span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.78rem;
}
.footer-legal, .footer-copy { margin: 0; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .section { padding: 100px 20px; }
  .platform-cards { grid-template-columns: 1fr; }
  .roadmap-track { flex-direction: column; align-items: center; }
  .roadmap-step { max-width: 420px; width: 100%; }
  .roadmap-arrow { transform: rotate(90deg); }
}

@media (max-width: 640px) {
  :root { --gnb-height: 64px; }
  .gnb-nav {
    position: fixed;
    top: var(--gnb-height);
    left: 0; right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .gnb-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  /* Dropdown panel is always an opaque white sheet, so its text must
     always be dark regardless of the header's scrolled/transparent state. */
  #gnb-nav.is-open { color: var(--text-dim); }
  #gnb-nav.is-open a { color: var(--text-dim); }
  #gnb-nav.is-open a:hover,
  #gnb-nav.is-open a:focus-visible,
  #gnb-nav.is-open a.is-active { color: var(--text); }
  .gnb-nav a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .gnb-nav a:last-child { border-bottom: none; }
  .gnb-toggle { display: flex; }
  .gnb-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .gnb-toggle.is-active span:nth-child(2) { opacity: 0; }
  .gnb-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section { padding: 80px 18px; }
  .footer { padding: 32px 18px 20px; }
  .footer-columns { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .footer-bottom { flex-direction: column; }
}
