/* =========================================================
   VSPAZE — HELP DESK / CHATBOT PAGE
   ========================================================= */

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #ffffff;
  color: #082f35;
}

::selection {
  background: #78ffd6;
  color: #062f35;
}
img,
svg {
  max-width: 100%;
}
button,
a,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:root {
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Global utilities ---------- */
.gradient {
  background: linear-gradient(135deg, #007991 0%, #0b9fac 45%, #78ffd6 100%);
  background-size: 220% 220%;
  animation: gradientSweep 9s ease-in-out infinite;
}
@keyframes gradientSweep {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.gradient-text {
  background: linear-gradient(135deg, #007991, #00a6a6, #38d9c5);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientFlow 7s ease infinite;
}
@keyframes gradientFlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.dark-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 45px 45px;
}
.grid-pattern {
  background-image:
    linear-gradient(rgba(0, 121, 145, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 121, 145, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
}

.blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
}

.shadow-glow {
  animation: glowBreath 4s ease-in-out infinite;
}
@keyframes glowBreath {
  0%,
  100% {
    box-shadow: 0 0 32px rgba(120, 255, 214, 0.22);
  }
  50% {
    box-shadow: 0 0 58px rgba(120, 255, 214, 0.42);
  }
}

.glass-dark {
  background: linear-gradient(
    135deg,
    rgba(5, 35, 40, 0.55),
    rgba(0, 121, 145, 0.3)
  );
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(120, 255, 214, 0.25);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* ---------- Scroll progress & cursor ---------- */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #007991, #78ffd6);
  z-index: 100000;
  box-shadow: 0 0 14px rgba(120, 255, 214, 0.6);
  pointer-events: none;
}
#cursor {
  position: fixed;
  width: 15px;
  height: 15px;
  border: 2px solid #78ffd6;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition:
    width 0.2s,
    height 0.2s;
  mix-blend-mode: difference;
}
@media (max-width: 768px) {
  #cursor {
    display: none;
  }
}

/* =========================================================
   NAVBAR
   ========================================================= */
#navbar {
  color: #082f35;
}

#navbar.nav-scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 12px 40px rgba(0, 45, 55, 0.1);
}

#navbar .navbar-brand-name {
  color: #ffffff;
}
#navbar .navbar-brand-sub {
  color: rgba(255, 255, 255, 0.72);
}
#navbar.nav-scrolled .navbar-brand-name {
  color: #062f35;
}
#navbar.nav-scrolled .navbar-brand-sub {
  color: #007991;
}

#navbar .nav-link {
  color: rgba(255, 255, 255, 0.94);
  position: relative;
  transition: color 0.35s ease;
}
#navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, #78ffd6, #ffffff);
  transition: right 0.45s var(--ease-premium);
}
#navbar .nav-link:hover {
  color: #78ffd6;
}
#navbar .nav-link:hover::after {
  right: 0;
}
#navbar .nav-link.is-active {
  color: #78ffd6;
}
#navbar .nav-link.is-active::after {
  right: 0;
}

#navbar.nav-scrolled .nav-link {
  color: #143d43;
}
#navbar.nav-scrolled .nav-link:hover {
  color: #007991;
}
#navbar.nav-scrolled .nav-link::after {
  background: linear-gradient(90deg, #007991, #78ffd6);
}
#navbar.nav-scrolled .nav-link.is-active {
  color: #007991;
}

#menuBtn {
  border: 1px solid rgba(0, 121, 145, 0.15);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 25px rgba(0, 60, 70, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: 0.4s var(--ease-premium);
}
#menuBtn:hover {
  transform: scale(1.04);
}

.menu-line {
  position: absolute;
  width: 21px;
  height: 2px;
  border-radius: 99px;
  background: #062f35;
  transition:
    transform 0.4s var(--ease-premium),
    opacity 0.25s ease,
    width 0.3s ease;
}
.line-one {
  transform: translateY(-7px);
}
.line-two {
  transform: translateY(0);
}
.line-three {
  transform: translateY(7px);
}
#menuBtn.is-open .line-one {
  transform: rotate(45deg);
}
#menuBtn.is-open .line-two {
  opacity: 0;
  width: 0;
}
#menuBtn.is-open .line-three {
  transform: rotate(-45deg);
}

#mobileMenu {
  position: absolute;
  left: 10px;
  right: 10px;
  top: calc(100% + 8px);
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  transform: translateY(-12px) scale(0.985);
  transform-origin: top center;
  border: 1px solid rgba(0, 121, 145, 0.13);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 28px 80px rgba(0, 42, 52, 0.2);
  transition:
    max-height 0.55s var(--ease-premium),
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.45s var(--ease-premium);
  z-index: 99;
}
#mobileMenu.is-open {
  max-height: calc(100vh - 92px);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  overflow-y: auto;
}
.mobile-menu-inner {
  padding: 15px;
}
.mobile-menu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px 13px;
  margin-bottom: 3px;
}
.mobile-menu-heading span:first-child {
  display: block;
  color: #007991;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.mobile-menu-heading strong {
  display: block;
  color: #062f35;
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  margin-top: 3px;
}
.mobile-menu-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #78ffd6;
  box-shadow:
    0 0 0 6px rgba(120, 255, 214, 0.12),
    0 0 20px rgba(120, 255, 214, 0.55);
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 13px;
  margin: 3px 0;
  border-radius: 14px;
  color: #143d43;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.35s var(--ease-premium);
}
.mobile-nav-link span {
  display: flex;
  align-items: center;
  gap: 11px;
}
.mobile-nav-link small {
  color: #007991;
  font-size: 9px;
  font-weight: 800;
  opacity: 0.5;
}
.mobile-nav-link svg {
  width: 16px;
  opacity: 0.28;
}
.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: linear-gradient(
    90deg,
    rgba(0, 121, 145, 0.08),
    rgba(120, 255, 214, 0.14)
  );
  color: #007991;
  transform: translateX(4px);
}
.mobile-menu-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 51px;
  margin-top: 9px;
  border-radius: 16px;
  background: linear-gradient(135deg, #007991, #0b9fac, #78ffd6);
  color: white;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(0, 121, 145, 0.22);
}
@media (min-width: 1024px) {
  #mobileMenu {
    display: none !important;
  }
}
@media (max-width: 1023px) {
  #navbar {
    overflow: visible;
  }
  #mobileMenu {
    display: block;
  }
}
@media (max-width: 480px) {
  #mobileMenu {
    left: 7px;
    right: 7px;
  }
  .mobile-menu-inner {
    padding: 12px;
  }
}

/* =========================================================
   HERO ANIMATIONS
   ========================================================= */
#home .inline-flex {
  animation: heroBadge 1.1s var(--ease-premium) both;
}
#home h1 {
  animation: heroTitle 1.1s 0.12s var(--ease-premium) both;
}
#home p {
  animation: heroCopy 1s 0.25s var(--ease-premium) both;
}
#home .flex.flex-wrap {
  animation: heroCopy 1s 0.38s var(--ease-premium) both;
}
#home .flex.gap-10 {
  animation: heroCopy 1s 0.52s var(--ease-premium) both;
}

@keyframes heroBadge {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.94);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
@keyframes heroTitle {
  from {
    opacity: 0;
    transform: translateY(35px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
@keyframes heroCopy {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

#home .glass-dark {
  transform-style: preserve-3d;
  animation: dashboardFloat 7s ease-in-out infinite;
}
@keyframes dashboardFloat {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg);
  }
  50% {
    transform: translateY(-10px) rotateX(1deg);
  }
}

#home .blob {
  animation: blobDrift 16s ease-in-out infinite alternate;
}
#home .blob:nth-of-type(2) {
  animation-duration: 20s;
  animation-direction: alternate-reverse;
}
@keyframes blobDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(30px, -40px, 0) scale(1.15);
  }
}

#home .inline-flex span:first-child {
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(120, 255, 214, 0.55);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(120, 255, 214, 0);
  }
}

#home h1 .text-mint {
  animation: mintGlow 4s ease-in-out infinite;
}
@keyframes mintGlow {
  0%,
  100% {
    text-shadow: 0 0 0 rgba(120, 255, 214, 0);
  }
  50% {
    text-shadow: 0 0 24px rgba(120, 255, 214, 0.55);
  }
}

#home .animate-spinSlow {
  animation:
    spin 22s linear infinite,
    ringGlow 5s ease-in-out infinite;
}
@keyframes ringGlow {
  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.15);
  }
  50% {
    border-color: rgba(120, 255, 214, 0.45);
  }
}

#home .absolute.top-16,
#home .absolute.bottom-20 {
  animation: floatCard 6s ease-in-out infinite;
}
#home .absolute.bottom-20 {
  animation-duration: 7.5s;
  animation-delay: 0.8s;
}
@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
#home .flex.gap-10 strong {
  display: inline-block;
  animation: statPop 3s ease-in-out infinite;
}
#home .flex.gap-10 div:nth-child(2) strong {
  animation-delay: 0.5s;
}
#home .flex.gap-10 div:nth-child(3) strong {
  animation-delay: 1s;
}
@keyframes statPop {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.05);
  }
}

/* =========================================================
   2 · LIVE CHAT SECTION
   ========================================================= */
.hd-chat-section {
  position: relative;
  padding: 100px 0 120px;
  background: #f6fbfa;
  overflow: hidden;
}
.hd-chat-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 121, 145, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 121, 145, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.6;
  pointer-events: none;
}
.hd-chat-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.hd-chat-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1023px) {
  .hd-chat-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ---------- Sidebar ---------- */
.hd-side {
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(0, 121, 145, 0.12);
  padding: 22px 20px;
  box-shadow: 0 18px 50px rgba(0, 121, 145, 0.08);
  position: sticky;
  top: 110px;
}
@media (max-width: 1023px) {
  .hd-side {
    position: static;
  }
}

.hd-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0, 121, 145, 0.1);
}
.hd-side-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hd-side-logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #007991, #0b9fac, #78ffd6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 10px 22px rgba(0, 121, 145, 0.25);
}
.hd-side-logo strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #062f35;
}
.hd-side-logo span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #647b7f;
  margin-top: 3px;
  font-weight: 600;
}
.hd-side-logo span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.65);
  animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.hd-side-new {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(0, 121, 145, 0.18);
  background: #ffffff;
  color: #007991;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.35s var(--ease-premium);
}
.hd-side-new:hover {
  background: linear-gradient(135deg, #007991, #0b9fac, #78ffd6);
  color: #ffffff;
  border-color: transparent;
  transform: rotate(90deg);
  box-shadow: 0 10px 22px rgba(0, 121, 145, 0.28);
}

.hd-side-section {
  margin-top: 22px;
}
.hd-side-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #007991;
  margin-bottom: 12px;
}
.hd-side-topics {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hd-topic {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #143d43;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s var(--ease-premium);
}
.hd-topic i {
  color: #007991;
  flex-shrink: 0;
}
.hd-topic:hover {
  background: linear-gradient(
    90deg,
    rgba(0, 121, 145, 0.06),
    rgba(120, 255, 214, 0.12)
  );
  border-color: rgba(0, 121, 145, 0.14);
  transform: translateX(3px);
  color: #007991;
}

.hd-side-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #143d43;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.3s var(--ease-premium);
}
.hd-side-link i {
  color: #007991;
  flex-shrink: 0;
}
.hd-side-link .hd-chev {
  margin-left: auto;
  opacity: 0.4;
  transition:
    transform 0.35s var(--ease-premium),
    opacity 0.3s ease;
}
.hd-side-link:hover {
  background: linear-gradient(
    90deg,
    rgba(0, 121, 145, 0.06),
    rgba(120, 255, 214, 0.12)
  );
  color: #007991;
}
.hd-side-link:hover .hd-chev {
  opacity: 1;
  transform: translateX(3px);
}

/* ---------- Chat panel ---------- */
.hd-panel {
  position: relative;
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid rgba(0, 121, 145, 0.12);
  box-shadow: 0 40px 100px rgba(0, 121, 145, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 720px;
  max-height: calc(100vh - 140px);
}

@media (max-width: 1023px) {
  .hd-panel {
    height: 640px;
    max-height: none;
  }
}
@media (max-width: 560px) {
  .hd-panel {
    height: 580px;
    border-radius: 22px;
  }
}

.hd-panel-head {
  padding: 18px 22px;
  background: linear-gradient(135deg, #062f35 0%, #053d45 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}
.hd-panel-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hd-avatar-bot {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #007991, #0b9fac, #78ffd6);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(120, 255, 214, 0.28);
}
.hd-avatar-dot {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #062f35;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}
.hd-panel-user strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 700;
}
.hd-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 3px;
}
.hd-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #78ffd6;
  box-shadow: 0 0 8px rgba(120, 255, 214, 0.8);
}

.hd-panel-actions {
  display: flex;
  gap: 8px;
}
.hd-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.35s var(--ease-premium);
}
.hd-icon-btn:hover {
  background: rgba(120, 255, 214, 0.18);
  border-color: rgba(120, 255, 214, 0.4);
  color: #78ffd6;
  transform: translateY(-2px);
}
.hd-icon-btn.is-muted {
  color: rgba(255, 255, 255, 0.35);
}

/* Messages area */
.hd-messages {
  flex: 1;
  overflow-y: auto;
  padding: 26px 22px 12px;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(120, 255, 214, 0.1),
      transparent 40%
    ),
    radial-gradient(
      circle at 0% 100%,
      rgba(0, 121, 145, 0.05),
      transparent 40%
    ),
    #f6fbfa;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}
.hd-messages::-webkit-scrollbar {
  width: 6px;
}
.hd-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 121, 145, 0.22);
  border-radius: 99px;
}

/* Message rows */
.hd-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  max-width: 82%;
  animation: hdRowIn 0.45s var(--ease-premium) both;
}
@keyframes hdRowIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hd-row.is-user {
  margin-left: auto;
  flex-direction: row-reverse;
}

.hd-bot-avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #007991, #0b9fac, #78ffd6);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(0, 121, 145, 0.22);
}
.hd-row.is-user .hd-bot-avatar {
  display: none;
}

.hd-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.55;
  max-width: 100%;
  word-wrap: break-word;
  position: relative;
}
.hd-row.is-bot .hd-bubble {
  background: #ffffff;
  border: 1px solid rgba(0, 121, 145, 0.12);
  color: #062f35;
  border-bottom-left-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 121, 145, 0.06);
}
.hd-row.is-user .hd-bubble {
  background: linear-gradient(135deg, #007991, #0b9fac, #78ffd6);
  color: #ffffff;
  border-bottom-right-radius: 6px;
  box-shadow: 0 10px 22px rgba(0, 121, 145, 0.25);
}

.hd-time {
  display: block;
  font-size: 10px;
  color: #94a8ac;
  margin-top: 6px;
  letter-spacing: 0.02em;
}
.hd-row.is-user .hd-time {
  color: rgba(255, 255, 255, 0.7);
  text-align: right;
}

/* Typing indicator */
.hd-typing {
  display: inline-flex;
  gap: 4px;
  padding: 4px 0;
}
.hd-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #007991;
  opacity: 0.5;
  animation: hdType 1.2s ease-in-out infinite;
}
.hd-typing span:nth-child(2) {
  animation-delay: 0.2s;
}
.hd-typing span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes hdType {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

/* Quick replies */
.hd-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 22px 4px;
  background: #ffffff;
  flex-shrink: 0;
}
.hd-quick:empty {
  display: none;
}
.hd-quick-btn {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgba(0, 121, 145, 0.22);
  background: #f6fbfa;
  color: #007991;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.35s var(--ease-premium);
  animation: hdChipIn 0.5s var(--ease-premium) both;
}
@keyframes hdChipIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hd-quick-btn:hover {
  background: linear-gradient(135deg, #007991, #0b9fac, #78ffd6);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 121, 145, 0.22);
}

/* Composer */
.hd-composer {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 14px 18px 12px;
  background: #ffffff;
  border-top: 1px solid rgba(0, 121, 145, 0.1);
  flex-shrink: 0;
  position: relative;
}
.hd-input {
  flex: 1;
  min-height: 48px;
  max-height: 140px;
  padding: 13px 16px;
  border-radius: 16px;
  border: 1px solid rgba(0, 121, 145, 0.16);
  background: #f6fbfa;
  font-family: inherit;
  font-size: 14.5px;
  color: #062f35;
  resize: none;
  outline: none;
  line-height: 1.5;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}
.hd-input::placeholder {
  color: #94a8ac;
}
.hd-input:focus {
  border-color: #007991;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 121, 145, 0.1);
}

.hd-composer-btn {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(0, 121, 145, 0.16);
  background: #f6fbfa;
  color: #007991;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.35s var(--ease-premium);
}
.hd-composer-btn:hover {
  background: linear-gradient(135deg, #007991, #0b9fac, #78ffd6);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 121, 145, 0.28);
}
.hd-composer-send {
  background: linear-gradient(135deg, #007991, #0b9fac, #78ffd6);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(0, 121, 145, 0.28);
}
.hd-composer-send:hover {
  transform: translateY(-2px) scale(1.04);
}

/* Emoji panel */
.hd-emoji-panel {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 80px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(0, 121, 145, 0.14);
  box-shadow: 0 22px 55px rgba(0, 121, 145, 0.18);
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  z-index: 10;
  animation: hdEmojiIn 0.3s var(--ease-premium) both;
}
.hd-emoji-panel[hidden] {
  display: none;
}
@keyframes hdEmojiIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hd-emoji-panel button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.25s ease,
    transform 0.25s var(--ease-premium);
}
.hd-emoji-panel button:hover {
  background: rgba(0, 121, 145, 0.1);
  transform: scale(1.15);
}

.hd-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px 16px;
  font-size: 11.5px;
  color: #94a8ac;
  background: #ffffff;
  border-top: 1px solid rgba(0, 121, 145, 0.06);
  margin: 0;
  flex-shrink: 0;
}
.hd-footnote i {
  color: #007991;
}
.hd-footnote a {
  color: #007991;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 121, 145, 0.4);
}
.hd-footnote a:hover {
  border-bottom-style: solid;
}

/* =========================================================
   3 · ARTICLES
   ========================================================= */
.hd-articles {
  padding: 110px 0;
  background: #ffffff;
  position: relative;
}
.hd-articles-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.hd-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.hd-head-dark {
  text-align: center;
}

.hd-eyebrow {
  display: inline-block;
  padding-left: 16px;
  position: relative;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #007991;
}
.hd-eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #78ffd6;
  box-shadow: 0 0 12px rgba(120, 255, 214, 0.8);
  animation: hdDot 2s ease-in-out infinite;
}
.hd-eyebrow-light {
  color: #78ffd6;
}
@keyframes hdDot {
  0%,
  100% {
    opacity: 0.4;
    transform: translateY(-50%) scale(0.8);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
  }
}

.hd-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #062f35;
  margin: 16px 0 0;
  line-height: 1.1;
}
.hd-title-light {
  color: #ffffff;
}

.hd-sub {
  color: #647b7f;
  font-size: 17px;
  margin-top: 16px;
  line-height: 1.65;
}

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

.hd-article {
  position: relative;
  padding: 30px 26px 26px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(0, 121, 145, 0.1);
  text-decoration: none;
  color: #062f35;
  overflow: hidden;
  transition:
    transform 0.6s var(--ease-premium),
    box-shadow 0.6s ease,
    border-color 0.4s ease;
}
.hd-article::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at 85% 0%,
    rgba(120, 255, 214, 0.16),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.hd-article:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 121, 145, 0.28);
  box-shadow: 0 35px 80px rgba(0, 121, 145, 0.16);
}
.hd-article:hover::before {
  opacity: 1;
}

.hd-article-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 12px 25px rgba(0, 121, 145, 0.18);
  transition: transform 0.6s var(--ease-premium);
}
.hd-article-icon.bg-slate-950 {
  color: #78ffd6;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}
.hd-article:hover .hd-article-icon {
  transform: rotate(-6deg) scale(1.08);
}

.hd-article h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #062f35;
  letter-spacing: -0.01em;
  margin: 22px 0 0;
}
.hd-article p {
  color: #647b7f;
  font-size: 14px;
  line-height: 1.65;
  margin-top: 10px;
}
.hd-article-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 121, 145, 0.1);
  color: #007991;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: gap 0.35s var(--ease-premium);
}
.hd-article:hover .hd-article-link {
  gap: 14px;
}

/* =========================================================
   4 · CHANNELS
   ========================================================= */
.hd-channels {
  padding: 120px 0;
  background: #041f24;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}
.hd-channels::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 45px 45px;
  opacity: 0.5;
  pointer-events: none;
}
.hd-channels::after {
  content: "";
  position: absolute;
  top: -220px;
  right: -180px;
  width: 620px;
  height: 420px;
  border-radius: 50%;
  background: rgba(120, 255, 214, 0.12);
  filter: blur(140px);
  pointer-events: none;
}
.hd-channels-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.hd-channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
@media (max-width: 900px) {
  .hd-channels-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
}

.hd-channel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 30px 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(120, 255, 214, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-decoration: none;
  color: #ffffff;
  transition:
    transform 0.55s var(--ease-premium),
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.5s ease;
}
.hd-channel:hover {
  transform: translateY(-6px);
  background: rgba(5, 43, 49, 0.72);
  border-color: rgba(120, 255, 214, 0.32);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.32);
}

.hd-channel-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 12px;
  box-shadow: 0 12px 25px rgba(0, 121, 145, 0.25);
}
.hd-channel-icon.bg-mint {
  color: #062f35;
  box-shadow: 0 12px 25px rgba(120, 255, 214, 0.28);
}

.hd-channel-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #78ffd6;
}
.hd-channel strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  word-break: break-word;
}
.hd-channel-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
}

/* =========================================================
   FOOTER (shared)
   ========================================================= */
footer a {
  transition:
    transform 0.4s var(--ease-premium),
    color 0.4s ease,
    background 0.4s ease,
    border-color 0.4s ease;
}

.footer-newsletter {
  position: relative;
  padding: 26px 28px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 26px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.065),
    rgba(120, 255, 214, 0.025)
  );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}
.footer-newsletter::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -80px;
  top: -100px;
  border-radius: 50%;
  background: rgba(120, 255, 214, 0.1);
  filter: blur(45px);
  pointer-events: none;
}
.footer-email-input {
  width: 100%;
  min-width: 260px;
  height: 50px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  outline: none;
  background: rgba(255, 255, 255, 0.07);
  color: white;
  font-size: 14px;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}
.footer-email-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.footer-email-input:focus {
  border-color: rgba(120, 255, 214, 0.55);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(120, 255, 214, 0.07);
}
.footer-subscribe-btn {
  height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #78ffd6;
  color: #062f35;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.35s var(--ease-premium),
    box-shadow 0.35s ease;
}
.footer-subscribe-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(120, 255, 214, 0.35);
}
.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
}
.footer-contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(120, 255, 214, 0.1);
  color: #78ffd6;
  transition:
    background 0.35s ease,
    color 0.35s ease,
    transform 0.45s var(--ease-premium);
}
.footer-contact-row:hover .footer-contact-icon {
  background: #78ffd6;
  color: #062f35;
  transform: translateY(-2px);
}
.footer-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  display: inline-block;
  transition:
    color 0.3s ease,
    transform 0.35s var(--ease-premium);
}
.footer-link:hover {
  color: #78ffd6;
  transform: translateX(3px);
}
.footer-heading {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 20px;
}
.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-social:hover {
  transform: translateY(-4px);
}

@media (max-width: 640px) {
  .footer-newsletter {
    padding: 22px 18px;
    border-radius: 22px;
  }
  .footer-email-input {
    min-width: 0;
  }
  .footer-subscribe-btn {
    width: 100%;
  }
}
@media (max-width: 1023px) {
  .footer-heading {
    margin-bottom: 16px;
  }
}

#topBtn {
  transition:
    opacity 0.35s ease,
    transform 0.45s var(--ease-premium),
    box-shadow 0.45s ease;
}
#topBtn:hover {
  transform: translateY(-5px) scale(1.08);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translate3d(0, 45px, 0) scale(0.985);
  filter: blur(4px);
  transition:
    opacity 0.9s var(--ease-premium),
    transform 1s var(--ease-premium),
    filter 0.9s var(--ease-premium);
  will-change: transform, opacity, filter;
}
.reveal.show {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* =========================================================
   RESPONSIVE POLISH
   ========================================================= */
@media (max-width: 1024px) {
  .hd-chat-inner,
  .hd-articles-inner,
  .hd-channels-inner {
    padding: 0 22px;
  }

  .hd-chat-section {
    padding: 70px 0 90px;
  }
  .hd-articles,
  .hd-channels {
    padding: 80px 0;
  }
}
@media (max-width: 560px) {
  .hd-chat-section {
    padding: 50px 0 70px;
  }
  .hd-articles,
  .hd-channels {
    padding: 60px 0;
  }
  .hd-messages {
    padding: 20px 16px 8px;
  }
  .hd-composer {
    padding: 12px 14px 10px;
  }
  .hd-quick {
    padding: 12px 16px 4px;
  }
  .hd-side {
    padding: 18px 16px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  #home .inline-flex,
  #home h1,
  #home p,
  #home .flex.flex-wrap,
  #home .flex.gap-10,
  #home .glass-dark,
  #home .blob,
  #home .animate-spinSlow,
  #home .absolute.top-16,
  #home .absolute.bottom-20,
  #home .flex.gap-10 strong {
    animation: none !important;
  }
}
