/* =========================================================================
   morphly content site — shared stylesheet
   Matches the app brand: dark surface, violet→pink→rose accent gradient.
   ========================================================================= */

:root {
  --accent-violet: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-rose: #f43f5e;
  --accent-blue: #3b82f6;
  --accent-gradient: linear-gradient(135deg, var(--accent-violet), var(--accent-pink) 48%, var(--accent-rose));
  --bg: #07080f;
  --bg-soft: #0d0f1a;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --hairline: rgba(255, 255, 255, 0.12);
  --text-1: #f4f5fa;
  --text-2: #b9bdd0;
  --text-3: #8a8fa8;
  --r-lg: 22px;
  --r-md: 14px;
  --r-pill: 999px;
  --max-width: 1080px;
  --article-width: 760px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  background:
    radial-gradient(110% 60% at 50% -10%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(90% 60% at -10% 100%, rgba(59, 130, 246, 0.12), transparent 55%),
    radial-gradient(90% 70% at 110% 90%, rgba(244, 63, 94, 0.1), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text-1);
  line-height: 1.75;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 8, 15, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-gradient);
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
}

.nav-links a {
  padding: 8px 13px;
  border-radius: var(--r-pill);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms, background 160ms;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text-1);
  background: var(--surface-strong);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  background: var(--accent-gradient);
  color: #fff;
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 26px rgba(236, 72, 153, 0.32);
  transition: transform 180ms, box-shadow 180ms;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(236, 72, 153, 0.42);
}

/* Hero ------------------------------------------------------------------ */

.hero {
  padding: 84px 0 56px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero h1 {
  margin: 22px auto 18px;
  max-width: 760px;
  font-size: clamp(2rem, 5.4vw, 3.3rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.22;
}

.hero h1 .grad {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-2);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 30px;
  border-radius: var(--r-pill);
  font-size: 1.02rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms, box-shadow 180ms, background 180ms;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 12px 34px rgba(236, 72, 153, 0.36);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(236, 72, 153, 0.46);
}

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--text-1);
}

.btn-ghost:hover {
  background: var(--surface-strong);
}

.hero-note {
  margin-top: 18px;
  color: var(--text-3);
  font-size: 0.88rem;
}

/* Sections -------------------------------------------------------------- */

.section {
  padding: 58px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.section-head p {
  margin-top: 12px;
  color: var(--text-2);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  padding: 26px 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: transform 200ms, border-color 200ms, background 200ms;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(236, 72, 153, 0.4);
  background: var(--surface-strong);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--surface-strong);
  border: 1px solid var(--hairline);
  font-size: 1.4rem;
}

.card h3 {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.card p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 0.95rem;
}

.card .tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 11px;
  border-radius: var(--r-pill);
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c4b0fb;
  font-size: 0.76rem;
  font-weight: 800;
}

a.card {
  display: block;
  text-decoration: none;
}

a.card .card-more {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent-pink);
  font-size: 0.9rem;
  font-weight: 800;
}

/* Featured filter panel -------------------------------------------------- */

.feature-panel {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 34px;
  align-items: center;
  padding: 40px;
  border-radius: 28px;
  border: 1px solid rgba(236, 72, 153, 0.3);
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(120% 130% at 100% 100%, rgba(244, 63, 94, 0.16), transparent 55%),
    var(--surface);
}

@media (max-width: 820px) {
  .feature-panel { grid-template-columns: 1fr; padding: 28px 22px; }
}

.feature-panel h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.feature-panel p {
  margin-top: 14px;
  color: var(--text-2);
}

.feature-list {
  margin-top: 18px;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 6px 0 6px 30px;
  color: var(--text-2);
}

.feature-list li::before {
  content: "⚡";
  position: absolute;
  left: 0;
  top: 6px;
}

.morph-demo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  justify-items: center;
}

.morph-face {
  display: grid;
  place-items: center;
  width: min(150px, 34vw);
  aspect-ratio: 1;
  border-radius: 26px;
  border: 1px solid var(--hairline);
  background: var(--surface-strong);
  font-size: clamp(3rem, 9vw, 4.4rem);
}

.morph-face.is-after {
  border-color: rgba(236, 72, 153, 0.5);
  box-shadow: 0 14px 40px rgba(236, 72, 153, 0.22);
  transform: scaleY(1.14);
}

.morph-arrow {
  font-size: 1.7rem;
  color: var(--accent-pink);
}

.morph-caption {
  grid-column: 1 / -1;
  color: var(--text-3);
  font-size: 0.85rem;
  text-align: center;
}

/* Steps ------------------------------------------------------------------ */

.step {
  position: relative;
  padding: 26px 24px 26px 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 900;
}

/* FAQ --------------------------------------------------------------------- */

.faq-list {
  max-width: var(--article-width);
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
}

.faq-list summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 750;
  list-style: none;
  position: relative;
  padding-right: 44px;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-pink);
  font-size: 1.3rem;
  font-weight: 400;
}

.faq-list details[open] summary::after { content: "–"; }

.faq-list .faq-body {
  padding: 0 20px 18px;
  color: var(--text-2);
  font-size: 0.97rem;
}

/* Article ------------------------------------------------------------------ */

.article {
  max-width: var(--article-width);
  margin: 0 auto;
  padding: 56px 0 30px;
}

.article-meta {
  color: var(--text-3);
  font-size: 0.88rem;
}

.article h1 {
  margin: 14px 0 22px;
  font-size: clamp(1.7rem, 4.4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.28;
}

.article .lead {
  color: var(--text-2);
  font-size: 1.1rem;
}

.article h2 {
  margin: 44px 0 14px;
  font-size: 1.42rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.article h3 {
  margin: 30px 0 10px;
  font-size: 1.12rem;
  font-weight: 800;
}

.article p {
  margin: 14px 0;
  color: var(--text-2);
}

.article ul,
.article ol {
  margin: 14px 0 14px 22px;
  color: var(--text-2);
}

.article li { margin: 7px 0; }

.article strong { color: var(--text-1); }

.article blockquote {
  margin: 20px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--accent-pink);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--surface);
  color: var(--text-2);
}

.article table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.article th,
.article td {
  padding: 11px 14px;
  border: 1px solid var(--hairline);
  text-align: left;
  color: var(--text-2);
}

.article th {
  background: var(--surface-strong);
  color: var(--text-1);
  font-weight: 800;
}

.table-scroll { overflow-x: auto; }

.article .callout {
  margin: 22px 0;
  padding: 18px 22px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--r-md);
  background: rgba(59, 130, 246, 0.1);
  color: var(--text-2);
  font-size: 0.96rem;
}

.article .callout strong { color: #9cc3fb; }

.article a { color: var(--accent-pink); }

.article-cta {
  margin: 36px 0;
  padding: 28px;
  text-align: center;
  border-radius: var(--r-lg);
  border: 1px solid rgba(236, 72, 153, 0.35);
  background: radial-gradient(120% 140% at 50% 0%, rgba(139, 92, 246, 0.18), transparent 70%), var(--surface);
}

.article-cta p {
  margin: 0 0 16px;
  color: var(--text-1);
  font-weight: 700;
}

.related {
  max-width: var(--article-width);
  margin: 0 auto;
  padding: 20px 0 60px;
}

.related h2 {
  margin-bottom: 18px;
  font-size: 1.2rem;
  font-weight: 850;
}

/* Ad slots ------------------------------------------------------------------
   Placeholder containers for Google AdSense. Once the site is approved,
   replace the inner placeholder with the <ins class="adsbygoogle"> snippet.
   Keep min-height to avoid layout shift (CLS) when ads load. */

.ad-slot {
  max-width: var(--article-width);
  margin: 34px auto;
  min-height: 120px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--hairline);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text-3);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.ad-slot.is-wide { max-width: var(--max-width); }

/* Footer --------------------------------------------------------------------- */

.site-footer {
  margin-top: 40px;
  padding: 44px 0 54px;
  border-top: 1px solid var(--hairline);
  background: rgba(7, 8, 15, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

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

.site-footer h4 {
  margin-bottom: 12px;
  font-size: 0.95rem;
  font-weight: 800;
}

.site-footer p,
.site-footer a {
  color: var(--text-3);
  font-size: 0.9rem;
  text-decoration: none;
}

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

.footer-links {
  list-style: none;
}

.footer-links li { margin: 7px 0; }

.footer-legal {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  color: var(--text-3);
  font-size: 0.82rem;
}

/* Breadcrumb ------------------------------------------------------------------- */

.breadcrumb {
  padding-top: 26px;
  font-size: 0.86rem;
  color: var(--text-3);
}

.breadcrumb a {
  color: var(--text-3);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--text-1); }

/* Utility ------------------------------------------------------------------------ */

.center { text-align: center; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 16px;
  background: var(--accent-gradient);
  color: #fff;
  border-radius: 0 0 12px 0;
  z-index: 50;
}

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