:root {
  /* Brand */
  --bg: linear-gradient(270deg, #010101 100%, #100756 100%);
  --primary: #2c5cf5;
  --secondary: #ef9e40;
  --ink: #e7e9ff;
  --ink-dim: #b4b8e6;

  /* Glass */
  --glass: rgba(255, 255, 255, 0.08);
  --glass-brd: rgba(255, 255, 255, 0.18);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

  /* Layout */
  --radius: 18px;
  --pad: clamp(16px, 3vw, 28px);
  --section: clamp(12px, 10vw, 24px);
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

img {
  max-width: 100%;
  display: block
}
/* Containers */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* Background partial */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden
}

.bg-blur {
  position: absolute;
  filter: blur(120px);
  opacity: .4;
  border-radius: 50%;
  animation: float 4s ease-in-out infinite;
}

.b1 {
  width: 420px;
  height: 420px;
  left: -100px;
  top: -80px;
  background: radial-gradient(circle, var(--primary), transparent)
}

.b2 {
  width: 480px;
  height: 480px;
  right: -120px;
  top: 20vh;
  background: radial-gradient(circle, var(--secondary), transparent);
  animation-delay: -4s
}

.b3 {
  width: 400px;
  height: 400px;
  left: 20vw;
  bottom: -140px;
  background: radial-gradient(circle, #6b7bff, transparent);
  animation-delay: -8s
}

.dots {
  position: absolute;
  inset: 0;
  background: radial-gradient(currentColor 1px, transparent 1px) 0 0/22px 22px;
  color: rgba(255, 255, 255, 0.08);
  mask: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .92), rgba(0, 0, 0, .08));
  animation: drift 5s linear infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-24px)
  }
}

@keyframes drift {
  from {
    transform: translateY(0)
  }

  to {
    transform: translateY(-60px)
  }
}

/* Navbar */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(6px);
}

.nav.transparent {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0))
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0
}

.brand img {
  height: 36px
}

.menu {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

/* ONLY CHANGE HERE: style links + products button the same */
.menu a,
.menu button.menu-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 12px;
  transition: transform .2s ease, background-color .2s ease;
  background: transparent;
  border: none;
  cursor: pointer;
  font: inherit;
}

.menu a:hover,
.menu button.menu-link:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px)
}

.menu a.active,
.menu button.menu-link.active {
  background: linear-gradient(135deg, rgba(44, 92, 245, .25), rgba(239, 158, 64, .25));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.burger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #fff;
  transition: .25s ease;
}

.burger span:nth-child(1) {
  top: 13px
}

.burger span:nth-child(2) {
  top: 20px
}

.burger span:nth-child(3) {
  top: 27px
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg)
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg)
}

@media (max-width: 860px) {
  .burger {
    display: block
  }

  .menu {
    position: fixed;
    top: 64px;
    right: 12px;
    left: 12px;
    display: grid;
    gap: 8px;
    /* background: var(--glass); */
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid var(--glass-brd);
    border-radius: 16px;
    padding: 12px;
    transform-origin: top right;
    transform: scale(.98);
    opacity: 0;
    pointer-events: none;
    box-shadow: var(--shadow);
  }

  .menu.open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto
  }
  .menu a,
  .menu button.menu-link {
    display: block;
    width: 100%;
    text-align: left;
  }
}
@media (max-width: 860px) {
  .menu {
    left: auto;
    /* stop stretching across */
    width: min(60vw, 360px);
    /* smaller card */
    transform-origin: top right;
  }
}
/* Sections */
.section {
  padding: calc(var(--section) + 48px) 0 var(--section)
}

.section:first-of-type {
  padding-top: calc(90px + var(--section))
}

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

.section-head h2 {
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section h2 {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 32px)
}

.link {
  color: var(--ink);
  opacity: .8;
  text-decoration: none
}

.link:hover {
  opacity: 1
}

/* Hero */
.hero {
  padding-top: 160px !important;
}

.hero .hero-title {
  font-size: clamp(80px, 6vw, 120px);
  margin: 0 0 10px;
  justify-self: center;
  text-align: center;
}

.hero .hero-sub {
  font-size: clamp(16px, 2.2vw, 32px);
  color: var(--ink-dim);
  margin: 0 0 20px;
  justify-self: center;
  text-align: center;

}

.hero-cta {
  display: flex;
  justify-self: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 80px;
}

/* mask + gradient text */
.hero-title {
  position: relative;
  margin: 0 0 10px;
  color: color-mix(in srgb, var(--ink) 40%, transparent);
  /* if --ink = #e7e9ff */
  /* or: color: color-mix(in srgb, var(--ink) 50%, transparent); */
}

/* overlay: gradient text masked by repeating SVG pattern */
.hero-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  pointer-events: none;

  -webkit-mask-image: url("../img/pattern.svg");
  mask-image: url("../img/pattern.svg");
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
  -webkit-mask-size: 120px 120px;
  mask-size: 120px 120px;
  mask-mode: luminance;

  animation: movePattern 60s linear infinite;
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
}

/* motion keyframes */
@keyframes movePattern {
  from {
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
  }

  to {
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
  }
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #6b7bff)
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12)
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25)
}

/* Grid helpers */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

@media (max-width: 920px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width: 620px) {
  .grid-3 {
    grid-template-columns: 1fr
  }
}

/* Cards */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.card {
  padding: 16px
}

.card h3 {
  margin: 0 0 8px
}

.card p {
  margin: 0;
  color: var(--ink-dim);
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  margin: 0 0 8px;
}

/* default icon style */
.card h3 img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: saturate(1) brightness(1);
  transition: filter .3s ease;
}

/* hover effect from card */
.card:hover h3 img {
  filter: saturate(1.5) brightness(1.5);
}


/* Work */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

@media (max-width: 980px) {
  .work-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width: 620px) {
  .work-grid {
    grid-template-columns: 1fr
  }
}

.work-item {
  display: flex;
  gap: 14px;
  padding: 14px
}

.work-media {
  flex: 0 0 120px;
  height: 96px;
  border-radius: 14px;
  background: #0e1150;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--glass-brd);

}

.work-media.robot {
  background-image: linear-gradient(135deg, rgba(44, 92, 245, .25), rgba(239, 158, 64, .25))
}

.work-media.voicebot {
  /* background-image: linear-gradient(135deg, rgba(108, 203, 255, .25), rgba(44, 92, 245, .25)) */
  background-image: linear-gradient(135deg, rgba(44, 92, 245, .25), rgba(239, 158, 64, .25))
}

.work-media.vvc {
  /* background-image: linear-gradient(135deg, rgba(239, 158, 64, .25), rgba(108, 203, 255, .25)) */
  background-image: linear-gradient(135deg, rgba(44, 92, 245, .25), rgba(239, 158, 64, .25))
}

.work-media {
  position: relative;
  overflow: hidden;
  /* existing glass on container keeps the “frosted” look behind */
}

/* the image adopts theme via blend + slight desat */
.work-media img {
  width: auto;
  height: 100%;
  justify-self: center;
  object-fit: cover;
  display: block;
  /* filter: saturate(.85) contrast(1.1) brightness(1.05); */
  mix-blend-mode: hard-light;
  transition: filter .3s ease;

  /* lets brand gradient tint it */
}

/* subtle brand tint + inner-glass sheen */
.work-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 28%, transparent),
      color-mix(in srgb, var(--secondary) 22%, transparent)),
    radial-gradient(120% 100% at 0% 0%, rgba(255, 255, 255, .18), transparent 60%);
  pointer-events: none;
}

/* crisp edge and frosted interior */
.work-media::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--glass-brd);
  border-radius: inherit;
  backdrop-filter: blur(6px) saturate(120%);
  mix-blend-mode: normal;
  pointer-events: none;
}

/* optional hover pop */
.work-item:hover .work-media::after {
  opacity: 1
}

.work-item:hover .work-media img {
  filter: saturate(1.5) brightness(1.5)
}


.work-body h3 {
  margin: 0 0 6px;
  font-size: 18px
}

.work-body p {
  margin: 0;
  color: var(--ink-dim)
}

/* Testimonials */
.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px
}

@media (max-width: 880px) {
  .quotes {
    grid-template-columns: 1fr
  }
}

.quote {
  padding: 16px;
  margin: 16px 0;
}

.quote p {
  margin: 0 0 10px
}

.quote footer {
  color: var(--ink-dim)
}

/* review image */
.review-stars {
  width: 100px;
  height: auto;
  display: block;
  margin: 0 auto 10px;
  filter: saturate(1) brightness(1);
  transition: filter .3s ease, box-shadow .3s ease;
}

/* glowing on hover */
.quote:hover .review-stars {
  filter: saturate(1.4) brightness(1.6);
}


/* Footer */
.footer {
  padding: 24px 0 40px;
  backdrop-filter: saturate(300%) blur(6px);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
}

@media (max-width:820px) {
  .foot-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center
  }
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px
}

.foot-brand img {
  height: 28px
}

.foot-brand h4 {
  margin: 0;
  font-size: 18px
}

.foot-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap
}

.foot-nav a {
  color: var(--ink);
  opacity: .85;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 12px
}

.foot-nav a:hover {
  background: rgba(255, 255, 255, .08);
  opacity: 1
}

.foot-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .12)
}

.pill img {
  height: 24px;
  width: auto;
  filter: brightness(1)
}

.pill svg {
  height: 24px;
  width: 24px
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: .5s ease
}

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

/* Back to top */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: .25s ease;
}

.to-top.show {
  opacity: 1;
  transform: none
}

@media (max-width: 480px) {
  .hero {
    padding-top: 120px !important;
  }

  .hero .hero-title {
    font-size: clamp(34px, 9vw, 44px);
  }

  .hero .hero-sub {
    font-size: clamp(14px, 4.2vw, 18px);
  }

  .hero-cta {
    gap: 8px;
    padding-top: 24px;
  }

  .btn {
    padding: 10px 14px;
  }
}


@media (max-width: 420px) {
  .menu {
    gap: 6px;
    padding: 10px;
  }

  .menu a,
  .menu button.menu-link {
    padding: 4px 6px;
    font-size: 14px;
    border-radius: 8px;
  }

  .burger {
    width: 36px;
    height: 36px;
  }

  .burger span {
    left: 8px;
    right: 8px;
  }
}

@media (max-width: 820px) {
  .foot-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .foot-nav {
    justify-content: center;
  }
}

/* Products NavBar*/
.menu li {
  position: relative;
}

.has-sub .chevron {
  font-size: 10px;
  opacity: .8;
  transition: transform .18s ease;
}

.has-sub.open .chevron {
  transform: rotate(180deg);
}

/* Desktop / base dropdown */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin-top: 8px;
  padding: 8px;
  list-style: none;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: 14px;
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  z-index: 60;
  transition: opacity .18s ease, transform .18s ease;
}

.sub-menu li a {
  display: block;
  width: 100%;
}

/* open state */
.has-sub.open .sub-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 860px) {
  .menu .has-sub {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .menu .has-sub .menu-link {
    width: 100%;
    justify-content: space-between;
  }

  .menu .sub-menu {
    position: static;
    margin-top: 6px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: none;
    transform: none;
    opacity: 1;
    max-height: 0;
    overflow: hidden;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: max-height .22s ease;
  }

  .menu .has-sub.open .sub-menu {
    max-height: 400px; /* enough for several items */
    padding: 8px;
  }

  .menu .sub-menu li a {
    padding: 8px 10px;
  }

}
