/* =========================================================
   Extras: AI estimator, pricing, booking, chat, search, CV
   ========================================================= */

/* AI accents (nav, hero pill, eyebrow) */
.ai-spark { display: inline-block; animation: sparkle 2.4s ease-in-out infinite; }
.ai-spark.big { font-size: 26px; }
@keyframes sparkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.2) rotate(12deg); filter: drop-shadow(0 0 6px #fbbf24); } }
.nav-ai { display: inline-flex !important; align-items: center; gap: 6px; }
.nav-ai em, .ai-pill em {
  font-style: normal; font-family: var(--font-en); font-size: 10.5px; font-weight: 900; letter-spacing: .04em; color: #fff;
  padding: 2px 7px; border-radius: 999px; background: linear-gradient(120deg, #a855f7, #2563eb, #0d9488); background-size: 200% auto; animation: shine 3s linear infinite alternate;
}
.ai-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 16px; font-weight: 800; font-size: 15px; color: var(--text);
  border: 1px solid transparent; position: relative;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from var(--ang), #a855f7, #2563eb, #0d9488, #f59e0b, #a855f7) border-box;
  animation: rot 4s linear infinite; box-shadow: 0 10px 30px -14px #7c3aed; transition: transform .3s;
}
.ai-pill:hover { transform: translateY(-2px); }
.ai-pill .i { width: 18px; height: 18px; color: var(--primary); }
.eyebrow-ai { color: #7c3aed; background: rgba(124,58,237,.1); border-color: rgba(124,58,237,.3); }
[data-theme="dark"] .eyebrow-ai { color: #c4b5fd; }
.badge-rating { color: #b45309; background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.35); }
[data-theme="dark"] .badge-rating { color: #fbbf24; }
.badge-rating small { font-weight: 600; opacity: .8; }

/* Smart search */
.search {
  max-width: 720px; margin: 0 auto 18px; display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 18px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: border-color .25s, box-shadow .25s;
}
[dir="rtl"] .search { padding: 6px 18px 6px 8px; }
.search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent), var(--shadow); }
.search > .i { color: var(--muted); flex-shrink: 0; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 15.5px; font-weight: 600; padding: 10px 0; }
.search input::-webkit-search-cancel-button { display: none; }
.search-info { font-size: 13px; font-weight: 800; color: var(--primary); white-space: nowrap; }
.search-clear { font-size: 13px; font-weight: 800; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); color: var(--text-2); }
.search-clear[hidden] { display: none; }
.search-none { text-align: center; color: var(--muted); font-weight: 600; margin: 0 auto 18px; max-width: 640px; }
.search-none a { color: var(--primary); font-weight: 800; text-decoration: underline; }

/* AI estimator */
.estimate-section { background: radial-gradient(900px 500px at 50% 0%, rgba(124,58,237,.10), transparent 70%), radial-gradient(700px 400px at 100% 100%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 70%); }
.estimator {
  max-width: 980px; margin: 0 auto; border-radius: 30px; padding: 32px; position: relative; border: 1px solid transparent; box-shadow: var(--shadow-lg);
  background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from var(--ang), #a855f7, #2563eb, #0d9488, #f59e0b, #a855f7) border-box;
  animation: rot 8s linear infinite;
}
.est-form { display: flex; flex-direction: column; gap: 12px; }
.est-label { font-weight: 900; font-size: 15px; margin-top: 6px; }
.est-idea { border-radius: 18px; border: 1px solid var(--border); background: var(--surface-2); overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.est-idea:focus-within { border-color: #7c3aed; box-shadow: 0 0 0 4px rgba(124,58,237,.14); }
.est-idea textarea { width: 100%; border: 0; outline: 0; resize: vertical; background: transparent; color: var(--text); font: inherit; font-size: 16px; font-weight: 600; padding: 16px 18px; min-height: 120px; display: block; }
.est-examples { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 14px; }
.est-examples button { font-size: 12.5px; font-weight: 700; color: var(--text-2); padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px dashed var(--border-strong); transition: all .2s; }
.est-examples button:hover { border-style: solid; border-color: #7c3aed; color: #7c3aed; }
.est-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.est-type { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px; border-radius: 16px; border: 1.5px solid var(--border); background: var(--surface); font-weight: 800; font-size: 14px; transition: all .25s cubic-bezier(.3,1.4,.5,1); }
.est-type span { font-size: 26px; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.est-type:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.est-type.on { border-color: #7c3aed; background: rgba(124,58,237,.08); box-shadow: 0 10px 24px -14px #7c3aed; }
.est-type.on span { transform: scale(1.2) rotate(-8deg); }
.est-feats-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.est-feat.active { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.est-err { color: #dc2626; font-weight: 700; font-size: 14px; }
.est-err[hidden], .est-loading[hidden], .est-result[hidden] { display: none; }
.est-go { align-self: center; margin-top: 10px; min-width: 300px; font-size: 17px; color: #fff !important; background: linear-gradient(120deg, #7c3aed, #2563eb, #0d9488); background-size: 200% auto; animation: shine 4s linear infinite alternate; box-shadow: 0 16px 34px -14px #7c3aed; }
.est-go:disabled { opacity: .6; pointer-events: none; }
.est-loading { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 10px; }
.est-loading > div:last-child { display: flex; flex-direction: column; }
.est-loading b { font-size: 15px; }
.est-loading span { color: #7c3aed; font-weight: 700; font-size: 13.5px; }
[data-theme="dark"] .est-loading span { color: #c4b5fd; }
.orbit { position: relative; width: 46px; height: 46px; flex-shrink: 0; }
.orbit i { position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; border-top-color: #7c3aed; animation: spin 1s linear infinite; }
.orbit i:nth-child(2) { inset: 7px; border-top-color: #2563eb; animation-duration: .8s; animation-direction: reverse; }
.orbit i:nth-child(3) { inset: 14px; border-top-color: #0d9488; animation-duration: .6s; }

.est-result { margin-top: 28px; padding-top: 28px; border-top: 1px dashed var(--border-strong); display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 100px; }
.est-result.show > * { animation: cardIn .6s cubic-bezier(.2,.7,.2,1) both; }
.est-result.show > *:nth-child(2) { animation-delay: .08s; }
.est-result.show > *:nth-child(3) { animation-delay: .16s; }
.est-result.show > *:nth-child(4) { animation-delay: .24s; }
.est-result.show > *:nth-child(5) { animation-delay: .32s; }
.est-head h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; margin: 8px 0 6px; }
.est-head p { color: var(--muted); font-size: 16px; }
.est-badge { display: inline-flex; font-size: 12.5px; font-weight: 800; padding: 5px 12px; border-radius: 999px; color: #fff; background: linear-gradient(120deg, #7c3aed, #2563eb); }
.est-badge.off { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.est-kpis { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; }
.est-kpi { padding: 16px 18px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.est-kpi span { color: var(--muted); font-weight: 700; font-size: 13px; }
.est-kpi b { font-size: 24px; font-weight: 900; font-family: var(--font-en); }
.est-kpi b small { font-family: var(--font); font-size: 13px; font-weight: 700; color: var(--muted); }
.est-kpi.cost { background: linear-gradient(135deg, rgba(13,148,136,.14), rgba(124,58,237,.16)); border-color: transparent; }
.est-kpi.cost b { background: linear-gradient(120deg, #0d9488, #2563eb, #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
[dir="rtl"] .est-kpi.cost b { text-align: end; }
.est-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.est-result h4 { font-size: 15px; font-weight: 900; margin-bottom: 10px; }
.est-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.est-feats li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; }
.est-feats li i { font-style: normal; font-size: 10.5px; font-weight: 900; padding: 3px 8px; border-radius: 999px; flex-shrink: 0; }
.est-feats .must i { background: rgba(13,148,136,.14); color: var(--primary); }
.est-feats .nice { color: var(--muted); }
.est-feats .nice i { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.est-phases { display: grid; gap: 10px; margin-bottom: 18px; }
.est-phase { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 14px; font-weight: 700; }
.est-phase b { color: var(--muted); font-size: 12.5px; }
.est-phase i { grid-column: 1 / -1; height: 8px; border-radius: 8px; background: var(--surface-2); position: relative; overflow: hidden; }
.est-phase i::after { content: ''; position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: var(--w); border-radius: 8px; background: linear-gradient(90deg, #0d9488, #2563eb, #7c3aed); transform-origin: left; animation: growX 1s cubic-bezier(.2,.8,.2,1) calc(.3s + var(--i) * .15s) both; }
[dir="rtl"] .est-phase i::after { transform-origin: right; }
.est-similar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.est-similar button { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--border); transition: transform .3s; }
.est-similar button:hover { transform: translateY(-4px); }
.est-similar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.est-similar span { position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px; color: #fff; font-weight: 800; font-size: 13px; text-align: start; background: linear-gradient(to top, rgba(2,6,23,.85), transparent); }
.est-notes { color: var(--text-2); font-size: 14.5px; background: var(--surface-2); border-radius: 14px; padding: 12px 16px; }
.est-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.est-disclaimer { color: var(--muted); font-size: 12.5px; font-weight: 600; }

/* Pricing + booking */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; padding-top: 14px; }
.price-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px 26px; border-radius: 26px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s;
}
.price-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.price-card.popular { border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from var(--ang), #a855f7, #2563eb, #0d9488, #f59e0b, #a855f7) border-box; animation: rot 5s linear infinite; box-shadow: 0 30px 60px -28px #7c3aed; transform: scale(1.03); }
.price-card.popular:hover { transform: scale(1.03) translateY(-8px); }
.price-pop { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 5px 14px; border-radius: 999px; font-size: 12px; font-weight: 900; color: #fff; background: linear-gradient(120deg, #7c3aed, #2563eb); white-space: nowrap; }
.price-card h3 { font-size: 21px; font-weight: 900; }
.price-tag { color: var(--muted); font-weight: 600; font-size: 14px; margin-top: -8px; }
.price-amount { display: flex; flex-direction: column; padding: 14px 0; border-block: 1px dashed var(--border); }
.price-amount small { color: var(--muted); font-weight: 700; font-size: 13px; }
.price-amount b.price-quote { font-family: var(--font); font-size: 26px; }
.price-amount b { font-family: var(--font-en); font-size: 42px; font-weight: 900; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-amount span { color: var(--text-2); font-weight: 700; font-size: 13.5px; }
.price-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; align-content: start; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 14.5px; color: var(--text-2); }
.price-card li .i { width: 18px; height: 18px; margin-top: 3px; color: var(--primary); stroke-width: 3; flex-shrink: 0; }
.pricing-extra { display: grid; grid-template-columns: 1fr 1.7fr; gap: 18px; margin-top: 26px; }
.price-custom, .book { border-radius: 22px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.price-custom { display: flex; align-items: center; gap: 14px; transition: transform .3s, box-shadow .3s; }
.price-custom:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.price-custom > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; }
.price-custom b { font-size: 16px; font-weight: 900; }
.price-custom small { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.price-custom .i { color: #7c3aed; }
.book { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 12px; align-items: end; }
.book-copy { display: flex; gap: 12px; align-items: center; }
.book-copy > span:last-child { display: flex; flex-direction: column; }
.book-copy b { font-size: 15px; font-weight: 900; }
.book-copy small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.book-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(34,197,94,.12); color: #16a34a; flex-shrink: 0; }
.book label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 800; color: var(--muted); min-width: 0; }
.book select { font: inherit; font-size: 13.5px; font-weight: 700; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); min-width: 0; }

/* CV buttons */
.cv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px dashed var(--border-strong); width: 100%; }
.cv-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; margin-inline-end: auto; }
.cv-label .i { color: var(--primary); }

/* "Ask Ebrahim" chat */
.chat-fab {
  position: fixed; z-index: 61; bottom: 94px; inset-inline-end: 22px; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #7c3aed, #2563eb); box-shadow: 0 14px 30px -8px rgba(124,58,237,.75); transition: transform .3s cubic-bezier(.3,1.5,.5,1);
}
.chat-fab:hover { transform: scale(1.08); }
.chat-fab .i { width: 26px; height: 26px; }
.chat-fab-ico, .chat-fab-x { display: grid; place-items: center; }
.chat-fab-x { display: none; }
.chat-fab.open .chat-fab-x { display: grid; }
.chat-fab.open .chat-fab-ico { display: none; }
.chat-fab::before { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(124,58,237,.5); animation: ping 2.4s ease-out infinite; }
.chat-nudge {
  position: absolute; inset-inline-end: 70px; top: 50%; transform: translateY(-50%) scale(.8); opacity: 0; pointer-events: none; white-space: nowrap;
  padding: 8px 14px; border-radius: 14px; font-weight: 800; font-size: 13.5px; color: var(--text); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: all .35s cubic-bezier(.3,1.5,.5,1);
}
.chat-fab.nudge:not(.open) .chat-nudge, .chat-fab:hover:not(.open) .chat-nudge { opacity: 1; transform: translateY(-50%) scale(1); }
.chat-panel {
  position: fixed; z-index: 70; bottom: 166px; inset-inline-end: 22px; width: min(390px, calc(100vw - 32px)); height: min(560px, calc(100vh - 200px)); height: min(560px, calc(100dvh - 200px));
  display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 30px 80px -20px rgba(15,23,42,.45);
  opacity: 0; visibility: hidden; transform: translateY(20px) scale(.96); transform-origin: bottom right; transition: opacity .3s, visibility .3s, transform .35s cubic-bezier(.3,1.3,.5,1);
}
[dir="rtl"] .chat-panel { transform-origin: bottom left; }
.chat-panel.open { opacity: 1; visibility: visible; transform: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: #fff; background: linear-gradient(120deg, #7c3aed, #2563eb 60%, #0d9488); }
.chat-avatar { position: relative; width: 42px; height: 42px; flex-shrink: 0; }
.chat-avatar img { width: 100%; height: 100%; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); object-fit: cover; }
.chat-avatar i { position: absolute; bottom: 1px; inset-inline-end: 1px; width: 11px; height: 11px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
.chat-titles { display: flex; flex-direction: column; flex: 1; line-height: 1.3; }
.chat-titles b { font-size: 16px; }
.chat-titles small { font-size: 12px; opacity: .9; font-weight: 600; }
.chat-close { width: 36px; height: 36px; background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.25); color: #fff; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
.msg { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 88%; animation: cardIn .35s ease both; }
.msg.user { align-self: flex-end; align-items: flex-end; }
.bubble { padding: 10px 14px; border-radius: 18px; font-size: 14.5px; font-weight: 600; line-height: 1.6; background: var(--surface); border: 1px solid var(--border); border-end-start-radius: 6px; }
.msg.user .bubble { color: #fff; border: 0; background: linear-gradient(135deg, #7c3aed, #2563eb); border-end-start-radius: 18px; border-end-end-radius: 6px; }
.typing { display: flex; gap: 5px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: bob 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.msg-projects { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.msg-projects button { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-weight: 800; font-size: 13px; text-align: start; transition: border-color .2s, transform .2s; }
.msg-projects button:hover { border-color: #7c3aed; transform: translateY(-2px); }
.msg-projects img { width: 54px; height: 38px; border-radius: 9px; object-fit: cover; object-position: top; flex-shrink: 0; }
.msg-handoff { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; background: #22c55e; color: #fff; font-weight: 800; font-size: 13.5px; }
.msg-handoff .i { width: 18px; height: 18px; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; background: var(--bg); }
.chat-suggest[hidden] { display: none; }
.chat-suggest button { font-size: 12.5px; font-weight: 700; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); transition: all .2s; }
.chat-suggest button:hover { border-color: #7c3aed; color: #7c3aed; }
.chat-form { display: flex; gap: 8px; padding: 12px; background: var(--bg); }
.chat-form input { flex: 1; min-width: 0; font: inherit; font-size: 14.5px; font-weight: 600; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); color: var(--text); outline: 0; }
.chat-form input:focus { border-color: #7c3aed; }
.chat-send { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #7c3aed, #2563eb); flex-shrink: 0; }

@media (max-width: 1180px) { .nav a { padding: 8px 10px; font-size: 14.5px; } }
@media (max-width: 860px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .price-card.popular { transform: none; }
  .price-card.popular:hover { transform: translateY(-8px); }
  .pricing-extra { grid-template-columns: 1fr; }
  .book { grid-template-columns: 1fr 1fr; }
  .book-copy, .book .btn { grid-column: 1 / -1; }
  .est-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .estimator { padding: 20px 16px; border-radius: 22px; }
  .est-types { grid-template-columns: repeat(2, 1fr); }
  .est-go { min-width: 0; width: 100%; }
  .est-kpis { grid-template-columns: 1fr 1fr; }
  .est-kpi.cost { grid-column: 1 / -1; }
  .est-similar { grid-template-columns: 1fr 1fr; }
  .est-actions .btn { width: 100%; }
  .chat-fab { width: 52px; height: 52px; bottom: 80px; inset-inline-end: 16px; }
  .chat-panel { inset-inline-end: 12px; bottom: 142px; width: calc(100vw - 24px); height: calc(100dvh - 170px); }
  .ai-pill { font-size: 14px; }
  .search input { font-size: 14px; }
}

/* currency */
.cur-pick { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 6px 8px 6px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-weight: 800; font-size: 13.5px; color: var(--text-2); }
.cur-pick .i { width: 18px; height: 18px; color: var(--primary); }
.cur-pick select { font: inherit; font-size: 13.5px; font-weight: 700; border: 0; background: var(--surface-2); color: var(--text); padding: 6px 8px; border-radius: 10px; }
.cur-line { display: block; font-family: var(--font); font-weight: 800; font-size: 14px; color: var(--text-2); margin-top: 2px; }
.est-kpi .cur-line { font-size: 13px; }

/* GitHub "working on now" */
.gh-now { border-radius: 18px; padding: 16px 18px; background: var(--surface-2); border: 1px solid var(--border); }
.gh-now[hidden] { display: none; }
.gh-now-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.gh-now-head b { font-size: 15px; font-weight: 900; }
.gh-now-head small { color: var(--muted); font-weight: 600; font-size: 13px; }
.gh-now-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.now-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); text-align: start; transition: transform .25s, border-color .25s; min-width: 0; }
.now-item:hover { transform: translateY(-3px); border-color: var(--primary); }
.now-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); flex-shrink: 0; box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.now-main { display: flex; flex-direction: column; min-width: 0; }
.now-main b { font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-main small { color: var(--muted); font-size: 12px; font-weight: 600; }
@media (max-width: 860px) { .gh-now-list { grid-template-columns: 1fr 1fr; } }

.footer-countries { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; margin: 6px 0 10px; font-size: 14px; }
.footer-countries b { color: var(--text-2); }
.footer-countries a { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; color: var(--text-2); transition: border-color .2s, color .2s, transform .2s; }
.footer-countries a:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* =========================================================
   Interactive Mobile Simulator
   ========================================================= */
.simulator-section {
  background: radial-gradient(800px 450px at 50% 0%, rgba(13,148,136,.09), transparent 70%),
              radial-gradient(700px 400px at 10% 100%, rgba(99,102,241,.08), transparent 70%);
}
.eyebrow-sim { color: #0d9488; background: rgba(13,148,136,.1); border-color: rgba(13,148,136,.3); }
[data-theme="dark"] .eyebrow-sim { color: #2dd4bf; }

.sim-wrapper { max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.sim-apps { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.sim-app-tab {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px;
  background: var(--surface); border: 1.5px solid var(--border); font-weight: 800; font-size: 14.5px;
  color: var(--text-2); cursor: pointer; transition: all .25s cubic-bezier(.3,1.4,.5,1);
}
.sim-app-tab:hover { border-color: var(--primary); color: var(--text); transform: translateY(-2px); }
.sim-app-tab.active {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 15%, var(--surface)), var(--surface));
  border-color: var(--primary); color: var(--primary);
  box-shadow: 0 10px 24px -10px var(--primary); transform: translateY(-2px);
}
.sim-app-tab img { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; }

.sim-stage {
  display: grid; grid-template-columns: 330px 1fr; gap: 42px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 32px;
  padding: 36px 40px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.sim-stage::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px 300px at 30% 20%, rgba(13,148,136,.06), transparent 70%);
}

/* 3D Phone Container */
.sim-phone-wrap {
  perspective: 1200px; display: flex; justify-content: center;
  transition: transform .3s ease-out;
}
.sim-phone {
  width: 310px; border-radius: 48px; background: #0f172a; position: relative;
  box-shadow: 0 30px 70px -15px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.12), inset 0 0 0 2px rgba(255,255,255,0.08);
  transition: transform .25s ease-out, box-shadow .25s ease-out;
  transform-style: preserve-3d;
}
.sim-phone:hover {
  box-shadow: 0 35px 85px -15px rgba(13,148,136,0.25), 0 0 0 1.5px var(--primary);
}
.phone-frame {
  padding: 10px 10px 14px; border-radius: 48px; background: #020617;
  border: 4px solid #334155; position: relative; overflow: hidden;
}

/* Dynamic Island */
.phone-dynamic-island {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 104px; height: 26px; border-radius: 20px; background: #000; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; padding: 0 8px;
  box-shadow: 0 0 1px 1px rgba(255,255,255,0.1); transition: all .3s cubic-bezier(.3,1.4,.5,1);
}
.phone-dynamic-island:hover { width: 140px; }
.di-camera { width: 8px; height: 8px; border-radius: 50%; background: #0f172a; border: 1.5px solid #1e293b; }
.di-sensor { width: 4px; height: 4px; border-radius: 50%; background: #1e293b; }
.di-pill { display: flex; align-items: center; gap: 4px; }
.di-dot { width: 5px; height: 5px; border-radius: 50%; background: #10b981; animation: bob 1.8s ease-in-out infinite; }
.di-text { font-size: 8px; font-weight: 800; color: #fff; font-family: var(--font-en); white-space: nowrap; opacity: .85; }

/* Status Bar */
.phone-status-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 14px 4px; font-family: var(--font-en); font-size: 11px; font-weight: 800; color: #fff;
  position: relative; z-index: 20;
}
.ps-icons { display: flex; align-items: center; gap: 5px; }
.ps-signal { font-size: 9px; opacity: .9; }
.ps-wifi { width: 12px; height: 12px; color: #fff; }
.ps-battery { width: 18px; height: 9px; border-radius: 3px; border: 1.5px solid #fff; padding: 1px; display: inline-flex; }
.ps-battery i { width: 70%; height: 100%; background: #10b981; border-radius: 1px; }

/* Phone Screen */
.phone-screen {
  border-radius: 36px; overflow: hidden; height: 480px; position: relative;
  background: #0b1324; display: flex; flex-direction: column;
}
.sim-fps-chip {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 25;
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); border: 1px solid rgba(16,185,129,0.3);
  font-family: var(--font-en); font-size: 10px; font-weight: 900; color: #10b981;
}
.fps-dot { width: 6px; height: 6px; border-radius: 50%; background: #10b981; box-shadow: 0 0 6px #10b981; }
.sim-fps-chip small { color: #94a3b8; font-weight: 600; font-size: 9px; }

.sim-viewport { flex: 1; position: relative; overflow: hidden; background: #0b1324; }
.sim-img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  display: block; transition: transform .35s cubic-bezier(.2,.9,.3,1), opacity .25s ease;
}
.sim-img.switching { opacity: 0; transform: scale(0.97); }
.sim-screen-overlay {
  position: absolute; bottom: 8px; inset-inline-start: 8px; z-index: 10;
}
.sim-badge {
  display: inline-block; padding: 4px 10px; border-radius: 8px; font-size: 10.5px; font-weight: 800;
  background: rgba(0,0,0,0.75); color: #fff; backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.15);
}

/* In-phone Bottom Bar */
.sim-bottom-bar {
  display: flex; justify-content: space-around; align-items: center; padding: 8px 6px 10px;
  background: rgba(15,23,42,0.95); backdrop-filter: blur(12px); border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 20;
}
.sim-btn-tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: 0; padding: 4px 8px; border-radius: 10px; cursor: pointer;
  color: #94a3b8; font-size: 9.5px; font-weight: 700; transition: all .2s;
}
.sim-btn-tab:hover, .sim-btn-tab.active { color: #14b8a6; }
.sim-btn-tab.active { transform: translateY(-2px); }
.sim-btn-tab svg { width: 16px; height: 16px; }

.phone-home-indicator {
  width: 100px; height: 4px; border-radius: 999px; background: rgba(255,255,255,0.4);
  margin: 6px auto 0;
}
.phone-glare {
  position: absolute; inset: 0; border-radius: 48px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 40%, rgba(255,255,255,0.02) 100%);
}

/* Side Meta Card */
.sim-meta { display: flex; flex-direction: column; gap: 20px; }
.sim-app-card { display: flex; flex-direction: column; gap: 16px; }
.sim-card-head { display: flex; align-items: center; gap: 16px; }
.sim-app-icon { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; box-shadow: var(--shadow); }
.sim-card-head h3 { font-size: 24px; font-weight: 900; margin: 0; }
.sim-card-tags { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.sim-store-rating {
  font-family: var(--font-en); font-weight: 900; font-size: 13px; color: #b45309;
  background: rgba(245,158,11,.14); border: 1px solid rgba(245,158,11,.3); padding: 3px 8px; border-radius: 8px;
}
[data-theme="dark"] .sim-store-rating { color: #fbbf24; }
.sim-store-pill {
  font-size: 12.5px; font-weight: 700; color: var(--text-2); background: var(--surface-2);
  padding: 3px 10px; border-radius: 8px; border: 1px solid var(--border);
}
.sim-card-desc { font-size: 15.5px; line-height: 1.6; color: var(--text-2); margin: 0; }

.sim-specs { display: flex; flex-direction: column; gap: 12px; margin: 6px 0; }
.sim-spec-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 16px;
  background: var(--surface-2); border: 1px solid var(--border); transition: border-color .2s;
}
.sim-spec-item:hover { border-color: var(--primary); }
.spec-ico { font-size: 20px; flex-shrink: 0; }
.sim-spec-item strong { display: block; font-size: 14.5px; font-weight: 800; color: var(--text); }
.sim-spec-item small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.sim-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

@media (max-width: 900px) {
  .sim-stage { grid-template-columns: 1fr; gap: 32px; padding: 24px 20px; }
  .sim-phone-wrap { order: -1; }
  .sim-phone { width: 280px; }
  .phone-screen { height: 430px; }
}

/* =========================================================
   AI Architecture Advisor
   ========================================================= */
.advisor-section {
  background: radial-gradient(900px 500px at 50% 0%, rgba(99,102,241,.10), transparent 70%),
              radial-gradient(700px 400px at 90% 100%, rgba(13,148,136,.10), transparent 70%);
}
.advisor-box {
  max-width: 980px; margin: 0 auto; border-radius: 30px; padding: 36px 32px; position: relative;
  border: 1px solid transparent; box-shadow: var(--shadow-lg);
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              conic-gradient(from var(--ang), #6366f1, #0d9488, #a855f7, #3b82f6, #6366f1) border-box;
  animation: rot 9s linear infinite; display: flex; flex-direction: column; gap: 26px;
}

.adv-step { display: flex; flex-direction: column; gap: 12px; }
.adv-step-badge {
  font-size: 14px; font-weight: 900; color: var(--primary);
  display: inline-flex; align-items: center; gap: 6px;
}
.adv-grid-types, .adv-grid-priorities {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.adv-opt-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 16px 12px; border-radius: 18px; border: 1.5px solid var(--border); background: var(--surface);
  font-weight: 800; font-size: 13.5px; cursor: pointer; transition: all .25s cubic-bezier(.3,1.4,.5,1);
}
.adv-opt-card span.opt-icon { font-size: 26px; transition: transform .3s; }
.adv-opt-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.adv-opt-card.active {
  border-color: #6366f1; background: rgba(99,102,241,.09); color: #6366f1;
  box-shadow: 0 10px 24px -12px #6366f1; transform: translateY(-2px);
}
.adv-opt-card.active span.opt-icon { transform: scale(1.2) rotate(-8deg); }

.adv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.adv-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; font-weight: 700;
  color: var(--text-2); cursor: pointer; transition: all .2s;
}
.adv-chip:hover { border-color: var(--primary); color: var(--primary); }
.adv-chip.active {
  background: #6366f1; border-color: #6366f1; color: #fff;
  box-shadow: 0 6px 18px -6px #6366f1;
}

.adv-generate-btn {
  align-self: center; min-width: 300px; font-size: 16.5px; color: #fff !important;
  background: linear-gradient(120deg, #6366f1, #0d9488, #7c3aed); background-size: 200% auto;
  animation: shine 4s linear infinite alternate; box-shadow: 0 16px 34px -14px #6366f1;
}

/* Blueprint Output Card */
.adv-blueprint {
  border-radius: 24px; padding: 28px; background: var(--surface-2); border: 1.5px solid var(--border);
  display: flex; flex-direction: column; gap: 20px; animation: pop .4s cubic-bezier(.2,.9,.3,1.2);
}
.adv-blueprint[hidden] { display: none; }
.bp-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.bp-head h3 { font-size: 20px; font-weight: 900; margin: 0; display: flex; align-items: center; gap: 8px; }
.bp-badge-ready {
  font-family: var(--font-en); font-weight: 800; font-size: 11.5px; padding: 4px 10px; border-radius: 999px;
  background: rgba(16,185,129,.12); color: #10b981; border: 1px solid rgba(16,185,129,.3);
}

.bp-layers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.bp-layer {
  padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
}
.bp-layer small { font-size: 12px; font-weight: 700; color: var(--muted); }
.bp-layer strong { font-size: 14.5px; font-weight: 900; color: var(--text); }
.bp-layer span { font-size: 12px; color: var(--text-2); line-height: 1.4; }

.bp-rationale {
  padding: 16px 18px; border-radius: 16px; background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
}
.bp-rationale strong { display: block; font-size: 14px; font-weight: 900; color: var(--primary); margin-bottom: 4px; }
.bp-rationale p { font-size: 13.5px; color: var(--text-2); line-height: 1.6; margin: 0; }

.bp-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.bp-proof { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.bp-proof b { color: var(--primary); }

@media (max-width: 860px) {
  .adv-grid-types, .adv-grid-priorities { grid-template-columns: 1fr 1fr; }
  .bp-layers { grid-template-columns: 1fr 1fr; }
  .adv-generate-btn { width: 100%; min-width: 0; }
}
@media (max-width: 580px) {
  .bp-layers { grid-template-columns: 1fr; }
}

/* =========================================================
   Smart Interactive FAQ
   ========================================================= */
.faq-section { background: var(--bg); }
.faq-container { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.faq-accordion { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  border-radius: 18px; border: 1px solid var(--border); background: var(--surface);
  overflow: hidden; transition: border-color .25s, box-shadow .25s;
}
.faq-item.active {
  border-color: var(--primary); box-shadow: 0 8px 24px -12px color-mix(in srgb, var(--primary) 20%, transparent);
}
.faq-q {
  width: 100%; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: none; border: 0; font: inherit; font-size: 16.5px; font-weight: 800; color: var(--text);
  text-align: start; cursor: pointer; transition: color .2s;
}
.faq-item:hover .faq-q { color: var(--primary); }
.faq-chevron {
  width: 20px; height: 20px; flex-shrink: 0; color: var(--muted);
  transition: transform .3s cubic-bezier(.3,1.4,.5,1), color .2s;
}
.faq-item.active .faq-chevron { transform: rotate(180deg); color: var(--primary); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .35s ease-out, padding .35s ease;
  padding: 0 22px;
}
.faq-item.active .faq-a { max-height: 300px; padding: 0 22px 20px; }
.faq-a p { font-size: 15px; line-height: 1.7; color: var(--text-2); margin: 0; }

/* Custom Question Box */
.faq-ask-box {
  padding: 24px 28px; border-radius: 24px; background: var(--surface-2); border: 1.5px solid var(--border);
  display: flex; flex-direction: column; gap: 14px;
}
.faq-ask-header { display: flex; flex-direction: column; gap: 2px; }
.faq-ask-header strong { font-size: 16px; font-weight: 900; color: var(--text); display: flex; align-items: center; gap: 6px; }
.faq-ask-header small { color: var(--muted); font-size: 13px; font-weight: 600; }
.faq-ask-form { display: flex; gap: 10px; }
.faq-ask-form input {
  flex: 1; min-width: 0; padding: 12px 18px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-size: 14.5px; font-weight: 600; outline: 0;
}
.faq-ask-form input:focus { border-color: var(--primary); }
.faq-ask-reply {
  padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--primary);
  display: flex; flex-direction: column; gap: 10px; animation: pop .3s ease-out;
}
.faq-ask-reply[hidden] { display: none; }
.faq-ask-reply p { font-size: 14.5px; line-height: 1.6; color: var(--text); margin: 0; }
@media (max-width: 640px) {
  .faq-q { padding: 16px 18px; font-size: 15px; }
  .faq-ask-form { flex-direction: column; }
  .faq-ask-box { padding: 18px; }
}


/* package "free quote" = WhatsApp button */
.price-amount .price-quote {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin: 6px 0 4px; padding: 10px 16px; border-radius: 14px;
  font-family: var(--font); font-size: 20px; font-weight: 900; color: #16a34a; background: rgba(34,197,94,.1); border: 1.5px solid rgba(34,197,94,.35);
  transition: transform .25s cubic-bezier(.3,1.5,.5,1), background .25s, color .25s;
}
.price-amount .price-quote .i { width: 22px; height: 22px; }
.price-amount .price-quote:hover { transform: translateY(-2px) scale(1.02); background: #22c55e; color: #fff; }
[data-theme="dark"] .price-amount .price-quote { color: #4ade80; }
[data-theme="dark"] .price-amount .price-quote:hover { color: #fff; }
.price-amount span { font-size: 15px; }

/* crowded header: keep every link on one line */
.nav a { white-space: nowrap; }
.brand-text strong, .brand-text small { white-space: nowrap; }
@media (max-width: 1500px) and (min-width: 861px) {
  .nav { gap: 0; }
  .nav a { padding: 8px 8px; font-size: 14px; }
  .brand-text small { display: none; }
  .header-actions .hide-sm { display: none; }
}
