:root {
  color-scheme: dark;
  --bg: #0a0b0b;
  --surface: #131515;
  --surface-strong: #1b1d1d;
  --text: #eeeFEb;
  --muted: #9b9d99;
  --line: #2a2d2d;
  --accent: #e4d68b;
  --accent-text: #15140f;
  --soft-radius: 16px;
  --button-radius: 999px;
  --max: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, "Segoe UI Variable", "Noto Sans KR", sans-serif;
  line-height: 1.55;
  min-height: 100dvh;
  background-image: radial-gradient(circle at 72% 12%, rgba(228, 214, 139, .04), transparent 28%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
button, a { font: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.site-header {
  width: min(calc(100% - 40px), var(--max));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 11, 11, .78);
  backdrop-filter: blur(20px) saturate(130%);
}
.brand { font-weight: 850; letter-spacing: -0.04em; text-decoration: none; color: var(--accent); }
nav { display: flex; gap: 28px; }
nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
nav a:hover { color: var(--text); }

.hero {
  width: 100%;
  min-height: calc(100dvh - 72px);
  margin: 0;
  padding: 72px max(20px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  align-items: center;
  gap: clamp(48px, 9vw, 150px);
  border-bottom: 1px solid var(--line);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0a0b0b url("assets/nak-one-paradise-hero.png") center center / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 7, 7, .9) 0%, rgba(6, 7, 7, .55) 38%, rgba(6, 7, 7, .1) 66%, rgba(6, 7, 7, .36) 100%),
    linear-gradient(0deg, rgba(6, 7, 7, .74), transparent 45%);
}
.eyebrow { margin: 0 0 20px; font-size: 12px; font-weight: 800; letter-spacing: .16em; }
h1, h2, p { margin-top: 0; }
h1 {
  max-width: 850px;
  margin-bottom: 28px;
  font-size: clamp(48px, 7vw, 104px);
  line-height: .98;
  letter-spacing: -.075em;
  font-weight: 830;
}
h1 em { color: var(--accent); font-style: normal; text-shadow: 0 0 44px rgba(228, 214, 139, .12); }
.hero-copy { align-self: center; text-shadow: 0 3px 26px rgba(4, 5, 5, .58); }
.hero-description { max-width: 520px; margin-bottom: 32px; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }
.primary-button {
  display: inline-flex;
  padding: 13px 22px;
  border-radius: var(--button-radius);
  background: var(--text);
  color: var(--bg);
  font-weight: 750;
  text-decoration: none;
  transition: transform .25s ease, background .25s ease;
}
.primary-button:hover { transform: translateY(-2px); background: var(--accent); color: var(--accent-text); }
.primary-button:active { transform: translateY(0) scale(.98); }

.hero-release {
  align-self: end;
  margin-bottom: 4vh;
  padding: 26px 0 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--soft-radius);
  background: linear-gradient(145deg, rgba(27, 29, 29, .78), rgba(12, 14, 14, .82));
  backdrop-filter: blur(18px) saturate(80%);
  box-shadow: inset 0 1px 0 rgba(236, 239, 233, .075), 0 30px 80px rgba(4, 6, 5, .3);
}
.release-type { display: block; margin-bottom: 40px; color: var(--muted); font-size: 13px; }
.hero-release strong { display: block; margin-bottom: 10px; font-size: 30px; letter-spacing: -.04em; }
.hero-release p { color: var(--muted); }
.release-meta { display: flex; align-items: center; gap: 12px; margin: 26px 0 18px; font-family: "Cascadia Code", Consolas, monospace; font-size: 13px; }
.status { display: inline-flex; align-items: center; padding: 5px 10px; border: 1px solid currentColor; border-radius: var(--button-radius); font: 700 12px/1.2 inherit; }
.status-released { color: var(--accent); }
.status-beta { color: var(--accent); }
.status-prototype { color: var(--muted); }
.text-button { padding: 0 0 3px; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--text); cursor: pointer; }

.project-section, .updates-section, .about-section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 112px 0;
}
.project-section { border-top: 1px solid var(--line); }
.section-heading { max-width: 650px; }
.section-heading h2, .updates-intro h2, .about-section h2 { margin-bottom: 14px; font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.055em; }
.section-heading p, .updates-intro > p:last-child, .about-section > p { color: var(--muted); font-size: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 44px; }
.filter {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.filter:hover, .filter.is-active { border-color: var(--text); background: var(--text); color: var(--bg); }

.project-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; }
.project-card {
  min-height: 410px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--soft-radius);
  border: 1px solid var(--line);
  background: linear-gradient(155deg, #181a1a, #101212);
  overflow: hidden;
  transition: transform .28s cubic-bezier(.16, 1, .3, 1), background .28s ease;
}
.project-card:nth-child(3n) { grid-column: 1 / -1; min-height: 300px; }
.project-card:hover { transform: translateY(-6px); border-color: #454846; background: linear-gradient(155deg, #202222, #161818); }
.card-top, .card-footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.card-index { font-family: "Cascadia Code", Consolas, monospace; color: var(--muted); font-size: 13px; }
.project-card h3 { max-width: 680px; margin: auto 0 16px; font-size: clamp(38px, 5vw, 68px); line-height: .94; letter-spacing: -.06em; }
.project-card .summary { max-width: 550px; margin-bottom: 30px; color: var(--muted); }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.detail-button, .download-link {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--text);
  border-radius: var(--button-radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
}
.download-link { border-color: var(--accent); background: var(--accent); color: var(--accent-text); }
.detail-button:active, .download-link:active { transform: scale(.98); }
.empty-state { padding: 50px 0; color: var(--muted); }

.updates-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 10vw, 150px); border-top: 1px solid var(--line); }
.updates-intro { position: sticky; top: 40px; align-self: start; }
.timeline-item { padding: 0 0 46px; margin-bottom: 46px; border-bottom: 1px solid var(--line); }
.timeline-item:last-child { margin-bottom: 0; border-bottom: 0; }
.timeline-meta { display: flex; gap: 18px; margin-bottom: 16px; color: var(--muted); font-family: "Cascadia Code", Consolas, monospace; font-size: 12px; }
.timeline-item h3 { margin: 0 0 12px; font-size: 26px; letter-spacing: -.035em; }
.timeline-item p { color: var(--muted); }

.about-section { border-top: 1px solid var(--line); }
.about-section h2 { max-width: 850px; }
.about-section > p { max-width: 680px; margin: 28px 0; }
.about-section a { font-weight: 800; text-underline-offset: 5px; }
footer {
  width: min(calc(100% - 40px), var(--max));
  min-height: 120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.project-dialog {
  width: min(680px, calc(100% - 32px));
  max-height: min(760px, calc(100dvh - 32px));
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--soft-radius);
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 30px 90px rgba(32, 33, 31, .24);
}
.project-dialog::backdrop { background: rgba(5, 7, 6, .78); backdrop-filter: blur(10px); }
.dialog-close { float: right; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--button-radius); background: transparent; color: var(--text); cursor: pointer; }
.dialog-kicker { color: var(--accent); font: 800 12px/1.2 "Cascadia Code", Consolas, monospace; }
.project-dialog h2 { clear: both; margin: 50px 0 12px; font-size: clamp(38px, 7vw, 64px); line-height: .98; letter-spacing: -.06em; }
.dialog-summary { color: var(--muted); font-size: 18px; }
.dialog-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 34px 0; }
.dialog-info div { padding: 16px; border-radius: var(--soft-radius); background: var(--surface); }
.dialog-info span { display: block; color: var(--muted); font-size: 11px; }
.dialog-info strong { display: block; margin-top: 6px; }
.project-dialog h3 { margin-top: 34px; }
.change-list { padding-left: 20px; color: var(--muted); }

@media (max-width: 760px) {
  .site-header, .hero, .project-section, .updates-section, .about-section, footer { width: min(calc(100% - 32px), var(--max)); }
  .site-header { height: 64px; }
  nav { gap: 15px; }
  nav a { font-size: 12px; }
  .hero { width: 100%; min-height: calc(100dvh - 64px); padding: 64px 16px 48px; grid-template-columns: 1fr; gap: 60px; background-position: 58% center; }
  .hero::before { background: linear-gradient(90deg, rgba(6, 7, 7, .9), rgba(6, 7, 7, .32)), linear-gradient(0deg, rgba(6, 7, 7, .78), transparent 58%); }
  h1 { font-size: clamp(45px, 13vw, 70px); }
  .hero-release { align-self: auto; margin: 0; }
  .project-section, .updates-section, .about-section { padding: 82px 0; }
  .project-grid, .updates-section { grid-template-columns: 1fr; }
  .project-card, .project-card:nth-child(3n) { grid-column: auto; min-height: 360px; }
  .updates-intro { position: static; }
  .dialog-info { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 761px) {
  .hero { animation: paradise-arrival 1.4s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-copy { animation: copy-arrival .9s .18s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-release { animation: copy-arrival .9s .34s cubic-bezier(.16, 1, .3, 1) both; }
}

@keyframes paradise-arrival {
  from { background-size: 106% auto; }
  to { background-size: 100% auto; }
}
@keyframes copy-arrival {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
