:root {
  color-scheme: dark;
  --bg: #07070d;
  --bg-deep: #0c1017;
  --panel: rgba(16, 19, 29, 0.86);
  --panel-strong: #121622;
  --ink: #f7fbff;
  --text: #eef5ff;
  --muted: #b7c3d4;
  --line: rgba(255, 255, 255, 0.14);
  --primary: #31d7c7;
  --primary-dark: #0aa99b;
  --accent: #ffb84d;
  --coral: #ff6b4a;
  --shadow: rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(120deg, rgba(49, 215, 199, 0.08), transparent 32%),
    linear-gradient(280deg, rgba(255, 184, 77, 0.1), transparent 38%),
    var(--bg);
  color: var(--text);
  font-family: Arial, "Noto Sans KR", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(49, 215, 199, 0.58) 0 1px, transparent 1.3px),
    radial-gradient(circle, rgba(255, 184, 77, 0.62) 0 1px, transparent 1.4px);
  background-position: 0 0, 34px 68px, 92px 24px;
  background-size: 140px 140px, 190px 190px, 260px 260px;
  opacity: 0.5;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 14px clamp(20px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 13, 0.84);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 0 28px rgba(49, 215, 199, 0.34);
}

.nav-links {
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.nav-links a {
  min-height: 40px;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.nav-links a:hover {
  border-color: rgba(49, 215, 199, 0.44);
  background: rgba(49, 215, 199, 0.1);
  color: var(--primary);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  min-height: calc(100vh - 72px);
  padding: clamp(52px, 8vw, 100px) clamp(20px, 6vw, 72px) 60px;
  overflow: hidden;
}

.space-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(155deg, rgba(255, 107, 74, 0.18), transparent 30%),
    linear-gradient(22deg, transparent 0 48%, rgba(49, 215, 199, 0.16) 49% 51%, transparent 52%),
    linear-gradient(180deg, rgba(12, 16, 23, 0), rgba(7, 7, 13, 0.98));
}

.hero-copy {
  position: relative;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 690px;
  margin: 0;
  color: var(--ink);
  font-size: 76px;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-text {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.78;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  min-height: 48px;
  padding: 14px 18px;
  border-radius: 8px;
  font-weight: 900;
  text-align: center;
}

.button.primary {
  background: var(--primary);
  color: #031312;
  box-shadow: 0 16px 38px rgba(49, 215, 199, 0.22);
}

.button.primary:hover {
  background: #6ff7ea;
}

.button.ghost {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.button.ghost:hover {
  border-color: var(--accent);
  background: rgba(255, 184, 77, 0.12);
  color: #ffe0a7;
}

.visual-stage {
  position: relative;
  min-height: 650px;
}

.workbench-art {
  position: absolute;
  inset: 0 auto auto 0;
  width: min(620px, 100%);
  aspect-ratio: 16 / 11;
  object-fit: contain;
  filter: saturate(1.12) contrast(1.05) drop-shadow(0 30px 60px rgba(0, 0, 0, 0.42));
}

.phone {
  position: relative;
  width: 292px;
  min-height: 590px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: #090c13;
  box-shadow: 0 30px 90px var(--shadow), 0 0 34px rgba(49, 215, 199, 0.16);
}

.phone-main {
  position: absolute;
  right: 4%;
  top: 22px;
}

.phone-status,
.app-top {
  color: #031312;
  font-weight: 900;
  background: var(--primary);
}

.phone-status {
  display: flex;
  align-items: center;
  min-height: 28px;
  padding: 7px 16px 5px;
  font-size: 11px;
}

.app-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
}

.top-dot {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(3, 19, 18, 0.2);
}

.search-bar {
  margin: 14px;
  min-height: 38px;
  padding: 11px 14px;
  border: 1px solid rgba(49, 215, 199, 0.54);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
}

.stats-row,
.item-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 14px;
}

.stats-row div,
.item-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.stats-row div {
  padding: 12px;
}

.stats-row strong {
  display: block;
  color: var(--accent);
  font-size: 18px;
}

.stats-row span,
.item-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.chip-row {
  display: flex;
  gap: 6px;
  padding: 14px;
  overflow: hidden;
}

.chip {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
}

.chip.active {
  border-color: var(--primary);
  background: rgba(49, 215, 199, 0.18);
  color: var(--ink);
  font-weight: 900;
}

.item-grid {
  padding-bottom: 14px;
}

.item-card {
  min-height: 164px;
  padding: 10px;
}

.collector-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  margin-bottom: 10px;
  border-radius: 8px;
  background: #111827;
}

.item-card strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
}

.tab-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 56px;
  border-top: 1px solid var(--line);
  background: #090c13;
}

.tab-bar span {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8390a3;
  font-size: 11px;
  font-weight: 700;
}

.tab-bar .active {
  color: var(--primary);
}

.craft-card {
  position: absolute;
  left: 0;
  bottom: 22px;
  width: min(330px, 54%);
  padding: 24px;
  border: 1px solid rgba(255, 184, 77, 0.32);
  border-radius: 8px;
  background: rgba(12, 16, 23, 0.9);
  color: var(--ink);
  box-shadow: 0 24px 70px var(--shadow);
  backdrop-filter: blur(18px);
}

.craft-kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.craft-card h2 {
  margin: 12px 0 10px;
  font-size: 26px;
  line-height: 1.24;
}

.craft-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 46px clamp(20px, 6vw, 72px) 72px;
  background: linear-gradient(180deg, rgba(7, 7, 13, 0), rgba(16, 19, 29, 0.78));
}

.features article,
.shelf-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.features article {
  min-height: 210px;
  padding: 28px;
}

.feature-num {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.features h2 {
  margin: 18px 0 10px;
  color: var(--ink);
  font-size: 24px;
}

.features p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.gallery-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 32px;
  margin: 0 clamp(20px, 6vw, 72px) 72px;
  padding: 34px;
  border: 1px solid rgba(49, 215, 199, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(49, 215, 199, 0.18), transparent 45%),
    linear-gradient(270deg, rgba(255, 184, 77, 0.13), transparent 44%),
    #10131d;
  color: var(--ink);
  overflow: hidden;
}

.gallery-band h2 {
  margin: 0;
  font-size: 44px;
  line-height: 1.14;
}

.shelf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.shelf-grid article {
  min-width: 0;
  padding: 12px;
}

.shelf-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: #07070d;
}

.shelf-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 14px;
}

.download-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 clamp(20px, 6vw, 72px) 72px;
  padding: 36px;
  border: 1px solid rgba(255, 184, 77, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(100deg, rgba(255, 107, 74, 0.18), transparent 36%),
    var(--panel-strong);
  color: var(--ink);
}

.download-band h2 {
  margin: 0;
  font-size: 28px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 6vw, 72px);
  border-top: 1px solid rgba(49, 215, 199, 0.34);
  background: #05060a;
  color: var(--ink);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-brand span {
  color: var(--muted);
  font-size: 12px;
}

.footer-navigation {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-navigation p {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.footer-links {
  flex-wrap: wrap;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.footer-links a:hover {
  border-color: var(--primary);
  background: rgba(49, 215, 199, 0.12);
  color: var(--primary);
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .visual-stage {
    min-height: 610px;
  }

  .phone-main {
    right: 0;
  }

  .features,
  .gallery-band {
    grid-template-columns: 1fr;
  }

  .download-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-navigation {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .hero h1 {
    font-size: 46px;
  }

  .gallery-band h2 {
    font-size: 34px;
  }
}

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

  .nav-links {
    width: 100%;
  }

  .nav-links a {
    flex: 1;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-text {
    font-size: 16px;
  }

  .visual-stage {
    min-height: 620px;
  }

  .workbench-art {
    top: 0;
    opacity: 0.68;
  }

  .phone-main {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(292px, 100%);
  }

  .craft-card {
    display: none;
  }

  .shelf-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
