:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #080808;
  --surface-2: #151515;
  --surface-3: #222222;
  --line: #3d3d3d;
  --line-strong: #656565;
  --text: #ffffff;
  --muted: #a8a8a8;
  --soft: #d5d5d5;
  --ad: #5ee0a5;
  --spam: #ff6b7a;
  --fan: #ff8ac7;
  --progress: #ffb86b;
  --caution: #ffb86b;
  --warning: #ff6b7a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

img {
  max-width: 100%;
  display: block;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 64px);
  background: rgba(0, 0, 0, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.footer > div {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.logo-box,
.logo-large {
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.logo-box {
  width: 42px;
  height: 42px;
}

.logo-box img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.logo-large {
  width: 76px;
  height: 76px;
  margin-bottom: 28px;
}

.logo-large img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 15px;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-store,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 800;
}

.nav-store {
  color: var(--text);
  background: var(--surface-2);
}

.button.disabled {
  cursor: default;
  user-select: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: clamp(32px, 6vw, 86px);
  min-height: calc(100vh - 78px);
  padding: clamp(48px, 7vw, 96px) clamp(18px, 5vw, 88px);
  border-bottom: 1px solid var(--line);
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  word-break: keep-all;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  font-size: 24px;
  letter-spacing: 0;
}

.hero-lead,
.section-head p,
.feature-card p,
.board-card p,
.tool-card,
.footer {
  color: var(--muted);
  line-height: 1.75;
}

.hero-lead {
  margin: 24px 0 34px;
  max-width: 650px;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button.primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.button.secondary {
  background: transparent;
  color: var(--text);
}

.hero-shots {
  position: relative;
  min-height: 690px;
}

.phone-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
}

.phone-shot img,
.screen-grid img {
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top center;
}

.phone-shot.main {
  width: min(430px, 76%);
  margin-left: auto;
}

.phone-shot.floating {
  position: absolute;
  left: 0;
  bottom: 12px;
  width: min(330px, 58%);
}

.section {
  padding: clamp(56px, 8vw, 108px) clamp(18px, 5vw, 88px);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-head p {
  margin: 16px 0 0;
  font-size: 18px;
}

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

.screen-grid figure,
.feature-card,
.tool-card,
.board-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.screen-grid figure {
  overflow: hidden;
}

.screen-grid img {
  width: 100%;
  background: var(--bg);
}

.screen-grid figcaption {
  padding: 14px 16px 18px;
  color: var(--soft);
  font-weight: 800;
}

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

.feature-card,
.tool-card,
.board-card {
  padding: 26px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  height: 40px;
  margin-bottom: 26px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-weight: 900;
}

.chip.ad {
  color: var(--ad);
  border-color: rgba(94, 224, 165, 0.62);
  background: rgba(94, 224, 165, 0.12);
}

.chip.spam,
.chip.warning {
  color: var(--warning);
  border-color: rgba(255, 107, 122, 0.62);
  background: rgba(255, 107, 122, 0.12);
}

.chip.fan {
  color: var(--fan);
  border-color: rgba(255, 138, 199, 0.62);
  background: rgba(255, 138, 199, 0.1);
}

.chip.progress,
.chip.caution {
  color: var(--caution);
  border-color: rgba(255, 184, 107, 0.62);
  background: rgba(255, 184, 107, 0.12);
}

.chip.complete {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--surface-2);
}

label {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--soft);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.tool-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.tool-result strong {
  color: var(--text);
}

.tool-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.board-card p {
  margin: 10px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.cta {
  padding: clamp(56px, 8vw, 108px) clamp(18px, 5vw, 88px);
  text-align: center;
}

.cta h2 {
  max-width: 900px;
  margin: 0 auto 28px;
}

.cta .hero-actions {
  justify-content: center;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 5vw, 88px);
  border-top: 1px solid var(--line);
}

.board-page h1 {
  font-size: clamp(38px, 5.5vw, 68px);
}

.board-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.tab-button {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  padding: 0 18px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.tab-button[aria-selected="true"] {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.board-panel {
  margin-top: 22px;
}

.board-panel[hidden] {
  display: none;
}

.board-panel h2 {
  margin-bottom: 18px;
  font-size: 30px;
}

.board-help,
.status-message,
.empty-message {
  color: var(--muted);
  line-height: 1.75;
}

.post-list {
  display: grid;
  gap: 14px;
}

.post-item {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.post-item h3 {
  margin-bottom: 10px;
}

.post-body {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.75;
  white-space: pre-wrap;
}

.post-meta {
  color: var(--soft);
  font-size: 14px;
  font-weight: 800;
}

.board-form {
  display: grid;
  max-width: 760px;
}

.admin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.admin-bar p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.board-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.board-card .button {
  margin-top: 12px;
}

.tool-auth-panel {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.tool-auth-panel p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
}

.tool-run-button {
  margin-top: 18px;
}

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

  .hero-shots {
    min-height: 620px;
  }

  .phone-shot.main {
    margin: 0 auto;
  }

  .screen-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-grid,
  .tool-grid,
  .board-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-shots {
    min-height: 520px;
  }

  .phone-shot.main {
    width: 82%;
  }

  .phone-shot.floating {
    width: 62%;
  }

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

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

@media (max-width: 520px) {
  h1 {
    font-size: 40px;
  }

  .hero-shots {
    min-height: 470px;
  }

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

  .hero-actions,
  .button,
  .nav-store {
    width: 100%;
  }
}
