:root {
  color-scheme: dark;
  --bg: #0B0F19;
  --surface: #111827;
  --surface-2: #1F2937;
  --border: #263042;
  --text: #E5E7EB;
  --muted: #9CA3AF;
  --primary: #38BDF8;
  --primary-strong: #0EA5E9;
  --accent: #FACC15;
  --accent-strong: #EAB308;
  --danger: #F87171;
  --success: #4ADE80;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-lg: 0 20px 60px -20px rgba(14, 165, 233, 0.35);
  --font-sans: "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-num: "Inter", "Noto Sans KR", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; top: -100%; left: 0; z-index: 1000;
  background: var(--primary); color: #001018; padding: .75rem 1rem;
  font-weight: 700;
}
.skip-link:focus { top: 0; }

.container {
  width: min(92%, 72rem);
  margin-inline: auto;
}

.tag {
  display: inline-block;
  font-family: var(--font-num);
  font-size: .75rem;
  letter-spacing: .22em;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: .75rem;
  text-transform: uppercase;
}
.tag.light { color: var(--accent); }

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
}
.section-title {
  font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
  font-weight: 800;
}
.section-title.light { color: #fff; }
.section-desc {
  color: var(--muted);
  font-size: clamp(1rem, .95rem + .3vw, 1.125rem);
  max-width: 40rem;
}
.section-desc.light { color: #e8eef7; }
.section-head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head .section-desc { margin-inline: auto; }

.grad {
  background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(11, 15, 25, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  width: min(92%, 80rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: .6rem;
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: #0F172A;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; }
.brand-text small { font-family: var(--font-num); font-size: .7rem; color: var(--muted); letter-spacing: .14em; }

.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); }
.nav-links .nav-cta {
  color: #001018;
  background: var(--primary);
  padding: .55rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}
.nav-links .nav-cta:hover { background: var(--accent); }

/* Nav HOT 메뉴 (자동화 시스템) — 기본은 일반 링크, active 시 강조 */
.nav-hot {
  position: relative;
  padding: .3rem .3rem .3rem 0;
  font-weight: 600;
}
.nav-hot:hover { color: var(--accent) !important; }

/* 스크롤스파이 활성 상태 */
.nav-links a.nav-active,
.mobile-menu a.nav-active {
  color: var(--primary) !important;
  font-weight: 700;
}
.nav-links a.nav-active.nav-hot,
.mobile-menu a.nav-active.nav-hot {
  color: var(--accent) !important;
}
.nav-links a.nav-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.nav-links a.nav-active.nav-cta::after { display: none; }
.nav-hot-dot {
  position: absolute;
  top: 4px; right: -6px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #F97316;
  box-shadow: 0 0 0 0 rgba(249,115,22,.65);
  /* 페이지 진입 초반 4회만 맥박, 이후 정적인 점 */
  animation: hotPulse 1.8s ease-out 4 forwards;
}
.nav-hot:hover .nav-hot-dot {
  /* 사용자가 호버하면 한 번 더 살짝 반응 */
  animation: hotPulse 1.8s ease-out 1;
}
@keyframes hotPulse {
  0%   { box-shadow: 0 0 0 0   rgba(249,115,22,.65); }
  70%  { box-shadow: 0 0 0 10px rgba(249,115,22,0); }
  100% { box-shadow: 0 0 0 0   rgba(249,115,22,0); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-hot-dot { animation: none; }
}
.mobile-menu .nav-hot { color: var(--accent); }

.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px auto; transition: .3s; }
.mobile-menu { display: none; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-block; }
  .mobile-menu {
    display: block;
    position: absolute; left: 0; right: 0; top: 64px;
    background: rgba(11,15,25,.97);
    border-bottom: 1px solid var(--border);
    padding: .5rem 0;
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a { display: block; padding: .9rem 7%; color: var(--text); border-bottom: 1px solid rgba(255,255,255,0.04); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: clamp(6rem, 14vw, 9rem) 0 clamp(5rem, 10vw, 7rem);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.glow {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
}
.glow-1 { width: 380px; height: 380px; background: #0EA5E9; top: -80px; left: -60px; }
.glow-2 { width: 440px; height: 440px; background: #FACC15; bottom: -120px; right: -80px; opacity: .22; }

.hero-inner { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-copy { text-align: left; }
.hero-copy .hero-cta { justify-content: flex-start; }
.hero-copy .hero-chips { justify-content: flex-start; }
.hero-visual {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.hero-dice-stage {
  width: 100%;
  display: flex; justify-content: center; align-items: center;
  min-height: 360px;
}
@media (max-width: 900px) {
  .hero { padding: clamp(4rem, 12vw, 6rem) 0 clamp(3rem, 8vw, 5rem); }
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-copy { text-align: center; }
  .hero-copy .hero-cta { justify-content: center; }
  .hero-copy .hero-chips { justify-content: center; }
  .hero-inner { text-align: center; }
  .hero-dice-stage { min-height: 260px; }
}
@media (max-width: 560px) {
  .hero { padding: 3.2rem 0 2.6rem; }
  .hero-dice-stage { min-height: 220px; }
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-num);
  font-size: .72rem;
  letter-spacing: .28em;
  color: var(--primary);
  font-weight: 700;
  padding: .4rem .9rem;
  border: 1px solid rgba(56,189,248,.35);
  border-radius: 999px;
  margin-bottom: 1.4rem;
  background: rgba(56,189,248,.06);
}
.hero-title {
  font-size: clamp(1.9rem, 1.2rem + 4.2vw, 4.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1.2rem;
  font-weight: 900;
  word-break: keep-all;
}
.hero-desc {
  max-width: 38rem;
  margin: 0 auto 2rem;
  color: #cbd5e1;
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
}
.hero-cta {
  display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 2.2rem;
}
.hero-chips {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem;
}
.hero-chips li {
  font-family: var(--font-num);
  font-size: .85rem;
  padding: .4rem .85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  color: var(--muted);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px;
  padding: 0 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s, color .2s, border-color .2s;
}
.btn-primary {
  background: var(--primary);
  color: #001018;
  box-shadow: var(--shadow-lg);
}
.btn-primary:hover { background: #7DD3FC; color: #001018; transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(56,189,248,.55); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn.full { width: 100%; }
.price-actions { display: grid; gap: .55rem; margin-top: auto; }
.price-actions .btn.full { white-space: nowrap; }

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.about-points {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: grid; gap: .7rem;
}
.about-points li {
  padding: .8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  font-size: .98rem;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.about-stats > div {
  padding: 1.8rem 1.2rem;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(56,189,248,.08), rgba(250,204,21,.03));
  border: 1px solid var(--border);
  text-align: center;
}
.about-stats b {
  display: block;
  font-family: var(--font-num);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--primary);
  letter-spacing: -0.02em;
}
.about-stats span { color: var(--muted); font-size: .9rem; }

/* ===== Dice 3D ===== */
.dice-section {
  background: radial-gradient(ellipse at center top, rgba(56,189,248,.08), transparent 60%);
}
.dice-stage {
  width: 100%;
  height: clamp(340px, 50vw, 440px);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}
.dice-wrap {
  --size: 280px;
  perspective: 1400px;
  width: var(--size);
  height: var(--size);
}
.dice {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(-12deg) rotateY(-18deg);
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
  cursor: grab;
  touch-action: none;
}
.dice:active { cursor: grabbing; }
.dice.dragging { transition: none; }

@media (max-width: 560px) {
  .dice-wrap { --size: 220px; }
}

.face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 1.4rem 1.3rem;
  border-radius: 22px;
  border: 1px solid rgba(56,189,248,.35);
  background:
    linear-gradient(160deg, rgba(56,189,248,.20), rgba(250,204,21,.06)),
    #111827;
  box-shadow:
    inset 0 0 40px rgba(56,189,248,.08),
    0 0 30px rgba(56,189,248,.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  text-align: left;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
.face * { pointer-events: none; }
.face { pointer-events: auto; }
.face h3 {
  font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem);
  margin: .6rem 0 .6rem;
  letter-spacing: -0.01em;
  font-weight: 800;
}
.face p {
  margin: 0 0 .9rem;
  color: #cbd5e1;
  font-size: .92rem;
  line-height: 1.55;
}
.face-num {
  display: inline-block;
  font-family: var(--font-num);
  font-size: .75rem;
  letter-spacing: .22em;
  color: var(--accent);
  font-weight: 800;
}
.face-tag {
  display: inline-block;
  font-family: var(--font-num);
  font-size: .72rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(56,189,248,.15);
  color: var(--primary);
  border: 1px solid rgba(56,189,248,.35);
  letter-spacing: .04em;
  width: fit-content;
}
.face-tag.pill-accent {
  background: var(--accent);
  color: #221a00;
  border-color: var(--accent);
}
.face-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary);
  color: #001018;
  padding: .55rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  width: fit-content;
}
a.face {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
a.face:hover {
  border-color: var(--primary);
  box-shadow:
    inset 0 0 40px rgba(56,189,248,.14),
    0 0 40px rgba(56,189,248,.25);
}
.face-go {
  display: inline-flex; align-items: center;
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
}
.face-go-cta {
  background: var(--primary);
  color: #001018;
  padding: .45rem .85rem;
  border-radius: 999px;
  width: fit-content;
}

/* 6 faces — translate each by half the wrap size */
.dice-wrap { --half: calc(var(--size) / 2); }
.face-front  { transform: translateZ(var(--half)); }
.face-back   { transform: rotateY(180deg) translateZ(var(--half)); }
.face-right  { transform: rotateY( 90deg) translateZ(var(--half)); }
.face-left   { transform: rotateY(-90deg) translateZ(var(--half)); }
.face-top    { transform: rotateX( 90deg) translateZ(var(--half)); }
.face-bottom { transform: rotateX(-90deg) translateZ(var(--half)); }

.dice-menu {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .6rem;
  max-width: 60rem;
  margin: 1rem auto 0;
}
.dice-menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  padding: 1rem .6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  text-decoration: none;
  transition: transform .15s, border-color .2s, background .2s, color .2s;
  text-align: center;
}
.dice-menu a:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  background: rgba(56,189,248,.08);
}
.dm-num {
  font-family: var(--font-num);
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--accent);
  font-weight: 800;
}
.dm-label {
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
@media (max-width: 720px) {
  .dice-menu { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 420px) {
  .dice-menu { grid-template-columns: repeat(2, 1fr); }
  .dm-label { font-size: .85rem; }
}
.dice-hint {
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
  margin-top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .dice { transition: none; }
}

/* ===== Services ===== */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.2rem;
}
.svc-card {
  position: relative;
  padding: 2rem 1.6rem;
  background: linear-gradient(160deg, rgba(56,189,248,.1), rgba(250,204,21,.04));
  border: 1px solid rgba(56,189,248,.28);
  border-radius: var(--radius-lg);
  transition: transform .2s, border-color .2s, box-shadow .2s;
  box-shadow: 0 8px 24px -16px rgba(56,189,248,.25);
}
.svc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56,189,248,.55);
  box-shadow: 0 16px 36px -12px rgba(56,189,248,.35);
}
.svc-card.highlight {
  background: linear-gradient(160deg, rgba(56,189,248,.14), rgba(250,204,21,.06));
  border-color: rgba(56,189,248,.4);
}
.svc-num {
  font-family: var(--font-num);
  font-size: .8rem;
  letter-spacing: .18em;
  color: var(--primary);
  margin-bottom: .6rem;
  font-weight: 700;
}
.svc-ico {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(56,189,248,.18), rgba(250,204,21,.08));
  border: 1px solid rgba(56,189,248,.3);
  color: var(--primary);
  margin-bottom: .85rem;
  box-shadow: 0 8px 22px -10px rgba(56,189,248,.4);
  transition: transform .25s ease;
}
.svc-card:hover .svc-ico { transform: translateY(-2px) rotate(-3deg); }
.svc-card.highlight .svc-ico {
  background: linear-gradient(135deg, rgba(56,189,248,.3), rgba(250,204,21,.18));
  border-color: rgba(56,189,248,.55);
}
.svc-card h3 {
  font-size: 1.3rem;
  margin: 0 0 .6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: flex; align-items: center; flex-wrap: wrap; gap: .5rem;
}
.pill {
  font-size: .72rem;
  background: var(--accent);
  color: #221a00;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .04em;
}
.svc-card p { color: var(--muted); margin: 0 0 .9rem; font-size: .95rem; }
.svc-card ul { padding-left: 1.1rem; margin: 0; color: #cbd5e1; font-size: .92rem; }
.svc-card li { margin-bottom: .3rem; }

/* ===== Fast Build (1-hour homepage) ===== */
.fast-build {
  background:
    radial-gradient(ellipse at 80% 50%, rgba(250,204,21,.08), transparent 60%),
    radial-gradient(ellipse at 20% 50%, rgba(56,189,248,.08), transparent 55%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.fast-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 820px) { .fast-grid { grid-template-columns: 1fr; } }
.fast-points {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  display: grid;
  gap: .6rem;
}
.fast-points li {
  position: relative;
  padding: .8rem 1rem .8rem 2.4rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .96rem;
}
.fast-points li::before {
  content: "✓";
  position: absolute;
  left: .9rem; top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 800;
  font-family: var(--font-num);
}
.fast-cta { display: flex; gap: .6rem; flex-wrap: wrap; }
.fast-hint { color: var(--muted); font-size: .82rem; margin: .9rem 0 0; }
.fast-hint b { color: var(--text); }

.fast-price {
  margin: 0 0 1.4rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid rgba(56,189,248,.35);
  background:
    linear-gradient(120deg, rgba(56,189,248,.12), rgba(250,204,21,.04));
  border-radius: var(--radius-md);
}
.fast-price-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.fast-price-label {
  font-size: .88rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .02em;
}
.fast-price-amount {
  font-family: var(--font-num);
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}
.fast-price-amount b {
  background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fast-price-amount small {
  font-size: .55em;
  font-weight: 600;
  color: var(--muted);
  margin-left: .25rem;
}
.fast-price-note {
  margin: .7rem 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
}
.fast-price-note b { color: var(--text); }

.fast-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  margin-inline: auto;
  display: grid;
  place-items: center;
}
.fast-ring {
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(56,189,248,.4);
  border-radius: 50%;
  animation: ring-spin 22s linear infinite;
}
.fast-ring-2 {
  inset: 15%;
  border-style: solid;
  border-color: rgba(250,204,21,.25);
  animation: ring-spin 14s linear infinite reverse;
}
@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.fast-stat {
  position: relative;
  display: flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-num);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  z-index: 1;
  justify-content: center;
}
.fast-unit {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--text);
  -webkit-text-fill-color: currentColor;
}

/* "??" pulses in title — re-apply gradient clip since nested span loses it */
.q-marks {
  display: inline-block;
  background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: qpulse 1.4s ease-in-out infinite;
}
@keyframes qpulse {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1; }
}

/* Paint-reveal number stack: ?? → 60
   .fast-num-answer takes the actual width (relative flow);
   .fast-num-q is absolutely overlaid on top until painted. */
.fast-num-stack {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.fast-num {
  font-size: clamp(5rem, 10vw, 9rem);
  font-family: var(--font-num);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  transition: opacity .6s ease-out, transform .7s cubic-bezier(.3, 1.4, .4, 1);
}
.fast-num-answer {
  position: relative;        /* takes natural 2-char width */
  opacity: 0;
  transform: scale(.25) rotate(-18deg);
  filter: drop-shadow(0 0 0 rgba(56,189,248,0));
  transition:
    opacity .55s ease-out,
    transform .85s cubic-bezier(.22, 1.45, .35, 1),
    filter 1.2s ease-out;
}
.fast-num-q {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: .7;
  animation: qpulse 1.4s ease-in-out infinite;
  transition: opacity .4s ease-out, transform .5s ease-out;
}
.fast-visual.painted .fast-num-q {
  opacity: 0;
  animation: none;
  transform: scale(.65);
}
.fast-visual.painted .fast-num-answer {
  opacity: 1;
  transform: scale(1) rotate(0);
  filter: drop-shadow(0 0 22px rgba(56,189,248,.65));
}
@keyframes paint-splash {
  0%   { transform: scale(.3); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}
.fast-caption {
  position: absolute;
  bottom: 10%;
  font-size: .88rem;
  color: var(--muted);
  text-align: center;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .fast-ring, .fast-ring-2 { animation: none; }
}

/* ===== Why ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}
.why-card {
  padding: 1.8rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.why-ico {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(56,189,248,.18), rgba(250,204,21,.08));
  border: 1px solid rgba(56,189,248,.35);
  color: var(--primary);
  box-shadow: 0 6px 18px -6px rgba(56,189,248,.35);
  margin-bottom: 1rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.why-card:hover .why-ico {
  transform: rotate(-4deg) scale(1.05);
  box-shadow: 0 10px 22px -8px rgba(56,189,248,.5);
}
.why-card h3 { margin: 0 0 .4rem; font-size: 1.1rem; font-weight: 800; }
.why-card p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ===== Process ===== */
.step-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1rem;
  counter-reset: step;
}
.step-list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-rows: auto auto;
  column-gap: 1.2rem;
  row-gap: .25rem;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  align-items: start;
}
.step-list li > .step-num { grid-row: 1 / span 2; align-self: center; }
.step-list li > h3 { grid-column: 2; grid-row: 1; }
.step-list li > p  { grid-column: 2; grid-row: 2; }
.step-num {
  font-family: var(--font-num);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
}
.step-list h3 { margin: 0 0 .3rem; font-size: 1.1rem; }
.step-list p { margin: 0; color: var(--muted); font-size: .94rem; max-width: 60ch; }
@media (max-width: 560px) {
  .step-list li { grid-template-columns: 1fr; }
  .step-list li > .step-num { grid-row: auto; grid-column: 1; }
  .step-list li > h3, .step-list li > p { grid-column: 1; grid-row: auto; }
}

/* ===== FAQ ===== */
.faq-list { max-width: 50rem; margin-inline: auto; display: grid; gap: .6rem; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "＋";
  font-weight: 400;
  color: var(--primary);
  transition: transform .2s;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: .8rem 0 0; color: var(--muted); font-size: .95rem; }

/* ===== Contact ===== */
.contact {
  background: linear-gradient(160deg, #0A1525 0%, #0B0F19 60%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 4vw, 4rem);
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-direct { display: grid; gap: .6rem; margin-top: 2rem; }
.contact-line {
  display: inline-flex; align-items: center; gap: .75rem;
  padding: .9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  font-size: .98rem;
  transition: border-color .2s, background .2s;
}
.contact-line:hover { border-color: var(--primary); background: rgba(56,189,248,.06); }
.contact-line span:first-child { font-size: 1.2rem; }

.contact-form {
  padding: clamp(1.6rem, 3vw, 2.2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.contact-botcta {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: linear-gradient(160deg, rgba(56,189,248,.12), rgba(250,204,21,.04)), var(--surface);
  border: 1px solid rgba(56,189,248,.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px -20px rgba(14,165,233,.35);
}
.contact-botcta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
}
.contact-botcta-icon {
  display: inline-flex;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(56,189,248,.12);
  align-items: center; justify-content: center;
  border: 1px solid rgba(56,189,248,.3);
}
.contact-botcta h3 {
  font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem);
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}
.contact-botcta p {
  margin: 0;
  color: #cbd5e1;
  font-size: .98rem;
  line-height: 1.65;
}
.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 540px) { .contact-form .row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1rem; }
.field label {
  display: block; font-weight: 600; font-size: .9rem;
  margin-bottom: .4rem; color: #cbd5e1;
}
.field label span { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: .7rem .9rem;
  background: #0A111E;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .2s, background .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #0A1628;
}
.agree {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .86rem; color: var(--muted); margin: .2rem 0 1rem;
}
.agree input { margin-top: .2rem; width: 16px; height: 16px; accent-color: var(--primary); }
.form-note { color: var(--muted); font-size: .82rem; margin-top: .7rem; text-align: center; }
.form-status { font-size: .9rem; margin-top: .5rem; text-align: center; min-height: 1.2em; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--danger); }

/* ===== Pricing ===== */
.pricing { background: radial-gradient(ellipse at 50% 0%, rgba(56,189,248,.06), transparent 55%); }
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.2rem;
  max-width: 72rem;
  margin-inline: auto;
}
.price-card {
  display: flex; flex-direction: column;
  padding: 2rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .2s, border-color .2s;
}
.price-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.price-card.highlight {
  background: linear-gradient(160deg, rgba(56,189,248,.14), rgba(250,204,21,.06));
  border-color: rgba(56,189,248,.45);
  box-shadow: 0 20px 60px -20px rgba(14,165,233,.35);
}
.price-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: .5rem; flex-wrap: wrap;
  margin-bottom: .6rem;
}
.price-name { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.01em; }
.price-tag-small {
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  color: var(--accent);
  text-transform: uppercase;
}
.price-amount {
  margin: .4rem 0 1.2rem;
  min-height: 4.8rem; /* 3개 카드 세로 맞춤 */
}
.price-row {
  font-family: var(--font-num);
  font-size: clamp(1.9rem, 1.6vw + 1rem, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  display: flex; align-items: baseline; gap: .15em;
  white-space: nowrap;
}
.price-row b {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.price-row small {
  font-size: .42em; font-weight: 700; color: var(--muted);
}
.price-sub {
  margin-top: .45rem;
  font-size: .88rem;
  color: #cbd5e1;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.smash {
  font-style: normal;
  font-weight: 800;
  padding: .1rem .45rem;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), #F97316);
  color: #1a0f00;
  font-size: .82em;
  letter-spacing: -0.01em;
}

/* ===== 자동화 시스템 배너 (openclaw + RPA) ===== */
.auto-banner {
  position: relative;
  margin-top: 2rem;
  padding: clamp(1.8rem, 3vw, 2.6rem);
  border-radius: calc(var(--radius-lg) + 4px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(250,204,21,.08) 0%, rgba(56,189,248,.08) 100%),
    #0B1424;
  border: 1px solid rgba(250,204,21,.3);
  box-shadow: 0 24px 60px -20px rgba(56,189,248,.2), 0 8px 24px -8px rgba(250,204,21,.15);
  isolation: isolate;
}
.auto-banner-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.auto-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .35;
  animation: orbFloat 8s ease-in-out infinite;
}
.auto-bg-orb.a { width: 240px; height: 240px; background: var(--primary); top: -60px; left: -80px; }
.auto-bg-orb.b { width: 280px; height: 280px; background: var(--accent); bottom: -80px; right: -60px; animation-delay: -3s; }
.auto-bg-orb.c { width: 180px; height: 180px; background: #A78BFA; top: 40%; left: 45%; animation-delay: -5s; opacity: .25; }
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(14px,-10px) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .auto-bg-orb { animation: none; }
}

.auto-banner-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  align-items: center;
}
@media (max-width: 820px) {
  .auto-banner-inner { grid-template-columns: 1fr; }
}

.auto-left { display: flex; flex-direction: column; gap: .9rem; }
.auto-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #FACC15, #F97316);
  color: #1a0f00;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  box-shadow: 0 4px 14px -2px rgba(250,204,21,.45);
}
.auto-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.auto-title-sub {
  display: block;
  margin-top: .2rem;
  font-size: .7em;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.auto-tagline {
  margin: 0;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.7;
}
.auto-list {
  list-style: none;
  padding: 0;
  margin: .4rem 0 0;
  display: grid;
  gap: .55rem;
  font-size: .94rem;
  color: #e2e8f0;
}
.auto-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  line-height: 1.5;
}
.auto-list b { color: var(--text); font-weight: 700; }
.auto-ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: rgba(250,204,21,.15);
  font-size: .95rem;
}

.auto-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.auto-price-card {
  padding: 1.4rem 1.3rem;
  background: rgba(11,15,25,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(250,204,21,.35);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: .3rem;
  align-items: flex-start;
}
.auto-price-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.auto-price {
  font-family: var(--font-num);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 900;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.auto-price-sub {
  margin-top: .2rem;
  font-size: .88rem;
  color: var(--muted);
}
.auto-hint {
  margin-top: .7rem;
  padding-top: .7rem;
  border-top: 1px dashed rgba(250,204,21,.25);
  font-size: .82rem;
  color: #cbd5e1;
  letter-spacing: -0.01em;
}
.auto-cta {
  box-shadow: 0 14px 30px -10px rgba(56,189,248,.45);
}
.auto-cta:hover { transform: translateY(-2px); }

.price-perks {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.perk-card {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(135deg, rgba(56,189,248,.08), rgba(250,204,21,.04));
  border: 1px solid rgba(56,189,248,.25);
  border-radius: var(--radius-md);
}
.perk-ico {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(56,189,248,.15);
  color: var(--primary);
}
.perk-copy { display: flex; flex-direction: column; gap: .3rem; }
.perk-copy b {
  font-size: .98rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
}
.perk-copy span {
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.5;
}
.free-badge, .fee-badge {
  display: inline-block;
  padding: .1rem .5rem;
  border-radius: 999px;
  font-size: .82em;
  font-weight: 700;
  margin-left: .2rem;
}
.free-badge {
  background: rgba(34,197,94,.18);
  color: #4ADE80;
  border: 1px solid rgba(34,197,94,.35);
}
.fee-badge {
  background: rgba(250,204,21,.18);
  color: var(--accent);
  border: 1px solid rgba(250,204,21,.4);
}
.price-list {
  list-style: none; padding: 0; margin: 0 0 1.5rem;
  display: grid; gap: .5rem;
  flex: 1;
}
.price-list li {
  padding-left: 1.8rem;
  position: relative;
  font-size: .94rem;
  color: #cbd5e1;
  line-height: 1.5;
}
.price-list li::before {
  content: "";
  position: absolute; left: 0; top: .18rem;
  width: 20px; height: 20px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23001018' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px 14px no-repeat,
    linear-gradient(135deg, var(--primary), #7DD3FC);
  box-shadow: 0 2px 6px -1px rgba(56,189,248,.45);
}

.price-options {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.price-options h3 {
  margin: 0 0 1.2rem; font-size: 1.1rem; font-weight: 800;
}
.opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: .8rem;
}
.opt-grid > div {
  padding: .9rem 1rem;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; flex-direction: column; gap: .2rem;
}
.opt-grid b { font-size: .95rem; color: var(--text); }
.opt-grid span { font-size: .82rem; color: var(--muted); }
.price-note { margin-top: 1.2rem; color: var(--muted); font-size: .88rem; }
.price-note a { color: var(--primary); text-decoration: underline; }

/* ===== Lead Capture Modal ===== */
.lead-modal[hidden] { display: none !important; }
.lead-modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: grid; place-items: center;
  padding: 1rem;
  animation: modal-in .25s ease-out;
}
@keyframes modal-in { from { opacity: 0; } to { opacity: 1; } }
.lead-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lead-card {
  position: relative;
  width: min(420px, 100%);
  padding: 2rem 1.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: modal-pop .3s cubic-bezier(.22, 1.4, .38, 1);
}
@keyframes modal-pop { from { transform: scale(.94); } to { transform: scale(1); } }
.lead-card h3 { margin: 0 0 .5rem; font-size: 1.3rem; font-weight: 800; }
.lead-sub { margin: 0 0 1.3rem; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.lead-sub b { color: var(--text); }
.lead-close {
  position: absolute; right: .8rem; top: .8rem;
  width: 36px; height: 36px;
  background: transparent; border: 0; color: var(--muted);
  font-size: 1.6rem; cursor: pointer; border-radius: 10px;
}
.lead-close:hover { background: rgba(255,255,255,.06); color: var(--text); }
.lead-form { display: grid; gap: .7rem; }
.lead-form input, .lead-form select {
  padding: .8rem 1rem;
  background: #0A111E; border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-size: .95rem; font-family: inherit;
}
.lead-form input:focus, .lead-form select:focus { outline: none; border-color: var(--primary); }
.lead-agree {
  display: flex; gap: .5rem; align-items: flex-start;
  font-size: .82rem; color: var(--muted);
  margin: .2rem 0 .6rem;
}
.lead-agree input { margin-top: .2rem; accent-color: var(--primary); }
.lead-alt {
  display: flex; gap: .5rem; justify-content: center;
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: .88rem;
}
.lead-alt a {
  padding: .5rem .9rem; border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color .2s, background .2s;
}
.lead-alt a:hover { border-color: var(--primary); background: rgba(56,189,248,.08); color: var(--primary); }

/* ===== Footer ===== */
.footer {
  background: #05080F;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 2rem;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.footer nav { display: flex; flex-direction: column; gap: .5rem; }
.footer nav a { color: var(--muted); font-size: .92rem; }
.footer nav a:hover { color: var(--text); }
.biz-line { color: var(--muted); font-size: .88rem; line-height: 1.7; margin: 1rem 0 0; }
.foot-cta p { font-size: 1.05rem; font-weight: 700; margin: 0 0 1rem; }
.copy-row {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.05);
  color: var(--muted); font-size: .8rem;
}

/* ===== Spray Reveal (About section) ===== */
#about { position: relative; }
#about.veiled > .container {
  filter: blur(8px) saturate(.25) brightness(.55);
  transition: filter 1.2s cubic-bezier(.25, .8, .3, 1);
}
#about.veiled::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 20%, rgba(11,15,25,.7) 85%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0 2px, transparent 2px 6px);
  pointer-events: none;
  transition: opacity 1.2s ease-out;
  opacity: 1;
}
#about:not(.veiled)::after { opacity: 0; }
#about:not(.veiled) > .container { filter: none; }

.spray-particle {
  position: fixed;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125,211,252,.95) 0%, rgba(56,189,248,.5) 55%, rgba(56,189,248,0) 100%);
  box-shadow: 0 0 10px rgba(56,189,248,.6);
  pointer-events: none;
  z-index: 90;
  transform: translate(-50%, -50%) scale(.3);
  opacity: 0;
  animation: spray-fly 1.4s cubic-bezier(.2, .7, .2, 1) forwards;
}
.spray-particle.yellow {
  background: radial-gradient(circle, rgba(253,224,71,.95), rgba(250,204,21,.5) 55%, rgba(250,204,21,0) 100%);
  box-shadow: 0 0 10px rgba(250,204,21,.6);
}
@keyframes spray-fly {
  0%   { transform: translate(-50%, -50%) scale(.3); opacity: 0; }
  15%  { opacity: 1; }
  100% {
    transform:
      translate(calc(-50% + var(--dx)), calc(-50% + var(--dy)))
      scale(var(--end-scale, .6));
    opacity: 0;
  }
}

.chancebot.teleporting {
  transition: right .55s cubic-bezier(.2, 1, .3, 1),
              bottom .5s cubic-bezier(.2, 1, .3, 1),
              left .55s cubic-bezier(.2, 1, .3, 1),
              top .5s cubic-bezier(.2, 1, .3, 1) !important;
}
.chancebot.spraying .chancebot-toggle {
  animation: spray-stance .8s ease-out;
}
@keyframes spray-stance {
  0%   { transform: translateY(0) rotate(0); }
  25%  { transform: translateY(-6px) rotate(-10deg); }
  55%  { transform: translateY(-3px) rotate(-6deg); }
  100% { transform: translateY(0) rotate(0); }
}

/* ===== 찬스봇 3D Assistant ===== */
.chancebot {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
  transition: right 4s cubic-bezier(.25, .8, .3, 1),
              bottom 3s cubic-bezier(.25, .8, .3, 1),
              left 4s cubic-bezier(.25, .8, .3, 1),
              top 3s cubic-bezier(.25, .8, .3, 1);
}
.chancebot.walking #chancebotCanvas { animation: bot-bob .4s ease-in-out infinite; }
@keyframes bot-bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-3px) rotate(1deg); }
}
.chancebot > * { pointer-events: auto; }

.chancebot-toggle {
  position: relative;
  width: 130px;
  height: 160px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform .2s ease-out;
}
.chancebot-toggle:hover { transform: scale(1.06) translateY(-2px); }
.chancebot-toggle:active { transform: scale(.98); }
#chancebotCanvas {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 10px 20px rgba(14,165,233,.35));
}
.chancebot-ping {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #4ADE80;
  border: 2px solid #0A111E;
  animation: bot-ping 2s ease-in-out infinite;
}
@keyframes bot-ping {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,.7); }
  50%      { box-shadow: 0 0 0 10px rgba(74,222,128,0); }
}

.chancebot-bubble {
  position: relative;
  padding: .9rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: .88rem;
  max-width: 240px;
  opacity: 0;
  transform: translateY(8px) scale(.96);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.chancebot-bubble.show { opacity: 1; transform: translateY(0) scale(1); }
.chancebot-bubble p { margin: 0; line-height: 1.5; }
.chancebot-bubble p + p { margin-top: .3rem; color: var(--muted); font-size: .82rem; }
.chancebot-bubble::after {
  content: '';
  position: absolute;
  right: 42px;
  bottom: -7px;
  width: 14px; height: 14px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: rotate(45deg);
}

/* ===== Chat Widget ===== */
.chat-widget[hidden] { display: none !important; }
.chat-widget {
  position: fixed;
  bottom: 200px;
  right: 20px;
  width: min(380px, calc(100vw - 40px));
  height: 540px;
  max-height: calc(100vh - 240px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  z-index: 82;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: chat-in .3s cubic-bezier(.22, 1, .36, 1);
}
@keyframes chat-in {
  from { opacity: 0; transform: translateY(20px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, rgba(56,189,248,.16), rgba(250,204,21,.06));
  border-bottom: 1px solid var(--border);
}
.chat-head-left { display: flex; align-items: center; gap: .75rem; }
.chat-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #4a5568 0%, #222633 70%);
  border: 2px solid rgba(56,189,248,.5);
  position: relative;
}
.chat-avatar::before, .chat-avatar::after {
  content: '';
  position: absolute;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 6px var(--primary);
  top: 15px;
}
.chat-avatar::before { left: 11px; }
.chat-avatar::after  { right: 11px; }
.chat-head strong { display: block; font-size: 1rem; font-weight: 800; }
.chat-head small { color: var(--muted); font-size: .78rem; display: flex; align-items: center; gap: .3rem; }
.chat-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #4ADE80; box-shadow: 0 0 6px #4ADE80;
}
.chat-close {
  width: 34px; height: 34px;
  background: transparent; border: 0; color: var(--muted);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  border-radius: 10px; transition: background .2s, color .2s;
}
.chat-close:hover { background: rgba(255,255,255,.06); color: var(--text); }

.chat-body {
  flex: 1; overflow-y: auto;
  padding: 1rem 1.2rem;
  display: flex; flex-direction: column; gap: .55rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.msg {
  max-width: 85%;
  padding: .7rem .95rem;
  border-radius: 14px;
  font-size: .93rem;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  hyphens: auto;
}
.msg-bot {
  background: var(--surface-2);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.msg-user {
  background: var(--primary);
  color: #001018;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 600;
}
.msg-typing {
  align-self: flex-start;
  display: flex; gap: 5px;
  padding: .85rem 1rem;
  background: var(--surface-2);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}
.msg-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--muted);
  animation: type-dot 1.2s infinite ease-in-out;
}
.msg-typing span:nth-child(2) { animation-delay: .15s; }
.msg-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes type-dot {
  0%, 70%, 100% { opacity: .3; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-3px); }
}

.chat-quick {
  display: flex; flex-wrap: wrap; gap: .4rem;
  padding: .7rem 1rem;
  border-top: 1px solid var(--border);
}
.chat-quick button {
  padding: .45rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: .82rem;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.chat-quick button:hover {
  border-color: var(--primary);
  background: rgba(56,189,248,.1);
  color: var(--primary);
}

/* ===== Pencil Drawing Title (왜 찬스컴퍼니인가.) ===== */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.pencil-title {
  position: relative;
  display: inline-block;
  overflow: visible;
}
.pencil-title .pencil-text {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  white-space: nowrap;
  background: linear-gradient(120deg, #fff 0%, #BAE6FD 60%, #FACC15 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pencil-title .pencil-cursor {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-55%, -95%) rotate(-6deg);
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(56,189,248,.35));
  will-change: left, transform, opacity;
}
.pencil-title.drawing .pencil-text {
  animation: pencilReveal 2.2s cubic-bezier(.55,.08,.45,.95) forwards;
}
.pencil-title.drawing .pencil-cursor {
  animation: pencilMove 2.2s cubic-bezier(.55,.08,.45,.95) forwards;
}
@keyframes pencilReveal {
  0%   { clip-path: inset(0 100% 0 0); opacity: 1; }
  3%   { clip-path: inset(0 98%  0 0); opacity: 1; }
  100% { clip-path: inset(0 0%   0 0); opacity: 1; }
}
@keyframes pencilMove {
  0%   { left: 0%;    opacity: 0; transform: translate(-55%, -95%) rotate(-6deg); }
  6%   { opacity: 1; }
  20%  { transform: translate(-55%, -98%) rotate(-3deg); }
  45%  { transform: translate(-55%, -92%) rotate(-8deg); }
  70%  { transform: translate(-55%, -95%) rotate(-5deg); }
  92%  { left: 100%; opacity: 1; transform: translate(-55%, -95%) rotate(-6deg); }
  100% { left: 100%; opacity: 0; transform: translate(-55%, -95%) rotate(-6deg); }
}
@media (prefers-reduced-motion: reduce) {
  .pencil-title .pencil-text { clip-path: none; opacity: 1; animation: none; }
  .pencil-title .pencil-cursor { display: none; }
}

.chat-link {
  color: var(--primary);
  text-decoration: underline;
  word-break: break-all;
}
.chat-link:hover { color: var(--accent); }

.chat-handoff-btn {
  display: block;
  width: calc(100% - 2rem);
  margin: 0 1rem .2rem;
  padding: .55rem .9rem;
  border-radius: 10px;
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #001018;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s, filter .15s;
}
.chat-handoff-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.chat-handoff-btn:active { transform: translateY(0); }

.chat-form {
  display: flex; gap: .5rem;
  padding: .75rem 1rem;
  border-top: 1px solid var(--border);
}
.chat-form input {
  flex: 1;
  padding: .7rem .95rem;
  background: #0A111E;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: .95rem;
  font-family: inherit;
}
.chat-form input:focus {
  outline: none; border-color: var(--primary);
  background: #0A1628;
}
.chat-form button[type="submit"] {
  width: 46px; height: 46px;
  border-radius: 50%; border: 0;
  background: var(--primary);
  color: #001018;
  font-size: 1.3rem; font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.chat-form button[type="submit"]:hover { background: var(--accent); transform: scale(1.05); }

@media (max-width: 560px) {
  .chancebot { right: 14px; bottom: 14px; }
  .chancebot-toggle { width: 100px; height: 120px; }
  .chancebot-bubble { max-width: 200px; font-size: .82rem; }
  .chat-widget {
    right: 0; left: 0; bottom: 0; top: 0;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: 0;
  }
  .chat-head { padding: .8rem 1rem; }
  .chat-body { padding: .85rem 1rem; }
  .chat-quick {
    padding: .55rem .8rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .chat-quick::-webkit-scrollbar { display: none; }
  .chat-quick button { flex-shrink: 0; font-size: .78rem; padding: .4rem .75rem; }
  .chat-handoff-btn {
    width: calc(100% - 1.6rem);
    margin: 0 .8rem .15rem;
    padding: .5rem .8rem;
    font-size: .8rem;
  }
  .chat-form { padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom)); }
  .chat-form button[type="submit"] { width: 42px; height: 42px; }
}

/* ===== To Top ===== */
#toTop {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #001018;
  border: 0;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform .2s, opacity .2s;
}
#toTop[hidden] { display: none; }
#toTop:hover { transform: translateY(-2px); background: var(--accent); }

/* ===== Motion ===== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .fast-ring, .fast-ring-2, .q-marks, .fast-num-q { animation: none !important; }
  .chancebot { transition: none !important; }
  .fast-num-answer, .fast-num-q { transform: none !important; opacity: 1 !important; }
  .spray-particle { display: none !important; }
}

/* Low-end mobile: lighter bot + skip heavy effects */
@media (max-width: 480px) {
  .chancebot-toggle { width: 88px; height: 108px; }
  .chancebot-bubble { display: none; }
  .fast-ring, .fast-ring-2 { opacity: .4; }
  .glow { filter: blur(40px); }
}
