/* ════════════════════════════════════════════════════════════
   bekah.ai — index.css
   index.php 전용 스타일
   (Hero · About Panel · Problem · Platform · How It Works · Market)
   ════════════════════════════════════════════════════════════ */

/* ─── Main / Hero ────────────────────────────────────────── */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
}

/* Gold expanding rule */
.rule {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--gold) 20%,
    var(--gold-lt) 50%,
    var(--gold) 80%,
    transparent 100%
  );
  margin: 0 auto 4.5rem;
  animation: rule-expand 1.4s var(--ease-out-expo) 0.6s forwards;
}

/* Eye / B mark */
.eye-mark {
  width: 36px;
  height: 36px;
  margin: 0 auto 2.2rem;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out-expo) 1.0s forwards;
}
.eye-mark svg { width: 100%; height: 100%; }

/* Brand name */
.brand-display {
  font-family: var(--f-display);
  font-size: clamp(5rem, 14vw, 10.5rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 0.9;
  color: var(--white);
  opacity: 0;
  animation: fade-up 1.1s var(--ease-out-expo) 1.1s forwards;
  position: relative;
}
.brand-display em { font-style: italic; font-weight: 300; color: var(--gold); }

/* Tagline */
.tagline {
  margin-top: 2.2rem;
  font-family: var(--f-display);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--white-dim);
  line-height: 1.5;
  max-width: 520px;
  opacity: 0;
  animation: fade-up 1s var(--ease-out-expo) 1.4s forwards;
}

/* Three pillars (hero) */
.pillars {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 3.5rem;
  opacity: 0;
  animation: fade-up 1s var(--ease-out-expo) 1.7s forwards;
}
.pillar {
  padding: 0 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  position: relative;
}
.pillar:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 28px;
  background: var(--line);
}
.pillar-icon { width: 22px; height: 22px; color: var(--gold); opacity: 0.85; }
.pillar-label {
  font-family: var(--f-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}

/* Divider sm */
.rule-sm {
  width: min(280px, 60vw);
  height: 1px;
  background: var(--line);
  margin: 3.5rem auto;
  opacity: 0;
  animation: fade-up 0.8s var(--ease-out-expo) 2.0s forwards;
}

/* Coming soon block */
.coming-soon {
  opacity: 0;
  animation: fade-up 1s var(--ease-out-expo) 2.1s forwards;
}
.coming-soon-label {
  font-family: var(--f-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}

/* Countdown */
.countdown {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
}
.count-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.4rem;
  position: relative;
}
.count-unit:not(:last-child)::after {
  content: ':';
  position: absolute;
  right: -2px;
  top: 0.2rem;
  font-family: var(--f-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  color: var(--gold-dim);
  line-height: 1;
}
.count-number {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 300;
  line-height: 1;
  color: var(--white);
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  min-width: 2.4ch;
  text-align: center;
}
.count-label {
  font-family: var(--f-body);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 0.5rem;
}

/* Notify form */
.notify-wrap {
  margin-top: 3.2rem;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out-expo) 2.4s forwards;
}
.notify-label {
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--slate);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}
.notify-form {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 400px;
  margin: 0 auto;
  border: 1px solid rgba(245, 240, 232, 0.14);
  border-radius: 3px;
  overflow: hidden;
  background: rgba(245, 240, 232, 0.03);
  backdrop-filter: blur(12px);
  transition: border-color 0.3s ease;
}
.notify-form:focus-within { border-color: rgba(201, 146, 74, 0.5); }
.notify-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.85rem 1.2rem;
  font-family: var(--f-body);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.02em;
}
.notify-input::placeholder { color: var(--slate); }
.notify-btn {
  background: var(--gold);
  border: none;
  padding: 0.85rem 1.4rem;
  cursor: pointer;
  font-family: var(--f-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-deep);
  transition: background 0.25s ease, transform 0.15s ease;
  white-space: nowrap;
}
.notify-btn:hover { background: var(--gold-lt); }
.notify-btn:active { transform: scale(0.97); }
.notify-success {
  display: none;
  font-family: var(--f-display);
  font-size: 0.9rem;
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  margin-top: 0.8rem;
  letter-spacing: 0.04em;
}
.notify-success.show {
  display: block;
  animation: fade-up 0.6s var(--ease-out-expo);
}

/* ─── Brand trigger (hero → About panel) ─────────────────── */
.brand-trigger {
  cursor: pointer;
  position: relative;
  display: inline-block;
}
.brand-trigger::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease-out-expo);
}
.brand-trigger:hover::after { width: 100%; }
.brand-hint {
  display: block;
  font-family: var(--f-body);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.6;
  margin-top: 1rem;
  animation: blink-hint 3s ease-in-out 4s infinite;
}

/* ─── About Panel ────────────────────────────────────────── */
.about-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.9s var(--ease-out-expo), opacity 0.6s ease;
  opacity: 0;
  position: relative;
  z-index: 1;
}
.about-panel.open { max-height: 1200px; opacity: 1; }
.about-inner {
  padding: 6rem 3.5rem;
  border-top: 1px solid var(--line);
  max-width: 1080px;
  margin: 0 auto;
}
.about-hebrew {
  font-family: var(--f-display);
  font-size: clamp(5rem, 14vw, 9rem);
  font-weight: 300;
  color: rgba(201, 146, 74, 0.07);
  line-height: 1;
  position: absolute;
  top: 3rem;
  right: 3rem;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.02em;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: start;
}
.about-brand-col { position: sticky; top: 3rem; }
.about-word {
  font-family: var(--f-display);
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.01em;
}
.about-word em { font-style: italic; color: var(--gold); }
.about-pronunciation {
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--slate);
  letter-spacing: 0.12em;
  margin-top: 0.8rem;
}
.about-origin-tag {
  display: inline-block;
  margin-top: 1.6rem;
  font-family: var(--f-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(201, 146, 74, 0.25);
  border-radius: 1px;
}
.about-story { display: flex; flex-direction: column; gap: 2.4rem; }
.story-block {
  padding-left: 1.6rem;
  border-left: 1px solid var(--line);
  transition: border-color 0.3s ease;
}
.story-block:hover { border-left-color: rgba(201, 146, 74, 0.4); }
.story-label {
  font-family: var(--f-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 0.7rem;
}
.story-title {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 0.7rem;
  letter-spacing: 0.01em;
}
.story-title em { font-style: italic; color: var(--gold); }
.story-body {
  font-family: var(--f-body);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.8;
}
.story-body strong { color: var(--white); font-weight: 400; }
.about-close {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 3.5rem;
  background: none;
  border: 1px solid var(--line);
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  color: var(--slate);
  font-family: var(--f-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 0.25s ease, color 0.25s ease;
  border-radius: 1px;
}
.about-close:hover { border-color: rgba(201, 146, 74, 0.3); color: var(--white-dim); }

/* ─── Section 1: Problem ─────────────────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-top: 4rem;
}
.problem-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.stat-card {
  background: var(--white-faint);
  border: 1px solid var(--line);
  padding: 2rem 1.8rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.stat-card:hover {
  border-color: rgba(201, 146, 74, 0.2);
  background: rgba(201, 146, 74, 0.04);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 0;
  background: linear-gradient(to bottom, var(--gold), transparent);
  transition: height 0.5s var(--ease-out-expo);
}
.stat-card:hover::before { height: 100%; }
.stat-num {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-num span { color: var(--gold); }
.stat-desc {
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--slate);
  line-height: 1.5;
  margin-top: 0.6rem;
  letter-spacing: 0.02em;
}
.problem-text .section-body { max-width: 100%; }
.problem-pain {
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pain-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--line);
  background: var(--white-faint);
  border-radius: 2px;
  transition: border-color 0.25s ease;
}
.pain-item:hover { border-color: rgba(201, 146, 74, 0.18); }
.pain-icon { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 1px; opacity: 0.75; }
.pain-text { font-family: var(--f-body); font-size: 0.82rem; font-weight: 300; color: var(--white-dim); line-height: 1.55; }
.pain-text strong { color: var(--white); font-weight: 400; }

/* ─── Section 2: Three Pillars ───────────────────────────── */
.pillars-section {
  background: linear-gradient(180deg, transparent 0%, rgba(13,27,46,0.4) 50%, transparent 100%);
}
.pillar-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  margin-top: 4rem;
}
.pillar-card {
  padding: 3rem 2.4rem;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background: rgba(8, 12, 20, 0.6);
  backdrop-filter: blur(8px);
  transition: border-color 0.4s ease, transform 0.4s var(--ease-out-quart);
  cursor: default;
}
.pillar-card:hover {
  border-color: rgba(201, 146, 74, 0.25);
  transform: translateY(-4px);
  z-index: 2;
}
.pillar-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.pillar-card:hover::after { opacity: 0.4; }
.pillar-card::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(201,146,74,0.07) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.pillar-card:hover::before { opacity: 1; }
.pc-number {
  font-family: var(--f-display);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 1.8rem;
}
.pc-icon { width: 38px; height: 38px; color: var(--gold); margin-bottom: 1.6rem; opacity: 0.7; }
.pc-title {
  font-family: var(--f-display);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}
.pc-title em { font-style: italic; color: var(--gold); }
.pc-desc { font-family: var(--f-body); font-size: 0.82rem; font-weight: 300; color: var(--slate); line-height: 1.7; margin-bottom: 2rem; }
.pc-features { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.pc-features li {
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--white-dim);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}
.pc-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  opacity: 0.5;
  font-size: 0.6rem;
  top: 0.15em;
}

/* ─── Section 3: How It Works ────────────────────────────── */
.flow-section { background: rgba(13,27,46,0.2); }
.flow-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 5rem;
}
.flow-steps { display: flex; flex-direction: column; gap: 0; position: relative; }
.flow-steps::before {
  content: '';
  position: absolute;
  left: 20px; top: 40px; bottom: 40px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold) 0%, rgba(201,146,74,0.3) 50%, transparent 100%);
}
.flow-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 2rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: opacity 0.3s ease;
}
.flow-step:last-child { border-bottom: none; }
.flow-step:hover .step-num { background: var(--gold); color: var(--ink-deep); }
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(201,146,74,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--gold);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  background: var(--ink-deep);
  transition: background 0.3s ease, color 0.3s ease;
}
.step-content { padding-top: 0.5rem; }
.step-title { font-family: var(--f-display); font-size: 1.25rem; font-weight: 400; color: var(--white); margin-bottom: 0.45rem; letter-spacing: 0.01em; }
.step-desc { font-family: var(--f-body); font-size: 0.8rem; font-weight: 300; color: var(--slate); line-height: 1.65; }
.flow-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.flow-diagram {
  width: 100%; max-width: 380px;
  aspect-ratio: 3/4;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(8,12,20,0.8);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  position: relative;
}
.flow-diagram::before {
  content: '';
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(201,146,74,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.fd-row {
  width: 100%;
  padding: 1.4rem 2rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: background 0.3s ease;
  cursor: default;
}
.fd-row:last-child { border-bottom: none; }
.fd-row:hover { background: rgba(201,146,74,0.04); }
.fd-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  opacity: 0.6;
  animation: blink 2.5s ease-in-out infinite;
}
.fd-dot.delay-1 { animation-delay: 0.5s; }
.fd-dot.delay-2 { animation-delay: 1s; }
.fd-dot.delay-3 { animation-delay: 1.5s; }
.fd-dot.delay-4 { animation-delay: 2s; }
.fd-text { flex: 1; }
.fd-label { font-family: var(--f-body); font-size: 0.65rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); opacity: 0.7; }
.fd-value { font-family: var(--f-display); font-size: 1rem; font-weight: 300; color: var(--white); margin-top: 0.15rem; }
.fd-badge {
  font-family: var(--f-body);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(201,146,74,0.3);
  color: var(--gold);
  border-radius: 1px;
}
.fd-badge.green { border-color: rgba(16, 185, 129, 0.3); color: #6EE7B7; }

/* ─── Section 4: Market / Open Payment ───────────────────── */
.market-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-top: 4rem;
}
.market-headline {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--white);
}
.market-headline em { font-style: italic; color: var(--gold); }
.market-body { font-family: var(--f-body); font-size: 0.88rem; font-weight: 300; color: var(--white-dim); line-height: 1.75; margin-top: 1.4rem; }
.payment-logos { margin-top: 2.8rem; display: flex; flex-direction: column; gap: 1rem; }
.payment-logos-label { font-family: var(--f-body); font-size: 0.62rem; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate); margin-bottom: 0.4rem; }
.payment-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font-family: var(--f-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--white-dim);
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 1px;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.chip:hover { border-color: rgba(201,146,74,0.3); color: var(--gold); }
.chip.more { color: var(--slate); border-style: dashed; }
.market-numbers { display: flex; flex-direction: column; gap: 1.5px; }
.mnum-card {
  padding: 2rem 2.4rem;
  background: var(--white-faint);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: border-color 0.3s ease;
}
.mnum-card:hover { border-color: rgba(201,146,74,0.2); }
.mnum-val { font-family: var(--f-display); font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 300; color: var(--white); letter-spacing: -0.02em; white-space: nowrap; }
.mnum-val span { color: var(--gold); }
.mnum-info { display: flex; flex-direction: column; gap: 0.2rem; }
.mnum-title { font-family: var(--f-body); font-size: 0.78rem; font-weight: 400; color: var(--white-dim); }
.mnum-sub { font-family: var(--f-body); font-size: 0.65rem; font-weight: 300; color: var(--slate); letter-spacing: 0.04em; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .problem-grid,
  .market-grid { grid-template-columns: 1fr; gap: 3rem; }
  .pillar-cards { grid-template-columns: 1fr; gap: 1.5px; }
  .flow-header { grid-template-columns: 1fr; gap: 3rem; }
  .flow-visual { order: -1; }
  .flow-diagram { max-width: 100%; aspect-ratio: auto; }
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-brand-col { position: static; }
  .about-inner { padding: 4rem 1.5rem; }
  .about-hebrew { font-size: 5rem; top: 1rem; right: 1rem; }
  .problem-stats { grid-template-columns: 1fr 1fr; }
  .flow-steps::before { display: none; }
  main { padding: 3.5rem 1.5rem 5rem; }
  .pillars { gap: 0; }
  .pillar { padding: 0 1.2rem; }
}
@media (max-width: 420px) {
  .pillars { flex-direction: column; gap: 1.2rem; }
  .pillar::after { display: none !important; }
  .notify-form { flex-direction: column; border-radius: 4px; }
  .notify-btn { padding: 0.9rem; }
  .count-unit { padding: 0 0.9rem; }
}
