:root {
  --ink: #10182f;
  --muted: #5f687a;
  --line: #dfe5ef;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --red: #ff2d3f;
  --red-dark: #d81f31;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}

.brand,
.nav,
.actions,
.contact-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 900;
}

.brand img {
  width: 40px;
  height: 40px;
}

.nav a {
  padding: 9px 11px;
  border-radius: 8px;
  color: #2f394d;
  font-weight: 800;
}

.nav a:hover,
.lang-switch {
  background: #fff;
  border: 1px solid var(--line);
}

.hero,
.section,
.contact-section,
.site-footer,
.flash {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.compact-hero {
  min-height: auto;
  padding: clamp(44px, 8vw, 86px) 0 28px;
}

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

.eyebrow {
  margin: 0 0 10px;
  color: var(--red-dark);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.35rem, 7vw, 5.5rem);
  line-height: 1.12;
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
}

.lead,
.section-heading p,
.contact-copy p,
.channel-card p,
.empty-list p {
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  max-width: 680px;
  font-size: 1.08rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--red);
}

.button.primary:hover {
  background: var(--red-dark);
}

.button.secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.button.full {
  width: 100%;
}

.flash {
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.flash.success {
  color: #075a50;
  background: #dff8f4;
}

.flash.error {
  color: #8d1421;
  background: #ffe3e6;
}

.section {
  padding: 46px 0;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.channel-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.channel-card,
.contact-form,
.empty-list {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(16, 24, 47, 0.07);
}

.channel-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.channel-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--soft);
}

.channel-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
}

.channel-body h3 {
  margin: 0;
  font-size: 1.18rem;
}

.channel-body p {
  margin: 0;
}

.channel-body strong {
  margin-top: auto;
  color: var(--red-dark);
  font-size: 1.18rem;
}

.channel-meta {
  font-weight: 900;
}

.status-pill {
  display: inline-flex;
  padding: 6px 9px;
  color: #075a50;
  background: #dff8f4;
  border-radius: 8px;
  font-weight: 900;
}

.muted {
  color: var(--muted);
}

.empty-list {
  grid-column: 1 / -1;
  padding: 24px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 24px;
  padding: 28px 0 56px;
}

.contact-links span {
  padding: 9px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 20px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
}

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

.hidden-field {
  position: absolute;
  left: -9999px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0 32px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .site-header,
  .contact-section {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
  }

  .channel-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .hero,
  .section,
  .contact-section,
  .site-footer,
  .flash {
    width: min(100% - 28px, 1180px);
  }

  .nav {
    width: 100%;
  }

  .nav a,
  .actions .button {
    flex: 1;
  }

  .channel-list {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  min-width: 0;
}

input:focus,
select:focus,
textarea:focus,
.button:focus-visible,
.nav a:focus-visible {
  outline: 3px solid rgba(255, 45, 63, 0.2);
  outline-offset: 2px;
  border-color: var(--red);
}

.site-header {
  min-height: 68px;
  padding-block: 10px;
  backdrop-filter: blur(12px);
}

.brand {
  flex-wrap: nowrap;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
}

.nav {
  flex-wrap: nowrap;
}

.nav a {
  white-space: nowrap;
}

.admin-link {
  color: var(--muted) !important;
  border: 1px solid var(--line);
}

.compact-hero {
  padding-top: clamp(44px, 6vw, 68px);
  padding-bottom: clamp(34px, 4vw, 48px);
}

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

h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.75rem);
}

.lead {
  margin: 20px 0 24px;
  font-size: 1.05rem;
}

.section {
  padding-block: clamp(44px, 6vw, 76px);
}

.product-section {
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 24px;
}

.section-heading > p:last-child,
.contact-copy > p {
  margin: 4px 0 0;
}

.channel-list {
  grid-template-columns: repeat(auto-fill, minmax(280px, 360px));
  gap: 20px;
}

.channel-card {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.channel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(16, 24, 47, 0.12);
}

.channel-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e9edf4;
}

.channel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
}

.channel-media .status-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid rgba(7, 90, 80, 0.14);
  box-shadow: 0 4px 14px rgba(16, 24, 47, 0.12);
}

.channel-body {
  gap: 14px;
  padding: 18px;
}

.channel-title {
  display: grid;
  gap: 3px;
}

.channel-title h3 {
  line-height: 1.35;
}

.channel-title .muted {
  font-size: 0.9rem;
}

.channel-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.channel-stats span {
  min-width: 0;
  padding: 11px 10px;
  overflow-wrap: anywhere;
  color: #344054;
  background: var(--soft);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.channel-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
}

.channel-price > span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.channel-price strong {
  margin: 0;
  text-align: right;
}

.contact-section {
  align-items: start;
  padding-block: clamp(48px, 7vw, 82px);
  border-top: 1px solid var(--line);
}

.contact-copy {
  position: sticky;
  top: 104px;
}

.contact-form {
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 12px 34px rgba(16, 24, 47, 0.07);
}

label small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

input,
textarea,
select {
  min-height: 48px;
  color: var(--ink);
  background: #fff;
}

textarea {
  min-height: 112px;
}

.mobile-inquiry-bar {
  display: none;
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: row;
    align-items: center;
  }

  .contact-copy {
    position: static;
  }
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 70px;
  }

  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .site-header {
    min-height: 60px;
    gap: 8px;
    padding: 8px 14px;
  }

  .brand {
    font-size: 0.95rem;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .nav {
    width: auto;
    margin-left: auto;
  }

  .nav a {
    min-height: 40px;
    padding: 9px 10px;
    font-size: 0.88rem;
  }

  .nav a[href="#channels"],
  .admin-link {
    display: none;
  }

  .hero,
  .section,
  .contact-section,
  .site-footer,
  .flash {
    width: min(100% - 32px, 1180px);
  }

  .compact-hero {
    padding: 36px 0 32px;
  }

  h1 {
    font-size: 2.15rem;
    line-height: 1.18;
  }

  h2 {
    font-size: 1.65rem;
  }

  .lead {
    margin: 16px 0 20px;
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .actions {
    gap: 8px;
  }

  .actions .button {
    min-width: 0;
    padding-inline: 12px;
  }

  .section {
    padding-block: 40px;
  }

  .section-heading {
    margin-bottom: 18px;
  }

  .channel-list {
    gap: 14px;
  }

  .channel-card:hover {
    transform: none;
  }

  .channel-body {
    padding: 16px;
  }

  .contact-section {
    gap: 20px;
    padding-block: 40px;
  }

  .contact-form {
    padding: 16px;
  }

  .site-footer {
    padding-bottom: 22px;
    font-size: 0.85rem;
  }

  .mobile-inquiry-bar {
    position: fixed;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 12px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    color: #fff;
    background: var(--red);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(216, 31, 49, 0.28);
    font-weight: 900;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .mobile-inquiry-bar.is-hidden {
    pointer-events: none;
    opacity: 0;
    transform: translateY(14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .channel-card {
    transition: none;
  }
}
