/* ==========================================================================
   Easyclicks — by F6en
   Marketing site stylesheet (LTR + RTL safe via logical properties)
   ========================================================================== */

:root {
  --ink: #14142b;
  --ink-soft: #3c3c58;
  --muted: #6b6b85;
  --bg: #ffffff;
  --bg-soft: #f5f4fb;
  --line: #e8e6f4;
  --primary: #6c5ce7;
  --primary-dark: #5a48d8;
  --primary-soft: #eeebff;
  --accent: #ffc53d;
  --ok: #10b981;
  --grad: linear-gradient(120deg, #8b7cff 0%, #6c5ce7 55%, #4f46e5 100%);
  --font-display: "Sora", "Cairo", system-ui, sans-serif;
  --font-body: "Inter", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 3px rgba(20, 20, 43, 0.06), 0 4px 14px rgba(20, 20, 43, 0.05);
  --shadow-md: 0 8px 30px rgba(20, 20, 43, 0.10);
  --shadow-lg: 0 20px 60px rgba(76, 61, 182, 0.18);
  --container: 1180px;
}

/* Arabic typography */
html[lang="ar"] {
  --font-display: "Cairo", "Sora", system-ui, sans-serif;
  --font-body: "Cairo", "Inter", system-ui, sans-serif;
}
html[lang="ar"] body { letter-spacing: 0; }
html[lang="ar"] .grad-text,
html[lang="ar"] .kicker { letter-spacing: 0; }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; font-weight: 700; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 18px rgba(108, 92, 231, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(108, 92, 231, 0.45); }
.btn-outline {
  background: #fff;
  color: var(--primary-dark);
  border: 1.5px solid var(--line);
}
.btn-outline:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn-light {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.1); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-mark { width: 34px; height: 34px; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-inline-start: auto;
}
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 2px;
  position: relative;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}
.lang-toggle:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 72px;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(139, 124, 255, 0.16), transparent 60%),
    radial-gradient(700px 420px at -10% 30%, rgba(79, 70, 229, 0.10), transparent 60%),
    var(--bg);
}
html[dir="rtl"] .hero {
  background:
    radial-gradient(900px 480px at 15% -10%, rgba(139, 124, 255, 0.16), transparent 60%),
    radial-gradient(700px 420px at 110% 30%, rgba(79, 70, 229, 0.10), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid #ddd6fb;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}
.badge-sep { opacity: 0.5; }
.hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 20px;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 17.5px;
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: 30px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}
.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.hero-notes li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.14);
  color: var(--ok);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Chat widget (hero) ---------- */
.chat-wrap { display: flex; justify-content: center; }
.chat-card {
  width: 100%;
  max-width: 430px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(120deg, #f4f1ff, #eef0ff);
  border-bottom: 1px solid var(--line);
}
.chat-avatar { width: 38px; height: 38px; border-radius: 12px; }
.chat-id { display: flex; flex-direction: column; line-height: 1.3; }
.chat-name { font-weight: 700; font-size: 15px; font-family: var(--font-display); }
.chat-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ok);
  font-weight: 500;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.35); }
  50% { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
}
.chat-body {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 250px;
  max-height: 330px;
  overflow-y: auto;
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(139, 124, 255, 0.06), transparent 70%),
    #fbfaff;
  scrollbar-width: thin;
}
.msg { display: flex; }
.msg.ai { justify-content: flex-start; }
.msg.user { justify-content: flex-end; }
.bubble {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
  animation: bubble-in 0.25s ease both;
}
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.msg.ai .bubble {
  background: #fff;
  border: 1px solid var(--line);
  border-start-start-radius: 5px;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.msg.user .bubble {
  background: var(--grad);
  color: #fff;
  border-start-end-radius: 5px;
  box-shadow: 0 4px 14px rgba(108, 92, 231, 0.30);
}
.msg.sys { justify-content: center; }
.msg.sys .bubble {
  background: transparent;
  border: none;
  box-shadow: none;
  font-size: 12px;
  color: var(--ok);
  font-weight: 600;
  padding: 2px 10px;
}
.msg-text { white-space: pre-line; }
/* typing indicator */
.typing { display: inline-flex; align-items: center; gap: 5px; padding-inline-end: 2px; }
.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b4abf2;
  animation: blink 1.2s infinite both;
}
.typing i:nth-child(2) { animation-delay: 0.18s; }
.typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}
.chat-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}
#chatInput {
  flex: 1;
  min-width: 0;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--bg-soft);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
#chatInput:focus { border-color: var(--primary); background: #fff; }
#chatInput::placeholder { color: #a0a0b8; }
.chat-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.chat-send:hover { transform: scale(1.06); box-shadow: 0 6px 16px rgba(108, 92, 231, 0.4); }
[dir="rtl"] .chat-send svg { transform: scaleX(-1); }
.chat-foot {
  padding: 0 16px 12px;
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  background: #fff;
}

/* ---------- Stats ---------- */
.stats {
  background: #171532;
  color: #fff;
  padding: 34px 0;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat-num .accent { color: var(--accent); }
.stat-label { font-size: 13.5px; color: rgba(255, 255, 255, 0.65); }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-soft); }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-sub { color: var(--muted); font-size: 16px; }

/* ==========================================================================
   PRODUCT MOCKUP — browser frame + 25% chat / 75% live-build preview
   ========================================================================== */
.mockup-section {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(139, 124, 255, 0.08), transparent 70%),
    var(--bg);
}
.product-frame {
  max-width: 1040px;
  margin-inline: auto;
  border-radius: 20px;
  border: 1px solid #d8d3f0;
  background: #fff;
  box-shadow:
    0 30px 80px rgba(76, 61, 182, 0.18),
    0 8px 24px rgba(20, 20, 43, 0.08);
  overflow: hidden;
}

/* Browser chrome bar */
.browser-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  background: #f7f6fc;
  border-bottom: 1px solid var(--line);
}
.browser-dots { display: inline-flex; gap: 7px; flex-shrink: 0; }
.b-dot { width: 11px; height: 11px; border-radius: 50%; }
.b-red { background: #ff5f57; }
.b-yellow { background: #febc2e; }
.b-green { background: #28c840; }
.browser-url {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 420px;
  margin-inline: auto;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  direction: ltr; /* URLs always LTR */
  text-align: center;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
}
.browser-url svg { flex-shrink: 0; color: var(--ok); }
.browser-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #0a9b6c;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 1.6s ease-in-out infinite;
}

/* Split layout: flex follows document direction (LTR: chat left / RTL: chat right) */
.product-split {
  display: flex;
  min-height: 460px;
  background: #fff;
}

/* === Mock chat panel (25%) === */
.mock-chat {
  flex: 0 0 25%;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  border-inline-end: 1px solid var(--line);
  background: #fbfaff;
}
.mock-chat-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  background: linear-gradient(120deg, #f1edff, #eef0ff);
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 13.5px;
  font-family: var(--font-display);
}
.mock-avatar { width: 26px; height: 26px; border-radius: 8px; }
.mock-online { margin-inline-start: auto; display: inline-flex; }
.mock-online i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 1.8s ease-in-out infinite;
}
.mock-chat-body {
  flex: 1;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.m-msg { display: flex; }
.m-user { justify-content: flex-end; }
.m-ai { justify-content: flex-start; }
.m-bubble {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.5;
  animation: bubble-in 0.4s ease both;
}
.m-user .m-bubble {
  background: var(--grad);
  color: #fff;
  border-start-end-radius: 4px;
  box-shadow: 0 3px 10px rgba(108, 92, 231, 0.28);
}
.m-ai .m-bubble {
  background: #fff;
  border: 1px solid var(--line);
  border-start-start-radius: 4px;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.m-bubble-sm { font-size: 12px; color: var(--primary-dark); font-weight: 600; }
.m-ai-greeting { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.m-build-list { display: flex; flex-direction: column; gap: 5px; }
.m-build-list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12px;
  color: var(--ink-soft);
}
.m-build-list i {
  flex-shrink: 0;
  font-style: normal;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.14);
  color: var(--ok);
  font-size: 9px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.m-build-list i.pending {
  background: var(--primary-soft);
  color: var(--primary);
  animation: blink 1.4s infinite both;
}
.mock-chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px 12px;
  padding: 9px 9px 9px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 12px;
  color: #a0a0b8;
}
[dir="rtl"] .mock-chat-input { padding: 9px 14px 9px 9px; }
.m-placeholder { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-send-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
}
[dir="rtl"] .m-send-btn svg { transform: scaleX(-1); }

/* === Mock preview panel (75%) === */
.mock-preview {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px 22px 16px;
  background:
    radial-gradient(500px 260px at 80% 0%, rgba(139, 124, 255, 0.05), transparent 70%),
    #fdfdfe;
  overflow: hidden;
}

/* Fake website nav */
.fake-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.fake-logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  font-size: 14px;
  font-family: var(--font-display);
  color: var(--primary-dark);
}
.fake-logo svg { color: var(--primary); }
.fake-nav-items { display: inline-flex; gap: 10px; margin-inline-start: auto; }
.f-nav-item {
  display: block;
  width: 44px;
  height: 8px;
  border-radius: 4px;
  background: var(--line);
}
.fake-nav-btn {
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(108, 92, 231, 0.30);
}

/* Fake hero */
.fake-hero {
  display: flex;
  align-items: stretch;
  gap: 20px;
  padding: 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f7f5ff, #eef2ff);
  border: 1px solid #e4defb;
  margin-bottom: 18px;
  flex: 1;
  min-height: 150px;
}
.fake-hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.fake-hero-img {
  flex: 0 0 42%;
  border-radius: 10px;
  overflow: hidden;
  background: #e8e6f4;
}
.skel-line {
  height: 11px;
  border-radius: 6px;
  background: linear-gradient(90deg, #dcd8ef 25%, #ece9f8 50%, #dcd8ef 75%);
  background-size: 200% 100%;
  animation: shimmer 2.2s linear infinite;
}
.skel-w80 { width: 80%; height: 17px; }
.skel-w60 { width: 60%; }
.skel-w45 { width: 45%; }
.skel-w70 { width: 70%; }
.skel-w65 { width: 65%; }
.skel-w50 { width: 50%; }
.skel-btn {
  width: 110px;
  height: 32px;
  border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.30);
  margin-top: 6px;
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}
.shimmer { animation: shimmer 1.6s linear infinite; }

/* Fake section label + services grid */
.fake-section-label {
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 2px 10px;
}
.fake-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
.fake-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.fake-card-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--primary-soft);
  margin-bottom: 2px;
}
.fake-card-building {
  border: 1.5px dashed #cfc8f5;
  background: #fbfaff;
  position: relative;
}
.fake-progress {
  height: 5px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 6px;
}
.fake-progress-fill {
  display: block;
  height: 100%;
  width: 62%;
  border-radius: 3px;
  background: var(--grad);
  animation: progress-grow 3.2s ease-in-out infinite alternate;
}
@keyframes progress-grow {
  from { width: 48%; }
  to { width: 78%; }
}

/* Building status bar */
.build-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #ddd6fb;
  box-shadow: var(--shadow-sm);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary-dark);
}
[dir="rtl"] .build-status { align-self: flex-end; }
.build-spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--primary-soft);
  border-top-color: var(--primary);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-container { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item[open] {
  border-color: #d0c8f7;
  box-shadow: var(--shadow-md);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  transition: background 0.15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--bg-soft); }
.faq-q { flex: 1; }
.faq-chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-soft);
  position: relative;
  transition: transform 0.25s ease, background 0.25s ease;
}
.faq-chevron::before,
.faq-chevron::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--primary-dark);
  border-radius: 2px;
}
.faq-chevron::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
.faq-chevron::after { width: 2px; height: 12px; transform: translate(-50%, -50%); transition: transform 0.25s ease, opacity 0.25s ease; }
.faq-item[open] .faq-chevron { background: var(--primary); transform: rotate(180deg); }
.faq-item[open] .faq-chevron::before { background: #fff; }
.faq-item[open] .faq-chevron::after { background: #fff; transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-a {
  padding: 0 24px 22px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.75;
  border-top: 1px dashed var(--line);
  padding-top: 18px;
  margin: 0 24px;
  padding-inline: 0;
}
.faq-a p { color: var(--ink-soft); }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px rgba(108, 92, 231, 0.35);
}
.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--muted); }
/* connector line between steps (desktop only) */
@media (min-width: 1024px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 52px;
    inset-inline-end: -22px;
    width: 22px;
    border-top: 2px dashed #cfc8f5;
  }
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d9d2fb; }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  margin-bottom: 18px;
}
.feature h3 { font-size: 17.5px; margin-bottom: 10px; }
.feature p { font-size: 14.5px; color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 22px;
  padding: 34px 30px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.price-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, #faf9ff 0%, #ffffff 40%);
}
.plan-flag {
  position: absolute;
  top: -14px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  padding: 5px 16px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(108, 92, 231, 0.4);
  white-space: nowrap;
}
[dir="rtl"] .plan-flag { transform: translateX(50%); }
.plan-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}
.plan-desc { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.price-row, .maint-opt {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.price-row { margin-bottom: 14px; }
.price {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price small { font-size: 20px; font-weight: 700; color: var(--muted); margin-inline-start: 6px; letter-spacing: 0; }
/* Two hosting options per tier: "on your own server" / "on F6en's managed server" */
.maint-group { margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.maint-group-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.maint-opt + .maint-opt { margin-top: 10px; }
.maint-price {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1;
}
.maint-price small { font-size: 14px; font-weight: 600; color: var(--muted); margin-inline-start: 3px; }
.maint-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.price-cad { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.plan-feats { display: flex; flex-direction: column; gap: 11px; margin-bottom: 28px; flex: 1; }
.plan-feats li {
  position: relative;
  padding-inline-start: 28px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.plan-feats li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pricing-note {
  text-align: center;
  margin-top: 30px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- Testimonials ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.quote {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.stars { color: var(--accent); font-size: 15px; letter-spacing: 3px; }
.quote blockquote {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
  flex: 1;
}
.quote figcaption { font-size: 13.5px; font-weight: 600; color: var(--muted); }

/* ---------- CTA ---------- */
.cta-section { padding: 40px 0 92px; }
.cta-panel {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--grad);
  border-radius: 28px;
  padding: 72px 40px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-panel::before,
.cta-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.cta-panel::before { width: 340px; height: 340px; top: -160px; inset-inline-end: -100px; }
.cta-panel::after { width: 260px; height: 260px; bottom: -140px; inset-inline-start: -80px; }
.cta-panel h2 {
  position: relative;
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cta-panel > p {
  position: relative;
  max-width: 60ch;
  margin: 0 auto 32px;
  font-size: 16.5px;
  color: rgba(255, 255, 255, 0.88);
}
.cta-actions { position: relative; justify-content: center; }
.cta-fine {
  position: relative;
  margin-top: 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #14122b;
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand .brand-word { color: #fff; }
.footer-brand p { margin-top: 16px; font-size: 14px; max-width: 38ch; color: rgba(255, 255, 255, 0.55); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-col a { font-size: 14.5px; transition: color 0.15s ease; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 14px; color: rgba(255, 255, 255, 0.5); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1023px) {
  .hero { padding: 60px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-ctas, .hero-notes { justify-content: center; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .price-card.featured { order: -1; }
  .quotes { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .mock-chat { flex: 0 0 30%; }
  .fake-nav-items { display: none; }
}

@media (max-width: 820px) {
  /* Stack the product mockup: chat on top (full width), preview below */
  .product-split { flex-direction: column; min-height: 0; }
  .mock-chat {
    flex: none;
    width: 100%;
    border-inline-end: none;
    border-bottom: 1px solid var(--line);
  }
  .mock-chat-body { min-height: 0; }
  .m-bubble { font-size: 12px; }
  .mock-preview { min-height: 0; }
  .fake-hero { flex-direction: column; }
  .fake-hero-img { flex: none; height: 110px; }
  .fake-services { grid-template-columns: 1fr 1fr; }
  .fake-card:last-child { display: none; }
  .browser-url { display: none; }
}

@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .main-nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 10px 24px 16px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav a { padding: 12px 4px; font-size: 15.5px; border-bottom: 1px solid var(--bg-soft); }
  .main-nav a::after { display: none; }
  .nav-burger { display: inline-flex; }
  .header-cta { display: none; }
  .header-inner { gap: 14px; }
  .steps { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .cta-panel { padding: 56px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .btn { width: auto; }
  .hero-ctas .btn { min-width: 190px; }
  .fake-services { grid-template-columns: 1fr; }
  .fake-card:last-child { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
