/* ══════════════════════════════════════════════
   hero.css — Landing page sections
   ══════════════════════════════════════════════ */

/* ─── HERO ────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: calc(var(--nav-h) + 3rem) 4rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-hero);
  pointer-events: none;
}

/* Animated grid */
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--clr-border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--clr-border-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .4;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}

.hero__content { position: relative; z-index: 1; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--clr-accent-glow);
  border: 1px solid rgba(var(--clr-accent-rgb),.2);
  color: var(--clr-accent);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-size: 0.8rem; font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero__accent {
  color: var(--clr-accent);
  position: relative;
}
.hero__accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  background: var(--grad-accent);
  border-radius: 2px;
  opacity: .6;
}

.hero__desc {
  font-size: 1rem; color: var(--clr-text-2);
  margin-bottom: 2rem;
  max-width: 460px;
  line-height: 1.7;
}

.hero__cta {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero__trust {
  display: flex; flex-wrap: wrap; gap: 1rem;
  font-size: 0.8rem; color: var(--clr-muted);
}
.trust-item {
  display: flex; align-items: center; gap: 0.4rem;
}
.trust-item svg { color: var(--clr-green); }

/* ─── HERO VISUAL (phone mockup) ─────────────── */
.hero__visual {
  position: relative; z-index: 1;
  display: flex; justify-content: center; align-items: center;
}

.hero__phone {
  width: 300px; height: 580px;
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: 36px;
  padding: 1.5rem 1rem;
  position: relative;
  box-shadow: var(--shadow-float), 0 0 80px var(--clr-accent-glow);
  overflow: hidden;
}
.hero__phone::before {
  content: '';
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 28px;
  background: var(--clr-bg);
  border-radius: 0 0 20px 20px;
}

.hero__phone-bar {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.7rem; color: var(--clr-muted);
  margin-bottom: 1rem; padding-top: 0.25rem;
  justify-content: center;
}
.hero__phone-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--clr-accent);
}

.hero__phone-screen {
  height: 100%;
  display: flex; flex-direction: column; gap: 0.6rem;
  overflow: hidden;
  padding-top: 0.5rem;
}

.chat-msg {
  max-width: 85%;
  padding: 0.6rem 0.9rem;
  border-radius: 16px;
  font-size: 0.78rem; line-height: 1.5;
  animation: msgIn .4s cubic-bezier(.4,0,.2,1) both;
}
.chat-msg--in  {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-msg--out {
  background: var(--grad-accent);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-msg--in:nth-child(1) { animation-delay: .3s; }
.chat-msg--out            { animation-delay: .8s; }
.chat-msg.answer          { animation-delay: 2.2s; }

@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Typing dots */
.typing { display: flex; align-items: center; gap: 4px; padding: 0.75rem 1rem; animation-delay: 1.4s; }
.typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--clr-accent);
  animation: blink 1.2s ease-in-out infinite;
}
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink {
  0%,80%,100% { opacity:.3; transform: scale(.8); }
  40%         { opacity: 1; transform: scale(1); }
}

/* ─── STATS ───────────────────────────────────── */
.stats {
  padding: 2rem 0 3rem;
  border-bottom: 1px solid var(--clr-border-soft);
}
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--clr-border);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stats__item {
  background: var(--clr-surface);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: background var(--transition);
}
.stats__item:hover { background: var(--clr-card); }
.stats__num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--clr-accent);
  line-height: 1;
  margin-bottom: 0.35rem;
  letter-spacing: -0.03em;
}
.stats__label { font-size: 0.82rem; color: var(--clr-muted); }

/* ─── FEATURES ────────────────────────────────── */
.features { padding: 5rem 0; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-slow);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition-slow);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--clr-accent-rgb),.25);
  box-shadow: var(--shadow-card);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-card__icon {
  font-size: 2rem; margin-bottom: 1rem;
  display: block;
}
.feature-card h3 {
  font-size: 1rem; margin-bottom: 0.5rem;
}
.feature-card p { font-size: 0.875rem; }

/* ─── HOW IT WORKS ────────────────────────────── */
.how { padding: 5rem 0; background: var(--clr-surface); }
.how__steps {
  display: flex; align-items: flex-start; gap: 0;
  position: relative;
}
.how__step {
  flex: 1; text-align: center; padding: 0 1rem;
}
.how__step-num {
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 800;
  color: var(--clr-accent); opacity: .15;
  line-height: 1; margin-bottom: 0.75rem;
}
.how__step-content h3 { font-size: 0.95rem; margin-bottom: 0.35rem; }
.how__step-content p  { font-size: 0.82rem; }
.how__step-content a  { color: var(--clr-accent); }

.how__connector {
  flex-shrink: 0; width: 40px; margin-top: 1.1rem;
  height: 1px; background: var(--clr-border);
  position: relative;
}
.how__connector::after {
  content: '→';
  position: absolute; top: -10px; left: 50%;
  transform: translateX(-50%);
  color: var(--clr-accent);
  font-size: 0.75rem;
}

/* ─── PLATFORMS ───────────────────────────────── */
.platforms { padding: 5rem 0; }
.platforms__grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1.25rem;
}
.platform-card {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-slow);
}
.platform-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--clr-accent-rgb),.3);
  box-shadow: var(--shadow-card);
}
.platform-card__logo { font-size: 2.5rem; margin-bottom: 1rem; }
.platform-card h3    { margin-bottom: 0.25rem; }
.platform-card p     { font-size: 0.82rem; color: var(--clr-muted); margin-bottom: 0.75rem; }
.platform-card__badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.72rem; font-weight: 600;
  background: rgba(34,211,122,.12);
  color: var(--clr-green);
}
.platform-card--featured .platform-card__badge {
  background: rgba(255,176,26,.12);
  color: var(--clr-yellow);
}

/* ─── CTA SECTION ─────────────────────────────── */
.cta-section { padding: 5rem 0; }
.cta-box {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, var(--clr-accent-glow), transparent);
  pointer-events: none;
}
.cta-box h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 0.75rem;
  position: relative;
}
.cta-box p {
  margin-bottom: 2rem;
  position: relative;
}
.cta-box__btns {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  justify-content: center; position: relative;
}

/* ─── HERO RESPONSIVE ─────────────────────────── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding: calc(var(--nav-h) + 2rem) 2rem 3rem;
    text-align: center;
  }
  .hero__visual { display: none; }
  .hero__desc   { margin: 0 auto 2rem; }
  .hero__cta    { justify-content: center; }
  .hero__trust  { justify-content: center; }
  .features__grid   { grid-template-columns: repeat(2, 1fr); }
  .how__steps       { flex-direction: column; align-items: stretch; gap: 1rem; }
  .how__connector   { display: none; }
  .how__step        { text-align: left; display: flex; gap: 1rem; align-items: flex-start; }
  .how__step-num    { font-size: 1.5rem; min-width: 2rem; }
}
@media (max-width: 640px) {
  .hero { padding: calc(var(--nav-h) + 1.5rem) 1rem 2.5rem; }
  .stats__grid      { grid-template-columns: repeat(2, 1fr); }
  .features__grid   { grid-template-columns: 1fr; }
  .platforms__grid  { grid-template-columns: 1fr; }
  .cta-box          { padding: 2.5rem 1.5rem; }
}
