/* ==========================================================================
   GhostVoice — Landing page
   The hero's "Voice Portal" is the page signature: a live canvas where a raw
   waveform enters the ghost ring and leaves transformed. Everything else on
   the page stays quiet and disciplined so the portal is the memory.
   ========================================================================== */

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */
.hero{
  position: relative;
  padding: 84px 0 72px;
  text-align: center;
}
.hero h1{
  font-size: clamp(36px, 6.2vw, 64px);
  line-height: 1.2;
  max-width: 760px;
  margin-inline: auto;
  letter-spacing: -0.015em;
}
.hero h1 .hl{
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 44px rgba(56,189,248,0.35);
}
.hero > .container > p{
  font-size: clamp(16px, 2vw, 19px);
  max-width: 620px;
  margin: 0 auto 8px;
}

.hero-cta{
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}
.hero-meta{
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--faint);
  letter-spacing: .03em;
}

/* --- The Voice Portal --------------------------------------------------- */
.portal{
  position: relative;
  max-width: 860px;
  margin: 44px auto 6px;
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(480px 220px at 50% 50%, rgba(47,125,255,0.14), transparent 70%),
    var(--portal);
  box-shadow: var(--shadow-glow), 0 0 80px -30px rgba(47,125,255,0.5) inset;
  overflow: hidden;
}
.portal canvas{
  display: block;
  width: 100%;
  height: 240px;
}
.portal-ghost{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92px; height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(6, 9, 17, 0.72);
  border: 1px solid var(--border-hi);
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.portal-ghost::before{               /* slow-breathing conic halo */
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 12%, rgba(56,189,248,0.85), rgba(47,125,255,0.85), transparent 88%);
  filter: blur(7px);
  z-index: -1;
  animation: portal-spin 7s linear infinite;
}
.portal-ghost img{ width: 52px; height: 52px; filter: drop-shadow(0 0 14px rgba(56,189,248,0.7)); }
@keyframes portal-spin{ to{ transform: rotate(1turn); } }

.portal-labels{
  position: absolute;
  inset-inline: 0;
  top: 14px;
  display: flex;
  justify-content: space-between;
  padding-inline: 22px;
  pointer-events: none;
}
.portal-labels b{
  font: 600 11px var(--font-mono);
  letter-spacing: .12em;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid;
}
.portal-labels .raw{  color: #ff9d9d; border-color: rgba(239,68,68,0.4);  background: rgba(239,68,68,0.08); }
.portal-labels .out{  color: #a7e6ff; border-color: rgba(56,189,248,0.4); background: rgba(56,189,248,0.08); }

.portal-foot{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--border);
  background: rgba(6, 9, 17, 0.5);
}
.mic-btn{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 600 13.5px var(--font-body);
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  min-height: 42px;
  padding: 9px 20px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, box-shadow .2s ease;
  touch-action: manipulation;
}
.mic-btn svg{ width: 17px; height: 17px; color: var(--accent); }
.mic-btn:hover{ background: var(--surface-3); box-shadow: 0 0 24px -8px rgba(56,189,248,0.5); }
.mic-btn.live{
  color: #fecaca;
  border-color: rgba(239,68,68,0.55);
  background: rgba(239,68,68,0.10);
}
.mic-btn.live svg{ color: var(--danger); }
.mic-btn.live .dot{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--danger);
  animation: rec-blink 1.1s ease infinite;
}
@keyframes rec-blink{ 50%{ opacity: .25; } }
.portal-privacy{
  font: 500 11.5px var(--font-mono);
  color: var(--faint);
}

/* ---------------------------------------------------------------------- */
/* Features                                                                */
/* ---------------------------------------------------------------------- */
.features-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card{
  padding: 28px 26px 24px;
}
.feature-card h3{ font-size: 18px; margin: 20px 0 8px; }
.feature-card p{ font-size: 14.5px; margin: 0; }

@media (max-width: 980px){ .features-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px){ .features-grid{ grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------- */
/* How it works — a real sequence, so numbered stations on a signal path   */
/* ---------------------------------------------------------------------- */
.steps{
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.steps::before{                       /* the connecting signal beam */
  content: "";
  position: absolute;
  top: 54px;
  inset-inline: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-hi), transparent);
}
.step{
  position: relative;
  text-align: center;
  padding: 30px 22px 26px;
}
.step-num{
  width: 48px; height: 48px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font: 700 17px var(--font-mono);
  color: #fff;
  background: var(--grad);
  box-shadow: 0 0 0 6px rgba(47,125,255,0.14), 0 8px 24px -8px rgba(47,125,255,0.7);
  counter-increment: none;
}
.step h3{ font-size: 17.5px; }
.step p{ font-size: 14.5px; margin: 0; }

@media (max-width: 860px){
  .steps{ grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .steps::before{
    inset-inline: auto;
    inset-inline-start: 50%;
    top: 8%;
    bottom: 8%;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, transparent, var(--border-hi), transparent);
  }
}

/* ---------------------------------------------------------------------- */
/* Pricing                                                                 */
/* ---------------------------------------------------------------------- */
.pricing-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.price-card{
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 26px;
}
.price-name{
  font: 600 12px var(--font-mono);
  letter-spacing: .18em;
  color: var(--faint);
  margin-bottom: 14px;
}
.price-amount{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.2;
}
.price-amount small{
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--muted);
}
.price-desc{ font-size: 14px; margin: 10px 0 18px; }
.price-list{
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 11px;
  flex: 1;
}
.price-list li{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--muted);
}
.price-list li svg{
  width: 17px; height: 17px;
  flex: none;
  color: var(--success);
}

.price-card.featured{
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    var(--grad) border-box;                 /* gradient ring */
  border: 1px solid transparent;
  box-shadow: 0 30px 80px -30px rgba(47,125,255,0.55);
  transform: translateY(-10px);
}
.price-card.featured .price-name{ color: var(--accent); }
.featured-badge{
  position: absolute;
  top: -13px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  font: 600 11.5px var(--font-body);
  color: #fff;
  background: var(--grad);
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 18px -6px rgba(47,125,255,0.8);
  white-space: nowrap;
}
html[dir="rtl"] .featured-badge{ transform: translateX(50%); }

@media (max-width: 900px){
  .pricing-grid{ grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .price-card.featured{ transform: none; }
}

/* ---------------------------------------------------------------------- */
/* Final CTA                                                               */
/* ---------------------------------------------------------------------- */
.download-cta{
  position: relative;
  text-align: center;
  padding: 64px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-hi);
  background:
    radial-gradient(500px 240px at 50% 0%, rgba(47,125,255,0.22), transparent 70%),
    var(--surface);
  overflow: hidden;
}
.download-cta h2{ font-size: clamp(26px, 4vw, 38px); }
.download-cta p{ max-width: 480px; margin: 0 auto 26px; }
