:root {
  --ink: #0B1220;
  --deep: #16306E;
  --blue: #2F5BE0;
  --blue2: #4D7CF2;
  --bg: #F6F7FB;
  --paper: #FFFFFF;
  --line: #E3E7F0;
  --muted: #5A6478;
  --mono-bg: #0E1730;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 90px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

::selection {
  background: var(--blue2);
  color: #fff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--blue2);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* NAV */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(246, 247, 251, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

nav.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand:hover {
  opacity: 0.85;
  transform: scale(1.03);
}

.brand:active {
  transform: scale(0.97);
}

.brand .logo-img {
  height: 58px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
}

.navlinks {
  display: flex;
  gap: 36px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.navlinks a {
  position: relative;
  padding: 6px 0;
  transition: color 0.3s ease, transform 0.3s ease, letter-spacing 0.3s ease;
}

.navlinks a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue2));
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), left 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.navlinks a:hover {
  color: var(--blue);
  transform: translateY(-2px);
  letter-spacing: 0.02em;
}

.navlinks a:hover::after {
  width: 100%;
  left: 0;
}

.navlinks a:active {
  transform: translateY(0);
  color: var(--deep);
}

.nav-cta {
  background: var(--ink);
  color: #fff;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s ease;
}

.nav-cta:hover {
  background: var(--blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 4px;
}

@media (max-width:860px) {
  .navlinks {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(246, 247, 251, 0.96);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px 32px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 20px -5px rgba(22, 48, 110, 0.1);
  }

  .navlinks.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navlinks a {
    padding: 12px 0;
    font-size: 16px;
  }

  .navlinks a::after {
    display: none;
  }
}

/* HERO */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1c3aa8 0%, #2f5be0 45%, #4d7cf2 100%);
  color: #fff;
  padding: 188px 0 140px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.16), transparent 42%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7CFFB2;
  box-shadow: 0 0 8px #7CFFB2;
}

.hero h1 {
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.04;
  margin-bottom: 26px;
}

.hero h1 .accent {
  background: linear-gradient(90deg, #fff, #BFD2FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
  max-width: 520px;
  margin-bottom: 38px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: #fff;
  color: var(--deep);
  padding: 15px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.35);
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  color: #fff;
  padding: 15px 22px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: background .2s ease, border-color .2s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

/* hero visual */
.hero-visual {
  position: relative;
  height: 420px;
}

.orbit-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.node {
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.25));
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes spinRev {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

.ring1 {
  animation: spin 38s linear infinite;
  transform-origin: 300px 210px;
}

.ring2 {
  animation: spinRev 52s linear infinite;
  transform-origin: 300px 210px;
}

.pulse {
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }
}

.stats-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 88px;
  padding-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}

.stat .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px;
  font-weight: 700;
}

.stat .label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
}

@media (max-width:860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    height: 260px;
    order: -1;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* SECTION HEADER */
.section {
  padding: 120px 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 64px;
}

.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--blue);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  display: block;
  text-transform: uppercase;
}

.section h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.12;
  margin-bottom: 16px;
}

.section p.sub {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

/* OVERVIEW */
.overview {
  background: var(--paper);
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.overview-copy p {
  font-size: 17px;
  line-height: 1.8;
  color: #2A3247;
}

.overview-copy p+p {
  margin-top: 18px;
}

.capability-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.capability-list .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.capability-list .row .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--blue);
}

.capability-list .row .name {
  font-weight: 600;
  font-size: 16px;
}

@media (max-width:860px) {
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* SERVICES: enterprise tabbed layout */
.services {
  background: var(--bg);
}

.svc-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(22, 48, 110, 0.18);
  min-height: 560px;
}

.svc-rail {
  background: var(--mono-bg);
  padding: 28px 0;
  display: flex;
  flex-direction: column;
}

.svc-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  text-align: left;
  font-family: 'Inter', sans-serif;
  border-left: 3px solid transparent;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
  width: 100%;
}

.svc-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.svc-tab.active {
  color: #fff;
  background: rgba(77, 124, 242, 0.16);
  border-left-color: var(--blue2);
  font-weight: 600;
}

.svc-tab .tnum {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  min-width: 22px;
}

.svc-tab.active .tnum {
  color: var(--blue2);
}

.svc-panel {
  padding: 48px 52px;
  display: none;
  scroll-margin-top: 90px;
}

.svc-panel.active {
  display: block;
  animation: fadeIn .35s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.svc-panel .panel-head {
  margin-bottom: 36px;
  max-width: 640px;
}

.svc-panel .panel-head h3 {
  font-size: 26px;
  margin-bottom: 12px;
}

.svc-panel .panel-head p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}

.svc-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.svc-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  background: var(--bg);
}

.svc-item:hover {
  border-color: #C9D6F5;
  background: #fff;
  box-shadow: 0 12px 28px -14px rgba(22, 48, 110, 0.2);
  transform: translateY(-2px);
}

.svc-item h4 {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--ink);
}

.svc-item p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* mobile: rail becomes horizontal scroll */
@media (max-width:960px) {
  .svc-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .svc-rail {
    flex-direction: row;
    overflow-x: auto;
    padding: 14px;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .svc-tab {
    border-left: none;
    border-radius: 100px;
    padding: 10px 18px;
    white-space: nowrap;
    width: auto;
    flex-shrink: 0;
  }

  .svc-tab.active {
    border-left: none;
    background: var(--blue);
  }

  .svc-tab .tnum {
    display: none;
  }

  .svc-panel {
    padding: 32px 26px;
  }

  .svc-items {
    grid-template-columns: 1fr;
  }
}

/* WORK / EXPERIENCE */
.work {
  background: var(--paper);
}

.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.exp-cell {
  background: var(--mono-bg);
  border-radius: 22px;
  padding: 42px 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.exp-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 0%, rgba(79, 124, 242, 0.28), transparent 50%);
  pointer-events: none;
}

.exp-feature {
  grid-column: 1 / -1;
  padding: 56px 52px;
}

.exp-feature::before {
  background:
    radial-gradient(circle at 0% 0%, rgba(79, 124, 242, 0.4), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(124, 255, 178, 0.1), transparent 40%);
}

.marquee-kicker {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9DB8F7;
  border: 1px solid rgba(157, 184, 247, 0.4);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
}

.marquee-logo {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}

.exp-name {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

.marquee-desc {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  max-width: 640px;
  position: relative;
  z-index: 2;
}

@media (max-width:860px) {
  .exp-grid {
    grid-template-columns: 1fr;
  }

  .exp-cell {
    padding: 34px 28px;
  }

  .exp-feature {
    padding: 38px 28px;
  }
}

.tech-strip {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  padding: 26px 34px;
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}

.tech-strip-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}

.tech-logos {
  display: flex;
  align-items: center;
  gap: 14px 34px;
  flex-wrap: wrap;
}

.tech-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: #8B94A8;
  transition: color .2s ease;
  white-space: nowrap;
}

.tech-logo:hover {
  color: var(--deep);
}

@media (max-width:640px) {
  .tech-strip {
    padding: 22px 24px;
    gap: 18px;
  }

  .tech-logo {
    font-size: 15px;
  }
}

.cred-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.cred {
  border-top: 3px solid var(--blue2);
  padding-top: 20px;
}

.cred-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 21px;
  margin-bottom: 8px;
}

.cred-label {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width:640px) {
  .cred-strip {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* PROCESS */
.process {
  background: var(--paper);
}

.pipeline {
  position: relative;
  border-radius: 24px;
  background: var(--mono-bg);
  padding: 56px 40px 48px;
  overflow: hidden;
}

.pipeline::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(79, 124, 242, 0.35), transparent 40%),
    radial-gradient(circle at 95% 100%, rgba(124, 255, 178, 0.12), transparent 35%);
}

.pipe-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}

.pipe-track::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 8px, transparent 8px 16px);
}

.pipe-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 22%;
}

.pipe-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue2);
  box-shadow: 0 0 0 6px rgba(77, 124, 242, 0.18);
  margin-bottom: 18px;
}

.pipe-step .pname {
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  text-align: center;
  margin-bottom: 6px;
}

.pipe-step .pdesc {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12.5px;
  text-align: center;
  line-height: 1.5;
}

@media (max-width:860px) {
  .pipe-track {
    flex-direction: column;
    gap: 34px;
    align-items: flex-start;
  }

  .pipe-track::before {
    display: none;
  }

  .pipe-step {
    width: 100%;
    align-items: flex-start;
  }

  .pipe-step .pname,
  .pipe-step .pdesc {
    text-align: left;
  }
}

/* CONTACT */
.contact {
  background: linear-gradient(135deg, #16306E 0%, #2F5BE0 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.12), transparent 40%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  position: relative;
  z-index: 2;
}

.contact-intro h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  margin-bottom: 18px;
  line-height: 1.1;
}

.contact-intro p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16.5px;
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 36px;
}

.contact-points {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-points .point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
}

.contact-points .point .tick {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 12px;
}

.contact-email {
  margin-top: 38px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.contact-email a {
  color: #fff;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.form-card {
  background: var(--paper);
  border-radius: 22px;
  padding: 38px 38px 30px;
  color: var(--ink);
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.45);
  max-width: 520px;
  justify-self: end;
  width: 100%;
}

.form-head {
  margin-bottom: 26px;
}

.form-card h3 {
  font-size: 21px;
  margin-bottom: 5px;
}

.form-sub {
  font-size: 13.5px;
  color: var(--muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.field label {
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 7px;
  color: #2A3247;
  letter-spacing: 0.01em;
}

.field label .req {
  color: var(--blue);
}

.field input,
.field textarea {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
  width: 100%;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--blue2);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(77, 124, 242, 0.15);
}

.field textarea {
  resize: vertical;
  min-height: 84px;
}

.form-submit {
  width: 100%;
  margin-top: 2px;
  background: var(--blue);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 15px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: background .2s ease, transform .2s ease;
}

.form-submit:hover {
  background: var(--deep);
  transform: translateY(-1px);
}

.form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

.form-foot a {
  color: var(--deep);
  font-weight: 600;
}

.form-status {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.5;
}

.form-status.ok {
  display: block;
  background: #EAF9F0;
  color: #116B3F;
  border: 1px solid #BBE8CE;
}

.form-status.err {
  display: block;
  background: #FDF0EF;
  color: #8C2A22;
  border: 1px solid #F2CBC7;
}

@media (max-width:960px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .form-card {
    max-width: none;
    justify-self: stretch;
    padding: 30px 26px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  padding: 48px 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13.5px;
}

.footer-brand {
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  text-align: right;
}

@media (max-width:700px) {
  .footer-legal {
    text-align: left;
  }
}


/* ============================================================
   CHATBOT WIDGET
   ============================================================ */

/* Root wrapper — pointer-events:none so nothing blocks the page */
#chatbot-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  pointer-events: none; /* children opt back in individually */
}

/* ── Floating Action Button ──────────────────────────────── */
#chatbot-fab {
  pointer-events: all;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--ink);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 8px 28px -4px rgba(47, 91, 224, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fabPulse 2.8s ease-in-out infinite;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  flex-shrink: 0;
  overflow: hidden;
  padding: 0;
}

#chatbot-fab:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 14px 36px -8px rgba(47, 91, 224, 0.7), 0 4px 12px rgba(0,0,0,0.22);
}

#chatbot-fab:active {
  transform: scale(0.96);
}

#chatbot-fab .fab-chat-icon {
  width: 28px;
  height: 28px;
  fill: #ffffff;
  display: block;
}

/* ── FAB pulse animation ─────────────────────────────────── */
@keyframes fabPulse {
  0%, 100% {
    box-shadow:
      0 4px 12px rgba(0, 0, 0, 0.15),
      0 8px 28px -4px rgba(47, 91, 224, 0.55);
  }
  50% {
    box-shadow:
      0 4px 12px rgba(0, 0, 0, 0.15),
      0 10px 38px 0px rgba(47, 91, 224, 0.80),
      0 0 0 8px rgba(77, 124, 242, 0.14);
  }
}

/* Close icon — shown when chat is open */
#chatbot-fab .fab-close-icon {
  display: none;
  width: 22px;
  height: 22px;
  stroke: #fff;
}

#chatbot-widget.is-open #chatbot-fab .fab-chat-icon {
  display: none;
}

#chatbot-widget.is-open #chatbot-fab .fab-close-icon {
  display: block;
}

/* ── Chat Container ──────────────────────────────────────── */
#chatbot-container {
  pointer-events: all;
  width: 350px;
  height: 500px;
  background: var(--paper);
  border-radius: 22px;
  box-shadow:
    0 32px 80px -20px rgba(22, 48, 110, 0.28),
    0 8px 24px -6px rgba(0, 0, 0, 0.14),
    0 0 0 1px rgba(227, 231, 240, 0.9);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Hidden by default */
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  pointer-events: none;
  transition:
    opacity 0.28s cubic-bezier(0.34, 1.0, 0.64, 1),
    transform 0.28s cubic-bezier(0.34, 1.0, 0.64, 1);
}

#chatbot-widget.is-open #chatbot-container {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* ── Chat Header ─────────────────────────────────────────── */
.chatbot-header {
  background: linear-gradient(135deg, #16306E 0%, #2F5BE0 100%);
  padding: 18px 20px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.chatbot-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(255,255,255,0.14), transparent 55%);
  pointer-events: none;
}

.chatbot-header-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
  border: 3px solid #ffffff;
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.35),
    0 0 0 9px rgba(77, 124, 242, 0.30),
    0 6px 20px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  padding: 4px;
}

.chatbot-header-info {
  flex: 1;
  position: relative;
  z-index: 1;
}

.chatbot-header-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  color: #fff;
  line-height: 1.2;
}

.chatbot-header-status {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.75);
  font-family: 'JetBrains Mono', monospace;
}

.chatbot-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7CFFB2;
  box-shadow: 0 0 6px #7CFFB2;
  flex-shrink: 0;
}

/* ── Messages Area ───────────────────────────────────────── */
#chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
  background: var(--bg);
}

#chatbot-messages::-webkit-scrollbar {
  width: 4px;
}

#chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}

#chatbot-messages::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

/* ── Message Bubbles ─────────────────────────────────────── */
.chatbot-msg {
  display: flex;
  flex-direction: column;
  max-width: 82%;
  animation: chatMsgIn 0.22s ease-out both;
}

@keyframes chatMsgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chatbot-msg.user {
  align-self: flex-end;
  align-items: flex-end;
}

.chatbot-msg.assistant {
  align-self: flex-start;
  align-items: flex-start;
}

.chatbot-bubble {
  padding: 11px 15px;
  border-radius: 18px;
  font-size: 13.5px;
  line-height: 1.6;
  word-break: break-word;
}

.chatbot-msg.user .chatbot-bubble {
  background: linear-gradient(135deg, #2F5BE0, #4D7CF2);
  color: #fff;
  border-bottom-right-radius: 5px;
}

.chatbot-msg.assistant .chatbot-bubble {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
  box-shadow: 0 2px 8px -3px rgba(22, 48, 110, 0.1);
}

/* ── Typing / Loading Indicator ──────────────────────────── */
.chatbot-typing {
  display: flex;
  align-self: flex-start;
  align-items: center;
  gap: 5px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  border-bottom-left-radius: 5px;
  padding: 13px 17px;
  box-shadow: 0 2px 8px -3px rgba(22, 48, 110, 0.1);
  animation: chatMsgIn 0.22s ease-out both;
}

.chatbot-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue2);
  display: inline-block;
  animation: typingBounce 1.3s ease-in-out infinite;
}

.chatbot-typing span:nth-child(2) { animation-delay: 0.18s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.36s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30%            { transform: translateY(-5px); opacity: 1; }
}

/* ── Input Area ──────────────────────────────────────────── */
.chatbot-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  flex-shrink: 0;
}

#chatbot-input {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 10px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#chatbot-input:focus {
  border-color: var(--blue2);
  box-shadow: 0 0 0 3px rgba(77, 124, 242, 0.14);
  background: #fff;
}

#chatbot-input::placeholder {
  color: #9AA4B8;
}

#chatbot-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #2F5BE0, #4D7CF2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 4px 12px -4px rgba(47, 91, 224, 0.55);
}

#chatbot-send:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px -6px rgba(47, 91, 224, 0.7);
}

#chatbot-send:active {
  transform: scale(0.93);
}

#chatbot-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

#chatbot-send svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  fill: none;
}

/* ── Welcome message ─────────────────────────────────────── */
.chatbot-welcome {
  text-align: center;
  padding: 8px 12px 4px;
  font-size: 12px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.03em;
}

/* ── Mobile adjustments ──────────────────────────────────── */
@media (max-width: 480px) {
  #chatbot-widget {
    bottom: 18px;
    right: 16px;
  }

  #chatbot-container {
    width: calc(100vw - 32px);
    height: 460px;
  }
}
