/* ============================================================
   VIBEFIRE — Home page
   ============================================================ */

/* ---- Tweakable knobs (set on :root by tweaks panel) ---- */
:root {
  --accent: var(--fire);
  --accent-2: var(--amber);
  --accent-grad: var(--fire-grad);
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(56px, 8vw, 120px); }
.hero-bed { position: absolute; inset: 0; z-index: 0; }
.hero-bed .ember-canvas { position: absolute; inset: 0; }
.hero-bed::before {
  content: ""; position: absolute; left: 50%; top: -10%; transform: translateX(-50%);
  width: 120vw; height: 70vh; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 0%, rgba(255,69,0,.22), rgba(255,120,0,.06) 45%, transparent 70%);
}
.hero-bed::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent 60%, var(--bg));
}
.hero .wrap { position: relative; z-index: 2; }

.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; white-space: nowrap; }
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulseDot 2s infinite; }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.hero-title { font-family: var(--font-display); font-weight: 400; color: var(--text); letter-spacing: -.01em; }
.hero-title .big { display: block; font-size: var(--fs-display-1); line-height: .98; }
.hero-title .small { display: block; font-size: clamp(20px, 2.6vw, 34px); color: var(--text-soft); margin-top: 18px; font-family: var(--font-body); font-weight: 600; line-height: 1.4; }
.hero-sub { color: var(--muted); font-size: var(--fs-lead); line-height: 1.6; margin-top: 22px; max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-trust { display: flex; align-items: center; gap: 18px; margin-top: 40px; flex-wrap: wrap; }
.hero-trust .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.hero-trust .chans { display: flex; gap: 8px; flex-wrap: wrap; }
.trust-chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding-inline: 13px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: 13px; color: var(--muted); transition: all var(--dur-1); }
.trust-chip:hover { color: var(--text); border-color: var(--line-2); }
.trust-chip .ic { width: 15px; height: 15px; color: var(--accent); }

/* hero visual (placeholder "first build" mock) */
.hero-visual { position: relative; }
.hero-mock {
  position: relative; border-radius: var(--r-2xl); overflow: hidden;
  border: 1px solid var(--line-2); background: var(--surface-1);
  box-shadow: var(--sh-3), 0 0 80px rgba(255,69,0,.16);
}
.hero-mock-bar { height: 42px; display: flex; align-items: center; gap: 7px; padding-inline: 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.hero-mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #34373f; display: inline-block; }
.hero-mock-bar i:first-child { background: var(--accent); }
.hero-mock-body { padding: 22px; }
.hero-mock-body .ph { border-radius: 12px; }
.hero-mock-float {
  position: absolute; border-radius: var(--r-lg); padding: 14px 16px;
  background: var(--surface-3); border: 1px solid var(--line-fire);
  box-shadow: var(--sh-3); display: flex; align-items: center; gap: 12px;
}
.hero-mock-float .flame-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-grad); display: grid; place-items: center; font-size: 17px; }
.hero-mock-float.fa { right: -14px; bottom: 30px; animation: floaty 5s ease-in-out infinite; }
.hero-mock-float.fb { left: -18px; top: 40px; animation: floaty 6s ease-in-out infinite reverse; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-mock-float small { display: block; color: var(--muted); font-size: 11px; }
.hero-mock-float b { font-size: 14px; color: var(--text); }

/* ---- HERO layouts via [data-hero] ---- */
.hero-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
[data-hero="split"] .hero-grid { grid-template-columns: 1.05fr .95fr; }
[data-hero="split"] .hero-visual { display: block; }

[data-hero="center"] .hero-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; max-width: 880px; margin-inline: auto; }
[data-hero="center"] .hero-sub { margin-inline: auto; }
[data-hero="center"] .hero-cta, [data-hero="center"] .hero-trust, [data-hero="center"] .hero-eyebrow { justify-content: center; }
[data-hero="center"] .hero-visual { display: none; }

[data-hero="editorial"] .hero-grid { grid-template-columns: 1fr; }
[data-hero="editorial"] .hero-title .big { font-size: clamp(54px, 11vw, 150px); }
[data-hero="editorial"] .hero-visual { display: none; }
[data-hero="editorial"] .hero-sub { max-width: 40ch; }

@media (max-width: 880px) {
  [data-hero] .hero-grid { grid-template-columns: 1fr !important; }
  .hero-visual { display: none !important; }
}

/* ============================================================
   PROBLEM (공감) — scenes
   ============================================================ */
.scenes-head { max-width: 64ch; margin-bottom: 48px; }
.scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.scene {
  position: relative; padding: 28px; border-radius: var(--r-lg);
  background: var(--surface-1); border: 1px solid var(--line);
  overflow: hidden; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between;
}
.scene::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--accent), transparent); opacity: .5; }
.scene .scene-no { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); letter-spacing: .1em; }
.scene .scene-q { font-size: 21px; font-weight: 700; color: var(--text); line-height: 1.4; margin-top: 14px; }
.scene .scene-d { color: var(--muted); font-size: 15px; margin-top: 12px; line-height: 1.6; }
.scene .blink { color: var(--accent); }

/* ============================================================
   TRANSFORM (Before → After)
   ============================================================ */
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); }
.ba-col { padding: clamp(28px, 4vw, 48px); }
.ba-before { background: var(--surface-1); }
.ba-after { background: linear-gradient(135deg, rgba(255,69,0,.10), rgba(255,178,0,.04)); position: relative; }
.ba-tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 20px; }
.ba-after .ba-tag { color: var(--accent); }
.ba li { display: flex; gap: 12px; padding: 11px 0; color: var(--text-soft); font-size: 16px; border-bottom: 1px solid var(--line); }
.ba li:last-child { border-bottom: 0; }
.ba li .mk { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.ba-before .mk { background: rgba(255,255,255,.06); color: var(--muted-2); }
.ba-after .mk { background: var(--accent-grad); color: var(--on-fire); }
.ba-arrow { display: grid; place-items: center; width: 64px; background: var(--bg); }
.ba-arrow span { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line-fire); display: grid; place-items: center; color: var(--accent); }
@media (max-width: 760px) {
  .ba { grid-template-columns: 1fr; }
  .ba-arrow { width: auto; height: 56px; }
  .ba-arrow span { transform: rotate(90deg); }
}

/* ============================================================
   FREE EBOOK block — strongest conversion
   ============================================================ */
.free-block { position: relative; border-radius: var(--r-2xl); overflow: hidden; border: 1px solid var(--line-fire); background: var(--surface-1); }
.free-block .ember-canvas { position: absolute; inset: 0; opacity: .4; z-index: 0; }
.free-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 340px 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 56px); }
.free-cover { position: relative; aspect-ratio: 3/4; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-3), 0 0 60px rgba(255,69,0,.3); transform: rotate(-3deg); transition: transform var(--dur-3) var(--ease); }
.free-cover:hover { transform: rotate(0); }
.book-cover { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 26px 22px; color: #fff; position: relative; }
.book-cover .bc-top { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; opacity: .85; }
.book-cover .bc-title { font-family: var(--font-display); font-size: 25px; line-height: 1.18; }
.book-cover .bc-foot { font-size: 12px; opacity: .8; }
.book-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 0% 0%, rgba(255,255,255,.22), transparent 50%); pointer-events: none; }

.free-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 22px 0 26px; }
.free-step { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-soft); padding: 9px 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 10px; }
.free-step b { font-family: var(--font-mono); color: var(--accent); font-size: 12px; }
@media (max-width: 720px) {
  .free-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .free-cover { width: 220px; }
  .free-steps { grid-template-columns: 1fr; text-align: left; }
}

/* ============================================================
   PAID showcase
   ============================================================ */
.show-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.show-card { display: grid; grid-template-columns: 150px 1fr; gap: 22px; padding: 24px; align-items: center; }
.show-card .cover { aspect-ratio: 3/4; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-2); }
.show-card h3 { font-size: 21px; line-height: 1.3; }
.show-card .sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.show-card .quote { color: var(--text-soft); font-size: 14.5px; margin-top: 14px; line-height: 1.6; border-left: 2px solid var(--line-fire); padding-left: 12px; }
.show-card .row { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; gap: 12px; }
.show-card .price { font-family: var(--font-display); font-size: 22px; color: var(--text); }
@media (max-width: 980px) { .show-grid { grid-template-columns: 1fr; } }
@media (max-width: 440px) { .show-card { grid-template-columns: 110px 1fr; gap: 16px; padding: 18px; } }

/* ============================================================
   REVIEWS preview
   ============================================================ */
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rev-card { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.rev-card .q { font-size: 17px; color: var(--text); line-height: 1.55; font-weight: 600; }
.rev-card .ph-shot { height: 120px; border-radius: 10px; margin-top: 4px; }
.rev-meta { display: flex; align-items: center; gap: 11px; margin-top: auto; }
.rev-ava { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line-2); display: grid; place-items: center; font-weight: 700; color: var(--accent); font-size: 14px; }
.rev-meta b { font-size: 14px; color: var(--text); display: block; }
.rev-meta small { font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) { .rev-grid { grid-template-columns: 1fr; } .rev-card .ph-shot { display: none; } }

/* ============================================================
   PROGRAM teaser
   ============================================================ */
.prog { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px,4vw,56px); align-items: center; }
.prog-facts { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin: 22px 0 26px; }
.prog-fact { padding: 16px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.prog-fact .k { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); letter-spacing: .1em; text-transform: uppercase; }
.prog-fact .v { font-size: 17px; color: var(--text); font-weight: 700; margin-top: 6px; }
.prog-visual { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; }
@media (max-width: 880px) { .prog { grid-template-columns: 1fr; } }

/* ============================================================
   COMMUNITY + levels
   ============================================================ */
.levels { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.level-pip { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); flex: 1; min-width: 96px; transition: all var(--dur-2); }
.level-pip:hover { border-color: var(--line-fire); transform: translateY(-3px); }
.level-pip .fl { font-size: 20px; }
.level-pip .nm { font-size: 13px; font-weight: 700; color: var(--text); }
.level-pip .lv { font-family: var(--font-mono); font-size: 10px; color: var(--muted-2); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; text-align: left; font-size: 17px; font-weight: 600; color: var(--text); }
.faq-q .pl { flex: none; width: 24px; height: 24px; position: relative; }
.faq-q .pl::before, .faq-q .pl::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform var(--dur-2) var(--ease); }
.faq-q .pl::before { left: 4px; right: 4px; top: 11px; height: 2px; }
.faq-q .pl::after { top: 4px; bottom: 4px; left: 11px; width: 2px; }
.faq-item.open .faq-q .pl::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--dur-3) var(--ease); }
.faq-a .inner { padding: 0 4px 22px; color: var(--muted); font-size: 15.5px; line-height: 1.7; max-width: 70ch; }
.faq-item.open .faq-a { max-height: 320px; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta { position: relative; border-radius: var(--r-2xl); overflow: hidden; border: 1px solid var(--line-fire); text-align: center; padding: clamp(48px,7vw,96px) clamp(24px,5vw,48px); background: var(--surface-1); }
.final-cta .ember-canvas { position: absolute; inset: 0; opacity: .55; z-index: 0; }
.final-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 100%, rgba(255,69,0,.2), transparent 60%); }
.final-cta > * { position: relative; z-index: 1; }
.final-cta h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px,5vw,64px); line-height: 1.05; }

/* ============================================================
   Section heading helper
   ============================================================ */
.sec-head { margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head .eyebrow { display: block; margin-bottom: 14px; }
.sec-head h2 { font-size: var(--fs-h1); line-height: 1.12; max-width: 22ch; }
.sec-head p { color: var(--muted); margin-top: 14px; font-size: var(--fs-lead); max-width: 56ch; }
.sec-head.center { text-align: center; margin-inline: auto; }
.sec-head.center h2, .sec-head.center p { margin-inline: auto; }
.sec-head .link-more { color: var(--accent); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }

/* alternating background rhythm (tweakable) */
[data-rhythm="on"] .band-alt { background: var(--surface-1); border-block: 1px solid var(--line); }

@media (max-width: 900px) {
  .scenes { grid-template-columns: 1fr; }
}
