/* ════════════════════════════════════════════════════════════
   Lenit — Feature Detail Page Shared Styles
   Used by: ideas.html · widget.html · roadmap.html · announcements.html
   ════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: #fff;
  color: #111827;
  overflow-x: hidden;
  position: relative;
}

/* ── Animations ── */
@keyframes drift1 {
  0%   { transform: translate(0,0); }
  33%  { transform: translate(60px,-50px); }
  66%  { transform: translate(-40px,40px); }
  100% { transform: translate(0,0); }
}
@keyframes drift2 {
  0%   { transform: translate(0,0); }
  33%  { transform: translate(-70px,40px); }
  66%  { transform: translate(50px,-60px); }
  100% { transform: translate(0,0); }
}
@keyframes drift3 {
  0%   { transform: translate(0,0); }
  33%  { transform: translate(50px,60px); }
  66%  { transform: translate(-60px,-30px); }
  100% { transform: translate(0,0); }
}
@keyframes fadeUp {
  from { opacity:0; transform: translateY(24px); }
  to   { opacity:1; transform: translateY(0); }
}
.fade-up   { animation: fadeUp 0.7s 0s    ease both; }
.fade-up-2 { animation: fadeUp 0.7s 0.15s ease both; }
.fade-up-3 { animation: fadeUp 0.7s 0.3s  ease both; }

/* ── Global floating blobs ── */
.page-blobs {
  position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
}
.page-blobs .blob { position: absolute; border-radius: 50%; will-change: transform; }
.pb-1 { width: 560px; height: 560px; top:  4%; left:-12%; background: rgba(196,185,255,0.22); animation: drift1 22s ease-in-out infinite; }
.pb-2 { width: 420px; height: 420px; top: 34%; right:-8%; background: rgba(167,243,208,0.20); animation: drift2 26s ease-in-out infinite; }
.pb-3 { width: 300px; height: 300px; bottom:6%; left:18%; background: rgba(253,230,138,0.22); animation: drift3 20s ease-in-out infinite; }
.pb-4 { width: 360px; height: 360px; top: 66%; left:44%; background: rgba(196,185,255,0.15); animation: drift2 30s ease-in-out infinite; }

nav, .fp-hero, .fp-hero-stage, .fp-demo-showcase, .fp-blocks, .fp-block-row, .fp-grid-section, .fp-list-section, .fp-cta {
  position: relative; z-index: 1;
}

/* ── CTAs ── */
.cta-primary {
  padding: 14px 32px; border-radius: 12px; border: none;
  background: linear-gradient(135deg, #7C6DED 0%, #5A4CC4 100%);
  color: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
  font-family: inherit; box-shadow: 0 8px 28px rgba(124,109,237,0.38);
  transition: all 0.15s ease; text-decoration: none;
  display: inline-flex; align-items: center;
}
.cta-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.cta-secondary {
  padding: 14px 32px; border-radius: 12px;
  border: 1.5px solid #E5E7EB; background: #fff;
  color: #374151; font-size: 16px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background 0.15s ease; text-decoration: none;
  display: inline-flex; align-items: center;
}
.cta-secondary:hover { background: #F5F3FF; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid #F3F4F6;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 max(40px, calc(50% - 600px));
  height: 64px;
  transition: padding 0.3s ease, top 0.3s ease, height 0.3s ease;
}
nav .nav-logo  { justify-self: start; }
nav .nav-center { justify-self: center; }
nav .nav-actions { justify-self: end; display: flex; gap: 10px; align-items: center; }

nav.scrolled {
  top: 14px;
  height: 76px;
  padding: 0 max(80px, calc(50% - 560px));
}
nav.scrolled::before {
  content: "";
  position: absolute;
  inset: 8px max(70px, calc(50% - 580px));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(15, 10, 30, 0.06);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(15, 10, 30, 0.10), 0 2px 6px rgba(15, 10, 30, 0.04);
  z-index: -1;
  transition: inset 0.3s ease;
}

.lenit-lang-toggle {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 2px; border-radius: 8px;
  border: 1px solid #EFEFEF; background: #fff; margin-right: 8px;
}
.lenit-lang-toggle button {
  border: none; background: transparent; cursor: pointer;
  padding: 4px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 700; line-height: 1;
  color: #6B7280; font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.lenit-lang-toggle button[aria-pressed="true"] { background: #F3F1FD; color: #5A4CC4; }

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { width: 30px; height: 30px; object-fit: contain; }
.nav-logo span {
  font-size: 17px; font-weight: 900; font-style: italic; color: #111827; letter-spacing: -0.8px;
}
.nav-center { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  padding: 8px 14px; border: none; background: transparent;
  color: #374151; font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: inherit; text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 8px; transition: color 0.15s ease, background 0.15s ease;
}
.nav-link:hover { color: #111827; background: #F5F3FF; }
.nav-link .chev { font-size: 9px; margin-top: 1px; color: #9CA3AF; transition: transform 0.2s ease; }
.nav-item:hover .nav-link .chev { transform: rotate(180deg); color: #7C6DED; }

.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 340px; background: #fff;
  border: 1px solid #F0EEFF; border-radius: 14px;
  box-shadow: 0 20px 60px rgba(124,109,237,0.18), 0 4px 16px rgba(0,0,0,0.04);
  padding: 10px; opacity: 0; visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 200;
}
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-dropdown::before { content:''; position:absolute; top:-10px; left:0; right:0; height:10px; }
.nav-dd-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  text-decoration: none; transition: background 0.15s ease;
}
.nav-dd-item:hover { background: #F5F3FF; }
.nav-dd-item.current { background: #F3F1FD; }
.nav-dd-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; background: #111827; color: #fff;
}
.nav-dd-icon svg { width: 18px; height: 18px; stroke: currentColor; }
.nav-dd-text { flex: 1; min-width: 0; }
.nav-dd-title { font-size: 13.5px; font-weight: 700; color: #111827; margin-bottom: 2px; }
.nav-dd-desc { font-size: 12px; color: #6B7280; line-height: 1.4; }

/* Auth buttons — 메인 hero_section.html nav 와 동일 (.nav-login / .nav-register) */
.nav-login {
  padding: 8px 18px;
  border-radius: 8px;
  background: #F3F1FD;
  color: #5A4CC4;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-login:hover { background: #EAE5FB; }

.nav-register {
  padding: 8px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7C6DED 0%, #5A4CC4 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(124, 109, 237, 0.32);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.nav-register:hover { opacity: 0.92; transform: translateY(-1px); }

/* (deprecated) 기존 .btn-login / .btn-signup 호환 — 추후 제거 */
.btn-login {
  padding: 8px 18px; border-radius: 8px; border: 1px solid #E5E7EB;
  background: #fff; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit; color: #374151;
  transition: background 0.15s ease;
}
.btn-login:hover { background: #F9FAFB; }
.btn-signup {
  padding: 8px 18px; border-radius: 8px; border: none;
  background: linear-gradient(135deg, #7C6DED 0%, #5A4CC4 100%);
  color: #fff; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: all 0.15s ease;
}
.btn-signup:hover { opacity: 0.9; transform: translateY(-1px); }

/* ════════════════════════════════════════
   FEATURE PAGE — HERO
   ════════════════════════════════════════ */
.fp-hero {
  padding: 100px 40px 40px;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}
.fp-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  color: #7C6DED; text-transform: uppercase;
  background: #F3F1FD; border: 1px solid #DDD4F5;
  padding: 6px 14px; border-radius: 99px;
  margin-bottom: 28px;
}
.fp-hero-eyebrow::before {
  content:''; width:6px; height:6px; border-radius:50%;
  background: #7C6DED; display: inline-block;
}
.fp-hero-title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900; color: #111827;
  letter-spacing: -2px; line-height: 1.1;
  margin: 0 0 22px;
}
.fp-hero-title .hl {
  background: linear-gradient(135deg, #7C6DED 0%, #5A4CC4 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.fp-hero-sub {
  font-size: 18px; color: #4B5563; line-height: 1.7;
  max-width: 640px; margin: 0 auto 38px;
}
.fp-hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fp-hero-fine { margin-top: 16px; font-size: 13px; color: #9CA3AF; }

/* Hero showcase image */
.fp-hero-stage { max-width: 1120px; margin: 60px auto 0; padding: 0 40px; }
.fp-hero-image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #F3F1FD 0%, #EEF7EE 100%);
  border: 1px solid #EEEAFB; border-radius: 20px;
  box-shadow: 0 30px 80px rgba(124,109,237,0.2), 0 0 0 1px rgba(124,109,237,0.04);
  display: flex; align-items: center; justify-content: center;
  color: #9CA3AF; font-size: 13px; font-weight: 600;
  overflow: hidden; position: relative;
}
.fp-hero-image .ph-note {
  padding: 14px 22px; border-radius: 10px;
  background: rgba(255,255,255,0.78);
  border: 1px dashed #DDD4F5;
  letter-spacing: 0.3px;
  display: inline-flex; align-items: center; gap: 9px;
}
.fp-hero-image .ph-note svg { width: 15px; height: 15px; stroke: #7C6DED; }

/* 실제 스크린샷이 들어갈 때 — 이미지 풀 채우기 */
.fp-hero-image img,
.fp-block-image img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: top left;
}
.fp-hero-image.has-image,
.fp-block-image.has-image {
  padding: 0; background: #fff;
}

/* ════════════════════════════════════════
   FEATURE BLOCKS — alternating
   ════════════════════════════════════════ */
.fp-blocks { max-width: 1120px; margin: 0 auto; padding: 80px 40px; }
.fp-block-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  padding: 60px 0;
}
.fp-block-row.rev .fp-block-text { order: 2; }
.fp-block-row.rev .fp-block-image { order: 1; }

.fp-block-num {
  font-size: 13px; font-weight: 800; letter-spacing: 2px;
  color: #7C6DED; text-transform: uppercase; margin-bottom: 14px;
  display: inline-block;
}
.fp-block-title {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 800; color: #111827;
  letter-spacing: -1px; line-height: 1.2;
  margin: 0 0 18px;
}
.fp-block-lead {
  font-size: 16px; color: #4B5563; line-height: 1.75;
  margin: 0 0 22px;
}
.fp-block-points {
  list-style: none; padding: 0; margin: 0 0 26px;
  display: flex; flex-direction: column; gap: 10px;
}
.fp-block-points li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; color: #374151; line-height: 1.55;
}
.fp-block-points li::before {
  content: ''; flex-shrink: 0; margin-top: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: #7C6DED;
}
.fp-block-link {
  font-size: 14px; font-weight: 700; color: #7C6DED;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap 0.15s ease;
}
.fp-block-link:hover { gap: 8px; }

.fp-block-image {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #F3F1FD 0%, #EEF7EE 100%);
  border: 1px solid #EEEAFB; border-radius: 16px;
  box-shadow: 0 18px 48px rgba(124,109,237,0.14);
  display: flex; align-items: center; justify-content: center;
  color: #9CA3AF; font-size: 13px; font-weight: 600;
  overflow: hidden;
}
.fp-block-image .ph-note {
  padding: 12px 20px; border-radius: 10px;
  background: rgba(255,255,255,0.78);
  border: 1px dashed #DDD4F5;
  letter-spacing: 0.3px;
  display: inline-flex; align-items: center; gap: 8px;
}
.fp-block-image .ph-note svg { width: 14px; height: 14px; stroke: #7C6DED; }

/* ════════════════════════════════════════
   FEATURE GRID (small cards)
   ════════════════════════════════════════ */
.fp-grid-section {
  max-width: 1120px; margin: 0 auto; padding: 80px 40px;
  border-top: 1px solid #F0EEFF;
}
.fp-section-head { text-align: center; margin-bottom: 56px; }
.fp-section-eyebrow {
  display: inline-block; font-size: 11px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase; color: #7C6DED;
  margin-bottom: 14px;
}
.fp-section-title {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 800; color: #111827;
  letter-spacing: -1px; line-height: 1.2;
}
.fp-section-sub {
  font-size: 15px; color: #6B7280; line-height: 1.7;
  margin: 14px auto 0; max-width: 620px;
}

.fp-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.fp-grid-card {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid #EEEAFB; border-radius: 14px;
  padding: 26px 24px;
  box-shadow: 0 4px 18px rgba(124,109,237,0.06);
  transition: transform 0.2s, border-color 0.2s;
}
.fp-grid-card:hover { transform: translateY(-2px); border-color: #DDD4F5; }
.fp-grid-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: #F3F1FD; border: 1px solid #DDD4F5;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: #7C6DED;
}
.fp-grid-icon svg { width: 20px; height: 20px; stroke: currentColor; }
.fp-grid-title {
  font-size: 15.5px; font-weight: 800; color: #111827;
  letter-spacing: -0.3px; margin-bottom: 6px;
}
.fp-grid-desc { font-size: 13.5px; color: #6B7280; line-height: 1.6; }

/* ════════════════════════════════════════
   FULL FEATURE LIST (multi-column)
   ════════════════════════════════════════ */
.fp-list-section {
  max-width: 1120px; margin: 0 auto; padding: 80px 40px;
  border-top: 1px solid #F0EEFF;
}
.fp-list {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0 40px;
}
.fp-list-item {
  padding: 16px 0;
  border-bottom: 1px solid #F0EEFF;
  display: flex; align-items: flex-start; gap: 10px;
}
.fp-list-check {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  background: #F3F1FD; border: 1px solid #DDD4F5;
  display: flex; align-items: center; justify-content: center;
  color: #7C6DED;
}
.fp-list-check svg { width: 10px; height: 10px; stroke: currentColor; stroke-width: 3; }
.fp-list-body { flex: 1; min-width: 0; }
.fp-list-title {
  font-size: 14px; font-weight: 700; color: #111827;
  display: flex; align-items: center; gap: 6px; margin-bottom: 3px;
  flex-wrap: wrap;
}
.fp-list-badge {
  font-size: 9.5px; font-weight: 700;
  padding: 2px 7px; border-radius: 99px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.fp-list-badge.admin   { color: #7C6DED; background: #F3F1FD; border: 1px solid #DDD4F5; }
.fp-list-badge.starter { color: #D97706; background: #FFFBEB; border: 1px solid #FDE68A; }
.fp-list-badge.free    { color: #16A34A; background: #F0FDF4; border: 1px solid #BBF7D0; }
.fp-list-desc { font-size: 12.5px; color: #6B7280; line-height: 1.55; }

/* ════════════════════════════════════════
   CTA FOOTER
   ════════════════════════════════════════ */
.fp-cta {
  padding: 100px 40px 110px;
  text-align: center;
  border-top: 1px solid #F0EEFF;
  position: relative; overflow: hidden;
}
.fp-cta::before {
  content: ''; position: absolute; top: -180px; left: 50%;
  transform: translateX(-50%); width: 700px; height: 400px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(124,109,237,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.fp-cta-hook {
  font-size: clamp(28px, 3.5vw, 46px); font-weight: 900; color: #111827;
  letter-spacing: -1.6px; line-height: 1.15; margin: 0 0 14px;
  position: relative;
}
.fp-cta-sub {
  font-size: 16px; color: #6B7280; line-height: 1.75;
  max-width: 460px; margin: 0 auto 32px;
  position: relative;
}
.fp-cta-btns {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  position: relative;
}

/* ════════════════════════════════════════
   FEATURE PAGE — INTERACTIVE DEMO SHOWCASE
   ════════════════════════════════════════ */
.fp-demo-showcase {
  max-width: 1280px;
  margin: 60px auto 0;
  padding: 28px 40px 0;
  background: #F5F5F8;
  border-radius: 24px 24px 0 0;
}
.fp-demo-invite {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: #9CA3AF;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.fp-demo-tabs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #ECECF0;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(15,10,30,0.04);
  width: fit-content;
  margin: 0 auto 24px;
}
.fp-demo-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #E5E7EB;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: #6B7280;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.fp-demo-tab:hover { border-color: #D1D5DB; color: #374151; }
.fp-demo-tab.active {
  background: #fff;
  color: #111827;
  border-color: #9CA3AF;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}
.fp-demo-tab-icon {
  width: 22px; height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
  object-fit: contain;
}
.fp-demo-screenshot {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.fp-demo-screenshot-inner {
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  border: 1px solid #E5E7EB;
  border-bottom: none;
  box-shadow: 0 12px 48px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  background: #fff;
}
.fp-demo-browser-bar {
  background: #F9FAFB;
  border-radius: 14px 14px 0 0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #E5E7EB;
}
.fp-demo-traffic-lights { display: flex; gap: 5px; }
.fp-demo-tl { width: 11px; height: 11px; border-radius: 50%; }
.fp-demo-tl-red    { background: #FF5F56; }
.fp-demo-tl-yellow { background: #FFBD2E; }
.fp-demo-tl-green  { background: #27C93F; }
.fp-demo-url-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 12px;
  color: #6B7280;
  max-width: 300px;
  height: 28px;
}
.fp-demo-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #fff;
  overflow: hidden;
}
.fp-demo-media iframe {
  position: absolute;
  top: 0; left: 0;
  border: 0;
  display: block;
  background: #fff;
  transform-origin: top left;
}

/* Responsive */
@media (max-width: 900px) {
  nav { grid-template-columns: 1fr auto; padding: 0 20px; }
  nav.scrolled { top: 0; height: 52px; padding: 0 16px; }
  nav.scrolled::before { display: none; }
  .lenit-lang-toggle { display: none; }
  .nav-center { display: none; }
  .fp-block-row { grid-template-columns: 1fr; gap: 30px; padding: 40px 0; }
  .fp-block-row.rev .fp-block-text { order: initial; }
  .fp-block-row.rev .fp-block-image { order: initial; }
  .fp-grid { grid-template-columns: 1fr; }
  .fp-list { grid-template-columns: 1fr; gap: 0; }
  .fp-demo-showcase { padding: 20px 16px 0; margin-top: 40px; }
  .fp-demo-tabs-row { flex-wrap: wrap; }
  .fp-demo-tab { font-size: 13px; padding: 7px 10px; }
  .fp-demo-media { aspect-ratio: 9 / 16; max-height: 640px; }
  .fp-demo-browser-bar { padding: 8px 12px; }
  .fp-demo-url-bar { max-width: 160px; height: 24px; font-size: 10.5px; }
}
