/* ==========================================================================
   EASY AMADEUS - PUBLIC LANDING PAGE
   Reuses tokens from style.css. All selectors are prefixed with .lp-
   ========================================================================== */

.lp-page {
  background: var(--bg-main);
}

.lp-main {
  flex: 1 0 auto;
}

/* ---------- Header ---------- */
.lp-header .nav-container {
  gap: 1rem;
}

.lp-nav {
  flex-wrap: wrap;
  justify-content: center;
}

.lp-nav .nav-btn {
  white-space: nowrap;
}

.lp-lang-btn {
  flex-shrink: 0;
  font-family: 'Inter', 'Cairo', system-ui, sans-serif;
  color: var(--text-main);
}

/* ---------- Buttons ---------- */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.8rem 1.3rem;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
}

.lp-btn-primary {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-medium));
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.28);
}

.lp-btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-forest), var(--brand-primary));
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.36);
}

.lp-btn-ghost {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-strong);
}

.lp-btn-ghost:hover {
  border-color: var(--brand-accent);
  color: var(--brand-primary);
  background: var(--brand-light);
}

.lp-btn-light {
  background: #ffffff;
  color: var(--brand-forest);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.lp-btn-light:hover {
  background: var(--brand-light);
  color: var(--brand-dark);
  transform: translateY(-1px);
}

.lp-btn-sm {
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
}

.lp-btn-lg {
  padding: 0.95rem 1.6rem;
  font-size: 1rem;
}

.lp-arrow {
  font-size: 1.05em;
  line-height: 1;
}

body[dir="ltr"] .lp-arrow {
  transform: scaleX(-1);
}

/* ---------- Hero ---------- */
.lp-hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 3.5rem;
  background:
    radial-gradient(circle at 12% 18%, rgba(34, 197, 94, 0.14) 0%, transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(16, 185, 129, 0.12) 0%, transparent 45%),
    linear-gradient(180deg, #f0fdf4 0%, var(--bg-main) 100%);
}

.lp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
}

.lp-hero-copy {
  max-width: 620px;
}

.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-surface);
  border: 1px solid var(--brand-tint);
  color: var(--brand-primary);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.lp-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--brand-dark);
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.lp-hero-sub {
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  line-height: 1.9;
  color: var(--text-muted);
  max-width: 58ch;
}

.lp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.lp-checks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 1.5rem;
  padding: 0;
}

.lp-checks li {
  position: relative;
  padding-inline-start: 1.5rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
}

.lp-checks li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-primary);
  font-size: 0.7rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Terminal mock ---------- */
.lp-hero-visual {
  position: relative;
  min-height: 340px;
}

.lp-terminal {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #04140c;
  border: 1px solid rgba(34, 197, 94, 0.28);
  box-shadow: 0 24px 60px rgba(4, 20, 12, 0.35);
  direction: ltr;
  text-align: left;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.lp-term-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.85rem;
  background: #0a2417;
  border-bottom: 1px solid rgba(34, 197, 94, 0.2);
}

.lp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.lp-dot.red { background: #ef4444; }
.lp-dot.yellow { background: #f59e0b; }
.lp-dot.green { background: #22c55e; }

.lp-term-title {
  margin-inline-start: auto;
  font-size: 0.68rem;
  letter-spacing: 0.8px;
  color: #4ade80;
  opacity: 0.8;
}

.lp-term-body {
  padding: 1rem 1.1rem 1.2rem;
  font-size: 0.8rem;
  line-height: 1.95;
  color: #86efac;
}

.lp-prompt {
  color: #22c55e;
  font-weight: 700;
  margin-inline-end: 0.35rem;
}

.lp-dim {
  color: #5f9670;
  padding-inline-start: 0.9rem;
}

.lp-ok {
  color: #34d399;
  font-weight: 700;
}

.lp-cursor {
  color: #22c55e;
  animation: lpBlink 1.1s steps(2, start) infinite;
}

@keyframes lpBlink {
  to { visibility: hidden; }
}

.lp-float-card {
  position: absolute;
  z-index: 3;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.65rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.3;
}

.lp-float-card strong {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--brand-primary);
}

.lp-float-card span {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}

.lp-float-1 {
  inset-inline-start: -1rem;
  bottom: 1.5rem;
}

.lp-float-2 {
  inset-inline-end: -0.75rem;
  top: 1.25rem;
}

/* ---------- Stats ---------- */
.lp-stats {
  padding: 0 0 1rem;
  margin-top: -1.5rem;
  position: relative;
  z-index: 4;
}

.lp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.4rem 1rem;
}

.lp-stat {
  text-align: center;
  padding: 0.25rem 0.5rem;
  border-inline-end: 1px solid var(--border-light);
}

.lp-stat:last-child {
  border-inline-end: none;
}

.lp-stat strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 900;
  color: var(--brand-primary);
  line-height: 1.2;
}

.lp-stat span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ---------- Sections ---------- */
.lp-section {
  padding: 4.5rem 0;
}

.lp-section-alt {
  background: var(--bg-subtle);
}

.lp-section-head {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.lp-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--brand-primary);
  background: var(--brand-light);
  border: 1px solid var(--brand-tint);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  margin-bottom: 0.85rem;
}

.lp-section-head h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  font-weight: 900;
  line-height: 1.35;
  color: var(--brand-dark);
  margin-bottom: 0.6rem;
}

.lp-section-head p {
  color: var(--text-soft);
  font-size: 0.96rem;
  line-height: 1.8;
}

/* ---------- Features ---------- */
.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.lp-feature {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.lp-feature:hover {
  transform: translateY(-3px);
  border-color: var(--brand-tint);
  box-shadow: var(--shadow-lg);
}

.lp-feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-light);
  border: 1px solid var(--brand-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
}

.lp-feature h3 {
  font-size: 1.02rem;
  font-weight: 900;
  color: var(--brand-dark);
  margin-bottom: 0.4rem;
}

.lp-feature p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ---------- Steps ---------- */
.lp-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  counter-reset: none;
  padding: 0;
}

.lp-step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.lp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-medium));
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(22, 163, 74, 0.3);
  margin-bottom: 0.85rem;
}

.lp-step h3 {
  font-size: 1rem;
  font-weight: 900;
  color: var(--brand-dark);
  margin-bottom: 0.35rem;
}

.lp-step p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ---------- FAQ ---------- */
.lp-faq-wrap {
  max-width: 860px;
}

.lp-faq {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lp-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.lp-faq-item[open] {
  border-color: var(--brand-tint);
  box-shadow: var(--shadow-md);
}

.lp-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lp-faq-item summary::-webkit-details-marker {
  display: none;
}

.lp-faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand-primary);
  font-size: 1rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lp-faq-item[open] summary::after {
  content: "−";
  background: var(--brand-primary);
  color: #ffffff;
}

.lp-faq-item p {
  padding: 0 0 1.1rem;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text-muted);
}

/* ---------- CTA band ---------- */
.lp-cta {
  padding: 4rem 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(34, 197, 94, 0.28) 0%, transparent 45%),
    linear-gradient(135deg, var(--brand-dark), var(--brand-forest));
}

.lp-cta-inner {
  text-align: center;
  max-width: 720px;
}

.lp-cta h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.lp-cta p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  margin-bottom: 1.6rem;
}

/* ---------- Footer ---------- */
.lp-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.lp-footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.lp-footer-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  padding: 2px;
}

.lp-footer-logo span {
  font-size: 1.2rem;
  font-weight: 900;
  color: #ffffff;
}

.lp-footer-brand p {
  font-size: 0.88rem;
  line-height: 1.85;
  color: #94a3b8;
  max-width: 42ch;
}

.lp-footer-col h3 {
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: 0.85rem;
}

.lp-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lp-footer-col li {
  margin-bottom: 0.55rem;
  font-size: 0.88rem;
}

.lp-footer-col a {
  color: #cbd5e1;
  font-weight: 600;
}

.lp-footer-col a:hover {
  color: var(--brand-accent);
}

.lp-footer-disclaimer {
  font-size: 0.78rem;
  color: #94a3b8;
}

/* ---------- Dark mode ---------- */
body.dark-mode .lp-hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(34, 197, 94, 0.12) 0%, transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(13, 71, 42, 0.2) 0%, transparent 45%),
    linear-gradient(180deg, #0b1220 0%, #101a2a 100%);
}

body.dark-mode .lp-hero h1,
body.dark-mode .lp-section-head h2,
body.dark-mode .lp-feature h3,
body.dark-mode .lp-step h3,
body.dark-mode .lp-faq-item summary {
  color: #4ade80;
}

body.dark-mode .lp-badge {
  background: var(--bg-surface);
  border-color: var(--brand-tint);
  color: var(--brand-accent);
}

body.dark-mode .lp-btn-ghost {
  background: var(--bg-surface);
  color: var(--text-main);
}

body.dark-mode .lp-btn-light {
  background: var(--brand-accent);
  color: var(--brand-dark);
}

body.dark-mode .lp-btn-light:hover {
  background: #ffffff;
  color: var(--brand-dark);
}

body.dark-mode .lp-stats-grid {
  background: var(--bg-card);
}

body.dark-mode .lp-float-card {
  background: var(--bg-card);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .lp-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .lp-hero-copy {
    max-width: none;
    text-align: center;
    margin: 0 auto;
  }

  .lp-hero-sub {
    margin-inline: auto;
  }

  .lp-hero-actions,
  .lp-checks {
    justify-content: center;
  }

  .lp-hero-visual {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

  .lp-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .lp-nav {
    display: none;
  }

  .lp-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 0.5rem;
  }

  .lp-stat:nth-child(2) {
    border-inline-end: none;
  }

  .lp-stat {
    border-inline-end: none;
  }

  .lp-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lp-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .lp-hero {
    padding: 2.75rem 0 2.5rem;
  }

  .lp-section {
    padding: 3rem 0;
  }

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

  .lp-float-1 {
    inset-inline-start: -0.35rem;
    bottom: -0.9rem;
  }

  .lp-float-2 {
    inset-inline-end: -0.35rem;
    top: -0.9rem;
  }

  .lp-hero-actions .lp-btn {
    width: 100%;
  }

  .lp-footer-grid {
    grid-template-columns: 1fr;
  }

  .lp-btn-sm {
    padding: 0.55rem 0.8rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 420px) {
  .lp-header .nav-container {
    height: auto;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    flex-wrap: wrap;
  }

  .lp-header .brand-sub {
    display: none;
  }
}
