/* ============================================================
   LaunchDZ — Landing page
   NCircle design language: sand / ink / lime, Changa + Readex Pro
   ============================================================ */

:root {
  --sand: #f3eee3;
  --sand-2: #e8dfcb;
  --sand-3: #d9cdb2;
  --ink: #141311;
  --ink-2: #2c2a26;
  --muted: #6b6558;
  --lime: #ace405;
  --lime-deep: #8fbe04;
  --white: #fffdf8;
  --border: rgba(20, 19, 17, 0.1);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 50px -22px rgba(20, 19, 17, 0.35);
  --shadow-soft: 0 8px 30px -16px rgba(20, 19, 17, 0.25);
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Readex Pro', system-ui, sans-serif;
  background: var(--sand);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display { font-family: 'Changa', system-ui, sans-serif; line-height: 1.1; }

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

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
[dir="rtl"] .eyebrow { letter-spacing: 0.12em; }

/* Buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 14px 26px;
  font-weight: 600; font-size: 15px; cursor: pointer; border: 0;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--white); box-shadow: var(--shadow-soft); }
.btn-primary:hover { box-shadow: 0 14px 40px -16px rgba(20,19,17,.5); }
.btn-lime { background: var(--lime); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(172,228,5,.6); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: rgba(20,19,17,.04); }

/* Nav ------------------------------------------------------- */
header.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--sand) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: 'Changa'; font-weight: 800; font-size: 20px; }
.logo-chip {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--lime), var(--lime-deep));
  display: grid; place-items: center; color: var(--ink); font-weight: 800; font-size: 20px;
  box-shadow: 0 6px 18px -8px rgba(172,228,5,.8);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14.5px; color: var(--ink-2); font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: inline-flex; border: 1.5px solid var(--border); border-radius: 999px; overflow: hidden; font-size: 13px;
}
.lang-toggle button {
  border: 0; background: transparent; padding: 7px 13px; cursor: pointer; font-family: inherit; font-weight: 600; color: var(--muted);
}
.lang-toggle button.active { background: var(--ink); color: var(--white); }

/* Hero ------------------------------------------------------ */
.hero { position: relative; padding: 84px 0 64px; overflow: hidden; }
/* Static base tint; the clear motion now comes from the aurora blobs below. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(172,228,5,.14), transparent 70%),
    radial-gradient(50% 60% at 10% 30%, rgba(217,205,178,.45), transparent 70%);
}

/* Hero aurora — soft, clearly-visible drifting gradient orbs (injected by app.js). */
.hero-aurora { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-aurora .blob { position: absolute; border-radius: 50%; filter: blur(36px); will-change: transform; }
.hero-aurora .b1 {
  width: 360px; height: 360px; top: -90px; inset-inline-end: 6%;
  background: radial-gradient(circle, rgba(172,228,5,.55), transparent 68%);
  animation: floatA 17s ease-in-out infinite;
}
.hero-aurora .b2 {
  width: 300px; height: 300px; top: 80px; inset-inline-start: -50px;
  background: radial-gradient(circle, rgba(217,205,178,.85), transparent 70%);
  animation: floatB 21s ease-in-out infinite;
}
.hero-aurora .b3 {
  width: 240px; height: 240px; bottom: -80px; inset-inline-start: 44%;
  background: radial-gradient(circle, rgba(172,228,5,.4), transparent 70%);
  animation: floatC 19s ease-in-out infinite;
}
@keyframes floatA { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-55px,65px) scale(1.14); } }
@keyframes floatB { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(65px,-45px) scale(1.1); } }
@keyframes floatC { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-45px,-55px) scale(1.16); } }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); font-weight: 800; letter-spacing: -0.02em; }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: 6px; height: 14px; z-index: -1;
  background: var(--lime); border-radius: 4px; transform: rotate(-1.2deg);
}
.hero p.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); margin-top: 22px; max-width: 30em; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust { margin-top: 28px; display: flex; gap: 22px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 13.5px; }
.hero-trust b { color: var(--ink); font-family: 'Changa'; }

/* Pipeline orb (hero visual) -------------------------------- */
.orb-card {
  position: relative; background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow); padding: 26px;
}
.orb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.orb-title { font-family: 'Changa'; font-weight: 700; font-size: 15px; }
.sla-ring { position: relative; width: 64px; height: 64px; }
.sla-ring svg { transform: rotate(-90deg); }
.sla-ring .track { stroke: var(--sand-2); }
.sla-ring .fill { stroke: var(--lime); stroke-linecap: round; stroke-dasharray: 175.9; stroke-dashoffset: 44; animation: sla 6s ease-in-out infinite; }
@keyframes sla { 0%,100% { stroke-dashoffset: 158; } 50% { stroke-dashoffset: 10; } }
.sla-ring .label { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Changa'; font-weight: 800; font-size: 15px; }
.sla-ring .label small { display:block; font-size: 8px; color: var(--muted); font-weight:600; letter-spacing:.1em; }

.agent-row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; transition: background .3s; }
.agent-row + .agent-row { margin-top: 2px; }
.agent-row.active { background: var(--sand); }
.agent-dot { width: 30px; height: 30px; border-radius: 9px; background: var(--sand-2); display: grid; place-items: center; font-size: 14px; flex-shrink: 0; transition: all .3s; }
.agent-row.active .agent-dot { background: var(--lime); transform: scale(1.08); }
.agent-row.done .agent-dot { background: var(--ink); color: var(--lime); }
.agent-name { font-size: 13.5px; font-weight: 500; flex: 1; }
.agent-state { font-size: 11px; color: var(--muted); font-weight: 600; }
.agent-row.active .agent-state { color: var(--lime-deep); }
.agent-row.active .agent-state::after { content: " ●"; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* Marquee logos --------------------------------------------- */
.band { background: var(--ink); color: var(--sand); padding: 22px 0; overflow: hidden; }
.band-track { display: flex; gap: 48px; white-space: nowrap; animation: marq 24s linear infinite; width: max-content; }
.band-track span { font-family: 'Changa'; font-weight: 600; font-size: 15px; opacity: .7; display:inline-flex; gap:8px; align-items:center;}
.band-track span b { color: var(--lime); }
@keyframes marq { to { transform: translateX(-50%); } }
[dir="rtl"] .band-track { animation-direction: reverse; }

/* Sections -------------------------------------------------- */
section { padding: 88px 0; }
.section-head { max-width: 40em; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.02em; margin-top: 12px; }
.section-head p { color: var(--ink-2); margin-top: 14px; font-size: 17px; }

/* Stats ----------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-soft); }
.stat .num { font-family: 'Changa'; font-weight: 800; font-size: clamp(34px, 4vw, 48px); color: var(--ink); }
.stat .num .unit { color: var(--lime-deep); }
.stat .lbl { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* Feature grid ---------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--sand); display: grid; place-items: center; font-size: 24px; margin-bottom: 18px; }
.feature:nth-child(3n+1) .ic { background: linear-gradient(135deg, var(--lime), var(--lime-deep)); }
.feature h3 { font-size: 19px; font-weight: 700; }
.feature p { color: var(--ink-2); font-size: 15px; margin-top: 8px; }

/* Pipeline stages (how it works) ---------------------------- */
.stages { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; counter-reset: stage; }
.stage { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 18px; position: relative; }
.stage::before { counter-increment: stage; content: "0" counter(stage); font-family: 'Changa'; font-weight: 800; font-size: 13px; color: var(--lime-deep); }
.stage h4 { font-size: 15.5px; font-weight: 700; margin-top: 10px; }
.stage p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.stage .agents { font-size: 11px; color: var(--lime-deep); margin-top: 10px; font-weight: 600; }

/* Languages showcase ---------------------------------------- */
.langs { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.lang-card { border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); background: var(--white); }
.lang-card .tag { font-size: 12px; font-weight: 700; color: var(--lime-deep); letter-spacing: .1em; text-transform: uppercase; }
.lang-card .sample { font-size: 22px; font-family: 'Changa'; font-weight: 700; margin-top: 12px; }
.lang-card .meta { color: var(--muted); font-size: 13px; margin-top: 10px; }

/* Pricing --------------------------------------------------- */
.pricing { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
.price { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; }
.price.featured { background: var(--ink); color: var(--sand); border-color: var(--ink); transform: scale(1.03); box-shadow: var(--shadow); }
.price.featured .muted2 { color: rgba(243,238,227,.6); }
.price .plan { font-family: 'Changa'; font-weight: 700; font-size: 18px; }
.price .amt { font-family: 'Changa'; font-weight: 800; font-size: 40px; margin-top: 14px; }
.price .amt small { font-size: 15px; color: var(--muted); font-weight: 500; }
.price.featured .amt small { color: rgba(243,238,227,.6); }
.price ul { list-style: none; margin: 20px 0; display: grid; gap: 11px; }
.price li { font-size: 14px; display: flex; gap: 9px; align-items: flex-start; }
.price li::before { content: "✓"; color: var(--lime-deep); font-weight: 800; }
.price.featured li::before { color: var(--lime); }
.price .btn { margin-top: auto; justify-content: center; }
.badge-pop { display:inline-block; background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; width:max-content; }

/* FAQ -------------------------------------------------------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 44em; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s; }
.faq-item[open] { box-shadow: var(--shadow-soft); }
.faq-item summary { padding: 20px 24px; font-family: 'Changa'; font-weight: 700; font-size: 16px; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; transition: color .15s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--lime-deep); font-weight: 800; flex-shrink: 0; transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--lime-deep); }
.faq-item p { padding: 0 24px 20px; color: var(--ink-2); line-height: 1.7; font-size: 15px; }

/* CTA ------------------------------------------------------- */
.cta { background: linear-gradient(135deg, var(--ink), var(--ink-2)); color: var(--sand); border-radius: var(--radius-lg); padding: 64px; text-align: center; position: relative; overflow: hidden; }
.cta::after { content:""; position:absolute; width:420px; height:420px; border-radius:50%; background: radial-gradient(circle, rgba(172,228,5,.3), transparent 65%); top:-160px; inset-inline-end:-120px; }
.cta h2 { font-size: clamp(28px,4vw,46px); font-weight: 800; position: relative; }
.cta p { color: rgba(243,238,227,.75); margin-top: 14px; font-size: 17px; position: relative; }
.cta .hero-cta { justify-content: center; position: relative; }

/* Footer ---------------------------------------------------- */
footer { padding: 56px 0 40px; border-top: 1px solid var(--border); margin-top: 20px; }
.foot-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-grid .col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; }
.foot-grid .col a { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 9px; }
.foot-grid .col a:hover { color: var(--ink); }
.foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 13px; }

/* Mobile menu button ----------------------------------------- */
.nav-menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-menu-btn span { display: block; width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-menu-btn.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-menu-btn.active span:nth-child(2) { opacity: 0; }
.nav-menu-btn.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Testimonials ----------------------------------------------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; position: relative; transition: transform .2s, box-shadow .2s; }
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.testimonial .quote { font-size: 44px; color: var(--lime); line-height: 1; font-family: 'Changa'; opacity: .7; }
.testimonial blockquote { font-size: 15.5px; color: var(--ink-2); line-height: 1.7; margin: 14px 0 18px; font-style: italic; }
.testimonial .author { display: flex; align-items: center; gap: 12px; }
.testimonial .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--sand-2); display: grid; place-items: center; font-family: 'Changa'; font-weight: 800; font-size: 16px; color: var(--lime-deep); }
.testimonial .author-name { font-weight: 700; font-size: 14px; }
.testimonial .author-role { color: var(--muted); font-size: 12.5px; }

/* Process timeline (how it works enhanced) ------------------- */
.how-steps { display: flex; flex-direction: column; gap: 36px; position: relative; padding-inline-start: 36px; }
.how-steps::before { content: ""; position: absolute; inset-inline-start: 15px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--lime), var(--sand-2)); }
.how-step { position: relative; }
.how-step::before { content: ""; position: absolute; inset-inline-start: -36px; top: 6px; width: 30px; height: 30px; border-radius: 50%; background: var(--lime); border: 4px solid var(--sand); z-index: 1; }
.how-step:nth-child(even)::before { background: var(--ink); }
.how-step h4 { font-size: 18px; font-weight: 700; }
.how-step p { color: var(--ink-2); font-size: 15px; margin-top: 6px; max-width: 34em; }

/* Trust logos ------------------------------------------------- */
.trust-logos { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; opacity: .5; }
.trust-logo { font-family: 'Changa'; font-weight: 700; font-size: 20px; color: var(--ink); transition: opacity .2s; }
.trust-logo:hover { opacity: .9; }

/* Gradient text utility -------------------------------------- */
.grad-text { background: linear-gradient(135deg, var(--lime), var(--lime-deep)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Pulse dots (for live indicators) --------------------------- */
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); display: inline-block; position: relative; }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--lime); opacity: 0; animation: pulse-ring 2s ease-out infinite; }
@keyframes pulse-ring { 0% { transform: scale(.6); opacity: .6; } 100% { transform: scale(2); opacity: 0; } }

/* Reveal animation ------------------------------------------ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Lang visibility ------------------------------------------- */
[data-fr] { display: none; }
body.fr [data-ar] { display: none; }
body.fr [data-fr] { display: revert; }

/* Responsive ------------------------------------------------ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .features, .langs, .pricing, .testimonials { grid-template-columns: 1fr; }
  .stages { grid-template-columns: repeat(2,1fr); }
  .nav-menu-btn { display: flex; }
  .nav-links { display: none; position: fixed; top: 68px; left: 0; right: 0; background: var(--sand); border-bottom: 1px solid var(--border); flex-direction: column; padding: 20px 24px; gap: 16px; z-index: 99; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .price.featured { transform: none; }
  .cta { padding: 40px 24px; }
  .how-steps { padding-inline-start: 28px; }
  .how-steps::before { inset-inline-start: 10px; }
  .how-step::before { inset-inline-start: -28px; width: 22px; height: 22px; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .stages { grid-template-columns: 1fr; }
  .trust-logos { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
