:root {
  --brand: #b9491e;
  --brand-hover: #a13e1a;
  --brand-light: #fff3ec;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --text-dim: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f1f3f5;
  --bg: #ffffff;
  --bg-alt: #fafbfc;
  --bg-dark: #1a1a1a;
  --green: #2e7d32;
  --red: #c62828;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", "Tahoma", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] body { font-family: "Segoe UI", Tahoma, Arial, sans-serif; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }
.text-center { text-align: center; }

/* ========== TOPBAR ========== */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-logo { width: 36px; height: 36px; border-radius: 8px; }
.brand-name { font-size: 18px; }
.brand-en { color: var(--brand); margin-inline-start: 2px; }
.topnav { display: flex; align-items: center; gap: 24px; }
.topnav a { color: #374151; font-size: 14px; font-weight: 500; transition: color 0.15s; }
.topnav a:hover { color: var(--brand); }
#lang-switcher {
  padding: 5px 8px; font-size: 13px;
  background: #fff; color: var(--text);
  border: 1px solid var(--border); border-radius: 6px;
  cursor: pointer;
}

/* ========== HERO ========== */
.hero { padding: 80px 0 100px; background: linear-gradient(180deg, #fff 0%, var(--brand-light) 100%); }
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
}
.hero-text h1 {
  font-size: 56px; line-height: 1.15; font-weight: 800;
  margin-bottom: 20px; letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 19px; color: var(--text-muted);
  margin-bottom: 32px; max-width: 560px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Visual: stylised dashboard preview */
.hero-visual { display: flex; justify-content: center; }
.hero-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  width: 100%; max-width: 420px;
  box-shadow: 0 20px 50px -10px rgba(185, 73, 30, 0.15);
}
.hero-card-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 8px;
  font-size: 15px; font-weight: 500;
  margin-bottom: 10px;
}
.hero-card-row:last-child { margin-bottom: 0; }
.hero-card-row .dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0;
}
.hero-card-row.green { background: #e8f5e9; color: var(--green); }
.hero-card-row.green .dot { background: var(--green); }
.hero-card-row.red { background: #fef2f2; color: var(--red); }
.hero-card-row.red .dot { background: var(--red); }
.hero-card-row.gray { background: #f3f4f6; color: var(--text-muted); }
.hero-card-row.gray .dot { background: var(--text-muted); }

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  text-align: center;
}
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-block { display: block; width: 100%; }

/* ========== SECTIONS ========== */
.section { padding: 90px 0; }
.section-light { background: var(--bg-alt); }
.section-title {
  font-size: 38px; line-height: 1.2; font-weight: 800;
  text-align: center; margin-bottom: 16px; letter-spacing: -0.02em;
}
.section-sub {
  font-size: 18px; color: var(--text-muted);
  text-align: center; max-width: 720px; margin: 0 auto 56px;
}

/* ========== PROBLEM ========== */
.problem-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; margin-top: 48px;
}
.problem-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}
.problem-icon { font-size: 36px; margin-bottom: 14px; }
.problem-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.problem-card p { color: var(--text-muted); font-size: 15px; }

/* ========== SOLUTION ========== */
.solution-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 48px;
}
.solution-card {
  padding: 32px 28px;
  border: 2px solid var(--brand);
  border-radius: 12px;
  background: #fff;
  position: relative;
}
.solution-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--brand-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 18px;
}
.solution-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.solution-card p { color: var(--text-muted); font-size: 15px; line-height: 1.65; }

/* ========== FEATURES ========== */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 48px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.2s;
}
.feature-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(185, 73, 30, 0.15);
}
.feature-icon { font-size: 32px; margin-bottom: 14px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 14px; }

/* ========== HOW IT WORKS ========== */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; margin-top: 56px;
  position: relative;
}
.step { text-align: center; position: relative; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800;
  margin: 0 auto 20px;
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 14px; }

/* ========== TESTIMONIALS ========== */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 48px;
}
.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  position: relative;
}
.testimonial-quote {
  position: absolute;
  top: -8px; inset-inline-start: 24px;
  width: 44px; height: 44px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 800; line-height: 1;
  font-family: Georgia, serif;
}
.testimonial-text {
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  margin: 14px 0 24px;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand-light); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 15px; color: var(--text); }
.testimonial-role { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ========== FLOATING CTA ========== */
.floating-cta {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 999;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: #25D366;
  color: #fff;
  border-radius: 999px;
  font-weight: 700; font-size: 15px;
  box-shadow: 0 8px 24px -4px rgba(37, 211, 102, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: float-pulse 2.5s ease-in-out infinite;
}
.floating-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(37, 211, 102, 0.6);
  animation: none;
}
.floating-cta-icon { width: 22px; height: 22px; }
@keyframes float-pulse {
  0%, 100% { box-shadow: 0 8px 24px -4px rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 8px 24px -4px rgba(37, 211, 102, 0.5), 0 0 0 12px rgba(37, 211, 102, 0); }
}

/* ========== PRICING ========== */
.price-card {
  max-width: 460px; margin: 56px auto 0;
  background: #fff;
  border: 2px solid var(--brand);
  border-radius: 16px;
  padding: 48px 36px;
  text-align: center;
  box-shadow: 0 30px 60px -20px rgba(185, 73, 30, 0.2);
}
.price-tag {
  display: flex; justify-content: center; align-items: baseline; gap: 4px;
  margin-bottom: 8px;
}
.price-currency { font-size: 28px; font-weight: 600; color: var(--text-muted); }
.price-amount { font-size: 72px; font-weight: 800; line-height: 1; color: var(--text); }
.price-period { font-size: 18px; color: var(--text-muted); margin-inline-start: 6px; }
.price-custom-text { font-size: 36px; font-weight: 800; line-height: 1.2; color: var(--text); text-align: center; }
.price-name { font-size: 17px; color: var(--text-muted); margin-bottom: 32px; font-weight: 500; }
.price-features {
  list-style: none; text-align: start;
  margin-bottom: 32px;
}
.price-features li {
  padding: 9px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--border-light);
}
.price-features li:last-child { border-bottom: none; }
.price-note {
  margin-top: 20px;
  font-size: 14px; color: var(--text-muted);
}

/* ========== FAQ ========== */
.faq-list { margin-top: 48px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.15s;
}
.faq-item[open] { border-color: var(--brand); }
.faq-item summary {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 24px; font-weight: 400; color: var(--brand);
  transition: transform 0.2s;
  flex-shrink: 0; margin-inline-start: 12px;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  padding: 0 22px 18px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ========== CTA SECTION ========== */
.section-cta {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-hover) 100%);
  color: #fff;
}
.section-cta h2 {
  font-size: 38px; font-weight: 800;
  margin-bottom: 14px; letter-spacing: -0.02em;
}
.section-cta p {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.95;
}
.section-cta .btn-primary {
  background: #fff; color: var(--brand); border-color: #fff;
}
.section-cta .btn-primary:hover {
  background: var(--brand-light); border-color: var(--brand-light);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-dark); color: #cbd5e1;
  padding: 56px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 48px; height: 48px; border-radius: 10px; }
.footer-name { color: #fff; font-weight: 700; font-size: 16px; }
.footer-tag { font-size: 13px; color: #9ca3af; margin-top: 4px; }
.footer-contact, .footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-contact a, .footer-links a {
  font-size: 14px; color: #cbd5e1;
  transition: color 0.15s;
}
.footer-contact a:hover, .footer-links a:hover { color: var(--brand); }
.footer-copy {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 12px; color: #6b7280;
  padding-top: 32px; margin-top: 32px;
  border-top: 1px solid #374151;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-text h1 { font-size: 42px; }
  .hero-sub { margin: 0 auto 28px; }
  .hero-cta { justify-content: center; }
  .hero-visual { order: -1; }

  .section { padding: 70px 0; }
  .section-title { font-size: 30px; }
  .section-sub { font-size: 16px; }

  .problem-grid { grid-template-columns: 1fr; gap: 16px; }
  .solution-grid { grid-template-columns: 1fr; gap: 18px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 32px; }

  .price-card { padding: 36px 24px; }
  .price-amount { font-size: 56px; }
  .price-custom-text { font-size: 30px; }

  .section-cta h2 { font-size: 28px; }
  .section-cta p { font-size: 16px; }

  .footer-inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-contact, .footer-links { align-items: center; }
}

@media (max-width: 600px) {
  .topnav { gap: 12px; }
  /* Hide section anchors on mobile, but keep the login link (full URL) and lang switcher visible */
  .topnav a[href^="#"] { display: none; }
  .topbar-inner { padding: 12px 16px; }
  .container { padding: 0 16px; }

  .hero { padding: 50px 0 70px; }
  .hero-text h1 { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }

  .section { padding: 56px 0; }
  .section-title { font-size: 24px; }

  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }

  .price-amount { font-size: 48px; }
  .price-currency { font-size: 22px; }
  .price-custom-text { font-size: 26px; }

  /* Floating CTA: icon-only on small screens */
  .floating-cta { padding: 14px; bottom: 16px; inset-inline-end: 16px; }
  .floating-cta-text { display: none; }
}
