@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --ink: #1a2b33;
  --sky: #eef7fb;
  --sky-deep: #d7ecf6;
  --cloud: #ffffff;
  --pine: #2f6f5e;
  --sage: #5a9e88;
  --sun: #f2b84b;
  --sun-soft: #ffe6a8;
  --code: #2a7d6a;
  --line: rgba(26, 43, 51, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--sky);
  font-family: "Pretendard Variable", "Pretendard", "Noto Sans KR", sans-serif;
  overflow-x: hidden;
}

.font-display {
  font-family: "Noto Serif KR", serif;
}

.font-mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

/* —— Apple-like nav (light) —— */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 48px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1024px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-right: 0.75rem;
  white-space: nowrap;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  height: 100%;
  display: inline-flex;
  align-items: center;
  padding: 0 0.85rem;
  color: rgba(26, 43, 51, 0.72);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-item:focus-within .nav-link {
  color: var(--ink);
}

.nav-panel {
  position: fixed;
  left: 0;
  right: 0;
  top: 48px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(26, 43, 51, 0.06);
}

.nav-item:hover .nav-panel,
.nav-item:focus-within .nav-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-panel-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.nav-panel a {
  color: rgba(26, 43, 51, 0.88);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-panel a:hover {
  color: var(--pine);
}

.nav-panel .panel-label {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(26, 43, 51, 0.4);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .nav-panel-inner {
    grid-template-columns: 1fr;
  }

  .nav-link-desktop {
    display: none;
  }
}

/* —— Hero atmosphere (daylight) —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 5.5rem 1.25rem 4rem;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(255, 230, 168, 0.7), transparent 55%),
    radial-gradient(ellipse 55% 45% at 85% 30%, rgba(167, 220, 235, 0.55), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 75%, rgba(170, 214, 196, 0.45), transparent 55%),
    linear-gradient(180deg, #f7fcff 0%, #eaf5f1 48%, #f3faf7 100%);
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(47, 111, 94, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 111, 94, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 72%);
  opacity: 0.7;
}

.starfield {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 18px rgba(255, 230, 168, 0.55);
  animation: float-soft var(--dur, 5s) ease-in-out infinite;
  opacity: 0.45;
}

@keyframes float-soft {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-10px) scale(1.15);
  }
}

.campfire-glow {
  position: absolute;
  left: 50%;
  top: 12%;
  width: min(80vw, 520px);
  height: 260px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 214, 120, 0.45), transparent 70%);
  filter: blur(6px);
  animation: sun-breathe 5.5s ease-in-out infinite;
}

@keyframes sun-breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.95;
    transform: translateX(-50%) scale(1.06);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  text-align: center;
}

.brand-mark {
  margin: 0 0 1.1rem;
  font-size: clamp(2.8rem, 9vw, 5.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(18px);
}

.hero-catch {
  margin: 0 auto 1rem;
  max-width: 18em;
  font-size: clamp(1.15rem, 3.2vw, 1.75rem);
  line-height: 1.45;
  font-weight: 600;
  color: var(--pine);
  opacity: 0;
  transform: translateY(18px);
}

.hero-support {
  margin: 0 auto 1.75rem;
  max-width: 28em;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.7;
  color: rgba(26, 43, 51, 0.72);
  opacity: 0;
  transform: translateY(18px);
}

.hero-cta {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transform: translateY(18px);
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--sage), var(--pine));
  box-shadow: 0 10px 24px rgba(47, 111, 94, 0.22);
}

.btn-ghost {
  color: var(--ink);
  border: 1px solid rgba(26, 43, 51, 0.16);
  background: rgba(255, 255, 255, 0.55);
}

.btn-primary:hover,
.btn-ghost:hover {
  transform: translateY(-1px);
}

.is-in {
  opacity: 1 !important;
  transform: none !important;
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* —— Sections —— */
.section {
  position: relative;
  padding: 5.5rem 1.25rem;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.55));
}

.section-inner {
  width: min(980px, 100%);
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 0.75rem;
  color: var(--code);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-copy {
  margin: 0;
  max-width: 38em;
  color: rgba(26, 43, 51, 0.72);
  line-height: 1.85;
  font-size: 1.02rem;
}

.meaning-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .meaning-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.meaning-block {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.meaning-block h3 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  color: var(--ink);
}

.meaning-block p {
  margin: 0;
  color: rgba(26, 43, 51, 0.7);
  line-height: 1.75;
}

.theme-row {
  margin-top: 2.75rem;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 900px) {
  .theme-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.theme-item {
  opacity: 0;
  transform: translateY(24px);
  padding: 0.85rem 0.85rem 1.25rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(26, 43, 51, 0.06);
  box-shadow: 0 12px 30px rgba(26, 43, 51, 0.04);
}

.theme-visual {
  margin: 0 0 0.95rem;
  overflow: hidden;
  border-radius: 0.75rem;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e8f4f8, #edf6f1);
}

.theme-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.theme-item:hover .theme-visual img {
  transform: scale(1.04);
}

.theme-item .code-line {
  display: block;
  margin-bottom: 0.75rem;
  padding: 0 0.3rem;
  color: var(--code);
  font-size: 0.78rem;
}

.theme-item h3 {
  margin: 0 0 0.55rem;
  padding: 0 0.3rem;
  font-size: 1.25rem;
  color: var(--ink);
}

.theme-item p {
  margin: 0;
  padding: 0 0.3rem;
  color: rgba(26, 43, 51, 0.7);
  line-height: 1.7;
  font-size: 0.96rem;
}

.ratio-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: rgba(26, 43, 51, 0.58);
  font-size: 0.92rem;
  line-height: 1.7;
}

.site-footer {
  padding: 2.5rem 1.25rem 3rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: rgba(26, 43, 51, 0.45);
  font-size: 0.85rem;
  background: #fff;
}
