/* ------------------------------------------------------------------
   unifine doc — landing site · DARK
   Deep navy/black canvas, soft blue glows, light type.
------------------------------------------------------------------ */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* Surfaces */
  --bg:        #07080D;            /* deepest canvas */
  --bg-soft:   #0C0F18;            /* slightly raised section */
  --card:      #11141E;            /* card surface */
  --card-2:    #161A26;            /* hover / nested card */
  --line:      #232838;            /* primary divider */
  --line-soft: #1A1E2B;            /* secondary divider */

  /* Type */
  --ink:    #ECEEF2;               /* primary text */
  --ink-2:  #C7CBD4;               /* secondary text */
  --muted:  #8089A0;               /* muted */
  --muted-2:#5C6479;               /* faintest */

  /* Accent — same blue, brightened for dark surfaces */
  --blue:       #5A98FF;
  --blue-deep:  #7BB0FF;
  --blue-soft:  #2E4DA5;
  --blue-glow-1:#3B6FE0;
  --blue-glow-2:#1E3A8A;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans:  "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 66px;
}
html {
  scroll-snap-type: y mandatory;
}
body {
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "ss03", "ss04", "cv01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(90,152,255,0.32); color: #fff; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; position: relative; }
.section { padding: 96px 0; position: relative; scroll-snap-align: start; }

.label-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  backdrop-filter: blur(8px);
}
.label-chip svg { width: 12px; height: 12px; color: var(--blue); }

.h-eyebrow { text-align: center; display: flex; justify-content: center; margin-bottom: 18px; }
.h-title {
  font-size: 48px;
  line-height: 1.14;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  margin: 0 0 16px;
}
.h-title em { font-style: normal; font-weight: inherit; letter-spacing: -0.01em; color: var(--blue-deep); }
.h-sub {
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border: none; transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease; }
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--blue); color: #0A0B12;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 28px -10px rgba(90,152,255,0.55);
}
.btn-primary:hover { background: var(--blue-deep); box-shadow: 0 12px 36px -10px rgba(123,176,255,0.7); }
.btn-ghost {
  background: transparent; color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
}
.btn-ghost:hover { color: var(--blue); }

/* ---------- Card ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.card-soft { background: var(--card); border: 1px solid var(--line-soft); border-radius: 18px; }

/* ---------- Gradient blue blobs (hero ambience) ---------- */
.blob {
  position: absolute; pointer-events: none; z-index: 0;
  filter: blur(80px);
  opacity: 0.75;
  mix-blend-mode: screen;
}
.blob-left {
  left: -200px; top: 40px; width: 560px; height: 580px;
  background: radial-gradient(ellipse at 60% 40%, #3B6FE0 0%, #1E3A8A 35%, transparent 70%);
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
}
.blob-right {
  right: -220px; top: 80px; width: 600px; height: 600px;
  background: radial-gradient(ellipse at 40% 50%, #4A7DEB 0%, #1B3577 38%, transparent 72%);
  border-radius: 50% 50% 45% 55% / 60% 45% 55% 40%;
}
.blob-cta {
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 760px; height: 340px;
  background: radial-gradient(ellipse at center, #3B6FE0 0%, #1B3577 45%, transparent 75%);
}

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 110px 0 80px; position: relative; overflow: hidden; background: var(--bg); scroll-snap-align: start; }
.hero > .container { width: 100%; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(90,152,255,0.18) 0%, transparent 50%),
    linear-gradient(180deg, transparent 70%, rgba(7,8,13,0.6) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero h1 {
  font-size: 64px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 18px 0 24px;
  color: var(--ink);
}
.hero h1 em { font-style: normal; font-weight: inherit; letter-spacing: -0.015em; }
.hero p.lead {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto 26px;
}

/* Prompt input bar (hero) */
.prompt {
  position: relative; z-index: 1;
  max-width: 580px; margin: 36px auto 0;
  background: rgba(20, 24, 36, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 8px 8px 22px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 14px 50px -20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.03);
  backdrop-filter: blur(14px);
}
.prompt .spark { width: 18px; height: 18px; color: var(--blue); flex: none; }
.prompt input { flex: 1; border: none; outline: none; background: transparent; font-size: 15px; color: var(--ink); letter-spacing: -0.01em; }
.prompt input::placeholder { color: var(--muted-2); }
.prompt .go { width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #0A0B12; display: inline-flex; align-items: center; justify-content: center; border: none; }
.prompt .go:hover { background: var(--blue-deep); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 8, 13, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { border-bottom: 1px solid var(--line); background: rgba(7, 8, 13, 0.92); }
.nav .inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
}
.nav .links { display: flex; align-items: center; gap: 30px; font-size: 14px; color: var(--ink-2); }
.nav .links a:hover { color: var(--blue); }
.nav .actions { display: flex; align-items: center; gap: 10px; }
.nav .logo { display: inline-flex; align-items: center; }

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.feature {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  display: flex; flex-direction: column;
  min-height: 280px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.feature:hover { border-color: var(--blue-soft); transform: translateY(-2px); }
.feature h4 { font-size: 17px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.02em; color: var(--ink); }
.feature p { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0; }
.feature .visual { flex: 1; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature .footer-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

/* mini-app inside a feature card */
.mini-app {
  width: 100%; max-width: 280px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  display: flex; flex-direction: column; gap: 8px;
}
.mini-tab-row { display: flex; gap: 6px; }
.mini-tab { padding: 5px 10px; border-radius: 999px; font-size: 11px; color: var(--muted); background: rgba(255,255,255,0.04); }
.mini-tab.active { background: var(--blue); color: #0A0B12; }
.mini-list { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.mini-item { font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.mini-item::before { content: "#"; color: var(--muted-2); }

/* waveform decorative SVG */
.waveform svg { width: 100%; max-width: 320px; height: 80px; }

/* ---------- How-to-use ---------- */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 56px; align-items: start; }
.steps-list { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 100px; }
.step {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  background: var(--card);
  transition: border-color 200ms ease, background 200ms ease;
  cursor: pointer;
}
.step:hover { border-color: var(--blue-soft); }
.step.active {
  border-color: var(--blue);
  background: linear-gradient(180deg, rgba(90,152,255,0.08), rgba(90,152,255,0.02));
  box-shadow: 0 10px 32px -16px rgba(90,152,255,0.4);
}
.step .num { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--blue); margin-right: 8px; }
.step h5 { display: inline; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.step p { font-size: 13.5px; color: var(--muted); margin: 8px 0 0; line-height: 1.55; letter-spacing: -0.02em; word-break: keep-all; }
.steps-preview {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--card), var(--bg));
  padding: 18px;
  min-height: 460px;
}
.steps-preview img { width: 100%; border-radius: 10px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
.steps-preview .badge {
  position: absolute; top: 26px; left: 26px; z-index: 1;
  background: rgba(7,8,13,0.85);
  color: #fff;
  border: 1px solid var(--line);
  font-size: 11px; padding: 5px 10px; border-radius: 999px; letter-spacing: -0.01em;
  backdrop-filter: blur(8px);
}

/* ---------- Templates grid ---------- */
.templates-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px;
}
.tpl-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 170px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.tpl-card:hover { border-color: var(--blue-soft); transform: translateY(-2px); }
.tpl-card .top { display: flex; align-items: center; justify-content: space-between; }
.tpl-card .icon { width: 32px; height: 32px; border-radius: 9px; background: rgba(90,152,255,0.12); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; }
.tpl-card .more { color: var(--muted-2); font-size: 18px; }
.tpl-card h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; margin: 12px 0 4px; color: var(--ink); }
.tpl-card p { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  border-radius: 24px;
  padding: 60px 28px;
  background: linear-gradient(135deg, rgba(59,111,224,0.18) 0%, rgba(11,15,28,0.6) 50%, rgba(59,111,224,0.18) 100%);
  border: 1px solid var(--line);
  text-align: center;
  overflow: hidden;
}
.cta-banner h3 { font-size: 36px; letter-spacing: -0.025em; font-weight: 600; margin: 0 0 12px; line-height: 1.15; color: var(--ink); }
.cta-banner h3 em { font-style: normal; font-weight: inherit; color: var(--blue-deep); }
.cta-banner p { font-size: 15px; color: var(--muted); margin: 0 auto 24px; max-width: 540px; line-height: 1.55; }
.cta-banner .prompt { margin-top: 0; }

/* ---------- Testimonials ---------- */
.t-feature {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
  margin-top: 44px;
}
.t-feature .text { padding: 38px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.t-feature .text h5 { font-size: 22px; line-height: 1.35; letter-spacing: -0.02em; font-weight: 600; margin: 0; color: var(--ink); }
.t-feature .text p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }
.t-feature .photo {
  background:
    radial-gradient(circle at 30% 30%, rgba(90,152,255,0.45) 0%, transparent 60%),
    linear-gradient(135deg, #1E3A8A, #0C0F18);
  display: flex; align-items: center; justify-content: center; min-height: 280px; position: relative;
}
.t-feature .photo .glass { font-family: var(--serif); font-size: 160px; color: rgba(255,255,255,0.18); font-weight: 400; line-height: 0.6; }

.t-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.t-card { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: var(--card); display: flex; flex-direction: column; gap: 12px; }
.stars { color: var(--blue); font-size: 13px; letter-spacing: 2px; }
.t-card .quote { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; margin: 0; }
.t-meta { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #3B6FE0, #1E3A8A); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; color: #fff; font-size: 12px; }
.t-meta .name { font-size: 13px; font-weight: 600; color: var(--ink); }
.t-meta .role { font-size: 11.5px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 44px; display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin-left: auto; margin-right: auto; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 16px 22px; }
.faq-item:hover { border-color: var(--line-soft); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.faq-q span { font-size: 14.5px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.faq-q .pm { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,0.05); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; flex: none; }
.faq-item.open { border-color: var(--blue-soft); }
.faq-item.open .pm { background: var(--blue); color: #0A0B12; }
.faq-a { margin: 12px 0 0; font-size: 13.5px; line-height: 1.65; color: var(--muted); }

/* ---------- Footer ---------- */
footer { scroll-snap-align: start; }
.foot-nav { padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 80px; }
.foot-nav .row { display: flex; align-items: center; justify-content: center; gap: 36px; font-size: 13.5px; color: var(--ink-2); }
.foot-nav .row a:hover { color: var(--blue); }

.big-touch {
  position: relative;
  padding: 80px 0 56px;
  overflow: hidden;
  text-align: center;
}
.big-touch .word {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(120px, 18vw, 240px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #5A98FF 0%, rgba(7,8,13,0) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  margin: 0;
  position: relative; z-index: 1;
}
.big-touch .arrow {
  position: absolute; left: 50%; top: 55%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--blue); color: #0A0B12;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(90,152,255,0.6);
  z-index: 2;
}
.foot-bottom {
  padding: 26px 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; color: var(--muted);
  border-top: 1px solid var(--line);
}
.socials { display: flex; gap: 10px; }
.socials a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); }
.socials a:hover { color: var(--blue); border-color: var(--blue); }

/* small */
@media (max-width: 900px) {
  .hero h1 { font-size: 44px; }
  .features-grid { grid-template-columns: repeat(6, 1fr); }
  .span-4, .span-6, .span-8 { grid-column: span 6; }
  .steps { grid-template-columns: 1fr; }
  .templates-grid { grid-template-columns: 1fr 1fr; }
  .t-feature { grid-template-columns: 1fr; }
  .t-row { grid-template-columns: 1fr; }
  .nav .links { display: none; }
}
