@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@600;700;800&display=swap");

:root {
  /* Blue = brand / primary. Green = accent / call-to-action. */
  --color-primary: #1e88e5;
  --color-primary-dark: #1565c0;
  --color-primary-light: #64b5f6;
  --color-accent: #43a047;
  --color-accent-dark: #2e7d32;
  --color-accent-light: #9ccc65;
  --gradient-primary: linear-gradient(135deg, #42a5f5 0%, #1565c0 100%);
  --gradient-cta: linear-gradient(160deg, #9ccc65 0%, #43a047 100%);
  --color-ink: #142033;
  --color-muted: #64748b;
  --color-bg: #f6f9fd;
  --color-card: #ffffff;
  --color-border: #e2e8f0;
  --color-success: #16a34a;
  --color-warn: #d97706;
  --color-danger: #dc2626;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(20, 32, 51, 0.08);
  --max-width: 1160px;
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.55;
}

h1, h2, h3, .brand, .logo-badge span {
  font-family: "Poppins", "Inter", sans-serif;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* ---------------- Header / Nav ---------------- */
.site-header {
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-ink);
  letter-spacing: -0.02em;
}
.brand span { color: var(--color-primary); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--color-ink); font-weight: 500; }
.nav-links a:hover { color: var(--color-primary); text-decoration: none; }
.nav-cta { display: flex; gap: 12px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(20, 32, 51, 0.14); }
.btn-primary { background: var(--gradient-primary); color: #fff; }
.btn-cta { background: var(--gradient-cta); color: #fff; }
.btn-outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn-ghost { background: transparent; color: var(--color-ink); }
.btn-sm { padding: 7px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background: radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.16), transparent 55%),
    repeating-conic-gradient(from 0deg at 85% 10%, rgba(255, 255, 255, 0.05) 0deg 8deg, transparent 8deg 16deg),
    linear-gradient(135deg, #42a5f5 0%, #1565c0 60%, #0d47a1 100%);
  color: #fff;
  padding: 90px 0 110px;
  overflow: hidden;
}
.hero h1 { font-size: 2.7rem; max-width: 720px; margin: 0 0 18px; line-height: 1.15; }
.hero p.lead { font-size: 1.15rem; max-width: 600px; opacity: 0.92; margin-bottom: 32px; }
.hero .btn-outline { border-color: #fff; color: #fff; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------------- Sections / Cards ---------------- */
section { padding: 64px 0; }
.section-title { font-size: 1.9rem; margin-bottom: 8px; }
.section-sub { color: var(--color-muted); margin-bottom: 40px; max-width: 640px; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.feature-card { text-align: left; }
.feature-card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: #e3f2fd; color: var(--color-primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 14px;
}

/* ---------------- Interpreter card ---------------- */
.interpreter-card { display: flex; flex-direction: column; gap: 10px; }
.interpreter-card .top { display: flex; gap: 14px; align-items: center; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; flex-shrink: 0;
}
.interpreter-card h3 { margin: 0; font-size: 1.05rem; }
.interpreter-card .headline { color: var(--color-muted); font-size: 0.9rem; margin: 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  background: #e3f2fd; color: var(--color-primary-dark);
  border-radius: 999px; padding: 3px 10px; font-size: 0.78rem; font-weight: 600;
}
.rating { color: var(--color-warn); font-weight: 700; font-size: 0.9rem; }
.price { font-weight: 700; }

/* ---------------- Forms ---------------- */
.form-group { margin-bottom: 18px; }
label, .form-group-heading { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
/* Visually hides content while keeping it in the accessibility tree — for
   labels/context that sighted users don't need but screen readers do. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
input, select, textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--color-border);
  border-radius: 10px; font-size: 0.95rem; font-family: inherit; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.helper-text { color: var(--color-muted); font-size: 0.82rem; margin-top: 4px; }
fieldset { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
legend { font-weight: 700; padding: 0 8px; }

/* ---------------- Role picker ---------------- */
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .role-pick { grid-template-columns: 1fr; } }
.role-card {
  border: 2px solid var(--color-border); border-radius: var(--radius);
  padding: 28px; text-align: center; cursor: pointer; background: #fff;
  transition: border-color 0.15s, transform 0.15s;
}
.role-card:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.role-card.selected { border-color: var(--color-primary); background: #f0f7fe; }
.role-card .icon { font-size: 2.2rem; margin-bottom: 10px; }

/* ---------------- Badges / status ---------------- */
.badge { border-radius: 999px; padding: 3px 10px; font-size: 0.75rem; font-weight: 700; }
.badge.pending { background: #fef3c7; color: #92400e; }
.badge.accepted { background: #dcfce7; color: #166534; }
.badge.declined { background: #fee2e2; color: #991b1b; }
.badge.completed { background: #e0e7ff; color: #3730a3; }
.badge.cancelled { background: #f3f4f6; color: #4b5563; }

/* ---------------- Tabs ---------------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--color-border); margin-bottom: 28px; }
.tab-btn {
  padding: 12px 18px; border: none; background: none; cursor: pointer;
  font-weight: 600; color: var(--color-muted); border-bottom: 2px solid transparent;
}
.tab-btn.active { color: var(--color-primary); border-color: var(--color-primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------------- Footer ---------------- */
.site-footer { background: #0d2340; color: #b7c6dc; padding: 48px 0 24px; margin-top: 80px; }
.site-footer .grid { grid-template-columns: 2fr 1fr 1fr 1fr; margin-bottom: 32px; }
@media (max-width: 700px) { .site-footer .grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; margin-bottom: 12px; font-size: 0.95rem; }
.site-footer a { color: #b7c6dc; display: block; margin-bottom: 8px; font-size: 0.9rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1c3a5e; padding-top: 20px; font-size: 0.82rem; color: #7691b3; }

/* ---------------- AI Assistant widget ---------------- */
#lindi-assistant-fab {
  position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%;
  background: var(--color-primary); color: #fff; border: none; cursor: pointer;
  box-shadow: 0 6px 20px rgba(109, 40, 217, 0.4); font-size: 1.4rem; z-index: 60;
}
#lindi-assistant-panel {
  position: fixed; bottom: 92px; right: 24px; width: 340px; max-width: 90vw; max-height: 480px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--color-border); display: none; flex-direction: column; overflow: hidden; z-index: 60;
}
#lindi-assistant-panel.open { display: flex; }
#lindi-assistant-panel .head {
  background: var(--color-primary); color: #fff; padding: 14px 16px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center;
}
#lindi-assistant-panel .body { flex: 1; overflow-y: auto; padding: 14px; font-size: 0.88rem; }
#lindi-assistant-panel .msg { margin-bottom: 12px; }
#lindi-assistant-panel .msg.user { text-align: right; color: var(--color-primary-dark); font-weight: 600; }
#lindi-assistant-panel .msg.bot { background: #f5f3fb; padding: 10px 12px; border-radius: 10px; }
#lindi-assistant-panel form { display: flex; border-top: 1px solid var(--color-border); }
#lindi-assistant-panel input { border: none; border-radius: 0; flex: 1; }
#lindi-assistant-panel button[type="submit"] { border-radius: 0; padding: 0 16px; }

/* ---------------- WhatsApp widget ---------------- */
#lindi-whatsapp-fab {
  position: fixed; bottom: 24px; left: 24px; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); z-index: 60;
}

/* ---------------- Auth pages: blob-decorated (light) style ---------------- */
.auth-page {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.blob-cluster {
  position: absolute;
  top: -60px;
  left: -60px;
  width: 260px;
  height: 220px;
  z-index: 0;
  pointer-events: none;
}
.blob-cluster span {
  position: absolute;
  border-radius: 50%;
  opacity: 0.9;
}
.blob-cluster .b1 { width: 170px; height: 170px; left: 10px; top: 0; background: #8bc34a; }
.blob-cluster .b2 { width: 150px; height: 150px; left: 110px; top: -30px; background: var(--color-primary); }
.blob-cluster .b3 { width: 70px; height: 70px; left: 30px; top: 130px; background: var(--color-primary-light); opacity: 0.85; }
.blob-cluster .b4 { width: 46px; height: 46px; left: 130px; top: 150px; background: #aed581; opacity: 0.85; }
.blob-cluster .b5 { width: 34px; height: 34px; left: 0; top: 150px; background: var(--color-primary); }

.auth-card-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
}
.auth-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 32px 28px;
}
.auth-card h1 { font-size: 1.6rem; margin: 0 0 8px; text-align: center; }
.auth-card p.auth-sub { color: var(--color-muted); text-align: center; margin: 0 0 28px; font-size: 0.92rem; }

/* ---------------- Auth pages: blue rays (bold) style ---------------- */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  background:
    repeating-conic-gradient(from 0deg at 50% 0%, rgba(255,255,255,0.06) 0deg 6deg, transparent 6deg 14deg),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.18), transparent 45%),
    linear-gradient(160deg, #2196f3 0%, #1565c0 55%, #0d47a1 100%);
}
.logo-badge {
  width: 96px; height: 96px; border-radius: 50%;
  background: #fff; box-shadow: 0 8px 24px rgba(13, 71, 161, 0.35);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.logo-badge span { font-size: 1.5rem; font-weight: 800; color: var(--color-primary); }
.auth-shell .auth-card { max-width: 400px; }

/* ---------------- Multi-select tag picker ---------------- */
.multiselect { position: relative; }
.multiselect-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.multiselect-tags:empty { margin-bottom: 0; }
.multiselect-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: #e3f2fd; color: var(--color-primary-dark);
  border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 0.8rem; font-weight: 600;
}
.multiselect-tag button {
  background: rgba(21,101,192,0.15); border: none; color: var(--color-primary-dark);
  border-radius: 50%; width: 18px; height: 18px; cursor: pointer; font-size: 0.7rem; line-height: 1;
}
.multiselect-dropdown {
  position: absolute; top: calc(100% + 2px); left: 0; right: 0; z-index: 30;
  background: #fff; border: 1px solid var(--color-border); border-radius: 10px;
  box-shadow: var(--shadow); max-height: 220px; overflow-y: auto;
}
.multiselect-option { padding: 9px 14px; cursor: pointer; font-size: 0.9rem; }
.multiselect-option:hover, .multiselect-option.highlighted { background: #f0f7fe; }
.multiselect-option.selected { color: var(--color-primary); font-weight: 700; }
.multiselect-empty { padding: 9px 14px; color: var(--color-muted); font-size: 0.85rem; }

/* ---------------- Speech-to-Sign feature ---------------- */
.sts-hand-stage {
  width: 320px; max-width: 100%; height: 280px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hand-digit { transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1); }
.hand-palm, .hand-wrist { filter: drop-shadow(0 3px 4px rgba(0,0,0,0.12)); }
.sts-hand-label { transition: opacity 0.15s ease; }

@keyframes sign-anim-wave { 0%,100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }
@keyframes sign-anim-thankyou { 0% { transform: translateY(-20px) scale(0.95); } 100% { transform: translateY(10px) scale(1.05); } }
@keyframes sign-anim-nod { 0%,100% { transform: translateY(0); } 50% { transform: translateY(14px); } }
@keyframes sign-anim-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-14px); } 75% { transform: translateX(14px); } }
@keyframes sign-anim-circle { 0% { transform: rotate(0deg) translateX(6px); } 100% { transform: rotate(360deg) translateX(6px); } }
@keyframes sign-anim-forward-down { 0% { transform: translate(0,-10px); } 100% { transform: translate(20px,10px); } }
@keyframes sign-anim-forward-flip { 0% { transform: translate(0,-10px) rotate(0); } 100% { transform: translate(20px,10px) rotate(15deg); } }
@keyframes sign-anim-lift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes sign-anim-cross { 0%,100% { transform: rotate(0) scale(1); } 50% { transform: rotate(-6deg) scale(1.08); } }
@keyframes sign-anim-chop { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(10px) rotate(-8deg); } }
@keyframes sign-anim-sweep { 0% { transform: translateX(-16px); } 100% { transform: translateX(16px); } }
@keyframes sign-anim-tap { 0%,100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
@keyframes sign-anim-link { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@keyframes sign-anim-point { 0%,100% { transform: translateX(0) rotate(0); } 50% { transform: translateX(14px) rotate(-8deg); } }
@keyframes sign-anim-updown { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes sign-anim-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes sign-anim-drift-up { 0% { transform: translateY(10px); } 100% { transform: translateY(-14px); } }
@keyframes sign-anim-drift-down { 0% { transform: translateY(-14px); } 100% { transform: translateY(10px); } }
@keyframes sign-anim-flutter { 0%,100% { transform: rotate(-4deg) translateY(0); } 25% { transform: rotate(4deg) translateY(-3px); } 75% { transform: rotate(-4deg) translateY(3px); } }

.sign-anim-wave { animation: sign-anim-wave 0.55s ease-in-out infinite; }
.sign-anim-thankyou { animation: sign-anim-thankyou 0.9s ease-in-out infinite alternate; }
.sign-anim-nod { animation: sign-anim-nod 0.5s ease-in-out infinite; }
.sign-anim-shake { animation: sign-anim-shake 0.5s ease-in-out infinite; }
.sign-anim-circle { animation: sign-anim-circle 1.1s linear infinite; }
.sign-anim-forward-down { animation: sign-anim-forward-down 0.9s ease-in-out infinite alternate; }
.sign-anim-forward-flip { animation: sign-anim-forward-flip 0.9s ease-in-out infinite alternate; }
.sign-anim-lift { animation: sign-anim-lift 0.7s ease-in-out infinite; }
.sign-anim-cross { animation: sign-anim-cross 0.9s ease-in-out infinite; }
.sign-anim-chop { animation: sign-anim-chop 0.6s ease-in-out infinite; }
.sign-anim-sweep { animation: sign-anim-sweep 0.8s ease-in-out infinite alternate; }
.sign-anim-tap { animation: sign-anim-tap 0.5s ease-in-out infinite; }
.sign-anim-link { animation: sign-anim-link 0.6s ease-in-out infinite; }
.sign-anim-point { animation: sign-anim-point 0.5s ease-in-out infinite; }
.sign-anim-updown { animation: sign-anim-updown 0.5s ease-in-out infinite; }
.sign-anim-pulse { animation: sign-anim-pulse 0.6s ease-in-out infinite; }
.sign-anim-drift-up { animation: sign-anim-drift-up 0.9s ease-in-out infinite alternate; }
.sign-anim-drift-down { animation: sign-anim-drift-down 0.9s ease-in-out infinite alternate; }
.sign-anim-flutter { animation: sign-anim-flutter 0.45s ease-in-out infinite; }

#sts-record-btn.recording { background: var(--color-danger); animation: sts-pulse 1.2s ease-in-out infinite; }
@keyframes sts-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.4); } 50% { box-shadow: 0 0 0 14px rgba(220,38,38,0); } }
.sts-word.active { background: var(--color-primary); color: #fff; border-radius: 6px; padding: 1px 4px; }

/* ---------------- Utility ---------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; }
.spread { display: flex; align-items: center; justify-content: space-between; }
.muted { color: var(--color-muted); }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 0.9rem; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-success { background: #dcfce7; color: #166534; }
.empty-state { text-align: center; padding: 48px 24px; color: var(--color-muted); }
