:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #f7f9fc;
  --white: #ffffff;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-soft: #ccfbf1;
  --indigo: #4f46e5;
  --indigo-soft: #eef2ff;
  --sky: #0284c7;
  --shadow: 0 24px 48px -28px rgba(15, 23, 42, 0.28);
  --radius: 1.5rem;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(20, 184, 166, 0.12), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(79, 70, 229, 0.1), transparent 26%),
    radial-gradient(circle at 80% 88%, rgba(14, 165, 233, 0.08), transparent 24%),
    radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: auto, auto, auto, 28px 28px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal-dark);
}

.navbar-anlix {
  background: rgba(247, 249, 252, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.navbar-anlix.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -20px rgba(15, 23, 42, 0.45);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-lockup img {
  width: 2.4rem;
  height: 2.4rem;
}

.nav-link {
  color: var(--ink-soft) !important;
  font-weight: 600;
  padding: 0.55rem 0.85rem !important;
  border-radius: 999px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink) !important;
  background: var(--white);
}

.btn {
  border-radius: 999px;
  font-weight: 700;
  padding: 0.75rem 1.35rem;
}

.btn-teal {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.btn-teal:hover,
.btn-teal:focus {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #fff;
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
}

.btn-ghost {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus {
  background: var(--indigo-soft);
  border-color: #c7d2fe;
  color: var(--ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  padding: 4.5rem 0 3rem;
}

.hero h1 {
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
  font-size: clamp(2.4rem, 5vw, 4.15rem);
}

.gradient-text {
  background: linear-gradient(90deg, var(--teal) 0%, var(--indigo) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead-copy {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 38rem;
}

.hero-art {
  background: transparent;
  filter: drop-shadow(var(--shadow));
}

.stat-strip {
  margin-top: -1rem;
}

.stat-card,
.service-card,
.solution-card,
.process-card,
.tech-panel,
.contact-card,
.work-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 1.35rem 1.25rem;
  height: 100%;
}

.stat-card .value {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.stat-card .label {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 5rem 0;
}

.section-kicker {
  color: var(--teal-dark);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.section-title {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: clamp(1.85rem, 3vw, 2.6rem);
}

.service-card {
  padding: 1.4rem;
  height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: #99f6e4;
}

.service-card img {
  width: 100%;
  border-radius: 1.1rem;
  margin-bottom: 1.1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.solution-card {
  overflow: hidden;
  height: 100%;
}

.solution-card img {
  width: 100%;
  display: block;
}

.solution-card .body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.work-card {
  padding: 1.25rem;
  overflow: hidden;
}

.work-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: top center;
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.work-kicker {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process-card {
  padding: 1.5rem;
  height: 100%;
  position: relative;
}

.process-index {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: var(--teal-soft);
  color: var(--teal-dark);
  margin-bottom: 1rem;
}

.tech-panel {
  padding: 1.5rem;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-list span {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.contact-wrap {
  background: linear-gradient(135deg, #ecfeff 0%, #eef2ff 100%);
  border-radius: 2rem;
  padding: 2rem;
  border: 1px solid #dbeafe;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.25rem 1.4rem 1.35rem;
  height: 100%;
  box-shadow: var(--shadow);
}

.faq-item h3 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
}

.form-control,
.form-select {
  border-radius: 0.9rem;
  border-color: var(--line);
  padding: 0.8rem 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #5eead4;
  box-shadow: 0 0 0 0.2rem rgba(20, 184, 166, 0.18);
}

.form-success {
  display: none;
  border-radius: 1rem;
  background: var(--teal-soft);
  color: var(--teal-dark);
  padding: 0.9rem 1rem;
  font-weight: 700;
}

.form-success.is-visible {
  display: block;
}

.site-footer {
  padding: 2.5rem 0 2rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s ease forwards;
}

.reveal-delay-1 { animation-delay: 0.08s; }
.reveal-delay-2 { animation-delay: 0.16s; }
.reveal-delay-3 { animation-delay: 0.24s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.navbar-toggler {
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .service-card {
    transition: none;
  }
}

@media (max-width: 991.98px) {
  .hero {
    padding-top: 2.5rem;
  }

  .navbar-collapse {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    padding: 0.75rem;
    margin-top: 0.75rem;
  }

  .work-card img {
    height: 200px;
  }
}

/* Project detail pages */
.page-hero {
  padding: 2.5rem 0 1rem;
}

.breadcrumb-anlix {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.breadcrumb-anlix a {
  text-decoration: none;
  color: var(--ink-soft);
}

.breadcrumb-anlix a:hover {
  color: var(--teal-dark);
}

.breadcrumb-anlix .separator {
  color: #cbd5e1;
}

.breadcrumb-anlix .current {
  color: var(--ink);
}

.project-hero h1 {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.project-hero-shot {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.85rem;
}

.project-hero-shot img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: top center;
  border-radius: 1.1rem;
  border: 1px solid var(--line);
}

.project-hero-shot .caption {
  margin-top: 0.7rem;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.module-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.module-icon.teal {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.module-icon.indigo {
  background: var(--indigo-soft);
  color: var(--indigo);
}

.module-icon.sky {
  background: #e0f2fe;
  color: var(--sky);
}

.module-icon.amber {
  background: #fef3c7;
  color: #b45309;
}

.filter-btn {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink-soft);
  cursor: pointer;
}

.filter-btn:hover {
  border-color: #99f6e4;
  color: var(--ink);
}

.filter-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.shot-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.shot-card:hover {
  transform: translateY(-4px);
  border-color: #99f6e4;
}

.shot-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--line);
  background: #f1f5f9;
  cursor: pointer;
}

.shot-img-mobile {
  height: 340px;
  object-fit: contain;
  background: #e2e8f0;
  padding: 0.6rem;
}

.shot-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shot-badge-teal {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.shot-badge-indigo {
  background: var(--indigo-soft);
  color: var(--indigo);
}

.shot-badge-amber {
  background: #fef3c7;
  color: #b45309;
}

.extra-small {
  font-size: 0.78rem;
}

.stack-panel {
  padding: 1.15rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  height: 100%;
}

.stack-panel h4 {
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
}

.stack-panel ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.project-pager {
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
}

.shot-modal .modal-content {
  background: #0f172a;
  border: 1px solid #1e293b;
  color: #e2e8f0;
}

.shot-modal .modal-header,
.shot-modal .modal-footer {
  border-color: #1e293b;
}

.modal-shot-viewport {
  position: relative;
  height: 70vh;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020617;
  cursor: grab;
  user-select: none;
}

.modal-shot-viewport.dragging {
  cursor: grabbing;
}

.modal-shot-wrapper {
  transform-origin: center center;
  transition: transform 0.1s ease-out;
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
}

.modal-shot-img {
  max-height: 68vh;
  max-width: 95vw;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  border-radius: 0.6rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.carousel-nav-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}

.carousel-nav-btn.prev-btn { left: 16px; }
.carousel-nav-btn.next-btn { right: 16px; }

.zoom-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.zoom-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: 0.55rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.zoom-btn:hover {
  background: rgba(45, 212, 191, 0.18);
  border-color: #2dd4bf;
  color: #fff;
}

.thumb-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 4px;
  scrollbar-width: thin;
  max-width: 100%;
}

.thumb-item {
  width: 60px;
  height: 42px;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  flex-shrink: 0;
}

.thumb-item:hover,
.thumb-item.active {
  opacity: 1;
  border-color: #2dd4bf;
}

.work-card a.stretched-link {
  z-index: 2;
}

.langflow-dock {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1080;
  color: #0f172a;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.anlix-chat__trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #0d9488;
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(15, 118, 110, 0.75);
  appearance: none;
  cursor: pointer;
}

.anlix-chat__trigger-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.anlix-chat__trigger-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.anlix-chat__trigger-icon--close,
.langflow-dock.is-open .anlix-chat__trigger-icon--open {
  opacity: 0;
}

.langflow-dock.is-open .anlix-chat__trigger-icon--close {
  opacity: 1;
}

.anlix-chat__window {
  position: absolute;
  right: 0;
  bottom: 4rem;
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 2.5rem));
  height: min(520px, calc(100vh - 7rem));
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 48px -28px rgba(15, 23, 42, 0.28);
}

.anlix-chat__window[hidden] {
  display: none;
}

.anlix-chat__header {
  padding: 1rem 1.15rem 0.85rem;
  border-bottom: 1px solid #e5e7eb;
}

.anlix-chat__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.anlix-chat__status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.2rem;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 300;
}

.anlix-chat__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #22c55e;
}

.anlix-chat__messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0.75rem 1rem;
  background: #f9fafb;
}

.anlix-chat__row {
  display: flex;
  margin: 0.45rem 0;
}

.anlix-chat__row--user {
  justify-content: flex-end;
}

.anlix-chat__bubble {
  max-width: 92%;
  padding: 0.7rem 0.9rem;
  border-radius: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.anlix-chat__bubble--user {
  background: #ccfbf1;
  color: #0f766e;
}

.anlix-chat__bubble--bot {
  background: #f7f9fc;
  color: #0f172a;
}

.anlix-chat__bubble--error {
  background: #fef2f2;
  color: #b91c1c;
}

.anlix-chat__bubble--bot.is-streaming::after {
  content: "▍";
  margin-left: 0.1em;
  color: #0d9488;
  animation: anlix-chat-caret 1s step-end infinite;
}

@keyframes anlix-chat-caret {
  50% {
    opacity: 0;
  }
}

.anlix-chat__form {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 3.75rem;
  padding-right: 0.65rem;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.anlix-chat__input {
  flex: 1 1 auto;
  height: 3.5rem;
  min-width: 0;
  padding: 0 1rem;
  border: 0;
  background: #fff;
  color: #111827;
  font-size: 0.95rem;
  line-height: 3.5rem;
}

.anlix-chat__input:focus {
  outline: none;
}

.anlix-chat__send {
  display: flex;
  flex: 0 0 2.5rem;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #0d9488;
  color: #fff;
  cursor: pointer;
}

.anlix-chat__send svg {
  width: 1.15rem;
  height: 1.15rem;
  transform: translate(-1px, 1px);
}

.anlix-chat__send:disabled,
.anlix-chat__input:disabled {
  opacity: 0.65;
}
