:root {
  --primary: #00e5a8;
  --secondary: #ffffff;
  --theme-color: #0b1220;
  --bg: #020617;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: #e5e7eb;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial;
}

.brand-link {
  text-decoration: none;     /* remove underline */
  color: inherit;            /* inherit text color */
  display: inline-block;     /* allow block-level children */
  user-select: none;
}
.brand-logo {
  background: var(--primary);
  border-radius: 4px;
  padding: 2px;
}
.brand-text-mobile {
  display: none;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  padding:16px 0;
}
.nav-container {
  display:flex;
  justify-content:space-between;
  align-items:center;
    /*flex-direction: column;*/
  gap: 0;
}
.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-links  {
    display:flex;
    gap:20px;
    color:#cbd5e1;
}
.hamburger {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  display: none;
}
.main {
    background: radial-gradient(800px 500px at 15% -10%, rgba(0, 229, 168, 0.18), transparent 60%), radial-gradient(700px 400px at 90% 10%, rgba(14, 165, 233, 0.16), transparent 60%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}
.card {
  /*background:rgba(2,6,23,.6)*/
  background: #0f172a;
  border: 1px solid #0f172a;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
header,
footer {
  border-color: #0f172a;
  /*border-style: solid;*/
}
header {
  border-bottom-width: 1px;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 40;
}
footer {
  border-top-width: 1px;
}
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 16px;
  font-weight: 700;
  cursor: pointer;
}
.primary {
  background: var(--primary);
  color: #0b1220;
  border: none;
}
.muted {
  /*background: #0b1220;*/
  background: var(--secondary);
  color: #0b1220;
  border: 1px solid #0f172a;
}
a {
  color: inherit;
  text-decoration: none;
}
.grid {
  display: grid;
  gap: 24px;
}
input,
textarea {
      font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  width: 100%;
  background: #0b1220;
  border: 1px solid #0f172a;
  border-radius: 12px;
  padding: 10px 12px;
  color: #e5e7eb;
  outline: none;
}
.hero-bg {
  background: radial-gradient(
      800px 500px at 15% -10%,
      rgba(0, 229, 168, 0.18),
      transparent 60%
    ),
    radial-gradient(
      700px 400px at 90% 10%,
      rgba(14, 165, 233, 0.16),
      transparent 60%
    );
}
.badge {
  display: inline-flex;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid #1f2937;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.6);
  font-size: 12px;
  font-weight: 700;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 22px;
}
.brand img {
  height: 36px;
}
.muted-text {
  color: #94a3b8;
}
/*
.chat-log {
  height: 220px;
  overflow-y: auto;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid #0f172a;
  border-radius: 12px;
  padding: 12px;
}
*/
.chip {
  font-size: 10px;
  text-transform: uppercase;
  opacity: 0.6;
  margin-right: 8px;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  overflow-y: auto;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid #0f172a;
  border-radius: 12px;
  padding: 12px;
}

.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}

.chat-message.assistant {
  align-self: flex-start;
}

.chat-message.user {
  align-self: flex-end;
  text-align: right;
}

.chat-message .chip {
  font-size: 10px;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 4px;
  color: #94a3b8;
}
.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bubble {
  background: #0f172a;
  color: #e5e7eb;
  padding: 12px;
  border-radius: 12px;
  line-height: 1.5;
}

.chat-message.user .bubble {
  background: #1e293b;
  color: #cbd5e1;
}
.grid-2.no-collapse {
  /*display: flex;*/
  gap: 24px;
  align-items: flex-start;
}

.grid-2.no-collapse > div {
  flex: 1;
  min-width: 0;
}
.hide {
    display: none;
}
.lead-form-btn {
    width: fit-content;
}
.logo-marquee-wrapper {
    margin-top: 24px;
  overflow: hidden;
  width: 100%;
  position: relative;
}

.logo-marquee-track {
  display: flex;
  gap: 24px;
  animation: scrollMarquee 30s linear infinite;
  /*width: max-content;*/
}

.logo-marquee-track .card {
  text-align: center;
  padding: 24px 8px;
  min-width: 120px;
  white-space: nowrap;
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}
  /* Animate SVG path drawing */
  .path-animate {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}

.animate-path {
  animation: drawPath 2.5s ease forwards;
}

@keyframes drawPath {
  to {
    stroke-dashoffset: 0;
  }
}
  /*
.path-animate {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawPath 2.5s ease forwards;
}

@keyframes drawPath {
  to {
    stroke-dashoffset: 0;
  }
}
*/
/* Pulse animation for circles */

.pulse {
  /*animation: pulseCircle 1.8s ease-in-out infinite;*/
  transform-origin: center;
}
.animate-pulse {
  animation: pulseCircle 1.8s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes pulseCircle {
  0%, 100% {
    r: 10;
    opacity: 1;
  }
  50% {
    r: 14;
    opacity: 1;
  }
}

/* Fade-in text labels */
.fade-label {
  opacity: 0;
  animation: fadeInText 1s ease forwards;
  animation-delay: 2.5s; /* starts after line is drawn */
}

@keyframes fadeInText {
  to {
    opacity: 1;
  }
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
/*
@media (max-width: 1024px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  nav {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .brand {
    font-size: 18px;
    gap: 10px;
  }

  .brand img {
    height: 32px;
  }

  .hero-bg h1 {
    font-size: 36px !important;
    line-height: 1.2 !important;
  }

  .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}
@media (max-width: 767px) {
  .grid-2.no-collapse {
    flex-direction: column;
  }

  .chat-log {
    max-height: 300px;
    overflow-y: auto;
  }

  .chat-message .bubble {
    font-size: 14px;
  }

  .card {
    padding: 16px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .brand,
  .badge,
  h1,
  p,
  ul {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }

  .hero-bg h1 {
    font-size: 28px !important;
    line-height: 1.3 !important;
  }

  .muted-text,
  p,
  li {
    font-size: 14px !important;
  }

  .btn {
    width: 100%;
  }

  header .container {
    padding: 12px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  footer .container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .card {
    padding: 16px;
  }

  h2 {
    font-size: 24px !important;
  }

  h3 {
    font-size: 18px !important;
  }

  .chat-log {
    height: 180px;
  }
}
*/
@media (max-width: 768px) {
    header, footer {
        padding: 0 16px;
    }
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
    .brand-text {
    display: none;
  }
  .brand-text-mobile {
  display: block;
}
  .brand-text::before {
    content: "Recovery\nAgent\nSupport";
    display: block;
  }

  .brand-text {
    visibility: hidden; /* Hide original text */
  }
/*
  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
*/
    .nav-container {
  justify-content:unset;
  align-items:unset;
    flex-direction: column;
    padding: 16px 0 8px 0;
        gap: 8px;
    }
  .hamburger {
    display: block;
    color: var(--primary);
  }

  .nav-links {
    /*display: none;*/
    flex-direction: column;
    width: 100%;
    gap: 12px;
    /*padding: 12px 0;*/
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-links.show {
    /*display: flex;*/
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
    /*padding: 12px 0;*/
  }

  .nav-links a {
    padding: 8px 0;
    width: 100%;
    /*display: block;*/
  }
  
  section {
      padding: 32px 16px !important;
      content-visibility: auto;
      contain-intrinsic-size: 1000px; /* fallback height */
  }
  
  .hero-bg .container {
      padding: 40px 0 !important;
  }
  
.fade-label {
    font-size: xx-large;
  }
    .fade-label:nth-of-type(1) {
    transform: translate(-30px, 20px);
  }
  
    .fade-label:nth-of-type(2) {
    transform: translate(-45px, -5px);
  }
  
    .fade-label:nth-of-type(3) {
    transform: translate(-25px, -5px);
  }

  .fade-label:nth-of-type(4) {
    transform: translate(-30px, 20px);
  }
}

@media (min-width: 769px) and (max-width: 1120px) {
    header, footer {
        padding: 0 16px;
    }
    
    section {
      padding: 32px 16px !important;
    }
}