/* ============================================================
   Pixelwide homepage — standalone (non-blog) layout
   Full-width hero, anchored nav, wide sections. Dark-first.
   ============================================================ */

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

html { scroll-behavior: smooth; }

body.pw-home {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "Segoe UI", sans-serif;
  background: #0e1116;
  color: #e6e9ee;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: light) {
  body.pw-home { background: #fafafa; color: #17181c; }
}

.pw-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.4rem;
}

a { color: inherit; }

/* ---------- Nav ---------- */
.pw-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(14, 17, 22, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
@media (prefers-color-scheme: light) {
  .pw-nav { background: rgba(250, 250, 250, 0.82); border-bottom-color: rgba(0, 0, 0, 0.07); }
}
.pw-nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.85rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pw-logo {
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.pw-logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, #f5c66b, #e78a4e);
  display: inline-block;
}
.pw-nav-links { display: flex; gap: 1.6rem; }
.pw-nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: #9aa1ad;
  transition: color 0.15s ease;
}
.pw-nav-links a:hover { color: inherit; }

/* ---------- Hero ---------- */
.pw-hero {
  padding: 6.5rem 0 5rem;
  text-align: center;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(231, 138, 78, 0.10), transparent 70%),
    radial-gradient(50% 60% at 80% 20%, rgba(107, 130, 255, 0.07), transparent 70%);
}
.pw-hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: #8a8f9a;
  margin: 0 0 1.2rem;
}
.pw-hero-title {
  font-size: clamp(2.4rem, 7vw, 3.8rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 1.3rem;
}
.pw-hero-sub {
  max-width: 36rem;
  margin: 0 auto 2.2rem;
  color: #9aa1ad;
  font-size: 1.08rem;
}
@media (max-width: 640px) { .pw-desktop-br { display: none; } }
.pw-hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.pw-btn {
  display: inline-block;
  padding: 0.68rem 1.45rem;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: inherit;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.pw-btn:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.32); }
.pw-btn-primary {
  background: #f2f4f8;
  border-color: transparent;
  color: #12141a;
}
.pw-btn-primary:hover { background: #fff; }
@media (prefers-color-scheme: light) {
  .pw-btn { border-color: rgba(0, 0, 0, 0.16); }
  .pw-btn:hover { border-color: rgba(0, 0, 0, 0.34); }
  .pw-btn-primary { background: #17181c; color: #fff; }
  .pw-btn-primary:hover { background: #000; }
}

/* ---------- Sections ---------- */
.pw-section { padding: 3.6rem 0; }
.pw-section-alt {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
@media (prefers-color-scheme: light) {
  .pw-section-alt { background: #f1f2f5; border-color: rgba(0, 0, 0, 0.06); }
}
.pw-section-head { margin: 0 0 1.8rem; }
.pw-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}
.pw-section-sub { color: #9aa1ad; font-size: 0.97rem; margin: 0; }

/* ---------- App cards ---------- */
.pw-app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.1rem;
}
.pw-card {
  position: relative;
  display: flex;
  gap: 1.05rem;
  align-items: flex-start;
  padding: 1.25rem 1.3rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  text-decoration: none;
  transition: transform 0.16s ease, background-color 0.16s ease,
    border-color 0.16s ease, box-shadow 0.16s ease;
}
.pw-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
@media (prefers-color-scheme: light) {
  .pw-card { background: #fff; border-color: rgba(0, 0, 0, 0.08); }
  .pw-card:hover { border-color: rgba(0, 0, 0, 0.18); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.09); }
}
.pw-card-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}
@media (prefers-color-scheme: light) {
  .pw-card-icon { background: #f1f2f5; }
}
.pw-card-icon img { width: 64px; height: 64px; object-fit: cover; }
.pw-card-emoji { font-size: 1.9rem; line-height: 64px; text-align: center; display: block; }
.pw-card-body { display: flex; flex-direction: column; min-width: 0; }
.pw-card-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a8f9a;
  margin-bottom: 0.28rem;
}
.pw-card-name { font-weight: 700; font-size: 1.02rem; line-height: 1.3; margin-bottom: 0.3rem; }
.pw-card-desc {
  color: #9aa1ad;
  font-size: 0.87rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pw-card-arrow {
  position: absolute;
  right: 1.2rem;
  top: 1.25rem;
  color: #8a8f9a;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.pw-card:hover .pw-card-arrow { opacity: 1; transform: translateX(0); }

/* ---------- Guide cards ---------- */
.pw-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) { .pw-guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pw-guide-grid { grid-template-columns: 1fr; } }
.pw-guide {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 1.2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}
.pw-guide:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
}
@media (prefers-color-scheme: light) {
  .pw-guide { background: #fff; border-color: rgba(0, 0, 0, 0.08); }
  .pw-guide:hover { border-color: rgba(0, 0, 0, 0.2); }
}
.pw-guide-cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8f9a;
}
.pw-guide-name { font-weight: 700; font-size: 0.98rem; line-height: 1.35; }
.pw-guide-desc {
  color: #9aa1ad;
  font-size: 0.84rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pw-guide-date { color: #6f7480; font-size: 0.76rem; margin-top: 0.25rem; }
.pw-more { margin-top: 1.8rem; text-align: center; }

/* ---------- Footer ---------- */
.pw-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2.2rem 0 2.6rem;
  color: #8a8f9a;
  font-size: 0.88rem;
}
@media (prefers-color-scheme: light) {
  .pw-footer { border-top-color: rgba(0, 0, 0, 0.08); }
}
.pw-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.pw-footer nav { display: flex; gap: 1.4rem; }
.pw-footer a { color: inherit; text-decoration: none; }
.pw-footer a:hover { color: inherit; opacity: 0.75; }

@media (max-width: 640px) {
  .pw-hero { padding: 4.5rem 0 3.6rem; }
  .pw-section { padding: 2.8rem 0; }
  .pw-nav-links { gap: 1.1rem; }
}

/* ============================================================
   Home-root overrides: 홈은 kita prose 컨테이너(main.max-w-3xl)를 벗어나 풀와이드로
   ============================================================ */
.pw-home-root {
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0;
}
.pw-home-root ~ * { content-visibility: auto; }
