/* ===== Jadu Technology — Design Tokens =====
   Dhana: "Beadwork Circuit" — mistari ya teknolojia (circuit) ikichanganyika
   na muundo wa shanga za jadi (beadwork) — teknolojia yenye mizizi ya Kiafrika.
*/
:root{
  --bg: #0B0F0D;
  --bg-panel: #12181A;
  --bg-panel-2: #172420;
  --green-deep: #1B4332;
  --gold: #E8A33D;
  --gold-dim: #C97A2B;
  --cream: #F7F3E9;
  --muted: #93A69C;
  --line: #23302A;
  --radius: 14px;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Work Sans", sans-serif;
  --maxw: 1140px;
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img,svg{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
ul{list-style:none;}
button{font-family:inherit; cursor:pointer;}

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

h1,h2,h3,h4{font-family:var(--font-display); font-weight:600; letter-spacing:-0.01em; color:var(--cream);}
h1{font-size:clamp(2.2rem,5vw,3.6rem); line-height:1.08;}
h2{font-size:clamp(1.6rem,3vw,2.3rem); line-height:1.15;}
h3{font-size:1.2rem;}
.eyebrow{
  font-family:var(--font-display);
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:.72rem;
  color:var(--gold);
  display:flex; align-items:center; gap:10px;
}
.eyebrow::before{content:""; width:22px; height:1px; background:var(--gold);}
.muted{color:var(--muted);}

/* ---------- Header ---------- */
header.site{
  position:sticky; top:0; z-index:50;
  background:rgba(11,15,13,.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 24px; max-width:var(--maxw); margin:0 auto;
}
.brand{display:flex; align-items:center; gap:10px;}
.brand span{font-family:var(--font-display); font-weight:600; font-size:1.05rem;}
.brand span b{color:var(--gold);}
.navlinks{display:flex; gap:28px; font-size:.92rem;}
.navlinks a{color:var(--muted); transition:color .2s;}
.navlinks a:hover, .navlinks a.active{color:var(--cream);}
.nav-cta{
  background:var(--gold); color:#12181A; padding:9px 18px; border-radius:100px;
  font-weight:600; font-size:.88rem; transition:transform .15s, background .2s;
}
.nav-cta:hover{background:var(--cream); transform:translateY(-1px);}
.burger{display:none; background:none; border:none; color:var(--cream); font-size:1.5rem;}

/* ---------- Language switcher ---------- */
.lang-switch{display:flex; gap:4px; background:var(--bg-panel-2); border:1px solid var(--line); border-radius:100px; padding:3px;}
.lang-switch button{
  background:none; border:none; color:var(--muted); font-size:.75rem; font-weight:600;
  padding:6px 11px; border-radius:100px; transition:background .2s, color .2s; letter-spacing:.03em;
}
.lang-switch button.lang-active{background:var(--gold); color:#14181A;}
.lang-switch button:not(.lang-active):hover{color:var(--cream);}
.mobile-nav .lang-switch{margin:14px 24px;}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:13px 26px; border-radius:100px; font-weight:600; font-size:.95rem;
  border:1px solid transparent; transition:transform .15s, background .2s, border-color .2s;
}
.btn-primary{background:var(--gold); color:#14181A;}
.btn-primary:hover{transform:translateY(-2px); background:#f0b45c;}
.btn-outline{border-color:var(--line); color:var(--cream);}
.btn-outline:hover{border-color:var(--gold); color:var(--gold);}

/* ---------- Hero ---------- */
.hero{
  position:relative; overflow:hidden;
  border-bottom:1px solid var(--line);
}
.hero-bg{position:absolute; inset:0; z-index:0; opacity:.9;}
.hero-inner{
  position:relative; z-index:1; max-width:var(--maxw); margin:0 auto;
  padding:110px 24px 90px; display:grid; grid-template-columns:1.15fr .85fr; gap:50px; align-items:center;
}
.hero p.lead{font-size:1.12rem; color:var(--muted); max-width:46ch; margin:22px 0 34px;}
.hero-ctas{display:flex; gap:14px; flex-wrap:wrap;}
.hero-badge{
  border:1px solid var(--line); border-radius:var(--radius); padding:26px;
  background:linear-gradient(180deg,var(--bg-panel),var(--bg-panel-2));
}
.stat-row{display:flex; justify-content:space-between; margin-top:18px; padding-top:18px; border-top:1px solid var(--line);}
.stat b{display:block; font-family:var(--font-display); font-size:1.5rem; color:var(--gold);}
.stat span{font-size:.78rem; color:var(--muted);}

/* ---------- Sections ---------- */
section{padding:80px 0;}
section.tight{padding:56px 0;}
.section-head{max-width:640px; margin-bottom:44px;}
.divider{
  height:10px; margin:0 auto;
  background-image: radial-gradient(circle, var(--gold) 1.6px, transparent 1.8px);
  background-size: 22px 10px;
  opacity:.5;
}

/* ---------- Cards / grids ---------- */
.grid{display:grid; gap:22px;}
.grid-3{grid-template-columns:repeat(3,1fr);}
.grid-2{grid-template-columns:repeat(2,1fr);}
.card{
  background:var(--bg-panel); border:1px solid var(--line); border-radius:var(--radius);
  padding:28px; transition:border-color .2s, transform .2s;
}
.card:hover{border-color:var(--gold); transform:translateY(-3px);}
.card .icon{width:44px; height:44px; margin-bottom:16px;}
.card h3{margin-bottom:8px;}
.card p{color:var(--muted); font-size:.94rem;}
.tag-list{display:flex; flex-wrap:wrap; gap:8px; margin-top:16px;}
.tag{
  font-size:.72rem; padding:4px 10px; border-radius:100px; border:1px solid var(--line);
  color:var(--muted);
}

/* ---------- Portfolio mockup frame ---------- */
.mockup{
  border-radius:10px; overflow:hidden; border:1px solid var(--line); background:var(--bg);
  margin-bottom:18px;
}
.mockup-bar{display:flex; gap:6px; padding:9px 12px; background:var(--bg-panel-2); border-bottom:1px solid var(--line);}
.mockup-bar i{width:8px; height:8px; border-radius:50%; background:#3a463f;}
.mockup-body{height:120px; position:relative; overflow:hidden;}
.mockup-body .g1{position:absolute; inset:0; background:var(--mockup-color,var(--green-deep)); opacity:.35;}
.mockup-body svg{position:absolute; inset:0; width:100%; height:100%;}

/* ---------- CTA band ---------- */
.cta-band{
  background:var(--green-deep); border-radius:20px; padding:56px; text-align:center;
  position:relative; overflow:hidden;
}
.cta-band h2{margin-bottom:12px;}
.cta-band p{color:#cfe0d6; max-width:50ch; margin:0 auto 28px;}

/* ---------- Footer ---------- */
footer.site{border-top:1px solid var(--line); padding:44px 0 30px; margin-top:40px;}
.footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:36px;}
.footer-grid h4{font-size:.85rem; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); margin-bottom:14px;}
.footer-grid a{display:block; color:var(--muted); font-size:.9rem; margin-bottom:9px; transition:color .2s;}
.footer-grid a:hover{color:var(--gold);}
.footer-bottom{
  display:flex; justify-content:space-between; margin-top:34px; padding-top:20px; border-top:1px solid var(--line);
  color:var(--muted); font-size:.8rem; flex-wrap:wrap; gap:10px;
}

/* ---------- Floating WhatsApp ---------- */
.wa-float{
  position:fixed; bottom:22px; right:22px; z-index:80;
  width:58px; height:58px; border-radius:50%;
  background:#25D366; display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 24px rgba(0,0,0,.4);
  transition:transform .2s;
}
.wa-float:hover{transform:scale(1.08);}
.wa-float svg{width:28px; height:28px;}

/* ---------- Voice greeting toggle ---------- */
.voice-toggle{
  position:fixed; bottom:22px; left:22px; z-index:80;
  width:52px; height:52px; border-radius:50%;
  background:var(--bg-panel); border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 24px rgba(0,0,0,.35);
  transition:transform .2s, border-color .2s;
}
.voice-toggle:hover{transform:scale(1.06); border-color:var(--gold);}
.voice-toggle svg{width:22px; height:22px;}
.voice-toggle.speaking{border-color:var(--gold);}
.voice-toggle.speaking svg{animation:voicePulse 1s ease-in-out infinite;}
@keyframes voicePulse{0%,100%{opacity:1;} 50%{opacity:.45;}}
@media (max-width:560px){
  .voice-toggle{bottom:16px; left:16px; width:46px; height:46px;}
  .wa-float{bottom:16px; right:16px;}
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero{padding:70px 0 40px; border-bottom:1px solid var(--line);}
.page-hero p{color:var(--muted); max-width:60ch; margin-top:14px;}

/* ---------- Timeline (about) ---------- */
.timeline{border-left:2px solid var(--line); padding-left:26px; display:flex; flex-direction:column; gap:30px; margin-top:10px;}
.timeline .dot{
  width:10px; height:10px; border-radius:50%; background:var(--gold);
  position:relative; left:-31px; top:6px; margin-bottom:-10px;
}

/* ---------- Contact form ---------- */
.form-row{display:grid; gap:16px; margin-bottom:16px;}
label{font-size:.82rem; color:var(--muted); display:block; margin-bottom:6px;}
input,textarea{
  width:100%; background:var(--bg-panel-2); border:1px solid var(--line); border-radius:8px;
  padding:12px 14px; color:var(--cream); font-family:inherit; font-size:.95rem;
}
input:focus,textarea:focus{outline:2px solid var(--gold); outline-offset:1px;}

/* ---------- Utility ---------- */
.flex{display:flex; align-items:center;}
.gap-10{gap:10px;} .gap-16{gap:16px;}

/* ---------- Responsive ---------- */
@media (max-width:860px){
  .hero-inner{grid-template-columns:1fr; padding-top:90px;}
  .grid-3{grid-template-columns:1fr 1fr;}
  .grid-2{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .navlinks{display:none;}
  .burger{display:block;}
}
@media (max-width:560px){
  .grid-3{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr;}
  section{padding:56px 0;}
  .cta-band{padding:36px 22px;}
}

/* ============================================================
   Animations & Transitions
   ============================================================ */
html{ opacity:0; transition:opacity .4s ease; }
html.loaded{ opacity:1; }

@keyframes fadeUp{ from{opacity:0; transform:translateY(18px);} to{opacity:1; transform:translateY(0);} }
@keyframes drift{ 0%,100%{transform:translate(0,0);} 50%{transform:translate(-1.5%,1%);} }
@keyframes pulseDot{ 0%,100%{transform:scale(1); opacity:1;} 50%{transform:scale(1.4); opacity:.5;} }
@keyframes spin{ to{ transform:rotate(360deg); } }

.hero-bg img{ animation:drift 18s ease-in-out infinite; }
.hero-inner > div:first-child > *{ animation:fadeUp .7s ease both; }
.hero-inner > div:first-child > *:nth-child(2){ animation-delay:.08s; }
.hero-inner > div:first-child > *:nth-child(3){ animation-delay:.16s; }
.hero-inner > div:first-child > *:nth-child(4){ animation-delay:.24s; }
.hero-badge{ animation:fadeUp .7s ease .3s both; }

.reveal{ opacity:0; transform:translateY(22px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in-view{ opacity:1; transform:translateY(0); }

.btn{ position:relative; overflow:hidden; }
.btn::after{
  content:""; position:absolute; inset:0; background:rgba(255,255,255,.25);
  transform:translateX(-120%) skewX(-15deg); transition:transform .5s ease;
}
.btn:hover::after{ transform:translateX(120%) skewX(-15deg); }

.card{ transition:border-color .25s, transform .25s, box-shadow .25s; }
.card:hover{ box-shadow:0 14px 34px rgba(0,0,0,.35); }

.nav-cta, .wa-float, .voice-toggle{ will-change:transform; }

/* Stat counter pulse when revealed */
.stat b.counted::after{ content:""; }

/* ---------- Testimonial carousel ---------- */
.testi-wrap{ position:relative; max-width:720px; margin:0 auto; overflow:hidden; }
.testi-track{ display:flex; transition:transform .6s cubic-bezier(.4,0,.2,1); }
.testi-slide{ flex:0 0 100%; padding:8px; }
.testi-card{
  background:var(--bg-panel); border:1px solid var(--line); border-radius:var(--radius);
  padding:32px; text-align:center;
}
.testi-stars{ color:var(--gold); font-size:1.1rem; letter-spacing:3px; margin-bottom:14px; }
.testi-quote{ font-size:1.05rem; color:var(--cream); line-height:1.7; margin-bottom:18px; }
.testi-name{ font-family:var(--font-display); font-weight:600; color:var(--gold); }
.testi-role{ font-size:.8rem; color:var(--muted); }
.testi-dots{ display:flex; justify-content:center; gap:8px; margin-top:22px; }
.testi-dots button{
  width:9px; height:9px; border-radius:50%; background:var(--line); border:none; padding:0; transition:background .2s, transform .2s;
}
.testi-dots button.active{ background:var(--gold); transform:scale(1.25); }

/* ---------- FAQ accordion ---------- */
.faq-item{ border-bottom:1px solid var(--line); }
.faq-q{
  width:100%; text-align:left; background:none; border:none; color:var(--cream);
  font-family:var(--font-display); font-size:1rem; font-weight:600;
  padding:20px 4px; display:flex; justify-content:space-between; align-items:center; gap:16px;
}
.faq-q .plus{ font-size:1.3rem; color:var(--gold); transition:transform .3s ease; flex-shrink:0; }
.faq-item.open .faq-q .plus{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .35s ease; }
.faq-a p{ padding:0 4px 20px; color:var(--muted); font-size:.94rem; line-height:1.65; }

/* ---------- Pricing / estimator ---------- */
.pricing-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.price-card{
  background:var(--bg-panel); border:1px solid var(--line); border-radius:var(--radius); padding:30px;
  display:flex; flex-direction:column; transition:transform .25s, border-color .25s;
}
.price-card.featured{ border-color:var(--gold); position:relative; transform:scale(1.03); }
.price-card.featured::before{
  content:"POPULAR"; position:absolute; top:-11px; right:22px; background:var(--gold); color:#14181A;
  font-size:.68rem; font-weight:700; padding:3px 10px; border-radius:100px; letter-spacing:.06em;
}
.price-card:hover{ transform:translateY(-4px); }
.price-card.featured:hover{ transform:scale(1.03) translateY(-4px); }
.price-amount{ font-family:var(--font-display); font-size:1.7rem; color:var(--gold); margin:10px 0 18px; }
.price-amount span{ font-size:.85rem; color:var(--muted); font-weight:400; }
.price-features{ display:flex; flex-direction:column; gap:10px; margin-bottom:22px; flex:1; }
.price-features div{ font-size:.88rem; color:var(--muted); display:flex; gap:8px; align-items:flex-start; }
.price-features div::before{ content:"✓"; color:var(--gold); font-weight:700; flex-shrink:0; }

.estimator{ background:var(--bg-panel); border:1px solid var(--line); border-radius:var(--radius); padding:32px; }
.opt-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin:14px 0 24px; }
.opt-btn{
  background:var(--bg-panel-2); border:1px solid var(--line); border-radius:10px; padding:14px 16px;
  text-align:left; color:var(--cream); font-size:.88rem; transition:border-color .2s, background .2s;
}
.opt-btn.selected{ border-color:var(--gold); background:rgba(232,163,61,.1); }
.estimator-result{
  background:var(--bg-panel-2); border:1px dashed var(--gold); border-radius:12px; padding:22px;
  text-align:center; margin-top:10px;
}
.estimator-result .amount{ font-family:var(--font-display); font-size:2rem; color:var(--gold); margin:6px 0; }

/* ---------- Template gallery cards ---------- */
.template-card{ position:relative; }
.template-preview{
  height:170px; border-radius:10px; overflow:hidden; margin-bottom:16px; position:relative;
  display:flex; align-items:center; justify-content:center;
}
.template-badge{
  position:absolute; top:10px; left:10px; background:rgba(0,0,0,.5); backdrop-filter:blur(4px);
  color:var(--cream); font-size:.68rem; padding:4px 10px; border-radius:100px; letter-spacing:.04em;
}

@media (prefers-reduced-motion: reduce){
  .hero-bg img{ animation:none; }
  .hero-inner > div:first-child > *, .hero-badge{ animation:none; }
}
@media (max-width:860px){
  .pricing-grid{ grid-template-columns:1fr; }
  .price-card.featured{ transform:none; }
  .opt-grid{ grid-template-columns:1fr; }
}

/* ============================================================
   FEATURE: Jadu AI Assistant (chatbot demo)
   ============================================================ */
.chat-toggle{
  position:fixed; bottom:90px; right:22px; z-index:81;
  width:58px; height:58px; border-radius:50%;
  background:var(--gold); display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 24px rgba(0,0,0,.4); transition:transform .2s;
}
.chat-toggle:hover{ transform:scale(1.08); }
.chat-toggle svg{ width:26px; height:26px; }
.chat-toggle .chat-dot{
  position:absolute; top:6px; right:6px; width:11px; height:11px; border-radius:50%;
  background:#3ddc84; border:2px solid var(--bg-panel); animation:pulseDot 2s infinite;
}
@media (max-width:560px){ .chat-toggle{ bottom:80px; right:16px; width:50px; height:50px; } }

.chat-panel{
  position:fixed; bottom:22px; right:22px; z-index:95;
  width:340px; max-width:calc(100vw - 32px); height:460px; max-height:70vh;
  background:var(--bg-panel); border:1px solid var(--line); border-radius:16px;
  box-shadow:0 20px 60px rgba(0,0,0,.5);
  display:flex; flex-direction:column; overflow:hidden;
  transform:translateY(20px) scale(.96); opacity:0; pointer-events:none;
  transition:transform .25s ease, opacity .25s ease;
}
.chat-panel.open{ transform:translateY(0) scale(1); opacity:1; pointer-events:auto; }
.chat-head{
  background:var(--green-deep); padding:14px 16px; display:flex; align-items:center; gap:10px;
  border-bottom:1px solid var(--line);
}
.chat-head .avatar{
  width:34px; height:34px; border-radius:50%; background:var(--gold); flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-weight:700; color:#14181A;
}
.chat-head-text b{ display:block; font-size:.88rem; }
.chat-head-text span{ font-size:.7rem; color:#cfe0d6; }
.chat-close{ margin-left:auto; background:none; border:none; color:var(--cream); font-size:1.1rem; padding:4px; }
.chat-messages{ flex:1; overflow-y:auto; padding:14px; display:flex; flex-direction:column; gap:10px; }
.chat-bubble{ max-width:82%; padding:10px 13px; border-radius:14px; font-size:.85rem; line-height:1.5; animation:fadeUp .3s ease both; }
.chat-bubble.bot{ background:var(--bg-panel-2); border:1px solid var(--line); align-self:flex-start; border-bottom-left-radius:4px; }
.chat-bubble.user{ background:var(--gold); color:#14181A; align-self:flex-end; border-bottom-right-radius:4px; }
.chat-quick{ display:flex; flex-wrap:wrap; gap:6px; padding:0 14px 10px; }
.chat-quick button{
  font-size:.72rem; padding:6px 11px; border-radius:100px; border:1px solid var(--line);
  background:var(--bg-panel-2); color:var(--muted); transition:border-color .2s, color .2s;
}
.chat-quick button:hover{ border-color:var(--gold); color:var(--gold); }
.chat-input-row{ display:flex; gap:8px; padding:12px; border-top:1px solid var(--line); }
.chat-input-row input{ flex:1; padding:10px 12px; border-radius:100px; font-size:.85rem; }
.chat-input-row button{
  width:38px; height:38px; border-radius:50%; background:var(--gold); border:none; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
}
.chat-typing{ display:flex; gap:4px; padding:10px 13px; }
.chat-typing span{ width:6px; height:6px; border-radius:50%; background:var(--muted); animation:pulseDot 1s infinite; }
.chat-typing span:nth-child(2){ animation-delay:.15s; }
.chat-typing span:nth-child(3){ animation-delay:.3s; }
.chat-demo-badge{ font-size:.65rem; color:var(--muted); text-align:center; padding:6px; border-top:1px solid var(--line); }

/* ============================================================
   FEATURE: Before/After comparison slider
   ============================================================ */
.ba-wrap{
  position:relative; max-width:800px; margin:0 auto; aspect-ratio:16/10; border-radius:16px;
  overflow:hidden; border:1px solid var(--line); user-select:none;
}
.ba-after, .ba-before{ position:absolute; inset:0; }
.ba-before{ clip-path:inset(0 50% 0 0); }
.ba-label{
  position:absolute; top:14px; font-size:.72rem; font-weight:700; letter-spacing:.05em;
  padding:5px 12px; border-radius:100px; background:rgba(0,0,0,.55); color:var(--cream); z-index:2;
}
.ba-label.before{ left:14px; }
.ba-label.after{ right:14px; }
.ba-handle-line{
  position:absolute; top:0; bottom:0; width:2px; background:var(--gold); z-index:3; left:50%;
  transform:translateX(-1px); pointer-events:none;
}
.ba-handle{
  position:absolute; top:50%; left:50%; width:42px; height:42px; border-radius:50%;
  background:var(--gold); transform:translate(-50%,-50%); z-index:4;
  display:flex; align-items:center; justify-content:center; box-shadow:0 4px 14px rgba(0,0,0,.4);
}
.ba-slider-input{
  position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:ew-resize; z-index:5;
  -webkit-appearance:none;
}

/* ============================================================
   FEATURE: Limited slots / urgency countdown
   ============================================================ */
.urgency-band{
  background:linear-gradient(120deg, var(--bg-panel), var(--bg-panel-2));
  border:1px solid var(--gold); border-radius:16px; padding:34px;
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.urgency-left{ display:flex; align-items:center; gap:16px; }
.urgency-slots{
  font-family:var(--font-display); font-size:2.2rem; color:var(--gold); font-weight:700; line-height:1;
}
.urgency-slots span{ display:block; font-size:.68rem; color:var(--muted); font-weight:400; margin-top:4px; letter-spacing:.04em; }
.countdown-row{ display:flex; gap:10px; }
.countdown-box{
  background:var(--bg-panel-2); border:1px solid var(--line); border-radius:10px;
  padding:10px 12px; text-align:center; min-width:56px;
}
.countdown-box b{ display:block; font-family:var(--font-display); font-size:1.3rem; color:var(--cream); }
.countdown-box span{ font-size:.62rem; color:var(--muted); letter-spacing:.04em; }
@media (max-width:700px){
  .urgency-band{ flex-direction:column; text-align:center; }
  .urgency-left{ flex-direction:column; }
}

/* ============================================================
   FEATURE: Reviews & star rating
   ============================================================ */
.rating-summary{
  display:flex; align-items:center; justify-content:center; gap:18px;
  margin:0 auto 34px; flex-wrap:wrap; text-align:center;
}
.rating-score{ font-family:var(--font-display); font-size:2.6rem; color:var(--gold); font-weight:700; line-height:1; }
.rating-score span{ font-size:1.1rem; color:var(--muted); font-weight:400; }
.rating-summary-stars{ color:var(--gold); font-size:1.3rem; letter-spacing:3px; }
.rating-count{ font-size:.82rem; color:var(--muted); }

.review-form-wrap{
  max-width:520px; margin:0 auto; background:var(--bg-panel); border:1px solid var(--line);
  border-radius:var(--radius); padding:30px; text-align:center;
}
.star-input{ display:flex; justify-content:center; gap:6px; margin:16px 0 20px; }
.star-input button{
  background:none; border:none; font-size:2rem; line-height:1; color:var(--line);
  transition:color .15s, transform .15s; padding:0 2px;
}
.star-input button.filled{ color:var(--gold); }
.star-input button:hover{ transform:scale(1.15); }
.review-form-wrap input, .review-form-wrap textarea{ margin-bottom:12px; text-align:left; }
.review-note{ font-size:.76rem; color:var(--muted); margin-top:12px; }

/* ============================================================
   FEATURE: Matangazo (Advertising) page
   ============================================================ */
.ad-sample{
  border-radius:12px; border:1px solid var(--line); padding:18px 20px; display:flex; align-items:center; gap:16px;
  background:var(--bg-panel); position:relative; overflow:hidden;
}
.ad-sample::before{
  content:"MFANO"; position:absolute; top:8px; right:10px; font-size:.6rem; letter-spacing:.06em;
  color:var(--muted); border:1px solid var(--line); padding:2px 7px; border-radius:100px;
}
.ad-sample .ad-icon{
  width:52px; height:52px; border-radius:10px; flex-shrink:0; display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:700; font-size:1.2rem; color:#14181A;
}
.ad-sample h4{ font-size:.95rem; margin-bottom:4px; }
.ad-sample p{ font-size:.8rem; color:var(--muted); }

.price-slider-wrap{
  background:var(--bg-panel); border:1px solid var(--line); border-radius:var(--radius); padding:32px;
}
.price-slider-wrap input[type="range"]{
  width:100%; -webkit-appearance:none; height:6px; border-radius:100px;
  background:linear-gradient(90deg, var(--gold) var(--fill,3%), var(--line) var(--fill,3%));
  margin:18px 0 8px;
}
.price-slider-wrap input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none; width:22px; height:22px; border-radius:50%; background:var(--gold);
  border:3px solid var(--bg); box-shadow:0 2px 8px rgba(0,0,0,.4); cursor:pointer;
}
.price-slider-wrap input[type="range"]::-moz-range-thumb{
  width:22px; height:22px; border-radius:50%; background:var(--gold); border:3px solid var(--bg); cursor:pointer;
}
.slider-labels{ display:flex; justify-content:space-between; font-size:.72rem; color:var(--muted); }
.ad-price-display{ text-align:center; margin:22px 0; }
.ad-price-display .amt{ font-family:var(--font-display); font-size:2.4rem; color:var(--gold); }
.ad-price-display .days-label{ font-size:.85rem; color:var(--muted); margin-top:4px; }

.ad-form-wrap{
  background:var(--bg-panel); border:1px solid var(--line); border-radius:var(--radius); padding:32px;
}

/* ============================================================
   PAGE: Jifunze IT — Level Quiz
   ============================================================ */
.quiz-wrap{ max-width:640px; margin:0 auto; background:var(--bg-panel); border:1px solid var(--line); border-radius:var(--radius); padding:32px; }
.quiz-progress{ height:5px; background:var(--line); border-radius:100px; overflow:hidden; margin-bottom:24px; }
.quiz-progress-bar{ height:100%; background:var(--gold); border-radius:100px; transition:width .35s ease; width:0%; }
.quiz-question{ display:none; }
.quiz-question.active{ display:block; animation:fadeUp .35s ease both; }
.quiz-question h3{ font-size:1.05rem; margin-bottom:16px; }
.quiz-opt{
  display:block; width:100%; text-align:left; background:var(--bg-panel-2); border:1px solid var(--line);
  border-radius:10px; padding:14px 16px; margin-bottom:10px; color:var(--cream); font-size:.9rem;
  transition:border-color .2s, background .2s;
}
.quiz-opt:hover{ border-color:var(--gold); }
.quiz-opt.chosen{ border-color:var(--gold); background:rgba(232,163,61,.12); }
.quiz-result{ display:none; text-align:center; }
.quiz-result.active{ display:block; animation:fadeUp .4s ease both; }
.quiz-result .level-badge{
  display:inline-block; font-family:var(--font-display); font-size:1.1rem; color:#14181A;
  background:var(--gold); padding:8px 22px; border-radius:100px; margin:12px 0 18px;
}
.quiz-retry{ margin-top:16px; font-size:.82rem; color:var(--muted); text-decoration:underline; background:none; border:none; }

/* ============================================================
   PAGE: Jifunze IT — Curriculum
   ============================================================ */
.level-tabs{ display:flex; gap:10px; justify-content:center; margin-bottom:30px; flex-wrap:wrap; }
.level-tab{
  padding:10px 20px; border-radius:100px; border:1px solid var(--line); background:var(--bg-panel-2);
  color:var(--muted); font-size:.85rem; font-weight:600; transition:border-color .2s, color .2s, background .2s;
}
.level-tab.active{ border-color:var(--gold); color:#14181A; background:var(--gold); }
.level-panel{ display:none; }
.level-panel.active{ display:block; animation:fadeUp .35s ease both; }
.topic-row{
  display:flex; justify-content:space-between; align-items:center; gap:16px;
  padding:18px 20px; border:1px solid var(--line); border-radius:12px; margin-bottom:12px; background:var(--bg-panel);
}
.topic-row h4{ font-size:.95rem; }
.topic-row p{ font-size:.82rem; color:var(--muted); margin-top:3px; }
.topic-ask-btn{
  flex-shrink:0; font-size:.76rem; padding:8px 14px; border-radius:100px; background:var(--gold);
  color:#14181A; font-weight:600; white-space:nowrap;
}
@media (max-width:600px){
  .topic-row{ flex-direction:column; align-items:flex-start; }
  .topic-ask-btn{ align-self:stretch; text-align:center; }
}

/* ============================================================
   PAGE: Jifunze IT — Mwalimu AI (embedded chat, si floating)
   ============================================================ */
.tutor-wrap{
  max-width:760px; margin:0 auto; background:var(--bg-panel); border:1px solid var(--line);
  border-radius:var(--radius); overflow:hidden; display:flex; flex-direction:column; height:560px;
  transition:height .45s cubic-bezier(.4,0,.2,1), max-width .45s ease;
}
.tutor-wrap.expanded{ height:82vh; max-width:920px; }
@media (max-width:700px){
  .tutor-wrap.expanded{ height:88vh; }
}
.tutor-head{ background:var(--green-deep); padding:16px 20px; display:flex; align-items:center; gap:12px; border-bottom:1px solid var(--line); }
.tutor-head .avatar{
  width:40px; height:40px; border-radius:50%; background:var(--gold); flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-weight:700; color:#14181A;
}
.tutor-head b{ display:block; font-size:.95rem; }
.tutor-head span{ font-size:.72rem; color:#cfe0d6; display:flex; align-items:center; gap:5px; }
.tutor-status-dot{ width:7px; height:7px; border-radius:50%; background:#3ddc84; animation:pulseDot 2s infinite; }
.tutor-head-actions{ margin-left:auto; display:flex; gap:8px; }
.tutor-head-actions button{
  width:32px; height:32px; border-radius:8px; background:rgba(255,255,255,.08); border:none;
  display:flex; align-items:center; justify-content:center; color:var(--cream); transition:background .2s;
}
.tutor-head-actions button:hover{ background:rgba(255,255,255,.18); }
.tutor-messages{ flex:1; overflow-y:auto; padding:18px; display:flex; flex-direction:column; gap:14px; }
.tutor-bubble{ max-width:92%; padding:12px 15px; border-radius:14px; font-size:.88rem; line-height:1.65; animation:fadeUp .3s ease both; position:relative; }
.tutor-bubble.bot{ background:var(--bg-panel-2); border:1px solid var(--line); align-self:flex-start; border-bottom-left-radius:4px; }
.tutor-bubble.user{ background:var(--gold); color:#14181A; align-self:flex-end; border-bottom-right-radius:4px; }
.tutor-bubble.bot h2, .tutor-bubble.bot h3{ font-size:1rem; margin:10px 0 6px; color:var(--gold); }
.tutor-bubble.bot h3{ font-size:.92rem; }
.tutor-bubble.bot p{ margin-bottom:8px; }
.tutor-bubble.bot ul, .tutor-bubble.bot ol{ margin:6px 0 10px 20px; }
.tutor-bubble.bot li{ margin-bottom:4px; }
.tutor-bubble.bot strong{ color:var(--cream); }
.tutor-bubble.bot table{ width:100%; border-collapse:collapse; margin:10px 0; font-size:.82rem; }
.tutor-bubble.bot th, .tutor-bubble.bot td{ border:1px solid var(--line); padding:7px 9px; text-align:left; }
.tutor-bubble.bot th{ background:var(--bg-panel); color:var(--gold); }
.tutor-bubble.bot code{ background:var(--bg); padding:2px 6px; border-radius:4px; font-size:.82em; color:var(--gold); }
.tutor-bubble.bot pre{ background:var(--bg); border:1px solid var(--line); border-radius:8px; padding:12px 14px; overflow-x:auto; margin:8px 0; }
.tutor-bubble.bot pre code{ background:none; padding:0; color:var(--cream); font-size:.8rem; line-height:1.5; }
.tutor-input-row{ display:flex; gap:8px; padding:14px; border-top:1px solid var(--line); }
.tutor-input-row input{ flex:1; padding:11px 14px; border-radius:100px; font-size:.88rem; }
.tutor-input-row button{
  width:42px; height:42px; border-radius:50%; background:var(--gold); border:none; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
}
.tutor-input-row button:disabled{ opacity:.5; }
.tutor-mic-btn{ background:var(--bg-panel-2) !important; border:1px solid var(--line) !important; }
.tutor-mic-btn.listening{ background:#e05a5a !important; animation:pulseDot 1s infinite; }
.tutor-error{ padding:10px 14px; font-size:.78rem; color:#e08a8a; text-align:center; }

/* ---- Brain thinking animation ---- */
.tutor-thinking{ display:flex; align-items:center; gap:10px; }
.brain-icon{ width:30px; height:30px; flex-shrink:0; }
.brain-icon .bolt{ animation:sparkFlash .55s ease-in-out infinite alternate; transform-origin:center; }
@keyframes sparkFlash{
  0%{ opacity:.35; filter:drop-shadow(0 0 0px var(--gold)); }
  100%{ opacity:1; filter:drop-shadow(0 0 5px var(--gold)); }
}
.thinking-label{ font-size:.82rem; color:var(--muted); }
.thinking-label .dots span{ animation:pulseDot 1.2s infinite; display:inline-block; }
.thinking-label .dots span:nth-child(2){ animation-delay:.15s; }
.thinking-label .dots span:nth-child(3){ animation-delay:.3s; }

/* ---- Pen writing animation ---- */
.pen-writing{ display:inline-flex; vertical-align:middle; margin-right:6px; }
.pen-writing svg{ width:14px; height:14px; animation:penWiggle .45s ease-in-out infinite; }
@keyframes penWiggle{
  0%,100%{ transform:rotate(-10deg) translateY(0); }
  50%{ transform:rotate(10deg) translateY(-2px); }
}
.typing-cursor{ display:inline-block; width:2px; height:1em; background:var(--gold); margin-left:1px; animation:cursorBlink .8s steps(1) infinite; vertical-align:middle; }
@keyframes cursorBlink{ 50%{ opacity:0; } }

/* ---- Follow-up suggestion chips ---- */
.followup-chips{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; align-self:flex-start; max-width:92%; }
.followup-chips button{
  font-size:.76rem; padding:7px 13px; border-radius:100px; border:1px solid var(--line);
  background:var(--bg-panel-2); color:var(--gold); transition:border-color .2s, background .2s;
}
.followup-chips button:hover{ border-color:var(--gold); background:rgba(232,163,61,.1); }

/* ---- Bot bubble action row (copy / read aloud / regenerate) ---- */
.bubble-actions{ display:flex; gap:6px; margin-top:8px; opacity:.7; }
.bubble-actions button{
  font-size:.68rem; padding:4px 9px; border-radius:100px; border:1px solid var(--line);
  background:none; color:var(--muted); display:flex; align-items:center; gap:4px; transition:color .2s, border-color .2s;
}
.bubble-actions button:hover{ color:var(--gold); border-color:var(--gold); }
.bubble-actions svg{ width:11px; height:11px; }



/* ============================================================
   FEATURE: Scroll progress bar (juu ya kila ukurasa)
   ============================================================ */
.scroll-progress{
  position:fixed; top:0; left:0; height:3px; z-index:9998; width:0%;
  background:linear-gradient(90deg,var(--gold),#00E5FF); transition:width .1s linear;
}

/* Mobile nav drawer */
.mobile-nav{
  display:none; flex-direction:column; gap:2px; background:var(--bg-panel);
  border-top:1px solid var(--line);
}
.mobile-nav.open{display:flex;}
.mobile-nav a{padding:14px 24px; border-bottom:1px solid var(--line); color:var(--cream);}


/* ---------- Automatic homepage image slideshow ---------- */
.hero-slideshow{opacity:1;background:#07111e;overflow:hidden;}
.hero-slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transform:scale(1.045);transition:opacity 1.1s ease,transform 7s ease;}
.hero-slide.active{opacity:1;transform:scale(1);}
.hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,10,18,.94) 0%,rgba(5,10,18,.82) 43%,rgba(5,10,18,.50) 100%),linear-gradient(0deg,rgba(5,10,18,.62),transparent 50%);}
.hero-slide-dots{position:absolute;right:max(24px,calc((100vw - var(--maxw))/2));bottom:24px;display:flex;gap:9px;z-index:2;}
.hero-slide-dots button{width:9px;height:9px;border:0;border-radius:99px;background:rgba(255,255,255,.45);padding:0;transition:all .25s;}
.hero-slide-dots button.active{width:28px;background:var(--gold);}
.hero-inner{min-height:500px;}
@media(max-width:700px){.hero-inner{min-height:0;padding-top:76px;padding-bottom:82px;grid-template-columns:1fr;gap:30px}.hero-badge{padding:20px}.hero-slide-dots{bottom:18px;right:24px}.hero-shade{background:linear-gradient(90deg,rgba(5,10,18,.91),rgba(5,10,18,.72)),linear-gradient(0deg,rgba(5,10,18,.65),transparent 65%);}}
@media(prefers-reduced-motion:reduce){.hero-slide{transition:none;transform:none;}}
