/* ================================================================ */
/*              FEATURE DETAIL PAGES — Shared Styles                */
/* ================================================================ */

/* ---------- HERO ---------- */
.fd-hero{
  max-width:1200px;margin:0 auto;padding:7rem 2rem 0;
  display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center;
}
.fd-hero-content{max-width:540px}
.fd-hero-label{
  display:inline-flex;align-items:center;gap:.5rem;
  font-size:.65rem;font-weight:700;text-transform:uppercase;letter-spacing:.14em;
  color:var(--o);margin-bottom:1.25rem;
}
.fd-hero-label::before{content:'';width:18px;height:1.5px;background:var(--o)}
.fd-hero h1{
  font-size:clamp(2rem,4vw,2.8rem);font-weight:300;
  letter-spacing:-.03em;line-height:1.15;margin-bottom:1rem;
}
.fd-hero h1 em{
  font-family:'Playfair Display',serif;font-weight:700;font-style:italic;
  background:linear-gradient(135deg,var(--o),var(--od));
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;
}
.fd-hero-desc{font-size:1rem;color:var(--tl);line-height:1.75;margin-bottom:1.75rem}
.fd-hero-cta{display:flex;gap:.75rem;flex-wrap:wrap}
.fd-hero-visual{position:relative;display:flex;justify-content:center;align-items:center}

/* ---------- STATS BAR ---------- */
.fd-stats{
  max-width:1200px;margin:3rem auto;padding:0 2rem;
  display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;
}
.fd-stat{
  text-align:center;padding:1.5rem 1rem;
  border-radius:18px;border:1.5px solid var(--b);
  background:rgba(255,255,255,.5);
  transition:all .4s cubic-bezier(.22,1,.36,1);
}
.fd-stat:hover{
  border-color:var(--op);transform:translateY(-4px);
  box-shadow:0 12px 32px rgba(229,139,64,.08);
}
.fd-stat-icon{font-size:1.5rem;margin-bottom:.5rem;display:block}
.fd-stat-val{
  font-family:'Playfair Display',serif;font-size:1.6rem;
  font-weight:700;color:var(--o);line-height:1;margin-bottom:.35rem;
}
.fd-stat-label{
  font-size:.68rem;color:var(--tl);font-weight:500;
  text-transform:uppercase;letter-spacing:.06em;
}

/* ---------- DETAIL SECTIONS ---------- */
.fd-sections{max-width:1200px;margin:0 auto;padding:2rem 2rem 0}

.fd-section{
  display:grid;grid-template-columns:1fr 1fr;gap:4rem;
  align-items:center;padding:4rem 0;
  border-top:1px solid var(--b);
}
.fd-section:first-child{border-top:none}
.fd-section.flip .fd-section-text{order:2}
.fd-section.flip .fd-section-visual{order:1}

.fd-section-text{}
.fd-section-num{
  font-family:'Playfair Display',serif;font-size:4rem;font-weight:700;
  color:rgba(229,139,64,.06);line-height:1;letter-spacing:-.04em;margin-bottom:-.25rem;
}
.fd-section-text h2{
  font-size:1.35rem;font-weight:700;letter-spacing:-.02em;
  margin-bottom:.75rem;line-height:1.3;
}
.fd-section-text>p{font-size:.92rem;color:var(--tl);line-height:1.75;margin-bottom:1.25rem}
.fd-section-visual{position:relative}

/* Feature list inside sections */
.fd-features{display:flex;flex-direction:column;gap:.5rem;margin-top:1rem}
.fd-feat{
  display:flex;align-items:flex-start;gap:.75rem;
  padding:.75rem 1rem;border-radius:14px;
  border:1px solid transparent;
  transition:all .3s cubic-bezier(.22,1,.36,1);
}
.fd-feat:hover{background:rgba(229,139,64,.03);border-color:var(--b)}
.fd-feat-icon{
  width:36px;height:36px;border-radius:10px;
  background:rgba(229,139,64,.07);
  display:flex;align-items:center;justify-content:center;
  font-size:1rem;flex-shrink:0;
}
.fd-feat h4{font-size:.88rem;font-weight:600;margin-bottom:.2rem}
.fd-feat p{font-size:.78rem;color:var(--tl);line-height:1.6}

/* Inline tags */
.fd-tags{display:flex;flex-wrap:wrap;gap:.3rem;margin-top:.75rem}
.fd-tag{
  padding:.25rem .6rem;border-radius:100px;font-size:.62rem;font-weight:600;
  color:var(--o);border:1px solid rgba(229,139,64,.15);
  background:rgba(229,139,64,.04);transition:all .3s;
}
.fd-tag:hover{background:rgba(229,139,64,.08);border-color:rgba(229,139,64,.25)}

/* ---------- VISUAL CARDS (reusable mockup containers) ---------- */
.fd-mock{
  border:1.5px solid var(--b);border-radius:20px;
  padding:1.25rem;background:rgba(255,255,255,.6);
  box-shadow:0 4px 24px rgba(0,0,0,.03);
  transition:all .4s cubic-bezier(.22,1,.36,1);
}
.fd-mock:hover{
  border-color:var(--op);
  box-shadow:0 16px 48px rgba(229,139,64,.08);
  transform:translateY(-4px);
}

/* ---------- CAPABILITIES GRID ---------- */
.fd-caps-wrap{
  max-width:1200px;margin:0 auto;padding:4rem 2rem;
  border-top:1px solid var(--b);
}
.fd-caps-header{text-align:center;margin-bottom:3rem}
.fd-caps-header .si-lab{justify-content:center}
.fd-caps-header .si-lab::before{display:none}
.fd-caps-header h2{
  font-size:clamp(1.8rem,3.5vw,2.4rem);font-weight:300;
  letter-spacing:-.03em;line-height:1.2;
}
.fd-caps-header h2 em{
  font-family:'Playfair Display',serif;font-weight:700;font-style:italic;color:var(--o);
}

.fd-caps{
  display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem;
}
.fd-cap{
  padding:1.5rem;border-radius:18px;border:1.5px solid var(--b);
  background:rgba(255,255,255,.5);
  transition:all .4s cubic-bezier(.22,1,.36,1);
}
.fd-cap:hover{
  border-color:var(--op);transform:translateY(-5px);
  box-shadow:0 16px 40px rgba(229,139,64,.08);
}
.fd-cap-icon{
  width:44px;height:44px;border-radius:12px;
  background:rgba(229,139,64,.07);
  display:flex;align-items:center;justify-content:center;
  font-size:1.3rem;margin-bottom:.85rem;
}
.fd-cap h3{font-size:.95rem;font-weight:700;margin-bottom:.4rem;letter-spacing:-.01em}
.fd-cap p{font-size:.78rem;color:var(--tl);line-height:1.65}

/* Color variants for capability icons */
.fd-cap-icon.ic-blue{background:rgba(99,102,241,.08)}
.fd-cap-icon.ic-green{background:rgba(34,197,94,.08)}
.fd-cap-icon.ic-purple{background:rgba(139,92,246,.08)}
.fd-cap-icon.ic-red{background:rgba(239,68,68,.08)}
.fd-cap-icon.ic-teal{background:rgba(20,184,166,.08)}
.fd-cap-icon.ic-amber{background:rgba(245,158,11,.08)}

/* ---------- HIGHLIGHT BANNER ---------- */
.fd-highlight{
  max-width:1100px;margin:0 auto 3rem;padding:2.5rem 3rem;
  border-radius:24px;
  background:linear-gradient(135deg,rgba(229,139,64,.06),rgba(255,255,255,.8));
  border:1.5px solid rgba(229,139,64,.12);
  display:grid;grid-template-columns:1fr auto;gap:2rem;align-items:center;
}
.fd-highlight h3{
  font-family:'Playfair Display',serif;
  font-size:1.3rem;font-weight:700;color:var(--t);margin-bottom:.5rem;
}
.fd-highlight p{font-size:.88rem;color:var(--tl);line-height:1.7}

/* ---------- PROCESS / FLOW ---------- */
.fd-flow{
  display:flex;align-items:flex-start;gap:0;
  padding:1.5rem 0;overflow-x:auto;
}
.fd-flow-step{
  flex:1;min-width:140px;display:flex;flex-direction:column;align-items:center;
  text-align:center;position:relative;
}
.fd-flow-dot{
  width:44px;height:44px;border-radius:50%;
  background:var(--cream);border:2px solid var(--op);
  display:flex;align-items:center;justify-content:center;
  font-size:1.1rem;margin-bottom:.75rem;
  transition:all .4s cubic-bezier(.22,1,.36,1);
}
.fd-flow-step:hover .fd-flow-dot{
  background:var(--o);border-color:var(--o);
  transform:scale(1.15);box-shadow:0 8px 24px rgba(229,139,64,.2);
}
.fd-flow-step:hover .fd-flow-dot svg{color:white}
.fd-flow-step h4{font-size:.82rem;font-weight:700;margin-bottom:.2rem}
.fd-flow-step p{font-size:.68rem;color:var(--tl);max-width:140px;line-height:1.5}
.fd-flow-line{
  flex:0 0 40px;height:2px;margin-top:22px;
  background:repeating-linear-gradient(90deg,var(--op) 0,var(--op) 5px,transparent 5px,transparent 10px);
}

/* ---------- MINI DASHBOARD CARDS ---------- */
.fd-mini-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:.6rem}
.fd-mini-card{
  padding:.85rem;border-radius:14px;border:1px solid var(--b);
  background:rgba(255,255,255,.7);transition:all .3s;
}
.fd-mini-card:hover{border-color:var(--bh);transform:translateY(-2px);box-shadow:0 8px 24px rgba(229,139,64,.05)}
.fd-mini-card-label{font-size:.6rem;text-transform:uppercase;letter-spacing:.06em;color:var(--tm);font-weight:600;margin-bottom:.3rem}
.fd-mini-card-val{font-family:'Playfair Display',serif;font-size:1.2rem;font-weight:700;color:var(--tl)}
.fd-mini-card-trend{font-size:.6rem;font-weight:700;color:#16a34a;margin-left:.3rem}

/* ---------- LIST VISUAL ---------- */
.fd-list-visual{display:flex;flex-direction:column;gap:.5rem}
.fd-list-item{
  display:flex;align-items:center;gap:.75rem;
  padding:.65rem .85rem;border-radius:12px;
  border:1px solid var(--b);background:rgba(255,255,255,.6);
  transition:all .3s cubic-bezier(.22,1,.36,1);
}
.fd-list-item:hover{border-color:var(--bh);transform:translateX(4px);box-shadow:0 6px 20px rgba(229,139,64,.05)}
.fd-list-icon{
  width:34px;height:34px;border-radius:9px;
  display:flex;align-items:center;justify-content:center;
  font-size:.95rem;flex-shrink:0;
}
.fd-list-icon.li-orange{background:rgba(229,139,64,.08)}
.fd-list-icon.li-blue{background:rgba(99,102,241,.08)}
.fd-list-icon.li-green{background:rgba(34,197,94,.08)}
.fd-list-icon.li-purple{background:rgba(139,92,246,.08)}
.fd-list-icon.li-red{background:rgba(239,68,68,.08)}
.fd-list-icon.li-teal{background:rgba(20,184,166,.08)}
.fd-list-info{flex:1}
.fd-list-name{font-size:.82rem;font-weight:600}
.fd-list-desc{font-size:.68rem;color:var(--tm)}
.fd-list-badge{
  font-size:.55rem;font-weight:700;padding:.2rem .5rem;
  border-radius:100px;background:rgba(229,139,64,.08);color:var(--o);flex-shrink:0;
}

/* ---------- NOTIFICATION MOCKUP ---------- */
.fd-notif{
  display:flex;align-items:center;gap:.6rem;
  padding:.6rem .85rem;border-radius:12px;
  border:1px solid var(--b);background:rgba(255,255,255,.7);
  animation:fd-notif-in .5s cubic-bezier(.22,1,.36,1) both;
  margin-bottom:.4rem;
}
.fd-notif:nth-child(2){animation-delay:.15s}
.fd-notif:nth-child(3){animation-delay:.3s}
.fd-notif-icon{font-size:1.1rem;flex-shrink:0}
.fd-notif-text{flex:1;font-size:.78rem;font-weight:500}
.fd-notif-time{font-size:.58rem;color:var(--tm);white-space:nowrap}
@keyframes fd-notif-in{from{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}

/* ---------- CHAT VISUAL ---------- */
.fd-chat{
  display:flex;flex-direction:column;gap:.5rem;
  padding:1.25rem;border-radius:18px;border:1px solid var(--b);
  background:rgba(255,255,255,.5);
}
.fd-chat-bubble{
  max-width:85%;padding:.6rem .9rem;border-radius:14px;
  font-size:.8rem;line-height:1.6;
}
.fd-chat-bubble.user{
  align-self:flex-end;background:rgba(229,139,64,.08);
  border-bottom-right-radius:4px;color:var(--tl);
}
.fd-chat-bubble.ai{
  align-self:flex-start;background:rgba(99,102,241,.06);
  border-bottom-left-radius:4px;display:flex;align-items:flex-start;gap:.5rem;
}
.fd-chat-ai-dot{
  width:24px;height:24px;border-radius:50%;flex-shrink:0;
  background:linear-gradient(135deg,#6366f1,#8b5cf6);
  color:white;font-size:.5rem;font-weight:700;
  display:flex;align-items:center;justify-content:center;
}
.fd-chat-typing{display:flex;gap:4px;padding:.3rem .9rem;align-items:center}
.fd-chat-typing span{
  width:5px;height:5px;border-radius:50%;
  background:rgba(99,102,241,.3);animation:chatDot 1.4s ease-in-out infinite;
}
.fd-chat-typing span:nth-child(2){animation-delay:.2s}
.fd-chat-typing span:nth-child(3){animation-delay:.4s}

/* ---------- TEMPLATE GRID ---------- */
.fd-templates{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem}
.fd-template{
  border-radius:16px;border:1px solid var(--b);overflow:hidden;
  transition:all .4s cubic-bezier(.22,1,.36,1);
}
.fd-template:hover{
  transform:translateY(-4px);border-color:var(--bh);
  box-shadow:0 12px 32px rgba(229,139,64,.06);
}
.fd-template-preview{
  padding:1rem;min-height:90px;display:flex;flex-direction:column;gap:.35rem;
  background:rgba(229,139,64,.015);
}
.fd-template-bar{height:6px;border-radius:3px;background:rgba(229,139,64,.12)}
.fd-template-bar.short{width:60%}
.fd-template-bar.accent{background:var(--o);opacity:.25;width:40%}
.fd-template-block{height:40px;border-radius:8px;background:linear-gradient(135deg,rgba(229,139,64,.08),rgba(229,139,64,.03))}
.fd-template-grid-inner{display:grid;grid-template-columns:1fr 1fr;gap:.25rem}
.fd-template-grid-inner div{height:28px;border-radius:6px;background:rgba(229,139,64,.06)}
.fd-template-label{
  padding:.5rem .75rem;font-size:.7rem;font-weight:700;
  color:var(--tl);text-align:center;letter-spacing:.02em;
}

/* ---------- QR VISUAL ---------- */
.fd-qr-card{
  display:flex;align-items:center;gap:1.25rem;
  padding:1.25rem;border-radius:16px;border:1px dashed rgba(229,139,64,.2);
  background:rgba(229,139,64,.02);transition:all .3s;
}
.fd-qr-card:hover{background:rgba(229,139,64,.04);border-color:rgba(229,139,64,.35)}
.fd-qr-box{flex-shrink:0}
.fd-qr-info h4{font-size:.88rem;font-weight:700;margin-bottom:.25rem}
.fd-qr-info p{font-size:.75rem;color:var(--tl);line-height:1.6}

/* ---------- TABLE VISUAL ---------- */
.fd-table-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem;
}
.fd-table-cell{
  padding:1rem;border-radius:14px;border:1.5px solid var(--b);
  text-align:center;transition:all .3s;background:rgba(255,255,255,.5);
}
.fd-table-cell:hover{border-color:var(--op);transform:scale(1.03)}
.fd-table-cell.occupied{border-color:rgba(229,139,64,.3);background:rgba(229,139,64,.04)}
.fd-table-cell.reserved{border-color:rgba(99,102,241,.2);background:rgba(99,102,241,.03)}
.fd-table-num{font-family:'Playfair Display',serif;font-size:1.1rem;font-weight:700;color:var(--tl)}
.fd-table-status{font-size:.55rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;margin-top:.25rem}
.fd-table-status.s-open{color:var(--tm)}
.fd-table-status.s-occ{color:var(--o)}
.fd-table-status.s-res{color:#6366f1}

/* ---------- FEATURE NAV (bottom links) ---------- */
.fd-nav{
  max-width:1200px;margin:0 auto;padding:0 2rem 2rem;
  display:grid;grid-template-columns:1fr 1fr;gap:1rem;
}
.fd-nav-link{
  display:flex;align-items:center;gap:.75rem;
  padding:1.25rem 1.5rem;border-radius:18px;
  border:1.5px solid var(--b);background:rgba(255,255,255,.5);
  text-decoration:none;color:inherit;
  transition:all .3s cubic-bezier(.22,1,.36,1);
}
.fd-nav-link:hover{
  border-color:var(--op);transform:translateY(-2px);
  box-shadow:0 8px 24px rgba(229,139,64,.06);
}
.fd-nav-link.prev{flex-direction:row}
.fd-nav-link.next{flex-direction:row-reverse;text-align:right}
.fd-nav-dir{font-size:.6rem;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--tm)}
.fd-nav-title{font-size:.92rem;font-weight:700;color:var(--t)}
.fd-nav-arrow{font-size:1.2rem;color:var(--o);flex-shrink:0}

/* ================================================================ */
/*                       RESPONSIVE                                  */
/* ================================================================ */
@media(max-width:1024px){
  .fd-hero{grid-template-columns:1fr;text-align:center;padding-top:6rem;gap:2rem}
  .fd-hero-content{max-width:600px;margin:0 auto}
  .fd-hero-label{justify-content:center}
  .fd-hero-cta{justify-content:center}
  .fd-stats{grid-template-columns:repeat(4,1fr)}
  .fd-section{grid-template-columns:1fr;gap:2rem}
  .fd-section.flip .fd-section-text{order:1}
  .fd-section.flip .fd-section-visual{order:2}
  .fd-caps{grid-template-columns:repeat(2,1fr)}
  .fd-highlight{grid-template-columns:1fr;text-align:center}
  .fd-highlight .btn{margin:0 auto}
}
@media(max-width:768px){
  .fd-hero{padding-top:5.5rem}
  .fd-hero h1{font-size:1.6rem}
  .fd-stats{grid-template-columns:repeat(2,1fr);gap:.75rem}
  .fd-stat{padding:1.1rem .75rem}
  .fd-stat-val{font-size:1.3rem}
  .fd-section{padding:2.5rem 0}
  .fd-caps{grid-template-columns:1fr}
  .fd-nav{grid-template-columns:1fr}
  .fd-flow{flex-wrap:wrap;gap:1rem;justify-content:center}
  .fd-flow-line{display:none}
  .fd-flow-step{min-width:100px;flex:0 0 auto}
  .fd-highlight{padding:2rem 1.5rem;margin-left:1rem;margin-right:1rem}
  .fd-templates{grid-template-columns:1fr}
  .fd-table-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:480px){
  .fd-hero h1{font-size:1.4rem}
  .fd-hero-desc{font-size:.9rem}
  .fd-section-num{font-size:3rem}
  .fd-stats{grid-template-columns:1fr 1fr}
  .fd-mini-cards{grid-template-columns:1fr}
}

body.lang-ar .fd-hero h1 em,
body.lang-ar .fd-stat-val,
body.lang-ar .fd-section-num,
body.lang-ar .fd-caps-header h2 em,
body.lang-ar .fd-highlight h3,
body.lang-ar .fd-mini-card-val,
body.lang-ar .fd-table-num{
  font-family:var(--font-display-ar)!important;
  font-style:normal!important;
  letter-spacing:0;
}
body.lang-ar .fd-hero-content,
body.lang-ar .fd-section-text,
body.lang-ar .fd-highlight,
body.lang-ar .fd-cap,
body.lang-ar .fd-nav-link{text-align:right}
body.lang-ar .fd-hero-label,
body.lang-ar .fd-feat,
body.lang-ar .fd-list-item,
body.lang-ar .fd-qr-card,
body.lang-ar .fd-nav-link.prev,
body.lang-ar .fd-nav-link.next{direction:rtl}
body.lang-ar .fd-nav-link.prev,
body.lang-ar .fd-nav-link.next{flex-direction:row-reverse}
body.lang-ar .fd-flow{direction:rtl}
