/* ============================================================
   데시로그 (DeciLog) — Landing page styles
   Reuses design-system tokens from colors_and_type.css
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-base);
  color: var(--fg-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--font-mono); font-feature-settings: var(--readout-feat); }

/* ── Ambient background glows ── */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-fx::before, .bg-fx::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.5;
}
.bg-fx::before { width: 720px; height: 720px; top: -280px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(124,108,246,0.30), transparent 70%); }
.bg-fx::after { width: 560px; height: 560px; top: 640px; right: -200px;
  background: radial-gradient(circle, rgba(108,139,255,0.16), transparent 70%); }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.025;
  background-image: repeating-linear-gradient(0deg, #fff 0, #fff 1px, transparent 1px, transparent 3px); }
main, nav, footer { position: relative; z-index: 2; }

/* ── Nav ── */
nav { position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px); background: rgba(14,14,19,0.72);
  border-bottom: 1px solid var(--border-subtle); }
.nav-in { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand .name { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 30px; margin-left: 26px; }
.nav-links a { font-size: 14px; color: var(--fg-secondary); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--fg-primary); }
.nav-cta { margin-left: auto; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-sans);
  font-size: 15px; font-weight: 600; border-radius: var(--r-full); padding: 12px 22px;
  border: none; cursor: pointer; transition: transform .14s var(--ease-out), filter .2s, background .2s; white-space: nowrap; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--glow-accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--bg-elevated); color: var(--fg-primary); border: 1px solid var(--border-default); }
.btn-ghost:hover { background: var(--bg-hover); }
.btn svg { width: 18px; height: 18px; }

/* Google Play badge */
.play-badge { display: inline-flex; align-items: center; gap: 13px; background: var(--fg-primary);
  color: #0c0c11; border-radius: 14px; padding: 12px 22px 12px 18px; transition: transform .14s var(--ease-out), filter .2s; }
.play-badge:hover { filter: brightness(0.92); }
.play-badge:active { transform: scale(0.97); }
.play-badge .tri { width: 26px; height: 28px; }
.play-badge .pb-txt { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.play-badge .pb-sm { font-size: 11px; font-weight: 500; opacity: 0.7; }
.play-badge .pb-lg { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }

/* ── Hero ── */
.hero { padding: 84px 0 96px; }
.hero-in { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--accent-bright); background: var(--accent-soft);
  border: 1px solid var(--accent-line); padding: 7px 14px; border-radius: var(--r-full); margin-bottom: 26px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--level-over); box-shadow: 0 0 0 4px rgba(255,90,110,0.18); animation: pulse 2s var(--ease-inout) infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(0.8)} }
.hero h1 { font-size: 58px; font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }
.hero h1 .grad { background: linear-gradient(120deg, var(--accent-bright), var(--night)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; line-height: 1.6; color: var(--fg-secondary); margin: 24px 0 0; max-width: 480px; }
.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.platform-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; color: var(--fg-tertiary); }
.platform-note svg { width: 15px; height: 15px; }
.os-pill { font-family: var(--font-mono); font-size: 11px; color: var(--night); background: var(--night-soft); padding: 2px 8px; border-radius: 6px; }

/* ── Phone mockup ── */
.phone { width: 326px; border-radius: 40px; background: #1c1c24; padding: 11px;
  box-shadow: 0 40px 90px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06), inset 0 0 0 2px rgba(255,255,255,0.03);
  position: relative; justify-self: center; }
.phone-screen { border-radius: 30px; background: var(--bg-base); overflow: hidden; position: relative; }
.notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 90px; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.12); z-index: 4; }
.scr-status { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 0; font-family: var(--font-mono); font-size: 12px; color: var(--fg-secondary); }
.scr-status .right { display: flex; gap: 6px; align-items: center; }
.scr-status svg { width: 14px; height: 14px; }
.scr-head { display: flex; align-items: center; gap: 10px; padding: 12px 20px 4px; }
.scr-head img { width: 32px; height: 32px; border-radius: 8px; }
.scr-head .t { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.scr-head .s { font-size: 11px; color: var(--fg-tertiary); }
.scr-badge-n { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--night); background: var(--night-soft); padding: 4px 10px; border-radius: 999px; font-family: var(--font-mono); }
.gauge-wrap { display: flex; flex-direction: column; align-items: center; padding: 8px 0 0; }
.sev-badge { font-size: 12px; font-weight: 600; padding: 6px 13px; border-radius: 999px; margin-top: -6px;
  color: var(--level-caution); background: var(--level-caution-soft); display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.sev-badge svg { width: 13px; height: 13px; }
.wave-well { margin: 16px 20px 0; background: var(--bg-inset); border-radius: 14px; padding: 14px;
  box-shadow: var(--inset-well); position: relative; overflow: hidden; }
.wave-well .thr { position: absolute; left: 14px; right: 14px; top: 38%; border-top: 1px dashed rgba(255,90,110,0.5); }
.wave-well .thr span { position: absolute; right: 0; top: -15px; font-size: 9px; font-family: var(--font-mono); color: var(--level-over); }
.wave-bars { display: flex; align-items: center; gap: 2px; height: 76px; }
.wave-bars i { flex: 1; border-radius: 2px; min-height: 3px; transition: height .12s linear; }
.scr-btn { margin: 14px 20px 0; background: var(--level-over); color: #fff; border-radius: 999px;
  padding: 14px; text-align: center; font-size: 15px; font-weight: 600; box-shadow: var(--glow-over);
  display: flex; align-items: center; justify-content: center; gap: 8px; }
.scr-btn svg { width: 18px; height: 18px; }
.scr-ev { margin: 14px 20px 20px; background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: 14px; padding: 11px 13px; display: flex; align-items: center; gap: 11px; box-shadow: var(--shadow-card); }
.scr-ev .play { width: 34px; height: 34px; border-radius: 999px; background: var(--accent-soft); display: grid; place-items: center; flex-shrink: 0; }
.scr-ev .play svg { width: 14px; height: 14px; color: var(--accent-bright); }
.scr-ev .meta .tm { font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.scr-ev .meta .sb { font-size: 10px; color: var(--fg-tertiary); font-family: var(--font-mono); }
.scr-ev .lmax { margin-left: auto; text-align: right; }
.scr-ev .lmax .v { font-family: var(--font-mono); font-size: 19px; font-weight: 600; color: var(--level-over); }
.scr-ev .lmax .u { font-size: 9px; color: var(--fg-tertiary); font-family: var(--font-mono); }

/* ── Section scaffolding ── */
section { padding: 96px 0; }
.sec-eyebrow { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-bright); margin-bottom: 16px; }
.sec-title { font-size: 40px; font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; max-width: 680px; }
.sec-sub { font-size: 17px; line-height: 1.6; color: var(--fg-secondary); margin-top: 18px; max-width: 560px; }
.sec-head { margin-bottom: 56px; }

/* ── Problem strip ── */
.problem { background: var(--bg-surface); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.problem-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.quote-stack { display: flex; flex-direction: column; gap: 14px; }
.q-bubble { background: var(--bg-base); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 16px 18px;
  font-size: 15px; color: var(--fg-secondary); position: relative; }
.q-bubble.vague { opacity: 0.55; }
.q-bubble.vague::after { content: "막연한 호소"; position: absolute; right: 14px; bottom: 12px; font-size: 10px; font-family: var(--font-mono); color: var(--fg-tertiary); }
.q-bubble.fact { border-color: var(--accent-line); }
.q-bubble.fact .mono { color: var(--accent-bright); font-weight: 600; }
.q-bubble.fact::after { content: "객관적 기록"; position: absolute; right: 14px; bottom: 12px; font-size: 10px; font-family: var(--font-mono); color: var(--accent-bright); }

/* ── Features ── */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--r-xl);
  padding: 28px; transition: transform .3s var(--ease-out), border-color .3s, background .3s; }
.feat:hover { transform: translateY(-4px); border-color: var(--border-default); background: var(--bg-elevated); }
.feat .ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 20px; }
.feat .ic svg { width: 24px; height: 24px; }
.feat h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.feat p { font-size: 14.5px; line-height: 1.6; color: var(--fg-secondary); margin-top: 9px; }
.feat.span2 { grid-column: span 2; display: flex; gap: 28px; align-items: center; }
.feat.span2 .ic { margin-bottom: 0; }
.feat.span2 .txt { flex: 1; }
/* mini heatmap inside feature */
.mini-hm { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2.5px; width: 220px; flex-shrink: 0; }
.mini-hm i { aspect-ratio: 1; border-radius: 2px; }

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); }
.step .num { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--accent-bright);
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--accent-line); margin-bottom: 18px; }
.step h3 { font-size: 18px; font-weight: 600; }
.step p { font-size: 14px; line-height: 1.6; color: var(--fg-secondary); margin-top: 8px; }

/* ── Honest positioning ── */
.honest { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  background: linear-gradient(180deg, rgba(245,181,68,0.05), transparent); border: 1px solid var(--border-subtle);
  border-radius: var(--r-2xl); padding: 48px; }
.honest-pts { display: flex; flex-direction: column; gap: 18px; }
.honest-pt { display: flex; gap: 14px; }
.honest-pt .pic { width: 40px; height: 40px; border-radius: 11px; background: var(--bg-elevated); display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--border-subtle); }
.honest-pt .pic svg { width: 19px; height: 19px; }
.honest-pt h4 { font-size: 15px; font-weight: 600; }
.honest-pt p { font-size: 13.5px; line-height: 1.55; color: var(--fg-secondary); margin-top: 4px; }

/* ── Final CTA ── */
.cta-final { text-align: center; }
.cta-card { background: radial-gradient(120% 100% at 50% 0%, rgba(124,108,246,0.18), var(--bg-surface) 60%);
  border: 1px solid var(--accent-line); border-radius: var(--r-2xl); padding: 72px 48px; }
.cta-card img { width: 76px; height: 76px; border-radius: 20px; margin-bottom: 28px; }
.cta-card h2 { font-size: 42px; font-weight: 700; letter-spacing: -0.025em; }
.cta-card p { font-size: 17px; color: var(--fg-secondary); margin: 16px auto 36px; max-width: 460px; line-height: 1.6; }
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ── Footer ── */
footer { border-top: 1px solid var(--border-subtle); padding: 48px 0 60px; }
.foot-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.foot-brand { max-width: 300px; }
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p { font-size: 13px; color: var(--fg-tertiary); line-height: 1.6; }
.foot-cols { display: flex; gap: 64px; }
.foot-col h5 { font-size: 12px; font-weight: 600; color: var(--fg-secondary); margin-bottom: 14px; letter-spacing: 0.02em; }
.foot-col a { display: block; font-size: 13.5px; color: var(--fg-tertiary); margin-bottom: 10px; transition: color .2s; }
.foot-col a:hover { color: var(--fg-primary); }
.foot-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-subtle);
  font-size: 12px; color: var(--fg-tertiary); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── Responsive ── */
@media (max-width: 940px) {
  .hero-in { grid-template-columns: 1fr; gap: 48px; }
  .phone { order: -1; }
  .hero h1 { font-size: 46px; }
  .problem-grid, .honest, .feat.span2 { grid-template-columns: 1fr; gap: 32px; }
  .feat-grid, .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .sec-title { font-size: 32px; }
  .cta-card h2 { font-size: 32px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 38px; }
  .wrap { padding: 0 20px; }
  section { padding: 72px 0; }
  .honest, .cta-card { padding: 32px 22px; }
}
