:root {
  --bg: #f4efe5;
  --ink: #17211d;
  --muted: #65716d;
  --line: #dfd4bf;
  --panel: #fffaf0;
  --panel-strong: #ffffff;
  --forest: #244735;
  --leaf: #3d7a53;
  --sea: #227283;
  --gold: #c8943e;
  --ember: #a74335;
  --cream: #fff7e8;
  --shadow: 0 24px 70px rgba(34, 35, 29, 0.16);
  --hero-image: url("assets/hero.svg");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.75), rgba(244, 239, 229, 0)),
    var(--bg);
  font-family: "Pretendard", "Noto Sans KR", "Segoe UI", sans-serif;
  word-break: keep-all;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 58px);
  background: rgba(255, 250, 240, 0.88);
  border-bottom: 1px solid rgba(223, 212, 191, 0.78);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.hero-stats,
.command-toolbar,
.tabs,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 900;
}

.brand span:last-child {
  display: grid;
  gap: 1px;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: linear-gradient(145deg, var(--leaf), var(--forest));
  border: 2px solid #143025;
  border-radius: 8px;
  box-shadow: 4px 4px 0 #143025;
  font-size: 13px;
}

.nav-links {
  gap: 8px;
  color: #3b4842;
  font-weight: 800;
  font-size: 14px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 8px;
}

.nav-links a:hover {
  color: var(--forest);
  background: rgba(61, 122, 83, 0.1);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 132px clamp(20px, 5vw, 72px) 76px;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(16, 26, 22, 0.78), rgba(16, 26, 22, 0.28) 56%, rgba(16, 26, 22, 0.58)),
    var(--hero-image) center / cover no-repeat;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36%;
  z-index: -1;
  background: linear-gradient(0deg, var(--bg), rgba(244, 239, 229, 0));
}

.hero-content {
  width: min(850px, 100%);
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 840px;
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 950;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: var(--ember);
  box-shadow: 0 14px 28px rgba(167, 67, 53, 0.28);
}

.button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.13);
}

.button.ghost.light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
}

.button.dark {
  color: #fff;
  background: var(--forest);
}

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

.hero-stats {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-stats div {
  min-width: 132px;
  padding: 14px 16px;
  background: rgba(255, 250, 240, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  font-size: 24px;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 800;
}

.quick-panel {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: -42px auto 0;
}

.quick-panel a {
  display: grid;
  gap: 6px;
  min-height: 132px;
  padding: 22px;
  background: rgba(255, 250, 240, 0.94);
  border: 1px solid rgba(223, 212, 191, 0.92);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quick-panel span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.quick-panel strong {
  font-size: 22px;
}

.quick-panel small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0;
  scroll-margin-top: 108px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.split-head {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(260px, 0.58fr);
  gap: 28px;
  align-items: end;
}

.section-head p,
.contact-section p,
.feature-card p,
.command-item p,
.product-card li,
.video-copy p {
  color: var(--muted);
  line-height: 1.68;
}

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

.feature-card,
.product-card,
.command-item,
.video-panel {
  background: rgba(255, 250, 240, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-card {
  overflow: hidden;
}

.feature-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e4dccb;
}

.feature-card div {
  padding: 22px;
}

.feature-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(34, 35, 29, 0.2);
}

.tag,
.product-badge {
  display: inline-flex;
  margin-bottom: 12px;
  color: #fff;
  background: var(--sea);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 950;
}

.tag.red,
.product-badge {
  background: var(--ember);
}

.tag.blue {
  background: var(--sea);
}

.tag.green {
  background: var(--leaf);
}

.tag.gold {
  color: #1c2520;
  background: #e7bd64;
}

.mini-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.mini-list li {
  padding: 7px 10px;
  color: #2b3b34;
  background: rgba(61, 122, 83, 0.11);
  border: 1px solid rgba(61, 122, 83, 0.16);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.world-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: 22px;
  align-items: stretch;
}

.world-copy,
.notice-board {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.world-copy {
  padding: 34px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(36, 71, 53, 0.94), rgba(34, 114, 131, 0.82)),
    var(--forest);
}

.world-copy p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.notice-board {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 250, 240, 0.9);
  border: 1px solid var(--line);
}

.notice-board article {
  padding: 18px;
  background: #fffdf8;
  border: 1px solid rgba(223, 212, 191, 0.86);
  border-radius: 8px;
}

.notice-board span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--ember);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.notice-board strong {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
}

.notice-board p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.command-section {
  width: min(1240px, calc(100% - 40px));
}

.command-toolbar {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 12px;
  background: rgba(255, 250, 240, 0.62);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tabs {
  gap: 8px;
  flex-wrap: wrap;
}

.tab {
  min-height: 40px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 950;
}

.tab.active {
  color: #fff;
  background: var(--forest);
  border-color: var(--forest);
}

.search {
  display: grid;
  gap: 6px;
  min-width: min(360px, 100%);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.search input {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fffef9;
  color: var(--ink);
  font: inherit;
}

.command-list {
  display: grid;
  gap: 10px;
}

.command-item {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.command-item code {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  padding: 12px 10px;
  color: #fff;
  background: #25342d;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 950;
  white-space: nowrap;
}

.command-item h3,
.product-card h3,
.feature-card h3 {
  margin-bottom: 6px;
}

.command-item.hidden {
  display: none;
}

.video-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 24px;
  align-items: center;
  padding: 20px;
}

.video-panel video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #1f3028;
  border-radius: 8px;
  object-fit: cover;
}

.video-copy {
  padding: 10px 8px;
}

.shop-section {
  width: min(1180px, calc(100% - 40px));
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
}

.product-card.emphasized {
  border-color: rgba(200, 148, 62, 0.74);
  background: linear-gradient(180deg, #fffdf7, #fff3da);
  transform: translateY(-8px);
}

.product-top {
  min-height: 144px;
}

.price {
  margin: 10px 0 0;
  font-size: 34px;
  font-weight: 950;
}

.product-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.product-card .button {
  margin-top: auto;
}

.contact-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 42px;
  margin-bottom: 56px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(36, 71, 53, 0.95), rgba(34, 114, 131, 0.9)),
    var(--forest);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-section p,
.contact-section .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.contact-section div {
  max-width: 760px;
}

.contact-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: #eef7f0;
  background: #172c23;
}

.admin-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  background: rgba(255, 250, 240, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-login,
.editor-card {
  display: grid;
  gap: 14px;
}

.admin-login {
  max-width: 420px;
}

.admin-login label,
.editor-card label {
  display: grid;
  gap: 7px;
  color: #394942;
  font-size: 13px;
  font-weight: 900;
}

.admin-login input,
.editor-card input,
.editor-card textarea,
.editor-card select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fffef9;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.editor-card textarea {
  resize: vertical;
}

.admin-message {
  min-height: 22px;
  margin: 0;
  color: var(--ember);
  font-weight: 900;
}

.admin-tools {
  display: grid;
  gap: 18px;
}

.admin-tools.hidden,
.hidden {
  display: none;
}

.admin-topbar,
.admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-topbar h3 {
  margin-bottom: 0;
}

.admin-forms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.editor-card {
  padding: 20px;
  background: #fffdf8;
  border: 1px solid rgba(223, 212, 191, 0.9);
  border-radius: 8px;
}

.editor-card h4 {
  margin: 0;
  font-size: 20px;
}

.admin-actions p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 780px;
    padding-top: 84px;
  }

  .split-head,
  .quick-panel,
  .content-grid,
  .shop-grid,
  .video-panel,
  .world-section,
  .admin-forms {
    grid-template-columns: 1fr;
  }

  .product-card.emphasized {
    transform: none;
  }

  .command-toolbar,
  .contact-section,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .command-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .section {
    width: min(100% - 28px, 1180px);
    padding: 54px 0;
  }

  .hero {
    min-height: 720px;
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: 38px;
  }
}
