/* =========================================================
   ALLaM-RAG — Design tokens
========================================================= */
:root{
  --navy: #172554;
  --indigo: #312E81;
  --purple: #7C5CE5;
  --lavender: #A78BFA;
  --pale-lavender: #F5F3FF;
  --pale-purple: #FAF8FF;
  --text: #1E293B;
  --text-secondary: #64748B;
  --white: #FFFFFF;
  --border: rgba(23, 37, 84, 0.08);
  --shadow-sm: 0 2px 8px rgba(49, 46, 129, 0.06);
  --shadow-md: 0 12px 32px rgba(49, 46, 129, 0.10);
  --shadow-lg: 0 24px 60px rgba(49, 46, 129, 0.14);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-arabic: 'Noto Kufi Arabic', 'Inter', sans-serif;
}

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

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

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--pale-purple);
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0;
  line-height: 1.15;
}

p{ margin: 0; color: var(--text-secondary); line-height: 1.65; }

a{ text-decoration: none; color: inherit; }

img{ max-width: 100%; display: block; }

.section-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

:focus-visible{
  outline: 2.5px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================
   Fade-in on scroll
========================================================= */
.fade-in{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible{
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Navbar
========================================================= */
.navbar{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(23,37,84,0.03);
}
.nav-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.brand-icon{ width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.ribbon-icon{ width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.brand-text{ display: flex; flex-direction: column; line-height: 1.2; }
.brand-name{ font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.brand-accent{ color: var(--purple); }
.brand-sub{ font-size: 0.72rem; color: var(--text-secondary); font-weight: 500; }

.nav-links{
  display: flex;
  gap: 32px;
  margin: 0 auto;
}
.nav-links a{
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s ease;
}
.nav-links a::after{
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--purple);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav-links a:hover{ color: var(--purple); }
.nav-links a:hover::after{ transform: scaleX(1); }

.btn{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn-ghost{
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover{ box-shadow: var(--shadow-md); border-color: var(--lavender); }

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span{ width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }

/* =========================================================
   About Modal
========================================================= */
.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(23, 37, 84, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}
.modal-overlay.open{ display: flex; }
.modal-card{
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-card h3{ margin-bottom: 14px; font-size: 1.3rem; }
.modal-card p{ margin-bottom: 12px; font-size: 0.94rem; }
.modal-close{
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
}
.modal-close:hover{ color: var(--purple); }

/* =========================================================
   Hero / Overview
========================================================= */
.hero{ padding: 64px 0 40px; }
.hero-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* --- Dashboard card --- */
.card{
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.dashboard-card{ padding: 32px; }
.dashboard-header{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.dashboard-icon{
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--pale-lavender);
  color: var(--purple);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dashboard-header h3{ font-size: 1.08rem; }
.dashboard-sub{ font-size: 0.82rem; color: var(--text-secondary); margin-top: 2px; }

.chart-wrap{ position: relative; height: 260px; margin-bottom: 18px; }

/* Evaluation plot carousels */
.plot-view{ display: none; }
.plot-view.active{ display: block; }
.plot-heading{
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.plot-carousel{
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 6px;
}
.plot-viewport{
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--pale-purple);
  touch-action: pan-y;
}
.plot-track{ display: flex; transition: transform 0.35s ease; will-change: transform; }
.plot-slide{
  min-width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 8px;
}
.plot-slide img{
  width: 100%;
  max-height: 190px;
  object-fit: contain;
  border-radius: 8px;
  cursor: pointer;
}
.plot-slide.plot-missing{ display: none; }
.plot-view.plots-empty{ display: none; }
.plot-nav{
  width: 30px; height: 30px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--indigo);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.plot-nav:hover{ border-color: var(--lavender); transform: translateY(-1px); }
.plot-dots{ display: flex; justify-content: center; gap: 6px; margin-top: 8px; min-height: 8px; }
.plot-dot{
  width: 6px; height: 6px; padding: 0;
  border: none; border-radius: 50%;
  background: var(--lavender);
  opacity: 0.45; cursor: pointer;
}
.plot-dot.active{ opacity: 1; transform: scale(1.25); }


.dashboard-buttons{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.dash-btn{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--pale-purple);
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.dash-btn svg{ color: var(--lavender); transition: color 0.2s ease; }
.dash-btn:hover{ border-color: var(--lavender); transform: translateY(-1px); }
.dash-btn.active{
  background: linear-gradient(135deg, var(--purple), var(--indigo));
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}
.dash-btn.active svg{ color: var(--white); }

.dashboard-footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.dataset-note{
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.dataset-note strong{ color: var(--navy); }
.view-details{
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--purple);
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.view-details:hover{ opacity: 0.7; }

/* ---------- Evaluation plots: horizontal carousel + dots ---------- */

.evaluation-plots {
  position: relative;
  width: 100%;
  height: auto;              /* grows with the images + dots */
  overflow: visible;         /* so the dots under the images are not cut off */
  display: block;
  margin: 16px 0 18px;
}

.evaluation-slider {
  position: relative;
  width: 100%;
  height: 230px;             /* default; script sets the exact height from each image's shape */
  overflow: hidden;
  display: block;
  transition: height 0.4s ease;
}

.evaluation-slides {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}

.evaluation-slide {
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  box-sizing: border-box;
  transform: translateX(100%);
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.evaluation-slide.active {
  position: absolute;
  transform: translateX(0);
}

.evaluation-slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
  -webkit-user-drag: none;
}

/* arrows stay hidden (images move by themselves / click / swipe) */
.evaluation-slider-btn {
  display: none !important;
}

/* dots under the images: one dot per image */
.evaluation-slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.evaluation-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--lavender);
  opacity: 0.4;
  cursor: pointer;
  transition: width 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.evaluation-dot:hover {
  opacity: 0.75;
}

.evaluation-dot.active {
  width: 22px;
  opacity: 1;
  background: var(--purple);
}

/* --- Hero copy --- */
.hero-col-copy{ position: relative; }
.decoration-brain{
  position: absolute;
  top: -10px; right: -30px;
  width: 360px;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}
.decoration-brain img{
  width: 100%;
  height: auto;
  display: block;
}
.eyebrow-pill{
  display: inline-block;
  background: var(--pale-lavender);
  color: var(--indigo);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.hero-title{
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.accent-grad{
  background: linear-gradient(135deg, var(--purple), var(--indigo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-tagline{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--indigo);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.hero-desc{
  font-size: 1rem;
  max-width: 540px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.feature-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  z-index: 1;
}
.feature-list li{
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-icon{
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--pale-lavender);
  color: var(--purple);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feature-list h4{ font-size: 0.98rem; margin-bottom: 3px; }
.feature-list p{ font-size: 0.88rem; }

/* =========================================================
   Section head (shared)
========================================================= */
.section-head{
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}
.eyebrow{
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}
.section-head h2{ font-size: 2rem; margin-bottom: 12px; }
.section-sub{ font-size: 1rem; }

/* =========================================================
   How It Works
========================================================= */
.how-it-works{ padding: 80px 0; }
.pipeline{
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
}
.pipeline-step{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 26px 20px;
  flex: 1;
  min-width: 0;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pipeline-step:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pipeline-icon{
  width: 46px; height: 46px;
  margin: 0 auto 14px;
  border-radius: 12px;
  background: var(--pale-lavender);
  color: var(--purple);
  display: flex; align-items: center; justify-content: center;
}
.pipeline-step h4{ font-size: 0.96rem; margin-bottom: 8px; }
.pipeline-step p{ font-size: 0.83rem; }
.pipeline-arrow{
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lavender);
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 24px;
}

/* =========================================================
   Chatbot section
========================================================= */
.chatbot-section{ padding: 40px 0 90px; }
.chat-app{
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 320px 1fr;
  overflow: hidden;
  min-height: 620px;
}

.chat-questions{
  background: var(--pale-purple);
  border-right: 1px solid var(--border);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
}
.chat-questions-title{
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.chat-questions-title svg{ color: var(--purple); }

.question-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.question-card{
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: right;
  direction: rtl;
  font-family: var(--font-arabic);
  font-size: 0.88rem;
  color: var(--text);
  transition: all 0.2s ease;
}
.question-card .chev{
  flex-shrink: 0;
  color: var(--lavender);
  transform: rotate(180deg);
}
.question-card:hover{ border-color: var(--lavender); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.question-card.active{
  border-color: var(--purple);
  background: var(--pale-lavender);
  color: var(--indigo);
  font-weight: 600;
}

.demo-note{
  margin-top: 20px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--pale-lavender);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 0.78rem;
  color: var(--indigo);
}
.demo-note svg{ flex-shrink: 0; margin-top: 1px; }

/* --- Chat interface --- */
.chat-interface{ display: flex; flex-direction: column; min-height: 0; }
.chat-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  border-bottom: 1px solid var(--border);
}
.chat-header-left{ display: flex; align-items: center; gap: 12px; }
.chat-avatar{
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--indigo));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.chat-header-name{ font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 0.98rem; }
.chat-status{
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 600; color: #16A34A;
}
.chat-status i{ width: 7px; height: 7px; border-radius: 50%; background: #16A34A; display: inline-block; }

.chat-body{
  flex: 1;
  overflow-y: auto;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 340px;
}
.chat-placeholder{
  margin: auto;
  text-align: center;
  color: var(--text-secondary);
  max-width: 280px;
}
.chat-placeholder svg{ color: var(--lavender); margin-bottom: 12px; }
.chat-placeholder p{ font-size: 0.88rem; }

.msg-row{ display: flex; }
.msg-row.user{ justify-content: flex-end; }
.msg-row.assistant{ justify-content: flex-start; }

.bubble{
  max-width: 76%;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 0.92rem;
  line-height: 1.9;
  direction: rtl;
  text-align: right;
  font-family: var(--font-arabic);
  white-space: pre-line;
}
.msg-row.user .bubble{
  background: linear-gradient(135deg, var(--purple), var(--indigo));
  color: var(--white);
  border-bottom-right-radius: 6px;
}
.msg-row.assistant .bubble{
  background: var(--pale-lavender);
  color: var(--text);
  border-bottom-left-radius: 6px;
}
.msg-time{
  font-size: 0.68rem;
  color: var(--text-secondary);
  margin-top: 6px;
  display: block;
  direction: ltr;
  text-align: right;
}
.msg-row.assistant .msg-time{ text-align: left; }

.msg-group{ display: flex; flex-direction: column; max-width: 76%; }
.msg-row.user .msg-group{ align-items: flex-end; margin-left: auto; }
.msg-row.assistant .msg-group{ align-items: flex-start; }

.typing-bubble{
  background: var(--pale-lavender);
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  padding: 16px 20px;
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.typing-bubble span{
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lavender);
  animation: typing-bounce 1.1s infinite ease-in-out;
}
.typing-bubble span:nth-child(2){ animation-delay: 0.15s; }
.typing-bubble span:nth-child(3){ animation-delay: 0.3s; }
@keyframes typing-bounce{
  0%, 60%, 100%{ transform: translateY(0); opacity: 0.5; }
  30%{ transform: translateY(-5px); opacity: 1; }
}

.sources-toggle{
  margin-top: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: 100%;
}
.sources-toggle summary{
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--indigo);
  direction: rtl;
}
.sources-toggle summary::-webkit-details-marker{ display: none; }
.sources-toggle summary .caret{ transition: transform 0.2s ease; color: var(--purple); }
.sources-toggle[open] summary .caret{ transform: rotate(180deg); }
.sources-toggle summary .title-group{ display: flex; align-items: center; gap: 8px; }

.source-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  direction: rtl;
}
.source-name{ color: var(--text); }
.source-score{
  background: var(--pale-lavender);
  color: var(--indigo);
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  white-space: nowrap;
  direction: ltr;
}

.chat-disclaimer{
  text-align: center;
  font-size: 0.74rem;
  color: var(--text-secondary);
  padding: 6px 26px 14px;
}

.chat-input-bar{
  display: flex;
  gap: 10px;
  padding: 16px 22px 22px;
  border-top: 1px solid var(--border);
}
.chat-input-bar input{
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 0.9rem;
  font-family: var(--font-arabic);
  outline: none;
  background: var(--pale-purple);
  transition: border-color 0.2s ease;
}
.chat-input-bar input:focus{ border-color: var(--purple); background: var(--white); }
.send-btn{
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--purple), var(--indigo));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.send-btn:hover{ transform: translateY(-1px) scale(1.03); box-shadow: var(--shadow-sm); }

/* =========================================================
   Technology
========================================================= */
.technology{ padding: 40px 0 100px; }
.tech-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tech-card{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.tech-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--lavender);
}
.tech-icon{
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--pale-lavender);
  color: var(--purple);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.tech-card h4{ font-size: 1rem; margin-bottom: 2px; }
.tech-role{
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.tech-desc{ font-size: 0.86rem; }

.evaluation-anchor{ scroll-margin-top: 80px; }

/* =========================================================
   Footer
========================================================= */
.site-footer{
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
  position: relative;
  overflow: hidden;
}
.decoration-footer{
  position: absolute;
  right: -20px; bottom: -10px;
  width: 220px;
  opacity: 0.35;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  position: relative;
  z-index: 1;
  padding-bottom: 48px;
}
.footer-brand-row{ margin-bottom: 14px; }
.footer-brand .brand-name{ color: var(--white); }
.footer-brand p{ font-size: 0.88rem; color: rgba(255,255,255,0.6); max-width: 260px; }
.footer-col h5{
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.85rem;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.footer-col{ display: flex; flex-direction: column; gap: 11px; }
.footer-col a{
  font-size: 0.86rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s ease;
}
.footer-col a:hover{ color: var(--lavender); }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 32px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  position: relative;
  z-index: 1;
}

/* =========================================================
   Toast notification
========================================================= */
.toast{
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 300;
  white-space: nowrap;
}
.toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 480px){
  .toast{ white-space: normal; text-align: center; max-width: 86%; }
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; gap: 40px; }
  .hero-col-dashboard{ order: 1; }
  .hero-col-copy{ order: 2; }
  .decoration-brain{ display: none; }
  .chat-app{ grid-template-columns: 1fr; min-height: 0; }
  .chat-questions{ border-right: none; border-bottom: 1px solid var(--border); order: 1; }
  .chat-interface{ order: 2; }
  .tech-grid{ grid-template-columns: repeat(2, 1fr); }
  .pipeline{ flex-direction: column; }
  .pipeline-arrow{ transform: rotate(90deg); width: auto; height: 24px; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px){
  .nav-links{ display: none; }
  .nav-toggle{ display: flex; }
  .about-btn span{ display: none; }
  .navbar.menu-open .nav-links{
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 18px 32px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .hero-title{ font-size: 2.4rem; }
  .section-inner{ padding: 0 20px; }
  .dashboard-buttons{ grid-template-columns: 1fr; }
  .tech-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; gap: 28px; }
  .chat-body{ min-height: 260px; }
  .bubble, .msg-group{ max-width: 88%; }
}