/* ===== QUZIC — Hero ===== */
:root {
  --bg: #06080b;
  --bg-2: #0a0d12;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --fg: #f4f7fb;
  --fg-2: rgba(244, 247, 251, 0.66);
  --fg-3: rgba(244, 247, 251, 0.42);
  --cyan: oklch(0.84 0.12 210);
  --cyan-2: oklch(0.78 0.14 205);
  --indigo: oklch(0.62 0.16 270);
  --magenta: oklch(0.72 0.16 330);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Geist', 'Noto Sans KR', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  font-feature-settings: 'ss01' on, 'cv11' on;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;  /* sticky 살리기 위해 hidden → clip */
}
body { min-height: 100vh; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Grain + glow layers */
.bg-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-fx::before {
  content: '';
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(40% 30% at 50% 18%, oklch(0.62 0.18 210 / 0.05), transparent 70%),
    radial-gradient(25% 20% at 20% 30%, oklch(0.55 0.18 280 / 0.04), transparent 75%),
    radial-gradient(25% 25% at 85% 35%, oklch(0.7 0.18 330 / 0.03), transparent 70%);
  filter: blur(60px);
}
/* 격자 제거 */
.bg-fx::after { display: none; }

.shell {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ====== NAV (floating pill, Raycast-style) ====== */
.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: calc(100% - 40px);
  max-width: 1080px;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: rgba(14, 17, 22, 0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 10px 30px -10px rgba(0,0,0,0.5);
}
.nav.scrolled {
  background: rgba(10, 13, 18, 0.75);
  border-color: rgba(255,255,255,0.12);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 14px 40px -10px rgba(0,0,0,0.7);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 8px 0 22px;
}
.nav-left { display: flex; align-items: center; gap: 36px; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 16px;
}
.brand-mark {
  height: 22px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 6px oklch(0.84 0.12 210 / 0.5));
}
.nav-links { display: flex; gap: 4px; }
.nav-link {
  font-size: 14px;
  color: var(--fg-2);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.nav-link:hover { color: var(--fg); background: var(--surface); }
.nav-right { display: flex; align-items: center; gap: 12px; }


.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: all .18s ease;
  white-space: nowrap;
}
.btn-ghost { color: var(--fg-2); }
.btn-ghost:hover { color: var(--fg); background: var(--surface); }
.btn-secondary {
  color: var(--fg);
  background: var(--surface);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn-primary {
  color: #051418;
  background: linear-gradient(180deg, oklch(0.92 0.1 195), oklch(0.82 0.13 205));
  border-color: oklch(0.75 0.15 205 / 0.6);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 0 0 1px oklch(0.95 0.05 195 / 0.25) inset,
    0 8px 24px -8px oklch(0.7 0.18 205 / 0.6);
  font-weight: 550;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 0 0 1px oklch(0.95 0.05 195 / 0.4) inset,
    0 12px 32px -8px oklch(0.7 0.18 205 / 0.7);
}
.btn-lg { padding: 12px 18px; font-size: 14.5px; border-radius: 11px; }

/* ====== HERO (Raycast-style abstract) ====== */
.hero {
  position: relative;
  padding: 180px 0 120px;
  text-align: center;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero .shell {
  position: relative;
  z-index: 4;
  opacity: 0;
  animation: heroContentIn 1.7s cubic-bezier(.16,1,.3,1) 0.9s forwards;
}
@keyframes heroContentIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Wrapper for parallax — JS sets --mx/--my (-1..1) and --sx/--sy (pixels) */
.hero-fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  --mx: 0;
  --my: 0;
  --sx: 50%;
  --sy: 40%;
}

/* Abstract paint-stroke background — toned down */
.hero-paint {
  position: absolute;
  inset: -10%;
  z-index: 1;
  pointer-events: none;
  transform:
    translate3d(calc(var(--mx) * 24px), calc(var(--my) * 18px), 0)
    rotate(-12deg);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
  animation: paintDrift 22s ease-in-out infinite;
}
.hero-paint::before,
.hero-paint::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}
.hero-paint::before {
  width: 130%;
  height: 70%;
  left: -15%;
  top: 10%;
  background:
    radial-gradient(60% 50% at 30% 50%, oklch(0.6 0.2 210 / 0.05), transparent 70%),
    radial-gradient(50% 50% at 70% 40%, oklch(0.45 0.2 280 / 0.04), transparent 70%),
    radial-gradient(50% 50% at 50% 70%, oklch(0.55 0.18 330 / 0.03), transparent 70%);
}
.hero-paint::after {
  width: 90%;
  height: 50%;
  left: 5%;
  top: 28%;
  background:
    linear-gradient(95deg,
      transparent 0%,
      oklch(0.6 0.18 200 / 0.04) 25%,
      oklch(0.5 0.2 270 / 0.03) 55%,
      oklch(0.58 0.18 330 / 0.03) 80%,
      transparent 100%);
  filter: blur(100px);
}

/* Logo BG — soft watermark, always visible (no mouse tracking) */
.hero-logo-bg {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo-bg img {
  width: min(760px, 66vw);
  height: auto;
  opacity: 0.18;
  filter:
    blur(5px)
    drop-shadow(0 0 24px oklch(0.78 0.16 210 / 0.45))
    drop-shadow(0 0 70px oklch(0.6 0.2 230 / 0.35));
  mix-blend-mode: screen;
  animation: neonBreath 6s ease-in-out infinite;
}
@keyframes neonBreath {
  0%, 100% { opacity: 0.15; }
  50%      { opacity: 0.22; }
}

/* CSS 변수 등록 — keyframe으로 부드럽게 변하려면 필요 */
@property --logo-mask-r {
  syntax: '<length>';
  inherits: false;
  initial-value: 220px;
}

/* Logo FG — LED 글로우, 마우스 위치만 또렷 + 인트로 애니메이션 */
.hero-logo-fg {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  --logo-mask-r: 220px;
  -webkit-mask-image: radial-gradient(
    var(--logo-mask-r) circle at var(--sx) var(--sy),
    black 0%,
    black 25%,
    rgba(0,0,0,0.45) 55%,
    transparent 85%
  );
  mask-image: radial-gradient(
    var(--logo-mask-r) circle at var(--sx) var(--sy),
    black 0%,
    black 25%,
    rgba(0,0,0,0.45) 55%,
    transparent 85%
  );
  animation: introLogoReveal 2.4s cubic-bezier(.22,.9,.32,1) 0.2s both;
}
.hero-logo-fg img {
  width: min(760px, 66vw);
  height: auto;
  opacity: 0.9;
  filter:
    drop-shadow(0 0 6px oklch(0.96 0.13 200 / 0.95))
    drop-shadow(0 0 18px oklch(0.86 0.16 210 / 0.8))
    drop-shadow(0 0 45px oklch(0.7 0.2 220 / 0.55));
  mix-blend-mode: screen;
}

/* 인트로: 처음부터 끝까지 부드럽게 흐름 (멈춤 없음) */
@keyframes introLogoReveal {
  0%   { --logo-mask-r: 1500px; }
  100% { --logo-mask-r: 220px; }
}

/* 스포트라이트 — 넓고 은은한 분위기 빛 (경계 없음) */
.hero-spot {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(
    520px circle at var(--sx) var(--sy),
    oklch(0.88 0.14 200 / 0.035),
    oklch(0.8 0.14 210 / 0.015) 50%,
    transparent 90%
  );
  mix-blend-mode: screen;
}

/* Infinity SVG line — B 컨셉 라인 그려지기 */
.hero-infinity {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate3d(calc(var(--mx) * -8px), calc(var(--my) * -6px), 0);
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
.hero-infinity svg { width: min(780px, 68vw); height: auto; }
.inf-line {
  fill: none;
  stroke: oklch(0.92 0.14 200 / 0.55);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2600;
  stroke-dashoffset: 2600;
  animation: infDraw 5.5s cubic-bezier(.5,.05,.2,1) 0.4s forwards, infPulse 7s ease-in-out 6.5s infinite;
  filter: url(#glow);
}
.inf-line-inner {
  fill: none;
  stroke: oklch(0.95 0.12 200 / 0.35);
  stroke-width: 1;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: infDraw 4s cubic-bezier(.5,.05,.2,1) 2s forwards;
}
@keyframes infDraw  { to { stroke-dashoffset: 0; } }
@keyframes infPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}


/* Optional streak overlay — much softer */
.hero-streak {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(115deg,
      transparent 35%,
      oklch(0.85 0.14 200 / 0.08) 50%,
      transparent 65%);
  filter: blur(40px);
  mix-blend-mode: screen;
  transform: translate3d(calc(var(--mx) * 12px), calc(var(--my) * 8px), 0);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}

@keyframes paintDrift {
  0%, 100% { transform: translate3d(calc(var(--mx) * 24px), calc(var(--my) * 18px), 0) rotate(-12deg) scale(1); }
  50%      { transform: translate3d(calc(var(--mx) * 24px), calc(var(--my) * 18px), 0) rotate(-9deg) scale(1.04); }
}
/* Tone bg-fx down a notch since we have richer hero now */
.hero ~ * .bg-fx, body .bg-fx { opacity: 0.7; }

/* Brand mark removed from hero — kept hidden if rendered */
.hero-mark { display: none; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  font-size: 13px;
  color: var(--fg-2);
  margin-bottom: 28px;
  transition: border-color .2s ease;
}
.eyebrow:hover { border-color: var(--border-strong); }
.eyebrow .pill {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 3px 9px;
  border-radius: 999px;
  background: oklch(0.84 0.12 210 / 0.12);
  border: 1px solid oklch(0.84 0.12 210 / 0.3);
  font-weight: 550;
}
.eyebrow .arrow { color: var(--fg-3); transition: transform .2s ease; }
.eyebrow:hover .arrow { transform: translateX(3px); color: var(--fg-2); }

.hero h1 {
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin: 0 0 22px;
  text-wrap: balance;
}
.hero h1 .grad {
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 50%, oklch(0.78 0.14 205) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .accent {
  background: linear-gradient(120deg, oklch(0.86 0.13 200), oklch(0.72 0.16 250) 50%, oklch(0.76 0.16 320));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 500;
}
.hero p.sub {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--fg-2);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.5;
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 16px;
}
.hero-trial {
  text-align: center;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--fg-3);
  margin: 0 0 56px;
}
.hero-trial::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  vertical-align: middle;
}

/* ====== SHOWCASE (sticky scroll demo) ====== */
.showcase {
  position: relative;
  /* height는 JSX 인라인 — SHOWCASE_SCREENS.length × 110vh */
}
/* hero 아래쪽 → 검정으로 자연스럽게 fade */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 5;
  pointer-events: none;
}

/* ====== SHOWCASE — sticky scroll demo (sc-*) ====== */
.sc-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 0 max(48px, 6vw);
  overflow: hidden;
}
.sc-glow {
  position: absolute;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.75;
  transition: background 0.7s ease;
}

/* Left: tilted desktop window */
.sc-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  perspective: 2200px;
  perspective-origin: 50% 40%;
  display: flex;
  justify-content: center;
}
.sc-window {
  --accent-glow: oklch(0.6 0.18 210 / 0.4);
  width: min(720px, 90%);
  aspect-ratio: 16 / 10.5;
  background: linear-gradient(180deg, #11151b, #07090d);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transform: rotateY(20deg) rotateX(0deg) rotateZ(0deg) scale(0.95) translateZ(-60px);
  transform-style: preserve-3d;
  box-shadow:
    /* 외부 — 깊이 + 후방 글로우 */
    0 80px 160px -20px rgba(0,0,0,0.9),
    0 0 100px -10px var(--accent-glow),
    0 40px 120px -20px var(--accent-glow),
    /* 입체 — top edge 하이라이트 / bottom 어둠 */
    0 1px 0 rgba(255,255,255,0.14) inset,
    0 -1px 0 rgba(0,0,0,0.55) inset,
    1px 0 0 rgba(255,255,255,0.04) inset,
    -1px 0 0 rgba(0,0,0,0.28) inset,
    /* 화면이 살짝 들어간 느낌 — 위에서 떨어지는 inner shadow */
    0 10px 28px rgba(0,0,0,0.45) inset;
  display: grid;
  grid-template-rows: 36px 1fr;
  transition: box-shadow 0.7s ease;
}
/* Top edge glossy line — 빛 받는 모서리 */
.sc-window::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  z-index: 10;
  pointer-events: none;
}
.sc-titlebar {
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  gap: 8px;
}
.sc-dots { display: flex; gap: 6px; }
.sc-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.sc-dots span:nth-child(1) { background: #ff5f57; }
.sc-dots span:nth-child(2) { background: #febc2e; }
.sc-dots span:nth-child(3) { background: #28c840; }
.sc-tlcenter {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--fg-3);
  font-family: 'Geist Mono', ui-monospace, monospace;
  letter-spacing: 0.06em;
}
.sc-tlright { width: 54px; }

.sc-slider {
  display: flex;
  height: 100%;
  /* 자석 스냅 — 화면 전환 시 부드럽게 딱 멈춤 */
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.sc-pane {
  flex: 1;
  height: 100%;
  flex-shrink: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
}
.sc-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}

/* Right: info panel */
.sc-info {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sc-cards {
  position: relative;
  min-height: 280px;
}
.sc-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s cubic-bezier(.16,1,.3,1), transform 0.55s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}
.sc-card.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.sc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-family: 'Geist Mono', monospace;
  letter-spacing: 0.12em;
  color: var(--fg-2);
  margin-bottom: 18px;
}
.sc-eyedot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.sc-title {
  font-size: clamp(30px, 3.6vw, 48px);
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0 0 14px;
  font-weight: 600;
  text-wrap: balance;
}
.sc-sub {
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0 0 22px;
  max-width: 440px;
  text-wrap: pretty;
}
.sc-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sc-chip {
  font-size: 11.5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg-2);
  white-space: nowrap;
  font-family: 'Geist Mono', monospace;
  letter-spacing: 0.04em;
}
.sc-progress {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}
.sc-pill {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
  transition: background 0.4s ease;
}

/* Mobile fallback (간단) */
@media (max-width: 900px) {
  .sc-sticky {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 24px;
  }
  .sc-window {
    transform: rotateY(12deg) rotateX(5deg);
    width: 100%;
    max-width: 540px;
  }
  .sc-cards { min-height: 240px; }
}

/* ====== INSURANCE SECTION — boxless, divider-only ====== */
.insurance {
  min-height: 100vh;
  padding: 80px 0;
  position: relative;
  display: flex;
  align-items: center;
}
.ins-h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1.06;
  font-weight: 500;
  margin: 0 0 12px;
  text-wrap: balance;
  max-width: 720px;
  color: var(--fg);
}
.ins-h2 .accent {
  font-style: italic;
  font-weight: 400;
  color: var(--fg-2);
}
.ins-lede {
  color: var(--fg-3);
  max-width: 520px;
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 48px;
  font-family: 'Geist Mono', monospace;
  letter-spacing: 0.01em;
}
/* Boxless 2×2 grid — only dividers between cells */
.ins-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 880px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ins-card {
  position: relative;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 34px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 210px;
  transition: background .25s ease;
}
/* Dividers — right border on left cells, bottom border on top cells */
.ins-card:nth-child(odd)  { border-right: 1px solid var(--border); }
.ins-card:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
.ins-card:hover {
  background: rgba(255,255,255,0.015);
}
.ins-quotemark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 44px;
  line-height: 0.2;
  height: 18px;
  color: var(--cyan);
  opacity: 0.45;
}
.ins-quote {
  margin: 0;
  flex: 1;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.ins-label {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-3);
  font-weight: 500;
}

@media (max-width: 720px) {
  .ins-grid { grid-template-columns: 1fr; }
  .ins-card:nth-child(odd) { border-right: 0; }
  .ins-card:nth-child(-n+3) { border-bottom: 1px solid var(--border); }
}

/* ====== PRICING — boxless split (anti-AI) ====== */
.pricing {
  min-height: 100vh;
  padding: 80px 0;
  position: relative;
  display: flex;
  align-items: center;
  text-align: center;
}
.pricing .shell {
  width: 100%;
}
.pr-head {
  margin-bottom: 64px;
}
.pr-h2 {
  font-size: clamp(36px, 4.5vw, 60px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-weight: 500;
  margin: 0 0 16px;
  color: var(--fg);
}
.pr-lede {
  color: var(--fg-3);
  font-size: 14px;
  margin: 0;
  font-family: 'Geist Mono', monospace;
  letter-spacing: 0.02em;
}
/* Split — 두 컬럼, 가운데 단일 vertical divider */
.pr-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pr-side {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.pr-side:first-child {
  border-right: 1px solid var(--border);
}
.pr-label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pr-side.pr-pro .pr-label { color: var(--cyan); }
.pr-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}
.pr-pricing {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pr-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.pr-amount {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1;
}
.pr-period {
  font-size: 13px;
  color: var(--fg-3);
  font-family: 'Geist Mono', monospace;
}
/* 정가·할인 — 메인 가격 아래 작은 보조 줄 (배지 없음, 안티-AI) */
.pr-price-sub {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
}
.pr-list {
  color: var(--fg-3);
  text-decoration: line-through;
  letter-spacing: 0.01em;
}
.pr-discount {
  color: var(--cyan);
  letter-spacing: 0.02em;
}
.pr-trial {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--cyan);
}
.pr-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.pr-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-2);
  font-family: 'Geist Mono', 'Noto Sans KR', monospace;
  letter-spacing: 0.01em;
}
.pr-feat-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pr-feat-sub {
  font-family: 'Geist', 'Noto Sans KR', sans-serif;
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0;
  line-height: 1.4;
}
.pr-features li.pr-pro-only .pr-feat-sub { color: oklch(0.84 0.12 210 / 0.65); }
.pr-check {
  color: var(--fg-3);
  font-size: 11px;
  font-family: 'Geist Mono', monospace;
  width: 12px;
  text-align: center;
  padding-top: 2px;
  flex-shrink: 0;
}
.pr-features li.pr-pro-only {
  color: var(--cyan);
}
.pr-features li.pr-pro-only .pr-check { color: var(--cyan); }
.pr-cta {
  justify-content: center;
  width: 100%;
  margin-top: 8px;
}
.pr-foot {
  margin: 32px 0 0;
  color: var(--fg-3);
  font-size: 12px;
  font-family: 'Geist Mono', monospace;
  letter-spacing: 0.02em;
}

@media (max-width: 760px) {
  .pr-split { grid-template-columns: 1fr; }
  .pr-side:first-child { border-right: 0; border-bottom: 1px solid var(--border); }
  .pr-side.pr-pro { order: -1; }
}

/* ====== FOOTER ====== */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 28px;
  color: var(--fg-3);
  font-size: 13px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--fg-2); }
.footer-biz {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  align-items: center;
  font-size: 11px;
  color: var(--fg-3);
  opacity: 0.55;
  line-height: 1.6;
}
.footer-biz-dot { margin: 0 6px; opacity: 0.4; }
@media (max-width: 680px) {
  .footer-biz { flex-direction: column; align-items: flex-start; gap: 2px; }
  .footer-biz-dot { display: none; }
}

/* Responsiveness */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { padding-top: 56px; }
}

/* === Disabled CTA (베타 출시 전) === */
.btn.is-disabled,
.btn[disabled],
.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.4);
}


/* === Smooth scroll for nav anchors === */
html { scroll-behavior: smooth; }

/* ====== Magazine Section ====== */
.magazine {
  padding: 80px 0 100px;
  border-top: 1px solid rgba(244, 247, 251, 0.06);
}

.mag-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.mag-label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  opacity: 0.8;
}

.mag-all {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: rgba(244, 247, 251, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.mag-all:hover { color: rgba(244, 247, 251, 0.75); }

.mag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: stretch;
}

.mag-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Card base */
.mag-card {
  display: block;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  background: rgba(244, 247, 251, 0.03);
  transition: transform 0.22s ease, opacity 0.22s ease;
  border: 1px solid rgba(244, 247, 251, 0.06);
}
.mag-card:hover { transform: translateY(-3px); opacity: 0.9; }

/* ── Large card ── */
.mag-card--large {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
}

.mag-card--large .mag-img-wrap {
  position: absolute;
  inset: 0;
}

.mag-card--large .mag-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mag-card--large .mag-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 8, 11, 0.95) 0%,
    rgba(6, 8, 11, 0.55) 45%,
    rgba(6, 8, 11, 0.1) 100%
  );
}

.mag-card--large .mag-content {
  position: relative;
  padding: 28px 24px 26px;
}

/* ── Small cards ── */
.mag-card--small {
  flex: 1;
  display: flex;
  flex-direction: row;
  min-height: 0;
}

.mag-card--small .mag-img-wrap {
  flex-shrink: 0;
  width: 130px;
  position: relative;
  overflow: hidden;
}

.mag-card--small .mag-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mag-card--small .mag-content {
  flex: 1;
  padding: 18px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── Content ── */
.mag-cat {
  font-family: 'Geist Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.11em;
  color: var(--cyan);
  opacity: 0.7;
  display: block;
  margin-bottom: 4px;
}

.mag-card--large .mag-title {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(244, 247, 251, 0.95);
  margin: 0 0 10px;
}

.mag-card--small .mag-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(244, 247, 251, 0.9);
  margin: 0;
  flex: 1;
}

.mag-desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(244, 247, 251, 0.45);
  margin: 0 0 14px;
}

.mag-card--small .mag-desc {
  font-size: 12px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 8px;
}

.mag-read {
  font-size: 12px;
  font-family: 'Geist Mono', monospace;
  color: var(--cyan);
  opacity: 0.6;
  margin-top: auto;
}

/* ── Responsive ── */
@media (max-width: 680px) {
  .mag-grid {
    grid-template-columns: 1fr;
  }
  .mag-card--large {
    min-height: 320px;
  }
  .mag-card--small .mag-img-wrap {
    width: 110px;
  }
}


/* ====== Auth Modal ====== */
.qz-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  z-index: 1000;
  padding: 24px;
}
.qz-modal-card {
  width: 100%;
  max-width: 400px;
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.qz-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.qz-modal-title {
  font-size: 17px;
  font-weight: 600;
  color: #e8eaed;
}
.qz-modal-close {
  background: none;
  border: none;
  color: #9aa0a6;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}
.qz-modal-close:hover { color: #e8eaed; }
.qz-modal-sub {
  font-size: 13px;
  color: #9aa0a6;
  margin: 0 0 20px;
}
.qz-modal-providers {
  display: grid;
  gap: 10px;
}
.qz-prov {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e8eaed;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.qz-prov:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-1px);
}
.qz-prov:active { transform: scale(0.98); }
.qz-prov-ico {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
}
.qz-prov-label { flex: 1; }
.qz-prov-arr { color: #9aa0a6; font-size: 14px; }
.qz-modal-note {
  font-size: 11.5px;
  color: #5f6368;
  text-align: center;
  margin: 16px 0 0;
}

/* ====== Auth Callback Page ====== */
.qz-cb {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: #06080b;
  padding: 24px;
}
.qz-cb-card {
  display: grid;
  place-items: center;
  gap: 16px;
  text-align: center;
}
.qz-cb-spin {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.12);
  border-top-color: #39d0ff;
  animation: qz-spin 0.7s linear infinite;
}
@keyframes qz-spin { to { transform: rotate(360deg); } }
.qz-cb-check {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(57,208,255,0.12);
  border: 1px solid rgba(57,208,255,0.3);
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #39d0ff;
}
.qz-cb-msg { font-size: 15px; color: #9aa0a6; margin: 0; }
.qz-cb-err { font-size: 18px; font-weight: 600; color: #e8eaed; margin: 0; }
.qz-cb-detail { font-size: 13px; color: #9aa0a6; word-break: break-word; max-width: 320px; }
