/* ScriptPlayer+ landing — self-contained styles */

:root {
  --bg-deep: #0c0e14;
  --bg-elevated: #12151f;
  --bg-card: #181c28;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eaf2;
  --text-muted: #8b92a8;
  --accent: #6ee7ff;
  --accent-dim: rgba(110, 231, 255, 0.15);
  --accent-2: #a78bfa;
  --radius: 14px;
  --font-sans: "SUIT Variable", "Pretendard Variable", system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #9cf0ff;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #0c0e14;
  font-weight: 600;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(110, 231, 255, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(167, 139, 250, 0.08), transparent),
    var(--bg-deep);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 14, 20, 0.75);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary {
  background: linear-gradient(135deg, #5fd4f0, #7c9cff);
  color: #061018;
  border: none;
}

.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-patreon {
  background: rgba(255, 66, 77, 0.12);
  color: #ff9aa1;
  border-color: rgba(255, 66, 77, 0.35);
}

.btn-patreon:hover {
  background: rgba(255, 66, 77, 0.2);
  color: #ffc8cc;
  border-color: rgba(255, 66, 77, 0.5);
  transform: translateY(-1px);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
  }
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(110, 231, 255, 0.25);
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 42ch;
}

.hero-lead code {
  font-size: 0.9em;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-meta code {
  font-size: 0.8em;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.hero-visual {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.hero-visual img,
.hero-visual video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 52ch;
}

.section-v017 {
  border-top: 1px solid var(--border);
  padding-top: 3.5rem;
}

.v017-pip-heading {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* 메인 프리뷰(영상 → 이후 GIF로 교체 가능) */
.v017-feature {
  margin: 0 0 2.5rem;
}

.v017-feature-media {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
}

.v017-video {
  display: block;
  width: 100%;
  max-height: min(68vh, 680px);
  margin: 0 auto;
}

/* 메인 영역을 MP4 대신 GIF 이미지로 바꿀 때 동일한 박스 안에 맞춤 */
.v017-feature-media img {
  display: block;
  width: 100%;
  max-height: min(68vh, 680px);
  margin: 0 auto;
  object-fit: contain;
}

.v017-feature-cap {
  margin: 0.85rem 0 0;
  padding: 0 0.15rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.v017-grid-label {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* 나머지 프리뷰: 2열 균등 (GIF로 바꿔도 동일 레이아웃) */
.v017-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .v017-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .v017-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.v017-tile {
  margin: 0;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.v017-tile-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-card);
}

.v017-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.v017-tile-media--video .v017-tile-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.v017-tile figcaption {
  padding: 0.7rem 0.95rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
  border-top: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.15s, transform 0.15s;
}

.feature-card:hover {
  border-color: rgba(110, 231, 255, 0.25);
  transform: translateY(-2px);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.feature-icon {
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.75rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: linear-gradient(145deg, var(--accent-dim), rgba(167, 139, 250, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.gallery {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.gallery figcaption {
  padding: 0.6rem 0.85rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.gallery img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.cta-band {
  margin: 2rem 1.25rem 4rem;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding: 2.25rem 1.75rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(110, 231, 255, 0.2);
  background: linear-gradient(135deg, rgba(110, 231, 255, 0.08), rgba(167, 139, 250, 0.06));
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.cta-band p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cta-band .btn-primary {
  padding: 0.65rem 1.35rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
}

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

.lang-switch {
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

.lang-switch button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-switch button[aria-pressed="true"] {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.lang-switch button:hover {
  color: var(--text);
}

[hidden] {
  display: none !important;
}

