/* ===================================================================
   ProtoKal — Landing page
   Design tokens, layout, components, responsive, animations
   =================================================================== */

:root {
  --bg: #0A0E1A;
  --bg-2: #0E1424;
  --surface: #131A2C;
  --surface-2: #1A2338;
  --line: rgba(255, 255, 255, 0.09);
  --text: #F5F7FB;
  --muted: #9AA6BF;
  --muted-2: #6B7794;

  --emerald: #10B981;
  --emerald-2: #34D399;
  --indigo: #6366F1;
  --violet: #8B5CF6;
  --amber: #F59E0B;

  --grad: linear-gradient(100deg, #34D399 0%, #6366F1 60%, #8B5CF6 100%);
  --grad-soft: linear-gradient(135deg, rgba(52,211,153,.18), rgba(99,102,241,.18));

  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 0 1px rgba(255,255,255,.06), 0 30px 80px -30px rgba(52, 211, 153, 0.35);
  --container: 1180px;

  --ff-head: 'Sora', system-ui, sans-serif;
  --ff-body: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }

h1, h2, h3, h4 { font-family: var(--ff-head); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--ff-head); font-weight: 600; font-size: 15px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .25s ease, background .25s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { flex: 0 0 auto; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--emerald); color: #05231A;
  box-shadow: 0 10px 30px -8px rgba(16, 185, 129, 0.6);
}
.btn-primary:hover { background: var(--emerald-2); transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(16, 185, 129, 0.7); }

.btn-outline { background: transparent; color: var(--text); border-color: var(--line); }
.btn-outline:hover { border-color: rgba(255,255,255,.35); transform: translateY(-2px); background: rgba(255,255,255,.04); }

.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 18px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { display: grid; place-items: center; }
.logo-word { font-family: var(--ff-head); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; }
.logo-accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav { display: flex; gap: 30px; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s ease; }
.nav a:hover { color: var(--text); }

.header-cta { display: flex; align-items: center; gap: 10px; }

/* Bascule de langue */
.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: transparent; cursor: pointer; font-family: var(--ff-head); font-weight: 700; font-size: 12.5px; }
.lang-switch span { padding: 7px 11px; color: var(--muted); transition: background .2s ease, color .2s ease; }
.lang-switch span.active { background: var(--emerald); color: #05231A; }
.lang-switch-mobile { width: 100%; margin-top: 10px; }
.lang-switch-mobile span { flex: 1; text-align: center; padding: 12px; font-size: 14px; }

/* Hébreu / RTL */
html[dir="rtl"] body,
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4,
html[dir="rtl"] .logo-word, html[dir="rtl"] .btn, html[dir="rtl"] .kicker, html[dir="rtl"] .eyebrow { font-family: 'Heebo', 'Inter', sans-serif; }
html[dir="rtl"] .float-card { direction: rtl; text-align: right; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; gap: 6px; padding: 12px 22px 22px;
  background: rgba(10, 14, 26, 0.96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
}
.mobile-menu a { padding: 12px 6px; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu a.btn { margin-top: 10px; border: none; color: #05231A; }
.mobile-menu.open { display: flex; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: float 16s ease-in-out infinite; }
.b1 { width: 520px; height: 520px; background: radial-gradient(circle, #10B981, transparent 65%); top: -160px; left: -120px; }
.b2 { width: 560px; height: 560px; background: radial-gradient(circle, #6366F1, transparent 65%); top: -100px; right: -160px; animation-delay: -5s; }
.b3 { width: 420px; height: 420px; background: radial-gradient(circle, #8B5CF6, transparent 65%); bottom: -180px; left: 40%; animation-delay: -9s; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(20px,-30px) scale(1.08); } }

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero-copy { animation: heroIn .8s cubic-bezier(.16,1,.3,1) both; }
.hero-visual { animation: heroIn .8s cubic-bezier(.16,1,.3,1) .15s both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--emerald-2); background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.25);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px; letter-spacing: .01em;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 800; margin-bottom: 20px; }
.lead { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--muted); max-width: 560px; margin-bottom: 30px; }
.lead strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-badges { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; }
.hero-badges li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); font-weight: 500; }
.hero-badges .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 12px var(--emerald); }

/* Phone mockup */
.hero-visual { position: relative; display: grid; place-items: center; }
.phone {
  position: relative; width: 300px; height: 600px; border-radius: 44px;
  background: linear-gradient(160deg, #1A2338, #0C1120); padding: 12px;
  box-shadow: var(--shadow-glow); border: 1px solid rgba(255,255,255,.08);
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
.phone-notch { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 120px; height: 22px; background: #05070E; border-radius: 0 0 14px 14px; z-index: 2; }
.phone-screen { height: 100%; border-radius: 34px; background: linear-gradient(180deg, #0E1424, #131A2C); padding: 40px 18px 18px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.app-topbar { display: flex; align-items: center; justify-content: space-between; }
.app-logo { display: flex; align-items: center; gap: 8px; font-family: var(--ff-head); font-weight: 700; font-size: 15px; }
.dotgrad { width: 20px; height: 20px; border-radius: 6px; background: var(--grad); }
.app-badge { font-size: 11px; font-weight: 700; color: #05231A; background: var(--emerald-2); padding: 4px 10px; border-radius: 999px; }
.app-card, .app-sign { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.ac-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); margin-bottom: 4px; }
.ac-title { font-family: var(--ff-head); font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.ac-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 5px 0; border-top: 1px solid var(--line); }
.ac-row b { color: var(--text); }
.sign-line { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 7px 0; border-top: 1px solid var(--line); }
.sign-line:first-of-type { border-top: none; }
.app-btn { margin-top: auto; text-align: center; font-family: var(--ff-head); font-weight: 600; font-size: 13px; color: #05231A; background: var(--emerald); padding: 13px; border-radius: 14px; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 11px;
  background: rgba(19, 26, 44, 0.82); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px;
  box-shadow: var(--shadow); animation: bob 7s ease-in-out infinite;
}
.float-card b { display: block; font-family: var(--ff-head); font-size: 13px; }
.float-card small { color: var(--muted); font-size: 12px; }
.fc1 { top: 40px; left: -30px; animation-delay: -2s; }
.fc2 { bottom: 60px; right: -34px; animation-delay: -4s; }

/* ---------- Strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 34px 22px; text-align: center; }
.stat b { display: block; font-family: var(--ff-head); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-dark { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--emerald-2); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Cards 3 */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.2); box-shadow: var(--shadow); }
.card-ic { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px; }
.ic-emerald { background: rgba(16,185,129,.14); color: var(--emerald-2); }
.ic-indigo { background: rgba(99,102,241,.16); color: #a5b4fc; }
.ic-amber { background: rgba(245,158,11,.14); color: #fcd34d; }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .97rem; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px;
  font-family: var(--ff-head); font-weight: 800; font-size: 1.1rem; color: #05231A;
  background: var(--grad); margin-bottom: 18px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px; transition: border-color .2s ease, transform .2s ease; }
.feat:hover { border-color: rgba(255,255,255,.2); transform: translateY(-3px); }
.feat-ic { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--grad-soft); color: var(--emerald-2); }
.feat h4 { font-size: 1.05rem; margin-bottom: 4px; }
.feat p { color: var(--muted); font-size: .92rem; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .2s ease; }
.faq-item[open] { border-color: rgba(52, 211, 153, 0.35); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-family: var(--ff-head); font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; line-height: 1; color: var(--emerald-2); transition: transform .25s ease; flex: 0 0 auto; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 20px; color: var(--muted); font-size: .98rem; margin: 0; line-height: 1.65; }
html[dir="rtl"] .faq-item summary { flex-direction: row-reverse; text-align: right; }

/* Contact */
.contact { background: var(--bg-2); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.contact-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 16px; }
.contact-copy p { color: var(--muted); font-size: 1.06rem; margin-bottom: 26px; max-width: 460px; }
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.contact-mail { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; color: var(--muted); font-size: 15px; font-weight: 600; transition: color .2s ease; }
.contact-mail svg { flex: 0 0 auto; color: var(--emerald-2); }
.contact-mail:hover { color: var(--text); }

.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.contact-form h3 { font-size: 1.3rem; margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px; color: var(--text); font-family: var(--ff-body); font-size: 15px; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(16,185,129,.15); }
.field textarea { resize: vertical; }
.form-note { text-align: center; font-size: 12.5px; color: var(--muted-2); margin-top: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-top: 54px; background: var(--bg); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 32px; }
.foot-brand .logo-word { font-size: 22px; }
.foot-brand p { color: var(--muted); font-size: .95rem; margin-top: 8px; max-width: 320px; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); font-size: 15px; transition: color .2s; }
.foot-links a:hover { color: var(--text); }
.foot-zones { padding: 18px 22px 0; }
.foot-zones p { color: var(--muted-2); font-size: 13px; text-align: center; margin: 0; }
.foot-bottom { border-top: 1px solid var(--line); margin-top: 18px; padding: 22px 22px 30px; color: var(--muted-2); font-size: 13.5px; }

/* Floating WhatsApp */
.fab-wa {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 34px -6px rgba(37, 211, 102, .6); transition: transform .2s ease;
  animation: pulse 2.6s infinite;
}
.fab-wa:hover { transform: scale(1.08); }
@keyframes pulse { 0% { box-shadow: 0 12px 34px -6px rgba(37,211,102,.6), 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 12px 34px -6px rgba(37,211,102,.6), 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 12px 34px -6px rgba(37,211,102,.6), 0 0 0 0 rgba(37,211,102,0); } }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .burger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; margin-top: 30px; }
  .hero-actions, .hero-badges { justify-content: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .cards-3, .steps, .features { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: 1fr 1fr; gap: 26px; }
}
@media (max-width: 620px) {
  .hero { padding-top: 120px; }
  .cards-3, .steps, .features { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .section { padding: 68px 0; }
  .contact-actions { flex-direction: column; }
  .contact-actions .btn { width: 100%; }
  .footer-inner { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .blob, .phone, .float-card, .fab-wa { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
