:root {
  /* Premium Light Theme variables (Default) */
  --bg-obsidian: #fbf5dd;
  --bg-slate: #f5eed3;
  --bg-card: rgba(255, 255, 255, 0.62);
  --bg-card-hover: rgba(255, 255, 255, 0.82);
  
  --deep-teal: #005461;
  --dark-teal: #1e3d40;
  --mint: #a8e6cf;
  --green: #3ed16f;
  --yellow: #fff57e;
  --pink: #ff7eb6;
  --cream: #fbf5dd;
  --slate: #7a8c8e;
  --charcoal: #0b1f23;
  --white: #ffffff;
  --text: #102528;
  --muted: #5b6f70;
  --line: rgba(11, 31, 35, 0.05);
  --shadow: 0 22px 70px rgba(11, 31, 35, 0.16);
  --radius: 12px;
  --max: 1180px;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Smooth Cubic-Bezier Transition */
  --transition-premium: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-obsidian);
}

body {
  margin: 0;
  background: var(--bg-obsidian);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body.nav-open {
  overflow: hidden;
}

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

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

p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  margin: 0;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

button,
input,
select,
textarea {
  font: inherit;
}

.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;
}

.site-shell {
  min-height: 100vh;
  overflow: clip;
}

.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  width: min(calc(100% - 28px), var(--max));
  min-height: 66px;
  padding: 10px 12px 10px 18px;
  color: var(--white);
  background: rgba(0, 84, 97, 0.68);
  border: 1px solid rgba(168, 230, 207, 0.26);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 50px rgba(11, 31, 35, 0.22);
  transform: translateX(-50%);
  transition: background 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(11, 31, 35, 0.92);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 70px rgba(11, 31, 35, 0.32);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: max-content;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--charcoal);
  background: var(--green);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius);
  font-size: 0.82rem;
}

.brand-logo {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: var(--radius);
}

.brand-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 3px;
}

.site-nav a {
  padding: 10px 11px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 650;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--charcoal);
  background: var(--mint);
}

.header-cta,
.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  color: var(--charcoal);
  background: var(--green);
  border: 1px solid rgba(11, 31, 35, 0.05);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(62, 209, 111, 0.22);
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-cta:hover,
.btn:hover {
  transform: translateY(-2px);
  background: #4be57d;
  box-shadow: 0 16px 34px rgba(62, 209, 111, 0.3);
}

.btn.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: none;
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 142px 0 72px;
  color: var(--white);
  background:
    linear-gradient(110deg, rgba(11, 31, 35, 0.98), rgba(0, 84, 97, 0.95) 58%, rgba(30, 61, 64, 0.96)),
    var(--charcoal);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(168, 230, 207, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 230, 207, 0.09) 1px, transparent 1px);
  background-size: 74px 74px;
  animation: grid-drift 18s linear infinite;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: 54px;
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-bottom: 22px;
  padding: 8px 11px;
  color: var(--mint);
  background: rgba(168, 230, 207, 0.09);
  border: 1px solid rgba(168, 230, 207, 0.22);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 999px;
  box-shadow: 0 0 20px rgba(62, 209, 111, 0.74);
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3rem, 7vw, 6.8rem);
}

.hero-subtext {
  max-width: 680px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.type-line {
  display: inline-flex;
  min-height: 32px;
  margin-top: 24px;
  color: var(--mint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.98rem;
}

.type-line::after {
  content: "";
  width: 8px;
  height: 1.25em;
  margin-left: 7px;
  background: var(--green);
  animation: cursor-blink 0.8s steps(1) infinite;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
}

.proof-item {
  padding: 15px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.proof-item strong {
  display: block;
  color: var(--white);
  font-size: 1.2rem;
}

.proof-item span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.system-panel {
  position: absolute;
  inset: 42px 0 auto;
  min-height: 420px;
  padding: 24px;
  background: rgba(251, 245, 221, 0.08);
  border: 1px solid rgba(168, 230, 207, 0.28);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
}

.system-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--mint);
  font-size: 0.84rem;
  font-weight: 800;
}

.status-bars {
  display: flex;
  gap: 5px;
}

.status-bars span {
  width: 6px;
  height: 22px;
  background: var(--green);
  border-radius: 999px;
  animation: signal 1.2s ease-in-out infinite;
}

.status-bars span:nth-child(2) {
  animation-delay: 0.16s;
}

.status-bars span:nth-child(3) {
  animation-delay: 0.32s;
}

.circuit-map {
  width: 100%;
  height: 300px;
  margin-top: 26px;
}

.trace {
  fill: none;
  stroke: rgba(168, 230, 207, 0.68);
  stroke-width: 2;
  stroke-dasharray: 9 13;
  animation: trace-flow 4.4s linear infinite;
}

.trace.hot {
  stroke: var(--green);
  stroke-width: 3;
  filter: drop-shadow(0 0 8px rgba(62, 209, 111, 0.55));
}

.node {
  fill: var(--mint);
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 2;
  animation: node-pulse 2.8s ease-in-out infinite;
}

.chip-body {
  fill: rgba(11, 31, 35, 0.82);
  stroke: rgba(168, 230, 207, 0.52);
  stroke-width: 2;
}

.dashboard-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric {
  min-height: 76px;
  padding: 14px;
  background: rgba(11, 31, 35, 0.56);
  border: 1px solid rgba(168, 230, 207, 0.16);
  border-radius: var(--radius);
}

.metric span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.metric strong {
  display: block;
  margin-top: 4px;
  color: var(--white);
  font-size: 1.12rem;
}

.floating-tags {
  position: absolute;
  right: 12px;
  bottom: 4px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 360px;
}

.floating-tags span {
  padding: 8px 10px;
  color: var(--charcoal);
  background: var(--mint);
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  animation: tag-float 4s ease-in-out infinite;
}

.floating-tags span:nth-child(2) {
  background: var(--yellow);
  animation-delay: 0.5s;
}

.floating-tags span:nth-child(3) {
  background: var(--green);
  animation-delay: 1s;
}

.floating-tags span:nth-child(4) {
  background: var(--pink);
  animation-delay: 1.5s;
}

.section {
  padding: 98px 0;
}

.section.dark {
  color: var(--white);
  background: var(--charcoal);
}

.section.teal {
  color: var(--white);
  background: var(--deep-teal);
}

.container {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-kicker {
  margin-bottom: 12px;
  color: var(--deep-teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dark .section-kicker,
.teal .section-kicker {
  color: var(--mint);
}

.section-head h2,
.page-hero h1 {
  max-width: 820px;
  font-size: clamp(2.1rem, 4.2vw, 4.2rem);
}

.section-head p,
.page-hero p {
  max-width: 610px;
  color: var(--muted);
  font-size: 1.03rem;
}

.dark .section-head p,
.teal .section-head p,
.page-hero.dark p {
  color: rgba(255, 255, 255, 0.76);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  align-items: center;
  gap: 54px;
}

.copy-block {
  display: grid;
  gap: 20px;
}

.copy-block h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.copy-block p {
  color: var(--muted);
  font-size: 1.05rem;
}

.dark .copy-block p,
.teal .copy-block p {
  color: rgba(255, 255, 255, 0.76);
}

.point-list {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  padding: 0;
  list-style: none;
}

.point-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.point-list li::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--green);
  border-radius: 999px;
}

.ambient-media {
  position: relative;
  min-height: 220px;
  padding: 16px;
  overflow: hidden;
  isolation: isolate;
}

.ambient-media.compact {
  min-height: 160px;
  padding: 12px;
}

.ambient-bg {
  position: absolute;
  inset: -12%;
  z-index: -1;
  width: 120%;
  height: 120%;
  max-width: none;
  object-fit: cover;
  opacity: 0.5;
  filter: blur(28px) saturate(1.08);
  transform: scale(1.03);
}

.ambient-main {
  width: 100%;
  min-height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 0.15px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 16px rgba(11, 31, 35, 0.1);
}

.ambient-media.compact .ambient-main {
  min-height: 150px;
}

.flow-wrap {
  position: relative;
  padding: 48px;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(0, 84, 97, 0.95), rgba(11, 31, 35, 0.98));
  border: 1px solid rgba(168, 230, 207, 0.18);
  border-radius: var(--radius);
}

.flow-wrap::before {
  content: "";
  position: absolute;
  inset: 28px;
  background:
    linear-gradient(90deg, transparent, rgba(168, 230, 207, 0.24), transparent),
    linear-gradient(rgba(168, 230, 207, 0.08) 1px, transparent 1px);
  background-size: 100% 2px, 48px 48px;
  opacity: 0.36;
  animation: grid-drift 16s linear infinite;
}

.flow-track {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  gap: 12px;
}

.flow-node {
  min-height: 174px;
  padding: 18px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(168, 230, 207, 0.2);
  border-radius: var(--radius);
}

.flow-node span {
  color: var(--green);
  font-weight: 900;
}

.flow-node h3 {
  margin-top: 20px;
  font-size: 1.08rem;
}

.flow-node p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.lab-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 18px;
}

.lab-card {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  min-height: 100%;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  transition: var(--transition-premium);
}

.lab-card:hover {
  transform: translateY(-6px);
  border-color: var(--mint);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px rgba(0, 245, 155, 0.08);
}

.lab-card.featured {
  grid-row: span 2;
}

.lab-card .ambient-media {
  min-height: 0;
  padding: 16px;
}

.lab-card.featured .ambient-media {
  min-height: 0;
  padding: 22px;
}

.lab-card .ambient-main {
  aspect-ratio: 16 / 10;
  min-height: 0;
  height: auto;
}

.lab-card.featured .ambient-main {
  min-height: 0;
}

.lab-card-body {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
}

.lab-card-body p {
  color: var(--deep-teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lab-card-body h3 {
  font-size: 1.3rem;
}

.lab-card-body span {
  color: var(--muted);
  font-size: 0.94rem;
}

.lab-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.lab-tags em {
  padding: 7px 9px;
  color: var(--charcoal);
  background: var(--mint);
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 850;
}

.services-grid,
.tech-grid,
.case-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.tech-card,
.case-card,
.gallery-item,
.faq-item,
.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  transition: var(--transition-premium);
}

.process-step {
  border: none;
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  transition: var(--transition-premium);
}

.service-card {
  min-height: 250px;
  padding: 22px;
}

.service-card:hover,
.tech-card:hover,
.case-card:hover,
.process-step:hover,
.faq-item:hover,
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--mint);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px rgba(0, 245, 155, 0.08);
}

.process-step:hover {
  border-left-color: var(--green);
}

.process-step.reveal[data-reveal="flow"]::before {
  display: none;
}

.icon-box {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--charcoal);
  background: var(--mint);
  border-radius: var(--radius);
}

.icon-box svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3,
.tech-card h3,
.gallery-item h3 {
  margin-top: 22px;
  font-size: 1.22rem;
}

.service-card p,
.gallery-item p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.process-step {
  min-height: 230px;
  padding: 20px;
}

.process-step span {
  color: var(--deep-teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.process-step h3 {
  margin-top: 18px;
  font-size: 1.12rem;
}

.process-step p,
.tech-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.tech-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(168, 230, 207, 0.16);
}

.tech-card h3 {
  color: var(--white);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chip-list span {
  padding: 8px 10px;
  color: var(--charcoal);
  background: var(--mint);
  border-radius: var(--radius);
  font-size: 0.86rem;
  font-weight: 800;
}

.case-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.64);
}

.case-content {
  padding: 22px;
}

.case-content h3 {
  font-size: 1.28rem;
}

.case-content dl {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
}

.case-content dt {
  color: var(--deep-teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.case-content dd {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.gallery-item {
  padding: 16px;
}

.gallery-item p {
  color: var(--deep-teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 22px 24px;
  font-weight: 900;
}

.faq-item p {
  padding: 0 24px 22px;
  color: var(--muted);
}

.page-hero {
  padding: 150px 0 76px;
  color: var(--white);
  background: linear-gradient(120deg, rgba(11, 31, 35, 0.98), rgba(0, 84, 97, 0.96));
}

.page-hero .container {
  display: grid;
  gap: 20px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 24px;
}

.feature-card h3 {
  font-size: 1.2rem;
}

.feature-card p {
  margin-top: 12px;
  color: var(--muted);
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: start;
}

.form-panel,
.info-panel {
  padding: 28px;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  transition: var(--transition-premium);
}

.info-panel h2 {
  font-size: clamp(1.3rem, 4.5vw, 2rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-panel .btn {
  width: 100%;
  margin-top: 18px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-weight: 850;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  transition: var(--transition-premium);
}

.field select option {
  background: var(--bg-slate);
  color: var(--text);
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 4px rgba(0, 245, 155, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.form-status {
  margin-top: 16px;
  color: var(--deep-teal);
  font-weight: 800;
}

.admin-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.admin-slots span {
  padding: 8px 10px;
  color: var(--charcoal);
  background: var(--mint);
  border-radius: var(--radius);
  font-size: 0.86rem;
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
  gap: 30px;
  padding: 58px max(18px, calc((100vw - var(--max)) / 2)) 28px;
  color: var(--white);
  background: var(--charcoal);
}

.site-footer h2 {
  margin-bottom: 14px;
  color: var(--mint);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.74);
}

.footer-brand p {
  max-width: 280px;
  margin-top: 18px;
}

.footer-links,
.social-links {
  display: grid;
  gap: 9px;
}

.social-links {
  grid-auto-flow: column;
  justify-content: start;
  margin-top: 16px;
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 24px;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(168, 230, 207, 0.22);
  color: rgba(255, 255, 255, 0.8);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.social-icon-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.social-icon-btn:hover {
  background: rgba(168, 230, 207, 0.18);
  border-color: var(--mint);
  color: var(--mint);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 24px rgba(168, 230, 207, 0.25);
}

.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0ms),
              transform 800ms cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes grid-drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 148px 74px, 74px 74px;
  }
}

@keyframes cursor-blink {
  50% {
    opacity: 0;
  }
}

@keyframes trace-flow {
  to {
    stroke-dashoffset: -120;
  }
}

@keyframes node-pulse {
  50% {
    filter: drop-shadow(0 0 10px rgba(62, 209, 111, 0.7));
    transform: scale(1.02);
  }
}

@keyframes signal {
  50% {
    transform: scaleY(0.45);
    opacity: 0.48;
  }
}

@keyframes tag-float {
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto auto auto;
  }

  .site-nav {
    gap: 0;
  }

  .site-nav a {
    padding-inline: 8px;
    font-size: 0.86rem;
  }

  .hero-inner,
  .split,
  .form-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 520px;
  }

  .flow-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-card.featured {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .services-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .site-header {
    grid-template-columns: auto auto;
    width: min(calc(100% - 20px), var(--max));
    top: 10px;
  }

  .brand span:last-child {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-toggle {
    display: inline-grid;
    justify-self: end;
    width: 44px;
    height: 44px;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
  }

  .nav-toggle span:not(.sr-only) {
    width: 20px;
    height: 2px;
    background: var(--white);
  }

  .site-nav {
    position: fixed;
    inset: 156px 16px auto;
    display: none;
    padding: 12px;
    background: rgba(11, 31, 35, 0.97);
    border: 1px solid rgba(168, 230, 207, 0.2);
    border-radius: var(--radius);
    box-shadow: 0 24px 70px rgba(11, 31, 35, 0.45);
    backdrop-filter: blur(20px);
    z-index: 99;
  }

  .nav-open .site-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .site-nav a {
    display: block;
    text-align: center;
    padding: 12px 20px;
    border-radius: calc(var(--radius) - 4px);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.96rem;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .site-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    transform: translateY(-1px);
  }

  .site-nav a[aria-current="page"] {
    background: var(--mint);
    color: var(--charcoal);
    box-shadow: 0 4px 20px rgba(168, 230, 207, 0.25);
  }

  .header-cta {
    grid-column: 1 / -1;
    width: 100%;
  }

  .hero {
    padding-top: 172px;
  }

  .hero-inner {
    width: min(calc(100% - 28px), var(--max));
    gap: 34px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 4.8rem);
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }

  .system-panel {
    position: relative;
    inset: auto;
    min-height: auto;
    padding: 16px;
    margin-top: 20px;
  }

  .form-grid,
  .feature-grid,
  .case-grid,
  .gallery-grid,
  .tech-grid,
  .lab-grid,
  .services-grid,
  .process-grid,
  .flow-track {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .section-head p {
    max-width: 100%;
  }

  .page-hero {
    padding: 170px 0 40px;
  }

  .section {
    padding: 32px 0;
  }

  .page-hero + .section {
    padding-top: 8px;
  }

  .split {
    gap: 28px;
  }

  .split .copy-block {
    order: 1;
  }

  .split .ambient-media {
    order: 2;
  }

  .ambient-media {
    min-height: auto;
  }

  .ambient-main {
    min-height: auto;
  }

  .flow-wrap {
    padding: 20px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-inline: 20px;
  }

  .site-footer > div {
    min-width: 0;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-links {
    grid-auto-flow: row;
  }

  .social-links {
    grid-auto-flow: column;
    justify-content: start;
    flex-wrap: wrap;
  }

  .site-footer a {
    word-break: break-all;
  }

  .footer-bottom {
    grid-column: 1 / -1;
  }
}

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

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

/* Gallery Carousel Styles */
.gallery-carousel {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.carousel-track {
  position: relative;
  height: 520px;
  width: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  transition: opacity 600ms ease, visibility 600ms ease;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.carousel-slide .ambient-media {
  width: 100%;
  height: 100%;
  min-height: 520px;
  padding: 0;
}

.carousel-slide .ambient-main {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  border-radius: 0;
}

.carousel-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 48px;
  height: 100%;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(8px);
}

.carousel-category {
  color: var(--deep-teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.carousel-title {
  font-size: 1.82rem;
  color: var(--text);
  line-height: 1.15;
}

.carousel-description {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* Nav Arrows */
.carousel-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, opacity 200ms ease;
  opacity: 0;
}

.gallery-carousel:hover .carousel-nav button {
  opacity: 1;
}

.carousel-nav button:hover {
  background: var(--mint);
  transform: translateY(-50%) scale(1.08);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

.carousel-nav svg {
  width: 22px;
  height: 22px;
}

/* Indicators */
.carousel-dots {
  position: absolute;
  bottom: 24px;
  right: 48px;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(11, 31, 35, 0.16);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.carousel-dot.active {
  background: var(--deep-teal);
  transform: scale(1.28);
}

/* Mobile responsive carousel */
@media (max-width: 768px) {
  .carousel-track {
    height: auto;
    min-height: 640px;
  }
  .carousel-slide {
    grid-template-columns: 1fr;
    grid-template-rows: 280px 1fr;
    height: 100%;
  }
  .carousel-slide .ambient-media,
  .carousel-slide .ambient-main {
    min-height: 280px;
  }
  .carousel-info {
    padding: 24px;
    justify-content: flex-start;
  }
  .carousel-dots {
    right: 50%;
    transform: translateX(50%);
    bottom: 16px;
  }
  .carousel-nav button {
    opacity: 0.88;
    top: 140px; /* half of 280px image row — keeps arrows inside the photo */
    transform: translateY(-50%);
  }
  .carousel-nav button:hover {
    transform: translateY(-50%) scale(1.08);
  }
  .carousel-prev {
    left: 10px;
  }
  .carousel-next {
    right: 10px;
  }
}

/* Page Transition States */
.site-shell {
  opacity: 0;
  transform: scale(0.99);
  transition: opacity 450ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-shell.page-loaded {
  opacity: 1;
  transform: scale(1);
}

.site-shell.page-leaving {
  opacity: 0;
  transform: scale(0.99);
}

/* Header Auto-hide & scroll styles */
.site-header {
  transition: var(--transition-premium), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.site-header.header-hidden {
  transform: translate(-50%, -100px);
}


/* Lenis Scroll Overrides */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* === FUTURISTIC ANIMATIONS === */
#site-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 42%, rgba(62, 209, 111, 0.12), transparent 34%),
    var(--charcoal);
  opacity: 1;
  transition: opacity 400ms ease, visibility 400ms ease;
}

#site-loader[hidden] {
  display: none;
}

#site-loader.is-done {
  visibility: hidden;
  opacity: 0;
}

.loader-core {
  display: grid;
  justify-items: center;
  gap: 22px;
  width: min(420px, calc(100% - 48px));
}

.loader-circuit {
  width: min(320px, 76vw);
  color: var(--green);
  filter: drop-shadow(0 0 14px rgba(62, 209, 111, 0.48));
}

.loader-circuit path,
.loader-circuit circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.loader-circuit path {
  stroke-dasharray: 380;
  stroke-dashoffset: 380;
  animation: loader-trace 980ms cubic-bezier(0.22, 1, 0.36, 1) 120ms forwards;
}

.loader-circuit circle {
  opacity: 0;
  animation: loader-node 420ms ease forwards;
}

.loader-circuit circle:nth-of-type(1) {
  animation-delay: 560ms;
}

.loader-circuit circle:nth-of-type(2) {
  animation-delay: 760ms;
}

.loader-circuit circle:nth-of-type(3) {
  animation-delay: 960ms;
}

.loader-status {
  display: grid;
  gap: 7px;
  width: 100%;
  color: rgba(168, 230, 207, 0.82);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
}

.loader-status span {
  opacity: 0;
  transform: translateY(8px);
  animation: loader-status 360ms ease forwards;
}

.loader-status span:nth-child(1) {
  animation-delay: 220ms;
}

.loader-status span:nth-child(2) {
  animation-delay: 600ms;
}

.loader-status span:nth-child(3) {
  animation-delay: 980ms;
}

.loader-status span:nth-child(4) {
  animation-delay: 1320ms;
}

.loader-wordmark {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 6vw, 3.2rem);
  font-weight: 800;
  opacity: 0;
  text-align: center;
  animation: loader-wordmark 520ms ease 1520ms forwards;
}

.loader-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(168, 230, 207, 0.14);
  overflow: hidden;
}

.loader-progress::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  animation: loader-progress 2.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#page-transition-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  width: 100%;
  height: 2px;
  background: var(--green);
  box-shadow: 0 0 16px rgba(62, 209, 111, 0.55);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

#page-transition-bar.is-active {
  animation: page-bar 220ms ease forwards;
}

.site-shell {
  opacity: 0;
  transform: scale(1.01);
  transition:
    opacity 280ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.site-shell.page-loaded {
  opacity: 1;
  transform: scale(1);
}

.site-shell.page-leaving {
  opacity: 0;
  transform: scale(0.98);
  transition-duration: 220ms;
}

.reveal[data-reveal] {
  --reveal-delay: var(--delay, 0ms);
  opacity: 0;
  transition-delay: var(--reveal-delay);
  will-change: opacity, transform, filter;
}

.reveal[data-reveal="spark"] {
  filter: brightness(4) blur(6px);
  transform: scale(0.97);
  transition:
    opacity 500ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal[data-reveal="flow"] {
  position: relative;
  transform: translateY(28px);
  transition:
    opacity 400ms cubic-bezier(0.22, 1, 0.36, 1) 200ms,
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal[data-reveal="flow"]::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: var(--green);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 200ms ease;
}

.reveal[data-reveal="circuit"] {
  position: relative;
  transform: translateY(12px);
  transition:
    opacity 400ms cubic-bezier(0.22, 1, 0.36, 1) 300ms,
    transform 400ms cubic-bezier(0.22, 1, 0.36, 1) 300ms;
}

.reveal[data-reveal="circuit"]::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 14px;
  width: min(74px, calc(100% - 28px));
  height: 2px;
  background:
    linear-gradient(90deg, var(--green), rgba(168, 230, 207, 0.24)),
    var(--green);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 300ms ease;
}

.reveal[data-reveal="pulse"] {
  transform: translateY(16px);
  transition:
    opacity 400ms ease-out,
    transform 400ms ease-out;
}

.reveal.is-visible,
.reveal.is-revealed {
  opacity: 1;
  filter: brightness(1) blur(0);
  transform: translateY(0) scale(1);
}

.reveal.is-visible[data-reveal="flow"]::before,
.reveal.is-revealed[data-reveal="flow"]::before {
  transform: scaleY(1);
}

.reveal.is-visible[data-reveal="circuit"]::before,
.reveal.is-revealed[data-reveal="circuit"]::before {
  clip-path: inset(0 0 0 0);
}

.section.dark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.section.dark::before {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(62, 209, 111, 0.06), rgba(0, 84, 97, 0.1) 28%, transparent 58%);
  background-size: 200% 200%;
  opacity: 0.95;
  animation: ambient-energy 12s ease-in-out infinite;
  animation-play-state: paused;
}

.section.dark.is-in-view::before {
  animation-play-state: running;
}

.section.dark > .container,
.section.dark > .hero-inner {
  position: relative;
  z-index: 1;
}

.service-card,
.feature-card,
.btn,
.header-cta {
  position: relative;
  overflow: hidden;
}

.service-card,
.feature-card {
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease,
    background 200ms ease;
}

.service-card::after,
.feature-card::after {
  content: "";
  position: absolute;
  right: auto;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 250ms ease;
}

.service-card:hover,
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--green);
  box-shadow: 0 0 18px rgba(62, 209, 111, 0.18);
}

.service-card:hover::after,
.feature-card:hover::after {
  width: 100%;
}

.site-nav a {
  transition: background 160ms ease, color 160ms ease, text-shadow 200ms ease;
}

.site-nav a:hover {
  text-shadow: 0 0 12px rgba(62, 209, 111, 0.5);
}

.btn::after,
.header-cta::after {
  content: "";
  position: absolute;
  inset: -45% auto -45% -70%;
  width: 42%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.58), transparent);
  transform: skewX(-18deg);
  opacity: 0;
}

.btn:hover::after,
.header-cta:hover::after {
  animation: button-shimmer 400ms ease;
}

@keyframes loader-trace {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes loader-node {
  to {
    opacity: 1;
  }
}

@keyframes loader-status {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loader-wordmark {
  to {
    opacity: 1;
  }
}

@keyframes loader-progress {
  to {
    transform: scaleX(1);
  }
}

@keyframes page-bar {
  to {
    transform: scaleX(1);
  }
}

@keyframes ambient-energy {
  0%,
  100% {
    background-position: 0% 50%;
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  25% {
    background-position: 65% 15%;
    transform: translate3d(2%, -2%, 0) scale(1.04);
  }
  50% {
    background-position: 100% 60%;
    transform: translate3d(3%, 2%, 0) scale(1.02);
  }
  75% {
    background-position: 35% 100%;
    transform: translate3d(-1%, 3%, 0) scale(1.05);
  }
}

@keyframes button-shimmer {
  0% {
    opacity: 0;
    transform: translateX(0) skewX(-18deg);
  }
  22% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(420%) skewX(-18deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  #site-loader {
    transition-duration: 400ms !important;
  }

  .loader-circuit path,
  .loader-circuit circle,
  .loader-status span,
  .loader-wordmark,
  .loader-progress::before,
  #page-transition-bar,
  .section.dark::before,
  .btn::after,
  .header-cta::after {
    animation: none !important;
  }

  .loader-circuit path {
    stroke-dashoffset: 0;
  }

  .loader-circuit circle,
  .loader-status span,
  .loader-wordmark {
    opacity: 1;
    transform: none;
  }

  .loader-progress::before {
    transform: scaleX(1);
  }

  .site-shell,
  .reveal[data-reveal] {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none !important;
  }

  .reveal[data-reveal]::before {
    transition: none !important;
  }

  .section.dark::before {
    animation: none;
  }
}

/* Vortiq Chatbot Assistant Widget */
.vortiq-chatbot {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-body);
}

.chatbot-toggle {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: var(--charcoal);
  background: var(--mint);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 16px 44px rgba(0, 245, 155, 0.22);
  transition: var(--transition-premium);
  outline: none;
}

.chatbot-toggle:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 20px 50px rgba(0, 245, 155, 0.3);
}

.chatbot-toggle svg {
  width: 24px;
  height: 24px;
  grid-area: 1 / 1;
}

.chatbot-window {
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 360px;
  height: 480px;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: chat-fade-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes chat-fade-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chatbot-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: var(--deep-teal);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chatbot-header h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
}

.chatbot-header span {
  font-size: 0.76rem;
  color: var(--mint);
  display: block;
}

.chatbot-header .brand-mark {
  background: var(--white);
  color: var(--charcoal);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.74rem;
}

.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(11, 31, 35, 0.02);
}

.chat-msg {
  max-width: 82%;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  animation: msg-slide 0.3s ease forwards;
}

@keyframes msg-slide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bot-msg {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.85);
  color: var(--charcoal);
  border: 1px solid rgba(11, 31, 35, 0.05);
  border-top-left-radius: 2px;
}

.user-msg {
  align-self: flex-end;
  background: var(--deep-teal);
  color: var(--white);
  border-top-right-radius: 2px;
}

.chatbot-submit-btn {
  display: inline-flex;
  margin-top: 10px;
  width: 100%;
  text-align: center;
  justify-content: center;
  background: var(--green) !important;
  color: var(--charcoal) !important;
  font-size: 0.82rem;
  padding: 10px 14px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(5, 255, 143, 0.2);
}

.chatbot-submit-btn:hover {
  transform: translateY(-1px);
  background: #3ee69a !important;
}

.chatbot-input-area {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  gap: 10px;
}

.chatbot-input-area input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
  font-size: 0.88rem;
  transition: var(--transition-premium);
}

.chatbot-input-area input:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(0, 245, 155, 0.15);
}

.chatbot-input-area button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 8px;
  background: var(--deep-teal);
  color: var(--white);
  cursor: pointer;
  transition: var(--transition-premium);
}

.chatbot-input-area button:hover {
  background: #00767e;
  transform: scale(1.05);
}

.chatbot-input-area button svg {
  width: 18px;
  height: 18px;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  align-items: center;
  width: fit-content;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: var(--slate);
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typing-bounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .chatbot-window {
    width: min(calc(100vw - 32px), 340px);
    height: 420px;
    bottom: 66px;
  }
  .vortiq-chatbot {
    right: 16px;
    bottom: 16px;
  }
}
