/* ============================================
   LeadAster — styles.css
   Palette & typography as CSS variables
   RTL-first, Hebrew (Assistant font)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@300;400;500;600;700;800&display=swap');

/* ---------- Variables ---------- */
:root {
  --bg: #F7F9FC;
  --surface: #FFFFFF;
  --text: #1E2430;
  --muted: #6E7785;
  --border: #E7EBF2;
  --accent: #7C6CF2;
  --accent-tint: #F1EEFF;
  --accent-dark: #5B4CD4;
  --radius: 24px;
  --radius-sm: 14px;
  --font: 'Assistant', sans-serif;
  --shadow: 0 2px 16px rgba(30,36,48,0.06);
  --shadow-hover: 0 6px 24px rgba(124,108,242,0.13);
  --transition: 300ms cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }
ul, ol { list-style: none; }
button, input, textarea, select {
  font-family: inherit; font-size: inherit; color: inherit;
  border: none; outline: none; background: none;
}
button { cursor: pointer; }

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Container ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navigation ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.navbar-logo img { height: 36px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta:hover {
  background: var(--accent-dark) !important;
  transform: translateY(-1px);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Hero Sections ---------- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-tint) 0%, #e8e4ff 40%, #d4ceff 100%);
  background-size: cover;
  background-position: center;
}
.hero-home {
  background: linear-gradient(135deg, #F1EEFF 0%, #ddd6ff 50%, #c7bfff 100%);
  min-height: 600px;
}
.hero-about {
  background: linear-gradient(135deg, #eee9ff 0%, #d8d1ff 60%, #c4baff 100%);
}
.hero-funnel {
  background: linear-gradient(135deg, #f5f2ff 0%, #e4deff 50%, #d0c8ff 100%);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 640px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text);
}
.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero .aster-motif {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 80px;
  opacity: 0.08;
  z-index: 1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124,108,242,0.25);
}
.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Section ---------- */
.section {
  padding: 80px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.section-header p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Bento Grid ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.bento-card .icon {
  width: 48px;
  height: 48px;
  background: var(--accent-tint);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}
.bento-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.bento-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.bento-card.span-2 { grid-column: span 2; }

/* ---------- Logos Strip ---------- */
.logos-strip {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.logos-strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.logos-strip span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.6;
  letter-spacing: 0.05em;
}

/* ---------- Product Screenshot ---------- */
.product-section {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 48px;
  text-align: center;
}
.product-section img {
  margin: 0 auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  max-width: 600px;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.testimonial-card .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
}
.testimonial-card blockquote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 16px;
}
.testimonial-card .author {
  font-weight: 700;
  font-size: 0.9rem;
}
.testimonial-card .role {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Pricing Teaser ---------- */
.pricing-teaser {
  background: var(--accent-tint);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}
.pricing-teaser h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.pricing-teaser p {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 1.1rem;
}
.pricing-teaser .price-tag {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}
.pricing-teaser .price-sub {
  color: var(--muted);
  margin-bottom: 28px;
}

/* ---------- Stats ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item .stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-item .stat-label {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Values ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.value-card .icon {
  width: 56px;
  height: 56px;
  background: var(--accent-tint);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
}
.value-card h3 {
  font-weight: 700;
  margin-bottom: 10px;
}
.value-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Capability Map ---------- */
.capability-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---------- Workflow Timeline ---------- */
.timeline {
  position: relative;
  padding: 0 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  right: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding: 0 48px 40px 0;
}
.timeline-item::before {
  content: '';
  position: absolute;
  right: -40px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--accent-tint);
  z-index: 1;
}
.timeline-item h3 {
  font-weight: 700;
  margin-bottom: 8px;
}
.timeline-item p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- FAQ Accordion ---------- */
.faq-group { margin-bottom: 32px; }
.faq-group-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--accent);
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1rem;
  text-align: right;
  background: none;
  cursor: pointer;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--accent-tint); }
.faq-question .arrow {
  transition: transform var(--transition);
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-right: auto;
  margin-left: 16px;
}
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms ease, padding 300ms ease;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 24px 20px;
}
.faq-answer p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Search/Filter ---------- */
.search-bar {
  max-width: 480px;
  margin: 0 auto 40px;
  position: relative;
}
.search-bar input {
  width: 100%;
  padding: 14px 24px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--surface);
  font-size: 1rem;
  transition: border-color var(--transition);
}
.search-bar input:focus { border-color: var(--accent); }

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group .error-msg {
  color: #E04E5E;
  font-size: 0.82rem;
  margin-top: 4px;
  display: none;
}
.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
  border-color: #E04E5E;
}
.form-group.has-error .error-msg { display: block; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 600px;
  margin: 0 auto;
}

.success-panel,
.error-panel {
  text-align: center;
  padding: 40px;
  border-radius: var(--radius);
  display: none;
}
.success-panel {
  background: #E8F8EF;
  border: 1px solid #B8E6C8;
}
.success-panel h3 { color: #1B7A3D; margin-bottom: 8px; }
.success-panel p { color: #3A8C5A; }
.error-panel {
  background: #FEF0F0;
  border: 1px solid #F5C6C6;
}
.error-panel h3 { color: #C0392B; margin-bottom: 8px; }
.error-panel p { color: #E04E5E; }

.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}
.btn-loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  inset-inline-start: calc(50% - 9px);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Funnel Steps ---------- */
.funnel-page { display: none; }
.funnel-page.active { display: block; }
.quote-step { display: none; }
.quote-step.active { display: block; }

.progress-bar {
  background: var(--border);
  border-radius: 50px;
  height: 8px;
  margin-bottom: 40px;
  overflow: hidden;
}
.progress-bar .fill {
  height: 100%;
  background: var(--accent);
  border-radius: 50px;
  transition: width 400ms ease;
}

.step-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.step-option {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 600;
}
.step-option:hover,
.step-option.selected {
  border-color: var(--accent);
  background: var(--accent-tint);
}

/* ---------- Privacy TOC ---------- */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-bottom: 40px;
}
.toc h3 {
  font-weight: 700;
  margin-bottom: 12px;
}
.toc a {
  display: block;
  padding: 4px 0;
  color: var(--accent);
  font-size: 0.95rem;
}
.legal-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 32px 0 12px;
  padding-top: 16px;
}
.legal-content p {
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

/* ---------- Link Cards ---------- */
.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 32px;
  transition: all var(--transition);
}
.link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}
.link-card h3 { font-weight: 700; }
.link-card p { color: var(--muted); font-size: 0.9rem; }

/* ---------- CTA Section ---------- */
.cta-section {
  text-align: center;
  padding: 64px 0;
}
.cta-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.cta-section p {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text);
  color: #fff;
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand img { height: 32px; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.6; }
.site-footer h4 {
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.site-footer ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom img { height: 24px; opacity: 0.5; }
.footer-bottom span { color: rgba(255,255,255,0.4); font-size: 0.8rem; }

/* ---------- Footer Signature ---------- */
.footer-signature {
  font-size: 0.75rem;
  text-align: center;
  color: var(--muted);
  opacity: 0.6;
  padding: 12px 0;
}
.footer-signature a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-signature a:hover { color: #fff; opacity: 1; }

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card.span-2 { grid-column: span 1; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .capability-map { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 440px; background-attachment: scroll; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    background: var(--surface);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    gap: 16px;
  }
  .hamburger { display: flex; }
  .bento-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .capability-map { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .hero { min-height: 380px; }
  .hero h1 { font-size: 2rem; }
  .step-options { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .form-card { padding: 24px; }
  .product-section { padding: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .hero { min-height: 320px; }
  .hero h1 { font-size: 1.7rem; }
  .btn { padding: 12px 24px; font-size: 0.95rem; }
}
