/* Radarly — Landing Page Styles */

/* Hero Section */
.lp-hero {
  background: var(--bg);
  padding: 80px 16px 60px;
}
.lp-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 80px;
}
.lp-hero-text {
  flex: 1;
}
.lp-hero-text h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.lp-hero-text h1 span {
  background: linear-gradient(135deg, #e93244, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lp-hero-text p {
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 480px;
}
.lp-cta {
  font-size: 17px;
  padding: 16px 40px;
  text-decoration: none;
}
.lp-cta:hover { text-decoration: none; }
.lp-hero-note {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 14px;
}
.lp-hero-visual {
  flex: 0 0 auto;
}

/* Phone Mockup — iPhone 15 style */
.phone-frame {
  width: 300px;
  background: #1a1a1a;
  border-radius: 44px;
  padding: 8px;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.22),
    0 0 0 1px rgba(255,255,255,0.08),
    inset 0 0 0 1.5px rgba(255,255,255,0.06);
  position: relative;
}
.phone-frame-lg {
  width: 320px;
}
/* Dynamic Island */
.phone-notch {
  width: 90px;
  height: 26px;
  background: #000;
  border-radius: 20px;
  margin: 0 auto;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 18px;
  z-index: 3;
}
.phone-screen {
  background: #e5ddd5;
  border-radius: 38px;
  overflow: hidden;
  min-height: 520px;
  max-height: 520px;
}
.phone-frame-lg .phone-screen {
  min-height: 560px;
  max-height: 560px;
}
.lp-preview-phone .phone-screen,
.lp-hero-visual .phone-screen {
  overflow-y: auto;
  scrollbar-width: none;
}
.lp-preview-phone .phone-screen::-webkit-scrollbar,
.lp-hero-visual .phone-screen::-webkit-scrollbar {
  display: none;
}

/* WhatsApp UI */
.wa-header {
  background: #075e54;
  padding: 36px 14px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wa-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.wa-name {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.wa-status {
  color: rgba(255,255,255,0.7);
  font-size: 11px;
}
.wa-chat {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c9b99a' fill-opacity='0.08'%3E%3Ccircle cx='20' cy='20' r='2'/%3E%3Ccircle cx='60' cy='60' r='2'/%3E%3C/g%3E%3C/svg%3E") #e5ddd5;
  flex: 1;
}
.wa-bubble {
  background: #dcf8c6;
  border-radius: 0 8px 8px 8px;
  padding: 8px 10px;
  max-width: 96%;
  position: relative;
  box-shadow: 0 1px 1px rgba(0,0,0,0.08);
}
.wa-bubble-full {
  max-width: 100%;
}
.wa-msg-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.wa-msg-text {
  font-size: 12px;
  color: #303030;
  line-height: 1.5;
}
.wa-stock-block {
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.wa-stock-block:last-of-type {
  border-bottom: none;
}
.wa-stock-title {
  font-weight: 700;
  font-size: 12px;
  color: #1a1a1a;
  margin-bottom: 2px;
}
.wa-stock-info {
  font-size: 11px;
  color: #444;
  line-height: 1.45;
}
.wa-msg-footer {
  margin-top: 6px;
  padding-top: 6px;
  font-size: 11px;
  color: #555;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.wa-time {
  font-size: 10px;
  color: #999;
  text-align: right;
  margin-top: 3px;
}

/* Sections */
.lp-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 16px;
}
.lp-section-title {
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.lp-section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 48px;
}

/* Steps */
.lp-steps-section {
  background: #fff;
  max-width: 100%;
  padding: 56px 16px;
}
.lp-steps-section .lp-section-title,
.lp-steps-section .lp-section-subtitle {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.lp-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.lp-step {
  text-align: center;
  flex: 1;
  max-width: 260px;
}
.lp-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.lp-step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.lp-step p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.lp-step-arrow {
  color: #999999;
  padding-top: 12px;
  flex-shrink: 0;
}

/* Alert Preview Section */
.lp-preview-section {
  padding-bottom: 60px;
}
.lp-preview-card {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 900px;
  margin: 0 auto;
}
.lp-preview-phone {
  flex: 0 0 auto;
}
.lp-preview-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.lp-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.lp-detail-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #fef2f2;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-detail strong {
  display: block;
  font-size: 16px;
  margin-bottom: 2px;
}
.lp-detail p {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0;
}

/* Feature Cards */
.lp-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.lp-feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.lp-feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.lp-feature-icon {
  width: 48px;
  height: 48px;
  background: #fef2f2;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.lp-feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.lp-feature-card p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Pricing */
.lp-pricing-section { text-align: center; }
.lp-pricing-card {
  display: inline-block;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 40px 48px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
}
.lp-pricing-amount {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  margin-bottom: 28px;
}
.lp-pricing-currency {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-top: 10px;
}
.lp-pricing-number {
  font-size: 72px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -3px;
}
.lp-pricing-period {
  font-size: 18px;
  color: var(--text-secondary);
  align-self: flex-end;
  margin-bottom: 10px;
}
.lp-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lp-pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
}
.lp-pricing-features li svg { flex-shrink: 0; }
.lp-pricing-cta { width: 100%; text-align: center; }

/* Final CTA */
.lp-final-cta {
  background: var(--primary);
  padding: 56px 16px;
  text-align: center;
}
.lp-final-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}
.lp-final-cta h2 {
  color: #fff;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.lp-final-cta p {
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  margin-bottom: 32px;
}
.lp-cta-light:hover {
  background: #fff;
  color: var(--accent);
}

/* ─── Premium Effects ─────────────────────────────── */

/* 1. Hero entrance — staggered on load */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lp-hero-text h1       { animation: hero-in 0.75s ease forwards; }
.lp-hero-text p        { animation: hero-in 0.75s 0.15s ease forwards; opacity: 0; }
.lp-hero-text .lp-cta  { animation: hero-in 0.75s 0.28s ease backwards; }
.lp-hero-text .lp-hero-note { animation: hero-in 0.75s 0.38s ease forwards; opacity: 0; }
.lp-hero-visual        { animation: hero-in 0.85s 0.2s ease forwards; opacity: 0; }

/* 2. Floating phone */
@keyframes phone-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}
.lp-hero-visual .phone-frame,
.lp-preview-phone .phone-frame {
  animation: phone-float 4s ease-in-out infinite;
}

/* 3. Word cycling transition */
#hero-word {
  display: inline-block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 4. Scroll fade-in */
.scroll-fade {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-fade-children > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.scroll-fade-children.visible > *:nth-child(1) { transition-delay: 0s; }
.scroll-fade-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.scroll-fade-children.visible > *:nth-child(3) { transition-delay: 0.2s; }
.scroll-fade-children.visible > *:nth-child(4) { transition-delay: 0.3s; }
.scroll-fade-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* 5. Enhanced feature card hover */
.lp-feature-card:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,0.13);
  transform: translateY(-7px);
}


/* 7. WhatsApp typing indicator */
.wa-typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  background: #fff;
  border-radius: 0 10px 10px 10px;
  padding: 9px 13px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  align-self: flex-start;
}
.wa-typing span {
  width: 7px; height: 7px;
  background: #bbb;
  border-radius: 50%;
  animation: typing-bounce 1.2s ease-in-out infinite;
}
.wa-typing span:nth-child(2) { animation-delay: 0.18s; }
.wa-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0);    opacity: 0.45; }
  30%            { transform: translateY(-6px); opacity: 1; }
}

/* 8. Bubble appear animation */
@keyframes bubble-appear {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.bubble-appear { animation: bubble-appear 0.38s ease forwards; }

/* Mobile Responsive */
@media (max-width: 768px) {
  .lp-hero {
    padding: 48px 16px 40px;
  }
  .lp-hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  .lp-hero-text h1 {
    font-size: 36px;
  }
  .lp-hero-text p {
    margin-left: auto;
    margin-right: auto;
    font-size: 17px;
  }
  .phone-frame {
    width: 270px;
  }
  .phone-frame-lg {
    width: 290px;
  }
  .phone-screen {
    min-height: 500px;
    max-height: 500px;
  }
  .phone-frame-lg .phone-screen {
    min-height: 540px;
    max-height: 540px;
  }
  .lp-section {
    padding: 36px 16px;
  }
  .lp-section-title {
    font-size: 28px;
  }
  .lp-section-subtitle {
    font-size: 16px;
    margin-bottom: 32px;
  }
  .lp-steps {
    flex-direction: column;
    align-items: center;
  }
  .lp-step-arrow {
    transform: rotate(90deg);
    padding: 0;
  }
  .scroll-fade-children.visible > .lp-step-arrow {
    transform: rotate(90deg);
  }
  .lp-preview-card {
    flex-direction: column;
    gap: 40px;
  }
  .lp-features {
    grid-template-columns: 1fr;
  }
  .lp-final-cta {
    padding: 36px 16px;
  }
  .lp-final-cta h2 {
    font-size: 28px;
  }
}
