/* ============================================================
   LINKFORGE SEO — Korean premium design system
   deep navy #05060f · icy blue gradient #d8ecf8 → #98c0ef
   glass #bad6f708 / border #bad7f71f · Pretendard
   ============================================================ */

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  --bg: #05060f;
  --bg-2: #090b18;
  --ink: #c7d3ea;
  --body: #c8d4eac7;
  --muted: #8fa3c4;
  --ice: #98c0ef;
  --ice-2: #d8ecf8;
  --glass: #bad6f708;
  --glass-2: #bad6f70f;
  --line: #bad7f71f;
}

* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--body);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Noto Sans KR', sans-serif;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  word-break: keep-all;
}

::selection { background: #98c0ef; color: #05060f; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #05060f; }
::-webkit-scrollbar-thumb { background: #1c2740; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #2b3a5e; }

.font-mono { font-family: 'JetBrains Mono', 'Noto Sans KR', monospace; }

/* ---------- gradient headline text ---------- */
.grad-text {
  background: linear-gradient(0deg, #d8ecf8 0%, #98c0ef 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 16px rgba(174, 207, 242, 0.24);
}

/* ---------- eyebrow ---------- */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--ice);
}
.eyebrow::before { content: "// "; color: var(--muted); }

/* ---------- hero spotlight cone ---------- */
.spotlight {
  position: absolute;
  top: -140px; left: 50%;
  width: 220px; height: 720px;
  background-image: conic-gradient(
    at 50% -5%,
    #0000 45%, #7c91b64d 49%, #7c91b680 50%, #7c91b64d 51%, #0000 55%
  );
  filter: blur(15px);
  transform: translateX(-50%) rotate(0deg) scale(1);
  animation:
    spotOpacity 6s linear infinite alternate,
    spotScale 8.5s infinite both;
  pointer-events: none;
  z-index: 1;
}
@keyframes spotOpacity { 0% {opacity:.6} 50% {opacity:.5} 95% {opacity:.6} }
@keyframes spotScale {
  0% { transform: translateX(-50%) rotate(0deg) scale(1); }
  50% { transform: translateX(-50%) rotate(8deg) scale(1.1); }
  100% { transform: translateX(-50%) rotate(0deg) scale(1); }
}

/* ---------- glass card with corner dots ---------- */
.glass {
  position: relative;
  background:
    radial-gradient(120% 90% at 50% 0%, #a8d8f50f 0%, #0000 60%),
    var(--glass);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 1px #d8ecf833, inset 0 24px 48px #a8d8f508;
  transition: transform .45s cubic-bezier(.6,.6,0,1), border-color .45s, box-shadow .45s;
}
.glass:hover {
  transform: translateY(-5px);
  border-color: #bad7f73d;
  box-shadow: inset 0 1px 1px #d8ecf833, 0 24px 60px -30px #98c0ef33;
}
.corner-dots::before, .corner-dots::after,
.corner-dots .d3, .corner-dots .d4 {
  content: "";
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: radial-gradient(#d8ecf8 30%, #98c0ef55 70%);
  filter: drop-shadow(0 0 4px #98c0ef88);
}
.corner-dots::before { top: 10px; left: 10px; }
.corner-dots::after { top: 10px; right: 10px; }
.corner-dots .d3 { bottom: 10px; left: 10px; }
.corner-dots .d4 { bottom: 10px; right: 10px; }

/* ---------- glowing conic-border button ---------- */
.btn-glow {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 999px;
  background: radial-gradient(31.2% 40.91% at 50% 151.14%, #bad6f714 0%, #bad6f700 100%), #bad6f70f;
  backdrop-filter: blur(4px);
  box-shadow: inset 0 0 0 1px #bad7f71f;
  color: var(--ice-2);
  font-weight: 700;
  padding: 1rem 2rem;
  overflow: hidden;
  transition: box-shadow .2s ease-out, transform .2s ease-out;
}
.btn-glow::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), transparent 0%, #c2ccff 40%, transparent 40%);
  animation: line-anim 6s linear infinite;
  opacity: .5;
  -webkit-mask-image: radial-gradient(#fff 3%, #0000 3%), radial-gradient(#ffffff80 3%, #0000 3%);
  mask-image: radial-gradient(#fff 3%, #0000 3%), radial-gradient(#ffffff80 3%, #0000 3%);
  -webkit-mask-position: 0 0, 15px 15px;
  mask-position: 0 0, 15px 15px;
  -webkit-mask-size: 30px 30px;
  mask-size: 30px 30px;
}
.btn-glow:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px #bad7f73d, 0 12px 44px -10px #98c0ef55; }
@keyframes line-anim { to { --angle: 360deg; } }

/* solid primary */
.btn-solid {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: linear-gradient(0deg, #d8ecf8, #98c0ef);
  color: #05060f; font-weight: 800;
  border-radius: 999px; padding: 1rem 2rem;
  box-shadow: 0 10px 40px -12px #98c0ef88;
  transition: transform .2s ease-out, box-shadow .2s ease-out;
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 18px 54px -12px #98c0efaa; }

/* ---------- gradient line separator ---------- */
.grad-line {
  height: 1px; border: 0;
  background: linear-gradient(90deg, transparent 0%, #bad7f71f 25% 75%, transparent 100%);
}

/* ---------- keyword chips ---------- */
.kw-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .88rem; font-weight: 600;
  color: var(--body);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .6rem 1.15rem;
  transition: all .25s cubic-bezier(.6,.6,0,1);
  white-space: nowrap;
}
.kw-chip:hover {
  color: var(--ice-2);
  border-color: #98c0ef66;
  box-shadow: 0 0 22px #98c0ef22;
  transform: translateY(-2px);
}
.kw-chip svg { flex: none; }

/* ---------- hero search card ---------- */
.search-card {
  background:
    radial-gradient(120% 100% at 50% 0%, #a8d8f512 0%, #0000 55%),
    #0a0d1cd9;
  border: 1px solid var(--line);
  border-radius: 24px;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 1px #d8ecf833, 0 30px 80px -30px #00000088;
}
.search-input {
  width: 100%;
  background: #bad6f70a;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font-size: 1.02rem; font-weight: 600;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(3px);
  box-shadow: inset 0 2px 8px #00000044;
  transition: border-color .25s, box-shadow .25s;
}
.search-input::placeholder { color: #8fa3c488; font-weight: 500; }
.search-input:focus { outline: 2px solid #bbd7f74d; border-color: #98c0ef88; }

/* ---------- 3D icon float ---------- */
.icon-3d {
  filter: drop-shadow(0 18px 30px rgba(152, 192, 239, .18));
  animation: float3d 5.5s ease-in-out infinite;
}
@keyframes float3d {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(-12px) rotate(1.2deg); }
}

/* ---------- staggered build-in ---------- */
.build-in { opacity: 0; transform: translateY(14px); animation: buildIn .65s cubic-bezier(.6,.6,0,1) forwards; }
@keyframes buildIn { to { opacity: 1; transform: none; } }
.af-1 { animation-delay: .15s; } .af-2 { animation-delay: .45s; }
.af-3 { animation-delay: .75s; } .af-4 { animation-delay: 1.05s; }
.af-5 { animation-delay: 1.35s; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.6,.6,0,1), transform .8s cubic-bezier(.6,.6,0,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ---------- nav ---------- */
.nav-link { position: relative; color: var(--muted); font-size: .9rem; font-weight: 600; transition: color .25s; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 0; height: 1px; background: var(--ice); transition: width .3s;
}
.nav-link:hover { color: var(--ice-2); }
.nav-link:hover::after { width: 100%; }

/* ---------- steps ---------- */
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem; letter-spacing: .3em;
  color: var(--ice);
}

/* ---------- faq ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { cursor: pointer; transition: color .25s; }
.faq-q:hover { color: var(--ice-2); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .5s cubic-bezier(.6,.6,0,1); }
.faq-item.open .faq-a { max-height: 320px; }
.faq-item .plus { transition: transform .35s; color: var(--muted); }
.faq-item.open .plus { transform: rotate(45deg); color: var(--ice); }

/* ---------- floating bottom CTA (Korean mobile pattern) ---------- */
.float-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: .8rem 1rem calc(.8rem + env(safe-area-inset-bottom));
  background: linear-gradient(to top, #05060f 60%, transparent);
}

/* ---------- stats ---------- */
.stat-num { font-variant-numeric: tabular-nums; }

/* ---------- hero image ---------- */
.hero-img {
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 40px 120px -40px #98c0ef33, inset 0 1px 1px #d8ecf822;
}

/* niche tags */
.niche-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem; letter-spacing: .16em;
  color: #ff8f8f; border: 1px solid rgba(255, 143, 143, .3);
  background: rgba(255, 143, 143, .05);
  border-radius: 999px; padding: .35rem .85rem;
}

@media (prefers-reduced-motion: reduce) {
  .spotlight, .btn-glow::before, .icon-3d { animation: none; }
  .build-in { animation-duration: .01s; }
}

/* masked price teaser — revealed only via Telegram */
.price-mask {
  filter: blur(11px);
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}
