/* AIFTER NOW — 다크 · 모션 · 타임라인 피드. styles.css 위에 얹는다. 오렌지는 강조 하나만. */
.now-page {
  --ink: #04060F;
  --navy: #0A1129;
  --navy-2: #0F1A44;
  --cobalt: #2347F5;
  --cobalt-soft: #7C93FF;
  --orange: #F59E0B;
  --line: rgba(124, 147, 255, 0.2);
  --text: #F2F5FF;
  --text-sub: rgba(242, 245, 255, 0.66);
  background: var(--ink);
  color: var(--text);
  overflow-x: hidden;
}
.now-page::selection { background: var(--cobalt); color: #fff; }

/* ---------- 전체 레이어 ---------- */
.now-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200; background: var(--orange); }
.now-spot {                      /* 포인터를 따라다니는 빛 (PC) */
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(520px circle at var(--sx, 70%) var(--sy, 10%), rgba(35, 71, 245, 0.16), transparent 60%);
  transition: background-position 0.2s;
}
.now-grain {                     /* 아주 옅은 필름 입자 */
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.now-page main, .now-page .footer, .now-page .navbar { position: relative; z-index: 2; }
.now-page .navbar { position: sticky; z-index: 100; }

/* ---------- nav ---------- */
.now-page .navbar { background: rgba(4, 6, 15, 0.78); border-bottom: 1px solid var(--line); }
.now-page .brand { color: #fff; }
.now-page .brand__stem { background: #fff; }
.now-page .navbar__links a { color: var(--text-sub); }
.now-page .navbar__links .navbar__cta { color: var(--text-sub) !important; }
.now-page .navbar__links a:hover,
.now-page .navbar__links a[aria-current="page"] { color: #fff; }
.now-page .navbar__links a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); }
.now-page .site-switch { background: rgba(15, 26, 68, 0.6); border-color: var(--line); }
.now-page .site-switch a { color: var(--text-sub); }
.now-page .site-switch a:hover { color: #fff; }
.now-page .site-switch a[aria-current="true"] { background: var(--cobalt); color: #fff; }
.now-page .navbar__cta { background: transparent; color: #fff !important; border: 1.5px solid var(--cobalt-soft); box-shadow: none; }
.now-page .navbar__cta:hover { background: rgba(35, 71, 245, 0.25); transform: none; box-shadow: none; }

/* ---------- hero ---------- */
.nx-hero { position: relative; isolation: isolate; overflow: hidden; padding: 64px 0 72px; }
.nx-aurora {                     /* 천천히 도는 코발트 오로라 */
  position: absolute; z-index: -2; width: 760px; height: 760px; right: -280px; top: -300px;
  background: conic-gradient(from 0deg, rgba(35, 71, 245, 0.0), rgba(35, 71, 245, 0.55), rgba(124, 147, 255, 0.18), rgba(35, 71, 245, 0.0) 70%);
  filter: blur(60px); border-radius: 50%;
  animation: nx-spin 28s linear infinite;
}
.nx-hero::before {               /* 격자 */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 25%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse at 30% 25%, #000 10%, transparent 70%);
  opacity: 0.5;
}
@keyframes nx-spin { to { transform: rotate(360deg); } }

.nx-giant {                      /* 속이 빈 거대한 NOW */
  position: absolute; z-index: -1; right: -2vw; bottom: -0.16em; margin: 0;
  font-size: clamp(130px, 40vw, 380px); line-height: 0.8; font-weight: 900; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(124, 147, 255, 0.3);
  user-select: none; pointer-events: none;
  transform: translateY(var(--py, 0px));
}

.nx-stamp {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(15, 26, 68, 0.55);
  font: 700 12px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.1em; color: var(--cobalt-soft);
}
.nx-stamp i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); animation: nx-pulse 1.8s ease-out infinite; }
.nx-stamp b { color: #fff; font-weight: 700; }
@keyframes nx-pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(245, 158, 11, 0); }
}

.nx-title { margin: 24px 0 20px; font-size: clamp(36px, 9.5vw, 72px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 800; word-break: keep-all; }
.nx-title .w { display: inline-block; opacity: 0; transform: translateY(0.55em); animation: nx-rise 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: calc(var(--i) * 90ms + 150ms); }
@keyframes nx-rise { to { opacity: 1; transform: none; } }
.nx-key { position: relative; display: inline-block; padding: 0 0.16em; color: #fff; z-index: 0; }
.nx-key::before { content: ''; position: absolute; inset: 0.06em 0 0.04em; z-index: -1; background: var(--cobalt); border-radius: 8px; transform: scaleX(0); transform-origin: left; animation: nx-wipe 0.6s cubic-bezier(0.7, 0, 0.2, 1) 0.85s forwards; }
.nx-key::after { content: ''; position: absolute; left: 0.16em; right: 0.16em; bottom: 0; height: 5px; background: var(--orange); transform: scaleX(0); transform-origin: left; animation: nx-wipe 0.5s ease-out 1.3s forwards; }
@keyframes nx-wipe { to { transform: scaleX(1); } }

.nx-type { min-height: 34px; margin: 0; font: 500 clamp(17px, 2.6vw, 21px)/1.6 "Noto Serif KR", "Nanum Myeongjo", serif; letter-spacing: -0.01em; color: rgba(242, 245, 255, 0.82); opacity: 0; animation: nx-rise 0.6s ease-out 1.5s forwards; }
.nx-type .p { color: var(--orange); margin-right: 10px; font-family: Pretendard, sans-serif; font-weight: 800; }
.nx-type .caret { display: inline-block; width: 8px; height: 1.1em; margin-left: 3px; vertical-align: -0.18em; background: var(--cobalt-soft); animation: nx-blink 1s steps(1) infinite; }
@keyframes nx-blink { 50% { opacity: 0; } }

/* ---------- 피드(타임라인) ---------- */
.nx-feed { padding: 24px 0 8px; }
.nx-feed__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 26px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.nx-feed__head h2 { font-size: 13px; font-weight: 800; letter-spacing: 0.2em; color: var(--cobalt-soft); }
.nx-feed__head span { font-size: 13px; color: var(--text-sub); }

.nx-timeline { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; display: grid; gap: 18px; }
.nx-timeline::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--cobalt) 0%, rgba(35, 71, 245, 0.15) 85%, transparent); transform-origin: top; transform: scaleY(0); transition: transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.nx-timeline.is-drawn::before { transform: scaleY(1); }

.nx-item { position: relative; opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.nx-item.is-in { opacity: 1; transform: none; }
.nx-node { position: absolute; left: -30px; top: 28px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 2px solid var(--cobalt-soft); transition: background 0.25s, box-shadow 0.25s, border-color 0.25s; }
.nx-item:first-child .nx-node { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); animation: nx-pulse 2s ease-out infinite; }
.nx-item:hover .nx-node { background: var(--cobalt-soft); box-shadow: 0 0 14px 2px rgba(124, 147, 255, 0.7); }

.nx-card {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; overflow: hidden;
  padding: 24px 22px; color: var(--text); text-decoration: none;
  background: linear-gradient(165deg, rgba(20, 33, 88, 0.62), rgba(10, 17, 41, 0.72));
  border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.25s, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nx-card::before {               /* 포인터 스포트라이트 */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.25s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 147, 255, 0.2), transparent 60%);
}
a.nx-card:hover, a.nx-card:focus-visible { border-color: rgba(124, 147, 255, 0.6); transform: translateX(4px); }
a.nx-card:hover::before { opacity: 1; }
.nx-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font: 700 12px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.08em; color: var(--cobalt-soft); }
.nx-meta .latest { padding: 4px 8px; border-radius: 5px; background: var(--orange); color: #111827; letter-spacing: 0.1em; }
.nx-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.nx-chip { padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; background: rgba(35, 71, 245, 0.28); color: #DDE4FF; }
.nx-chip--ex { background: #FFF1CC; color: #92400E; }
.nx-card h3 { font-size: 22px; line-height: 1.35; letter-spacing: -0.02em; word-break: keep-all; margin-bottom: 8px; }
.nx-card p { margin: 0; color: var(--text-sub); font-size: 15px; line-height: 1.7; word-break: keep-all; }
.nx-time { display: block; margin-top: 14px; font-size: 13px; color: var(--text-sub); }
.nx-go {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--orange); font-size: 20px; transition: background 0.25s, color 0.25s, transform 0.3s;
}
a.nx-card:hover .nx-go { background: var(--orange); color: #111827; transform: rotate(-45deg); }
.nx-item--empty .nx-card { border-style: dashed; background: transparent; backdrop-filter: none; }

/* ---------- 아침 브리프 ---------- */
.nx-brief { padding: 24px 0 40px; }
.nx-brief__one { margin: 0 0 14px; font: 600 clamp(19px, 4.6vw, 24px)/1.45 "Noto Serif KR", "Nanum Myeongjo", serif; letter-spacing: -0.01em; color: #fff; word-break: keep-all; }
.nx-brief__legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 18px; padding: 0; font-size: 12px; color: var(--text-sub); }
.nx-brief__legend li { display: inline-flex; align-items: center; gap: 6px; }
.nx-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.nx-dot--try { background: #34D399; }
.nx-dot--paid { background: var(--orange); }
.nx-dot--dev { background: #CBD5E1; }
.nx-dot--news { background: var(--cobalt-soft); }

.nx-brief__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.nx-bitem {
  padding: 20px 18px 18px; border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(165deg, rgba(20, 33, 88, 0.55), rgba(10, 17, 41, 0.7));
  opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nx-bitem.is-in { opacity: 1; transform: none; }
.nx-bitem__top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.nx-bitem__no { font: 800 13px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--cobalt-soft); }
.nx-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; background: rgba(35, 71, 245, 0.22); font-size: 12px; font-weight: 700; color: #DDE4FF; }
.nx-bitem__src { margin-left: auto; font-size: 12px; color: var(--text-sub); }
.nx-bitem h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.4; letter-spacing: -0.02em; word-break: keep-all; }
.nx-bitem > p { margin: 0 0 10px; font-size: 15px; line-height: 1.7; color: rgba(242, 245, 255, 0.82); word-break: keep-all; }
.nx-points { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; }
.nx-points li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.55; color: var(--text-sub); word-break: keep-all; }
.nx-points li::before { content: '→'; position: absolute; left: 0; color: var(--orange); font-weight: 800; }
.nx-orig { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; font-size: 14px; font-weight: 700; color: var(--cobalt-soft); text-decoration: none; }
.nx-orig:hover { color: #fff; }

.nx-brief__foot { display: grid; gap: 10px; justify-items: start; margin-top: 18px; }
.nx-brief__foot p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-sub); word-break: keep-all; }
.nx-brief__days { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.nx-brief__days a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font: 700 12px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--text-sub); text-decoration: none; }
.nx-brief__days a[aria-current="date"] { border-color: var(--orange); color: #fff; }
@media (prefers-reduced-motion: reduce) { .nx-bitem { opacity: 1; transform: none; transition: none; } }

/* ---------- 자료 받는 법 ---------- */
.nx-how { padding: 72px 0 24px; }
.nx-how__head { margin-bottom: 30px; }
.nx-how__head h2 { font-size: clamp(24px, 6vw, 36px); line-height: 1.25; letter-spacing: -0.03em; word-break: keep-all; }
.nx-how__head h2 em { font-style: normal; color: var(--orange); }
.nx-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 768px) { .nx-steps { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.nx-step { position: relative; padding: 22px 20px 24px; border: 1px solid var(--line); border-radius: 16px; background: rgba(10, 17, 41, 0.6); opacity: 0; transform: translateY(20px); transition: opacity 0.7s, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.nx-step.is-in { opacity: 1; transform: none; }
.nx-step__no { display: block; font-size: 64px; line-height: 1; font-weight: 900; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px var(--cobalt-soft); margin-bottom: 14px; }
.nx-step b { display: block; font-size: 18px; margin-bottom: 6px; }
.nx-step p { margin: 0; color: var(--text-sub); font-size: 15px; line-height: 1.65; word-break: keep-all; }
.nx-step::after { content: ''; position: absolute; left: 20px; right: 20px; top: 0; height: 2px; background: linear-gradient(90deg, var(--orange), transparent); transform: scaleX(0); transform-origin: left; transition: transform 0.9s 0.3s ease; }
.nx-step.is-in::after { transform: scaleX(1); }

/* ---------- 마무리 ---------- */
.nx-end { position: relative; overflow: hidden; margin: 56px 0 0; padding: 72px 0 64px; border-top: 1px solid var(--line); text-align: center; }
.nx-end__big { margin: 0 0 22px; white-space: nowrap; font-size: clamp(36px, 11vw, 120px); line-height: 0.95; font-weight: 900; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(124, 147, 255, 0.55); word-break: keep-all; }
.nx-end__big b { color: #fff; -webkit-text-stroke: 0; }
.nx-end p { color: var(--text-sub); margin: 0 auto 22px; max-width: 460px; word-break: keep-all; }
.nx-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 12px; background: var(--orange); color: #111827; font-weight: 800; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.nx-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(245, 158, 11, 0.3); }

.now-page .footer__mascot { display: none; }

@media (hover: none) { .now-spot { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .nx-aurora, .nx-stamp i, .nx-type .caret, .nx-item:first-child .nx-node { animation: none; }
  .nx-title .w, .nx-type { opacity: 1; transform: none; animation: none; }
  .nx-key::before, .nx-key::after { transform: scaleX(1); animation: none; }
  .nx-item, .nx-step { opacity: 1; transform: none; transition: none; }
  .nx-timeline::before { transform: scaleY(1); transition: none; }
  .nx-step::after { transform: scaleX(1); transition: none; }
}

@media (max-width: 639px) {
  .now-page .navbar__links .navbar__cta { border: 0; background: none; }
}

:root { color-scheme: dark; }
