/* Base Reset */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: #0a0a0a;
  color: #111;
}

:root {
  --gray-900: #0a0a0a;
  --gray-800: #111;
  --gray-700: #1a1a1a;
  --gray-600: #262626;
  --gray-500: #2e2e2e;
  --gray-400: #3a3a3a;
  --gray-300: #4a4a4a;
  --gray-200: #666;
  --gray-100: #888;

  --c1: #2b8a3e; /* deep green */
  --c2: #1e66f5; /* electric blue */
  --c3: #ea76cb; /* pink */
  --c4: #e64553; /* red */
  --c5: #f59f00; /* amber */
}

/* Header Nav  */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0d0e10; /* near-black */
  border-bottom: 2px solid #171717; /* subtle separation */
}

.color-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px; /* slightly taller for brutalist spacing */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  color: #e6e6e6;
  text-decoration: none;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #ffffff;
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-block;
  z-index: 1000;
}

.nav-link--dropdown {
  position: relative;
  z-index: 1001;
}

.nav-link--dropdown::after {
  content: none; /* hide dropdown caret */
}

/* no rotation needed when caret is hidden */

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--gray-800);
  border: 1px solid var(--gray-600);
  border-radius: 4px;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-item {
  display: block;
  padding: 16px 20px;
  color: #e6e6e6;
  text-decoration: none;
  border-bottom: 1px solid var(--gray-600);
  transition: all 0.3s ease;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: var(--gray-700);
  color: #ffffff;
}

.dropdown-item__title {
  display: block;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.dropdown-item__description {
  display: block;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 400;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

/* Mobile Menu */
.nav__hamburger {
  display: none;
}

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hamburger-btn span {
  width: 20px;
  height: 2px;
  background: #e6e6e6;
  transition: all 0.3s ease;
}

.nav__mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--gray-800);
  border-top: 1px solid var(--gray-600);
  z-index: 1000;
}

.nav__mobile-links {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav-link-mobile {
  color: #e6e6e6;
  text-decoration: none;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  padding: 8px 0;
}

.nav-link-mobile:hover {
  color: #ffffff;
}

.language-selector-mobile {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-600);
}

.language-select-mobile {
  background: transparent;
  border: none;
  color: #e6e6e6;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.language-select-mobile:hover {
  background: var(--gray-700);
}

/* Mobile menu active states */
.nav__mobile-menu.active {
  display: block;
}

.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.language-selector {
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--gray-600);
}

.language-select {
  background: transparent;
  border: none;
  color: #e6e6e6;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.language-select:hover {
  background: var(--gray-700);
}

.language-select:focus {
  background: var(--gray-700);
}

.nav-logo {
  display: block;
  width: 200px;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
}

.color-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.color-nav__item {
  display: block;
  height: 40px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px #1f1f1f inset, 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: calc(100dvh - 72px);
  background: linear-gradient(rgba(8, 8, 8, 0.86), rgba(8, 8, 8, 0.86)),
    url("./assets/background-raw-opt.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Product pages hero - reduced height */
.hero--product {
  min-height: auto;
  padding: 60px 0 80px;
}

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 16px 120px;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  position: relative;
  z-index: 1;
  animation: fade-up 700ms cubic-bezier(0.22, 0.61, 0.36, 1) 120ms both;
}

/* Product pages hero inner - reduced padding */
.hero--product .hero__inner {
  padding: 40px 16px 60px;
}

@media (max-width: 768px) {
  .hero--product .hero__inner {
    padding: 40px 16px 0px;
  }
}

.hero__title {
  margin: 0 0 20px 0;
  color: #e6e6e6;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-size: clamp(40px, 8vw, 66px);
  text-align: left;
}

/* Homepage hero subtitle - smaller size like product descriptions */
.hero__subtitle {
  margin: 0 0 24px 0;
  color: #d1d1d1;
  font-weight: 300;
  line-height: 1.3;
  font-size: 18px;
  text-align: left;
  animation: fade-up 700ms cubic-bezier(0.22, 0.61, 0.36, 1) 150ms both;
}

/* Hero CTA Button */
.hero__cta {
  appearance: none;
  border: 0;
  background: rgba(245, 245, 245, 0.98);
  color: #0d0e10;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 16px;
  padding: 14px 24px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(255, 255, 255, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fade-up 700ms cubic-bezier(0.22, 0.61, 0.36, 1) 200ms both;
}

.hero__cta:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 255, 255, 0.1), 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Hero CTA positioning - make hero inner flex */
.hero__inner {
  display: flex;
  flex-direction: column;
}

/* Homepage hero CTA positioning */
body.homepage .hero__cta {
  align-self: flex-end;
  margin-top: 24px;
}

/* Nexus hero CTA positioning */
.hero--product .hero__cta {
  align-self: flex-end;
  margin-top: 12px;
}

/* Product pages hero subtitle - larger size */
.hero--product .hero__subtitle {
  font-size: clamp(18px, 3.5vw, 28px);
}

.hero__description {
  margin: 0;
  color: #bdbdbd;
  font-weight: 200;
  line-height: 1.5;
  font-size: clamp(12px, 2.2vw, 16px);
  max-width: 80ch;
  text-align: left;
  animation: fade-up 700ms cubic-bezier(0.22, 0.61, 0.36, 1) 180ms both;
}

.hero__animation {
  margin-top: 32px;
  display: grid;
  place-items: center;
  animation: fade-up 700ms cubic-bezier(0.22, 0.61, 0.36, 1) 240ms both;
}

.hero__animation-frame {
  width: min(960px, 100%);
  height: clamp(380px, 52vh, 720px);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 10px 40px rgba(0, 0, 0, 0.4);
  background: transparent;
}

/* Restart control */
.hero__restart {
  position: absolute;
  right: 24px;
  bottom: 24px;
  background: rgba(255, 255, 255, 0.06);
  color: #bdbdbd;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.hero__restart:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #e6e6e6;
  border-color: rgba(255, 255, 255, 0.2);
}

.hero__restart:active {
  background: rgba(255, 255, 255, 0.18);
}

.upload-btn {
  appearance: none;
  border: 0;
  background: rgba(245, 245, 245, 0.98);
  color: #0d0e10;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: clamp(14px, 1.8vw, 16px);
  padding: 14px 22px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(255, 255, 255, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.24);
  transform: translateZ(0);
  opacity: 0; /* GSAP handles the sequence */
}

/* Routes initial layout */
.routes {
  margin-top: 24px;
  display: grid;
  grid-template-rows: repeat(5, auto);
  gap: 14px;
  width: min(960px, 100%);
  opacity: 0;
}

.row {
  display: flex;
  align-items: center; /* vertical center within each line */
  gap: 16px; /* gaps between routes */
  min-height: 44px;
}

.card {
  height: 44px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__inner,
  .hero__subtitle,
  .hero__description,
  .hero__animation,
  .hero__animation-frame {
    animation: none !important;
  }
}

/* Grainy noise overlay for brutalist look */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(
      1px 1px at 10% 20%,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 50%,
      transparent 51%
    ),
    radial-gradient(
      1px 1px at 30% 40%,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 50%,
      transparent 51%
    ),
    radial-gradient(
      1px 1px at 70% 30%,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 50%,
      transparent 51%
    ),
    radial-gradient(
      1px 1px at 50% 60%,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 50%,
      transparent 51%
    ),
    radial-gradient(
      1px 1px at 85% 80%,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 50%,
      transparent 51%
    ),
    radial-gradient(
      2px 2px at 20% 70%,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 50%,
      transparent 51%
    ),
    radial-gradient(
      2px 2px at 40% 15%,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 50%,
      transparent 51%
    ),
    radial-gradient(
      2px 2px at 75% 55%,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 50%,
      transparent 51%
    ),
    radial-gradient(
      3px 3px at 60% 85%,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 50%,
      transparent 51%
    ),
    radial-gradient(
      3px 3px at 15% 50%,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 50%,
      transparent 51%
    ),
    radial-gradient(
      4px 4px at 35% 85%,
      rgba(255, 255, 255, 0.014) 0,
      rgba(255, 255, 255, 0.014) 50%,
      transparent 51%
    ),
    radial-gradient(
      4px 4px at 90% 50%,
      rgba(255, 255, 255, 0.014) 0,
      rgba(255, 255, 255, 0.014) 50%,
      transparent 51%
    );
  background-size: 300px 300px, 320px 280px, 280px 320px, 300px 300px,
    360px 320px, 420px 420px, 400px 440px, 420px 380px, 520px 520px, 520px 520px,
    640px 640px, 680px 680px;
  background-color: rgba(10, 10, 10, 0.32);
  mix-blend-mode: multiply;
  opacity: 0.88;
  filter: contrast(140%) brightness(90%) saturate(70%);
}

/* Subtle scanlines / texture */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: linear-gradient(
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px
  );
  background-size: 100% 3px;
  opacity: 0.35;
  mix-blend-mode: soft-light;
}

/* Products Section */
.products {
  background: var(--gray-900); /* Very dark grey background */
  padding: 80px 0;
}

/* CTA Section */
.cta-section {
  background: var(--gray-800);
  padding: 80px 0;
  border-top: 1px solid var(--gray-700);
}

.cta-section__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}

.cta-section__title {
  margin: 0 0 16px 0;
  color: #ffffff;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 500;
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.cta-section__subtitle {
  margin: 0 0 32px 0;
  color: #bdbdbd;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.4;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section__button {
  appearance: none;
  border: 0;
  background: rgba(245, 245, 245, 0.98);
  color: #0d0e10;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(255, 255, 255, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-section__button:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 255, 255, 0.1), 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Nexus CTA Section */
.nexus-cta-section {
  background: var(--gray-700); /* Slightly lighter background for visibility */
  padding: 80px 0;
  border-top: 2px solid var(--gray-600); /* More visible border */
}

.nexus-cta-section__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}

.nexus-cta-section__title {
  margin: 0 0 16px 0;
  color: #ffffff;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 500;
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.nexus-cta-section__subtitle {
  margin: 0 0 32px 0;
  color: #bdbdbd;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.4;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.nexus-cta-section__button {
  appearance: none;
  border: 0;
  background: rgba(245, 245, 245, 0.98); /* White background */
  color: #0d0e10; /* Dark text */
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 18px; /* Larger font for visibility */
  padding: 18px 36px; /* Larger padding */
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(255, 255, 255, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transition: all 0.3s ease;
}

.nexus-cta-section__button:hover {
  background: #ffffff; /* Pure white on hover */
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 255, 255, 0.1), 0 4px 8px rgba(0, 0, 0, 0.3);
}

.products__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.products__subtitle {
  text-align: center;
  margin-bottom: 60px;
}

.products__subtitle-text {
  font-family: "Roboto Mono", monospace;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 300;
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
  animation: fade-up 700ms cubic-bezier(0.22, 0.61, 0.36, 1) 200ms both;
}

.products__layout {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 28px;
  align-items: start;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
}

body.homepage .products__container {
  display: flex;
  flex-direction: column;
  gap: 28px; /* reduced gap between products */
  align-items: flex-start;
  padding-top: 120px;
  padding-left: 80px;
  position: relative;
}

/* New Product Connection Design */
body.homepage .product-connection {
  position: relative;
  width: 100%;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr; /* box then line that fills to the right */
  grid-auto-rows: auto;
  align-items: center; /* vertically center line with box */
  column-gap: 0; /* no gap between box and line */
  row-gap: 6px; /* reduced spacing to description below */
  transition: row-gap 300ms cubic-bezier(0.85, 0, 0.15, 1);
}

body.homepage .connection-line {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  width: 100%; /* fill remaining space */
  height: 2px;
  background: #e6e6e6;
  z-index: 1;
  transition: all 0.3s ease;
  margin-left: 0; /* start flush after the box */
}

/* ensure the line visually touches the box border and description sits below */
body.homepage .product-box {
  grid-column: 1;
  grid-row: 1;
  margin-left: 0;
  width: max-content; /* box fits the word + padding */
}
body.homepage .product-description {
  grid-column: 1 / span 2;
  grid-row: 2;
}

.connection-line--axis {
  background: #e6e6e6; /* neutral by default; color on hover */
}

.connection-line--nexus {
  background: #e6e6e6; /* neutral by default; color on hover */
}

.connection-line--index {
  background: #e6e6e6; /* neutral by default; color on hover */
}

body.homepage .product-box {
  position: relative;
  z-index: 2;
  display: inline-block;
  padding: 8px 10px; /* smaller box */
  border: 2px solid #ffffff;
  background: transparent;
  transition: all 0.3s ease;
  will-change: transform;
}

body.homepage .product-box--axis,
body.homepage .product-box--nexus,
body.homepage .product-box--index {
  border-color: #ffffff; /* neutral by default; color on hover */
}

body.homepage .product-box__title {
  margin: 0;
  color: #ffffff;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 500;
  font-size: 14px; /* smaller title */
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap; /* prevent wrapping inside the box */
}

body.homepage .product-description {
  margin-top: 8px;
  max-width: 400px;
  opacity: 1;
  transition: none;
}

body.homepage .product-description p {
  margin: 0;
  color: #bdbdbd;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 200;
  font-size: 13px; /* slightly smaller */
  line-height: 1.35;
}

/* Hover effects for new design */
/* No size animation on hover; only color changes elsewhere */

body.homepage .product-connection:hover .product-box {
  background: rgba(255, 255, 255, 0.05);
}

body.homepage .product-connection:hover .product-description {
  opacity: 1;
}

/* More info CTA - Always visible bottom-right */
body.homepage .product-more {
  grid-column: 2;
  grid-row: 3;
  justify-self: end;
  align-self: start;
  margin-top: 6px;
  padding: 6px 10px;
  background: transparent;
  color: #ffffff; /* always white */
  border: 1.5px solid #ffffff; /* always white */
  border-radius: 8px;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: none;
}

/* Hover effects removed - button always visible */

/* Mobile: Smaller button size and reduced spacing */
@media (max-width: 1024px) {
  body.homepage .product-more {
    padding: 4px 8px; /* Smaller padding */
    font-size: 10px; /* Smaller font */
    border-width: 1px; /* Thinner border */
    margin-top: 4px; /* Even less margin on mobile */
  }

  body.homepage .product-description {
    margin-top: 6px; /* Reduced margin on mobile */
  }
}

/* Layout fixed - no hover effects needed */

/* Colorize on hover per product */
.product-connection--axis:hover .connection-line {
  background: #eb7217;
}
.product-connection--axis:hover .product-box {
  border-color: #eb7217;
}

.product-connection--nexus:hover .connection-line {
  background: #673ab7;
}
.product-connection--nexus:hover .product-box {
  border-color: #673ab7;
}

.product-connection--index:hover .connection-line {
  background: #54a4ff;
}
.product-connection--index:hover .product-box {
  border-color: #54a4ff;
}

/* Stretched clickable link overlay */
.product-card__link {
  position: absolute;
  inset: 0;
  z-index: 10;
  text-indent: -9999px;
  overflow: hidden;
}

.product-card__link:focus-visible {
  outline: 2px solid #e6e6e6;
  outline-offset: 4px;
  border-radius: 10px;
}

/* Product cards (generic) used in product subpages (Axis/Nexus/Index).
   These styles do NOT affect the homepage list because that uses
   `.product-connection` instead of `.product-card`. */
.product-card {
  width: 100%;
  position: relative;
  transition: all 0.3s ease;
}

.product-card__content {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.product-card__indicator {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.product-card__indicator--axis {
  background: #eb7217;
}
.product-card__indicator--nexus {
  background: #673ab7;
}
.product-card__indicator--index {
  background: #54a4ff;
}

.product-card__title {
  margin: 0;
  color: #e6e6e6;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.product-card__line {
  flex: 1;
  height: 1px;
  background: #e6e6e6;
  margin-left: 16px;
}

.product-card__description {
  margin: 12px 0 0 28px;
  color: #bdbdbd;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 200;
  font-size: 14px;
  line-height: 1.4;
  max-width: 500px;
}

/* Nexus page-specific spacing tweaks */
.nexus-products .product-card {
  margin-bottom: 18px; /* add a bit more gap between items */
}
.nexus-products .product-card__content {
  gap: 18px; /* slightly more separation between dot, title and line */
}
.nexus-products .product-card__description {
  margin-top: 14px; /* more air below the header row */
}

@media (max-width: 640px) {
  .color-nav__list {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }
  .color-nav__item {
    height: 36px;
    border-radius: 7px;
  }
  .hero {
    min-height: 40vh;
  }

  .products {
    padding: 60px 0;
  }

  .cta-section {
    padding: 60px 0;
  }

  .cta-section__title {
    font-size: clamp(20px, 3.5vw, 28px);
  }

  .cta-section__subtitle {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .cta-section__button {
    font-size: 14px;
    padding: 14px 24px;
  }

  .nexus-cta-section {
    padding: 60px 0;
  }

  .nexus-cta-section__title {
    font-size: clamp(20px, 3.5vw, 28px);
  }

  .nexus-cta-section__subtitle {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .nexus-cta-section__button {
    font-size: 14px;
    padding: 14px 24px;
  }

  .products__subtitle {
    margin-bottom: 40px;
  }

  .products__subtitle-text {
    font-size: clamp(20px, 3.5vw, 28px);
  }

  .products__container {
    gap: 40px;
  }

  .connection-line {
    width: 120px;
    right: -10px;
  }

  .product-connection:hover .connection-line {
    width: 150px;
  }

  .product-box {
    padding: 10px 16px;
  }

  .product-box__title {
    font-size: 16px;
  }

  .product-description {
    max-width: 300px;
  }

  .product-description p {
    font-size: 13px;
  }
}

/* Chart Container */
.chart-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80vh; /* taller so layers don't clip when separated */
  overflow: hidden;
}

/* Mobile responsive */
@media (max-width: 1024px) {
  .products__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .products__container {
    padding-top: 0;
    align-items: center;
  }

  .connection-line {
    display: none; /* Hide lines on mobile/tablet */
  }

  .product-box {
    text-align: center;
  }

  .chart-container {
    height: 420px;
  }
}

/* Footer */
.site-footer {
  background: var(--gray-900);
  border-top: 1px solid var(--gray-700);
  padding: 40px 0;
  margin-top: 80px;
}

/* Contact Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal--open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
}

.modal__dialog {
  position: relative;
  width: min(560px, 92vw);
  background: rgba(17, 17, 17, 0.98);
  border: 1px solid var(--gray-700);
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  padding: 20px 20px 16px 20px;
  transform: translateY(10px);
  opacity: 0;
  animation: modalIn 280ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes modalIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal__title {
  margin: 0 0 12px 0;
  color: #ffffff;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #e6e6e6;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  color: #bdbdbd;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--gray-800);
  border: 1px solid var(--gray-600);
  border-radius: 8px;
  color: #e6e6e6;
  padding: 10px 12px;
  outline: none;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 400;
  font-size: 14px;
}

.form-input:focus,
.form-textarea:focus {
  border-color: #afafaf;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

/* reCAPTCHA container inside modal */
#contact-recaptcha {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

.submit-btn {
  appearance: none;
  border: 0;
  background: rgba(245, 245, 245, 0.98);
  color: #0d0e10;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 500;
  letter-spacing: 0.08em;
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(255, 255, 255, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.24);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-status {
  margin: 8px 0 0 0;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 400;
  font-size: 12px;
}

.form-status--success {
  color: #7ad87a;
}
.form-status--error {
  color: #e64553;
}

/* Collapse form on success: keep only status message visible */
.contact-form--collapsed .form-row,
.contact-form--collapsed .form-actions,
.contact-form--collapsed #contact-recaptcha {
  display: none;
}
.contact-form--collapsed .form-status {
  display: block !important;
  text-align: center;
  margin-top: 4px;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.footer__left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.footer__logo {
  display: flex;
  align-items: center;
}

.footer-logo {
  width: 120px;
  height: auto;
  opacity: 0.8;
}

.footer__links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.footer-link {
  color: #bdbdbd;
  text-decoration: none;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #e6e6e6;
}

.footer__right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  text-align: right;
}

.footer-copyright,
.footer-email {
  margin: 0;
  color: #888;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 200;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.footer-email {
  color: #bdbdbd;
}

/* Back link style */
.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: #bdbdbd;
  text-decoration: none;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
  width: fit-content; /* Prevent full width expansion */
  flex-shrink: 0; /* Prevent shrinking in flex container */
}

.back-link:hover {
  color: #e6e6e6;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
}

/* back icon */
.back-link::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 8px;
  vertical-align: -0.1em;
  background: url("./assets/arrow-left.svg") no-repeat center / contain;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-link:hover::before {
  opacity: 1;
  transform: translateX(-2px);
}

/* Mobile navbar hamburger */
.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.3s ease;
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: #bdbdbd;
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav__hamburger--open .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger--open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__hamburger--open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav__mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--gray-900);
  border-top: 1px solid var(--gray-700);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.nav__mobile-menu--open {
  max-height: 80vh; /* allow full list to show */
  overflow-y: auto;
}

.nav__mobile-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 16px;
}

.nav-link-mobile {
  color: #bdbdbd;
  text-decoration: none;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  padding: 8px 0;
}

.nav-link-mobile:hover {
  color: #e6e6e6;
}

.language-selector-mobile {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-700);
}

.language-select-mobile {
  background: transparent;
  border: none;
  color: #e6e6e6;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.language-select-mobile:hover {
  background: var(--gray-700);
}

/* Mobile responsive navbar */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__mobile-menu {
    display: block;
  }

  .color-nav {
    position: relative;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    min-width: auto;
  }

  .dropdown-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-600);
  }

  .dropdown-item__title {
    font-size: 13px;
  }

  .dropdown-item__description {
    font-size: 11px;
  }
}

@media (max-width: 640px) {
  .nav__mobile-links {
    padding: 16px;
  }

  .nav-link-mobile {
    font-size: 13px;
  }

  .language-select-mobile {
    font-size: 13px;
  }
}

/* Mobile responsive footer */
@media (max-width: 768px) {
  .footer__content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer__left {
    flex-direction: column;
    gap: 20px;
  }

  .footer__right {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 32px 0;
    margin-top: 60px;
  }

  .footer__content {
    gap: 20px;
  }

  .footer__links {
    gap: 24px;
  }

  .footer-logo {
    width: 100px;
  }

  .footer-link {
    font-size: 13px;
  }

  .footer-copyright,
  .footer-email {
    font-size: 11px;
  }
}

/* Screenshot Placeholder Section */
.screenshot-section {
  background: #000000;
  height: 85vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.screenshot-container {
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 16px;
}

.screenshot-image {
  width: 100%;
  max-width: 90%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--gray-600);
  transition: transform 0.1s ease-out;
  transform-origin: center center;
  will-change: transform;
}

/* Axis Content Section */
.axis-content {
  background: var(--gray-900);
  padding: 40px 0 80px 0;
  min-height: 400px;
}

.axis-content__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Index Content Section */
.index-content {
  background: var(--gray-900);
  padding: 40px 0 80px 0;
  min-height: 400px;
}

.index-content__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Audio Visualization */
.audio-visualization {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 20px 0 60px 0;
}

.audio-wave {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 80px;
  justify-content: center;
}

.wave-bar {
  width: 4px;
  height: var(--height, 20px);
  background: #eb7217;
  border-radius: 2px;
  transition: height 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Index specific wave color */
.index-content .wave-bar {
  background: #54a4ff;
}

.audio-controls {
  display: flex;
  gap: 20px;
  align-items: center;
}

.audio-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e6e6e6;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.audio-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.audio-btn:active {
  transform: scale(0.98);
}

.audio-btn svg {
  width: 24px;
  height: 24px;
}

/* Bento Grid */
.bento-section {
  background: var(--gray-900);
  padding: 80px 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  min-height: 600px;
}

.bento-box {
  background: var(--gray-800);
  border: 1px dashed var(--gray-600);
  border-radius: 4px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  transition: border-color 0.6s ease;
  position: relative;
  overflow: hidden;
}

.bento-box:hover {
  border-color: #afafaf;
}

.bento-box--2x2 {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-box--3x2 {
  grid-column: span 3;
  grid-row: span 2;
}

.bento-box--3x3 {
  grid-column: span 3;
  grid-row: span 3;
  padding-bottom: 0;
}

.bento-box--3x3:hover .floating-info-card {
  bottom: 60px;
  left: 60px;
  min-width: 320px;
  transform: scale(1.05);
}

.bento-box--2x3 {
  grid-column: span 2;
  grid-row: span 3;
}

.bento-box--2x3 {
  padding-bottom: 0;
}

.bento-box__title {
  color: #ffffff;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 20px 0;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

.bento-box__description {
  color: rgba(255, 255, 255, 0.9);
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 20px 0;
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.3);
}

/* Gmail Screenshot Styles */
.gmail-screenshot-container {
  position: relative;
  margin-top: 24px;
  margin-left: -24px;
  margin-right: -24px;
  margin-bottom: -32px;
  width: calc(120% + 48px);
  height: calc(350px + 32px);
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
}
.gmail-screenshot {
  width: 80%;
  height: 200%;
  object-fit: cover;
  object-position: 0 0; /* Show top-left quarter */
  opacity: 0.85;
  transform-origin: top left;
  border-radius: 8px;
}

/* Floating Info Card */
.floating-info-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid var(--gray-600);
  border-radius: 8px;
  padding: 16px;
  backdrop-filter: blur(10px);
  z-index: 10;
  min-width: 280px;
  transition: all 0.4s ease;
}

.info-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.info-card__logo-container {
  animation: nexusGlow 2s ease-in-out infinite alternate;
  border-radius: 50%;
  padding: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(234, 118, 203, 0.1);
}

.info-card__logo {
  height: 24px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes nexusGlow {
  0% {
    box-shadow: 0 0 5px rgba(234, 118, 203, 0.3);
  }
  100% {
    box-shadow: 0 0 15px rgba(234, 118, 203, 0.8);
  }
}

.info-card__title {
  color: rgba(255, 255, 255, 0.9);
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.info-card__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-card__item {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.info-card__number {
  color: #ffffff;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 700;
  font-size: 12px;
}

.info-card__text {
  color: rgba(255, 255, 255, 0.9);
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.4;
}

/* Company Cards */
.company-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: auto;
  align-items: center;
  justify-content: center;
}

.company-card {
  background: var(--gray-800);
  border: 1px solid var(--gray-600);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.company-card:hover {
  border-color: var(--gray-500);
  background: var(--gray-700);
}

/* Hover effects for company cards - triggered by bento box hover */
.bento-box:hover .company-card--warning {
  filter: blur(2px);
  opacity: 0.6;
  transform: scale(0.95);
  transition: all 0.3s ease;
}

.bento-box:hover .company-card--verified {
  transform: scale(1.1);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(30, 102, 245, 0.3);
  border-color: #1e66f5;
  transition: all 0.3s ease;
}

.company-card__logo {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  flex-shrink: 0;
}

.company-card__logo--blue {
  background: #1e66f5;
}

.company-card__logo--white {
  background: #ffffff;
}

.company-card__logo--pink {
  background: #ea76cb;
}

.company-card__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 8px;
}

.company-card__name {
  color: #ffffff;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.company-card__status {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  flex-shrink: 0;
}

.company-card__status--warning {
  background: #f59f00;
  color: white;
}

.company-card__status--verified {
  background: #1e66f5;
  color: white;
}

/* Chart and Metrics Container */
.chart-metrics-container {
  margin-top: auto;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: center;
}

/* Sales Chart */
.sales-chart {
  flex: 1;
  padding: 16px;
  background: var(--gray-700);
  border-radius: 8px;
  border: 1px solid var(--gray-600);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.chart-title {
  color: #ffffff;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.chart-value {
  color: #2b8a3e;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.sales-chart-container {
  height: 80px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.chart-svg {
  width: 100%;
  height: 100%;
}

.chart-area {
  transition: all 0.3s ease;
}

.chart-line {
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 4px rgba(30, 102, 245, 0.3));
}

/* Hover effects for sales chart */
.sales-chart:hover .chart-area {
  fill: url(#chartGradient);
  filter: brightness(1.2);
}

.sales-chart:hover .chart-line {
  stroke-width: 3;
  filter: drop-shadow(0 0 8px rgba(30, 102, 245, 0.6));
}

/* Metrics Chips */
.metrics-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 350px;
  flex-shrink: 0;
  justify-self: center;
}

.metric-chip {
  background: var(--gray-800);
  border: 1px solid var(--gray-600);
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.metric-chip.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.metric-chip__arrow {
  color: #2b8a3e;
  font-size: 14px;
  font-weight: bold;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.metric-chip.animate-in .metric-chip__arrow {
  animation: arrowUp 0.6s ease-out;
}

.metric-chip__text {
  color: #ffffff;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.025em;
  line-height: 1.2;
}

@keyframes arrowUp {
  0% {
    transform: translateY(8px);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-4px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Bento Grid Responsive */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 16px;
  }

  .bento-box--2x2 {
    grid-column: span 2;
    grid-row: span 2;
  }

  .bento-box--3x2 {
    grid-column: span 3;
    grid-row: span 2;
  }

  .bento-box--3x3 {
    grid-column: span 3;
    grid-row: span 2;
  }

  .bento-box--2x3 {
    grid-column: span 2;
    grid-row: span 2;
  }
}

@media (max-width: 768px) {
  .screenshot-section {
    height: auto;
    min-height: auto;
    padding: 20px 0;
    margin: 0;
    display: block;
  }

  .screenshot-container {
    padding: 0;
    margin: 0;
  }

  .screenshot-image {
    max-width: 95%;
    border-radius: 8px;
    transform: none !important;
  }

  .axis-content {
    padding: 30px 0 60px 0;
    min-height: 300px;
  }

  .index-content {
    padding: 30px 0 60px 0;
    min-height: 300px;
  }

  .audio-visualization {
    gap: 30px;
    padding: 15px 0 40px 0;
  }

  .audio-wave {
    gap: 6px;
    height: 60px;
  }

  .wave-bar {
    width: 3px;
  }

  .audio-controls {
    gap: 15px;
  }

  .audio-btn {
    width: 50px;
    height: 50px;
    font-size: 12px;
  }

  .audio-btn svg {
    width: 20px;
    height: 20px;
  }

  .bento-section {
    padding: 20px 0 60px 0;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto);
    gap: 20px;
    padding: 0 16px;
  }

  .bento-box--2x2,
  .bento-box--3x2,
  .bento-box--3x3,
  .bento-box--2x3 {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 200px;
  }

  .bento-box {
    padding: 24px 20px;
  }

  .bento-box:hover {
    border-color: #afafaf;
  }

  .bento-box__title {
    font-size: 14px;
  }

  .bento-box__description {
    font-size: 13px;
  }

  .company-card {
    height: 36px;
    padding: 6px 10px;
    gap: 10px;
  }

  .company-card__logo {
    width: 20px;
    height: 20px;
  }

  .company-card__name {
    font-size: 11px;
  }

  .company-card__status {
    width: 14px;
    height: 14px;
    font-size: 9px;
  }

  .sales-chart {
    padding: 12px;
  }

  .sales-chart-container {
    height: 100px;
  }

  .chart-title,
  .chart-value {
    font-size: 10px;
  }

  .chart-metrics-container {
    flex-direction: column;
    gap: 12px;
  }

  .metrics-chips {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .metric-chip {
    padding: 6px 8px;
  }

  .metric-chip__text {
    font-size: 9px;
  }

  .metric-chip__arrow {
    font-size: 12px;
  }
}

/* Grid styles for home page only - more specific selectors */
body.homepage .grid-axis,
body.homepage .grid-nexus,
body.homepage .grid-index {
  display: grid;
  grid-template-columns: repeat(20, 20px);
  grid-template-rows: repeat(20, 20px);
  transform-style: preserve-3d;
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center;
  transition: opacity 0.6s ease-in-out;
}

/* Smooth movement for layer separation */
body.homepage .grid-axis,
body.homepage .grid-nexus,
body.homepage .grid-index {
  transition: transform 500ms cubic-bezier(0.85, 0, 0.15, 1),
    opacity 400ms cubic-bezier(0.85, 0, 0.15, 1);
}

body.homepage .grid-axis {
  transform: translate(-50%, -50%) rotateX(-60deg) rotateY(0deg) rotateZ(-35deg)
    translateZ(-150px);
  z-index: 2;
  opacity: 0.5;
}
body.homepage .grid-axis:hover {
  opacity: 0.9;
}

body.homepage .grid-nexus {
  transform: translate(-50%, -50%) rotateX(-60deg) rotateY(0deg) rotateZ(-35deg)
    translateZ(0px);
  z-index: 1;
  opacity: 0.5;
}
body.homepage .grid-nexus:hover {
  opacity: 0.9;
  transform: translate(-50%, -50%) rotateX(-60deg) rotateY(0deg) rotateZ(-35deg)
    translateZ(0px);
}

body.homepage .grid-index {
  transform: translate(-50%, -50%) rotateX(-60deg) rotateY(0deg) rotateZ(-35deg)
    translateZ(150px);
  z-index: 3;
  opacity: 0.4;
}

/* Layer separation on hover of product list */
body.homepage.highlight-axis .grid-axis {
  transform: translate(-50%, -50%) rotateX(-60deg) rotateY(0deg) rotateZ(-35deg)
    translateZ(-230px);
  opacity: 0.95;
}
body.homepage.highlight-axis .grid-nexus,
body.homepage.highlight-axis .grid-index {
  opacity: 0.25;
}

body.homepage.highlight-nexus .grid-nexus {
  transform: translate(-50%, -50%) rotateX(-60deg) rotateY(0deg) rotateZ(-35deg)
    translateZ(100px);
  opacity: 0.95;
}
body.homepage.highlight-nexus .grid-axis,
body.homepage.highlight-nexus .grid-index {
  opacity: 0.25;
}

body.homepage.highlight-index .grid-index {
  transform: translate(-50%, -50%) rotateX(-60deg) rotateY(0deg) rotateZ(-35deg)
    translateZ(230px);
  opacity: 0.95;
}
body.homepage.highlight-index .grid-axis,
body.homepage.highlight-index .grid-nexus {
  opacity: 0.25;
}
body.homepage .grid-index:hover {
  opacity: 0.9;
}

/* Grid active states when product cards are hovered */
body.homepage .grid-axis.grid-active {
  opacity: 0.9;
  /* Debug border - Axis orange */
  border: 3px solid #eb7217 !important;
}

body.homepage .grid-nexus.grid-active {
  opacity: 0.9;
  transform: translate(-50%, -50%) rotateX(-60deg) rotateY(0deg) rotateZ(-35deg)
    translateZ(0px);
  /* Debug border - Nexus purple */
  border: 3px solid #673ab7 !important;
}

body.homepage .grid-index.grid-active {
  opacity: 0.9;
  /* Debug border - Index blue */
  border: 3px solid #54a4ff !important;
}

.cell,
.cell-nexus,
.cell-index {
  width: 20px;
  height: 20px;
  border: 1px solid white;
  background: transparent;
}

/* Animations (compact) */
@keyframes flicker {
  0%,
  100% {
    background-color: #ff6600;
  }
  10% {
    background-color: #ff8800;
  }
  20% {
    background-color: #ff6600;
  }
  30% {
    background-color: #ff4400;
  }
  40% {
    background-color: #ff6600;
  }
  50% {
    background-color: #ffaa00;
  }
  60% {
    background-color: #ff6600;
  }
  70% {
    background-color: #ff4400;
  }
  80% {
    background-color: #ff6600;
  }
  90% {
    background-color: #ff8800;
  }
}

@keyframes lightRay {
  0% {
    background-color: transparent;
    opacity: 0;
  }
  50% {
    background-color: #ff00ff;
    opacity: 0.8;
    box-shadow: 0 0 10px #ff00ff;
  }
  100% {
    background-color: transparent;
    opacity: 0;
  }
}

@keyframes snakeMove {
  0% {
    background-color: transparent;
    opacity: 0;
  }
  20% {
    background-color: #0066ff;
    opacity: 1;
    box-shadow: 0 0 10px #0066ff;
  }
  80% {
    background-color: #0066ff;
    opacity: 1;
    box-shadow: 0 0 10px #0066ff;
  }
  100% {
    background-color: transparent;
    opacity: 0;
  }
}

@keyframes snakeHead {
  0% {
    background-color: transparent;
    opacity: 0;
  }
  20% {
    background-color: #00aaff;
    opacity: 1;
    box-shadow: 0 0 15px #00aaff;
    transform: scale(1.1);
  }
  80% {
    background-color: #00aaff;
    opacity: 1;
    box-shadow: 0 0 15px #00aaff;
    transform: scale(1.1);
  }
  100% {
    background-color: transparent;
    opacity: 0;
  }
}

/* Segment A: columns 3,7,11,15 across rows 6-12 */
.grid-axis:hover .cell:nth-child(103),
.grid-axis.grid-active .cell:nth-child(103),
.grid-axis:hover .cell:nth-child(123),
.grid-axis:hover .cell:nth-child(143),
.grid-axis:hover .cell:nth-child(163),
.grid-axis:hover .cell:nth-child(183),
.grid-axis:hover .cell:nth-child(203),
.grid-axis:hover .cell:nth-child(223),
.grid-axis:hover .cell:nth-child(107),
.grid-axis:hover .cell:nth-child(127),
.grid-axis:hover .cell:nth-child(147),
.grid-axis:hover .cell:nth-child(167),
.grid-axis:hover .cell:nth-child(187),
.grid-axis:hover .cell:nth-child(207),
.grid-axis:hover .cell:nth-child(227),
.grid-axis:hover .cell:nth-child(111),
.grid-axis:hover .cell:nth-child(131),
.grid-axis:hover .cell:nth-child(151),
.grid-axis:hover .cell:nth-child(171),
.grid-axis:hover .cell:nth-child(191),
.grid-axis:hover .cell:nth-child(211),
.grid-axis:hover .cell:nth-child(231),
.grid-axis:hover .cell:nth-child(115),
.grid-axis:hover .cell:nth-child(135),
.grid-axis:hover .cell:nth-child(155),
.grid-axis:hover .cell:nth-child(175),
.grid-axis:hover .cell:nth-child(195),
.grid-axis:hover .cell:nth-child(215),
.grid-axis:hover .cell:nth-child(235),
/* Segment B: columns 2,18 across rows 2-8 */
.grid-axis:hover .cell:nth-child(22),
.grid-axis:hover .cell:nth-child(42),
.grid-axis:hover .cell:nth-child(62),
.grid-axis:hover .cell:nth-child(82),
.grid-axis:hover .cell:nth-child(102),
.grid-axis:hover .cell:nth-child(122),
.grid-axis:hover .cell:nth-child(142),
.grid-axis:hover .cell:nth-child(38),
.grid-axis:hover .cell:nth-child(58),
.grid-axis:hover .cell:nth-child(78),
.grid-axis:hover .cell:nth-child(98),
.grid-axis:hover .cell:nth-child(118),
.grid-axis:hover .cell:nth-child(138),
.grid-axis:hover .cell:nth-child(158),
/* Segment C: columns 5,13 across rows 13-19 */
.grid-axis:hover .cell:nth-child(245),
.grid-axis:hover .cell:nth-child(265),
.grid-axis:hover .cell:nth-child(285),
.grid-axis:hover .cell:nth-child(305),
.grid-axis:hover .cell:nth-child(325),
.grid-axis:hover .cell:nth-child(345),
.grid-axis:hover .cell:nth-child(365),
.grid-axis:hover .cell:nth-child(253),
.grid-axis:hover .cell:nth-child(273),
.grid-axis:hover .cell:nth-child(293),
.grid-axis:hover .cell:nth-child(313),
.grid-axis:hover .cell:nth-child(333),
.grid-axis:hover .cell:nth-child(353),
.grid-axis:hover .cell:nth-child(373) {
  animation: flicker 1.8s ease-in-out infinite;
  animation-delay: calc(var(--row, 0) * 0.08s + var(--rand, 0) * 0.3s);
  animation-duration: calc(1.4s + var(--rand, 0) * 0.8s);
  box-shadow: 0 0 10px #ff6600;
}

/* Axis grid active state - same effects as hover */
.grid-axis.grid-active .cell:nth-child(103),
.grid-axis.grid-active .cell:nth-child(123),
.grid-axis.grid-active .cell:nth-child(143),
.grid-axis.grid-active .cell:nth-child(163),
.grid-axis.grid-active .cell:nth-child(183),
.grid-axis.grid-active .cell:nth-child(203),
.grid-axis.grid-active .cell:nth-child(223),
.grid-axis.grid-active .cell:nth-child(107),
.grid-axis.grid-active .cell:nth-child(127),
.grid-axis.grid-active .cell:nth-child(147),
.grid-axis.grid-active .cell:nth-child(167),
.grid-axis.grid-active .cell:nth-child(187),
.grid-axis.grid-active .cell:nth-child(207),
.grid-axis.grid-active .cell:nth-child(227),
.grid-axis.grid-active .cell:nth-child(111),
.grid-axis.grid-active .cell:nth-child(131),
.grid-axis.grid-active .cell:nth-child(151),
.grid-axis.grid-active .cell:nth-child(171),
.grid-axis.grid-active .cell:nth-child(191),
.grid-axis.grid-active .cell:nth-child(211),
.grid-axis.grid-active .cell:nth-child(231),
.grid-axis.grid-active .cell:nth-child(115),
.grid-axis.grid-active .cell:nth-child(135),
.grid-axis.grid-active .cell:nth-child(155),
.grid-axis.grid-active .cell:nth-child(175),
.grid-axis.grid-active .cell:nth-child(195),
.grid-axis.grid-active .cell:nth-child(215),
.grid-axis.grid-active .cell:nth-child(235),
.grid-axis.grid-active .cell:nth-child(22),
.grid-axis.grid-active .cell:nth-child(42),
.grid-axis.grid-active .cell:nth-child(62),
.grid-axis.grid-active .cell:nth-child(82),
.grid-axis.grid-active .cell:nth-child(102),
.grid-axis.grid-active .cell:nth-child(122),
.grid-axis.grid-active .cell:nth-child(142),
.grid-axis.grid-active .cell:nth-child(38),
.grid-axis.grid-active .cell:nth-child(58),
.grid-axis.grid-active .cell:nth-child(78),
.grid-axis.grid-active .cell:nth-child(98),
.grid-axis.grid-active .cell:nth-child(118),
.grid-axis.grid-active .cell:nth-child(138),
.grid-axis.grid-active .cell:nth-child(158),
.grid-axis.grid-active .cell:nth-child(245),
.grid-axis.grid-active .cell:nth-child(265),
.grid-axis.grid-active .cell:nth-child(285),
.grid-axis.grid-active .cell:nth-child(305),
.grid-axis.grid-active .cell:nth-child(325),
.grid-axis.grid-active .cell:nth-child(345),
.grid-axis.grid-active .cell:nth-child(365),
.grid-axis.grid-active .cell:nth-child(253),
.grid-axis.grid-active .cell:nth-child(273),
.grid-axis.grid-active .cell:nth-child(293),
.grid-axis.grid-active .cell:nth-child(313),
.grid-axis.grid-active .cell:nth-child(333),
.grid-axis.grid-active .cell:nth-child(353),
.grid-axis.grid-active .cell:nth-child(373) {
  animation: flicker 1.8s ease-in-out infinite;
  animation-delay: calc(var(--row, 0) * 0.08s + var(--rand, 0) * 0.3s);
  animation-duration: calc(1.4s + var(--rand, 0) * 0.8s);
  box-shadow: 0 0 10px #ff6600;
}

.grid-nexus:hover .cell-nexus:nth-child(23n),
.grid-nexus:hover .cell-nexus:nth-child(47n),
.grid-nexus:hover .cell-nexus:nth-child(89n) {
  background-color: purple !important;
}
.grid-nexus:hover .cell-nexus:nth-child(22n),
.grid-nexus:hover .cell-nexus:nth-child(24n),
.grid-nexus:hover .cell-nexus:nth-child(13n),
.grid-nexus:hover .cell-nexus:nth-child(33n) {
  animation: lightRay 2s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.05s);
}

/* Nexus grid active state - same effects as hover */
.grid-nexus.grid-active .cell-nexus:nth-child(23n),
.grid-nexus.grid-active .cell-nexus:nth-child(47n),
.grid-nexus.grid-active .cell-nexus:nth-child(89n) {
  background-color: purple !important;
}
.grid-nexus.grid-active .cell-nexus:nth-child(22n),
.grid-nexus.grid-active .cell-nexus:nth-child(24n),
.grid-nexus.grid-active .cell-nexus:nth-child(13n),
.grid-nexus.grid-active .cell-nexus:nth-child(33n) {
  animation: lightRay 2s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.05s);
}

.grid-index:hover .cell-index {
  animation: snakeMove 8s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.015s);
}
.grid-index:hover .cell-index:nth-child(30n + 1) {
  animation: snakeHead 12s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.02s);
}

/* Index grid active state - same effects as hover */
.grid-index.grid-active .cell-index {
  animation: snakeMove 8s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.015s);
}
.grid-index.grid-active .cell-index:nth-child(30n + 1) {
  animation: snakeHead 12s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.02s);
}

/* Mobile Chat Interface Styles */
.mobile-chat-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: 0;
  height: 100%;
  width: 100%;
  padding-bottom: 0;
}

.mobile-phone {
  width: 280px;
  height: 400px;
  background: #1a1a1a;
  border-radius: 25px 25px 0 0;
  border: 5px solid #333;
  border-bottom: none;
  box-shadow: 0 10px 60px rgba(93, 3, 137, 0.2);
  overflow: hidden;
  position: relative;
}

.phone-header {
  background: #2c2c2c;
  padding: 8px 0;
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  font-size: 12px;
  color: #fff;
  font-weight: 600;
}

.status-icons {
  display: flex;
  gap: 8px;
  font-size: 10px;
}

.status-icons .mdi {
  font-size: 12px;
  color: #fff;
}

.chat-header {
  background: #075e54;
  padding: 8px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-avatar {
  width: 28px;
  height: 28px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 12px;
}

.contact-details {
  flex: 1;
}

.contact-name {
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 1px;
  line-height: 1.2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

.contact-status {
  color: #a7a7a7;
  font-size: 10px;
  line-height: 1.2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

.chat-messages {
  height: 320px;
  background: #0a0a0a;
  padding: 12px 12px 20px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scroll-behavior: smooth;
  scroll-padding-bottom: 20px;
  /* Hide scrollbar */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.chat-messages::-webkit-scrollbar {
  display: none; /* WebKit browsers (Chrome, Safari, Edge) */
}

.message {
  display: flex;
  align-items: flex-end;
  margin-bottom: 4px;
  animation: messageSlideIn 0.3s ease-out;
  max-width: 100%;
}

.message--received {
  align-self: flex-start;
  flex-direction: row;
}

.message--sent {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar {
  flex-shrink: 0;
  margin: 0 6px;
  align-self: flex-end;
}

.avatar-carlos {
  width: 32px;
  height: 32px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
}

.avatar-nexus {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatar-nexus img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  border-radius: 0;
}

.message-bubble {
  max-width: 60%;
  display: flex;
  flex-direction: column;
}

.message-content {
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.3;
  word-wrap: break-word;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

.message--received .message-content {
  background: #2a2a2a;
  color: #fff;
  border-bottom-left-radius: 4px;
}

.message--sent .message-content {
  background: #075e54;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.message-time {
  font-size: 10px;
  color: #a7a7a7;
  margin-top: 4px;
  text-align: right;
}

.message--received .message-time {
  text-align: left;
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive adjustments for mobile chat */
@media (max-width: 768px) {
  .mobile-chat-container {
    margin-bottom: -24px;
    padding-bottom: 0;
  }

  .mobile-phone {
    width: 320px;
    height: 420px;
  }

  .chat-messages {
    height: 280px;
    padding: 12px 12px 0px 12px;
    scroll-padding-bottom: 0px;
  }

  .message-content {
    font-size: 12px;
    padding: 8px 10px;
  }

  .floating-info-card {
    min-width: 240px;
    padding: 12px;
    bottom: 16px;
    left: 16px;
  }

  .info-card__number {
    font-size: 11px;
  }

  .info-card__text {
    font-size: 11px;
  }

  .info-card__title {
    font-size: 10px;
  }

  .bento-box--3x3:hover .floating-info-card {
    bottom: 40px;
    left: 40px;
    min-width: 260px;
    transform: scale(1.02);
  }
}

@media (max-width: 640px) {
  .mobile-chat-container {
    margin-bottom: -20px;
  }

  .mobile-phone {
    width: 90vw;
    max-width: 360px;
    height: 420px;
  }

  .chat-messages {
    padding: 12px 12px 0px 12px;
    scroll-padding-bottom: 0px;
  }
}
