* { box-sizing: border-box; }

:root {
  --bg: #3a43d7;
  --bg-soft: #3038c6;
  --card: #122a73;
  --card-soft: #0f2362;
  --line: rgba(133, 162, 235, 0.46);
  --text: #eaf0ff;
  --muted: #b8c6ec;
  --brand: #ff7b3b;
  --brand-2: #ff9b54;
  --radius: 22px;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(980px 440px at 18% -8%, rgba(149, 164, 255, 0.28), transparent 60%),
    linear-gradient(180deg, #3a43d7 0%, #343dce 42%, #2f37c2 100%);
  min-height: 100vh;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(199, 208, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 208, 255, 0.08) 1px, transparent 1px);
  background-size: 38px 38px;
  mask: radial-gradient(circle at 55% 15%, rgba(0, 0, 0, 0.8), transparent 74%);
  opacity: 0.24;
  z-index: 0;
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-shell {
  border: 1px solid rgba(196, 208, 255, 0.36);
  border-radius: 26px;
  background:
    radial-gradient(560px 300px at 12% 10%, rgba(130, 149, 255, 0.42), transparent 72%),
    linear-gradient(135deg, #3e49db, #3842d1 54%, #333dc7);
  overflow: hidden;
  position: relative;
}

.hero-shell::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 46%;
  width: 420px;
  height: 680px;
  background: radial-gradient(circle at 20% 50%, rgba(91, 108, 255, 0.72), rgba(53, 66, 215, 0.2) 62%, transparent 72%);
  transform: rotate(10deg);
  pointer-events: none;
}

header {
  position: relative;
  z-index: 4;
  border-bottom: 1px solid rgba(194, 206, 255, 0.3);
  background: rgba(53, 63, 204, 0.62);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.1rem;
  gap: 1rem;
}

.mono {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: .02em;
  color: var(--muted);
  font-size: .86rem;
}

.nav-links {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(210, 221, 255, 0.42);
  background: rgba(64, 77, 220, 0.66);
  color: #fff;
  font-size: 0;
  line-height: 1;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 3px;
  background: #f3f6ff;
  position: absolute;
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}

.menu-icon {
  top: 21px;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  left: 0;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.menu-toggle.is-open .menu-icon {
  transform: rotate(45deg);
}

.menu-toggle.is-open .menu-icon::before {
  top: 0;
  transform: rotate(90deg);
}

.menu-toggle.is-open .menu-icon::after {
  top: 0;
  opacity: 0;
}

.pill {
  border: 1px solid rgba(210, 221, 255, 0.34);
  background: rgba(64, 77, 220, 0.64);
  border-radius: 999px;
  padding: .5rem .9rem;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .75rem;
}

.pill:hover { border-color: #f5f7ff; }

main { padding: 1rem 0 4.2rem; }

.hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: .8rem;
  align-items: stretch;
  padding: 2rem 1.1rem 1.2rem;
  position: relative;
  z-index: 2;
}

.hero-copy {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 1.2rem 1rem 1.4rem;
}

h1 {
  margin: .4rem 0 1rem;
  font-size: clamp(2.2rem, 5.3vw, 4.1rem);
  line-height: .98;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.3rem, 3vw, 2rem);
  margin: 0 0 .8rem;
}

p { color: var(--muted); line-height: 1.58; }

.btns {
  display: flex;
  gap: .75rem;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}

.btn {
  border-radius: 14px;
  padding: .78rem 1rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .2s ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  color: #fff;
}

.btn-secondary {
  border-color: rgba(207, 218, 255, 0.36);
  color: var(--text);
  background: rgba(74, 88, 230, 0.35);
}

.btn:hover { transform: translateY(-2px); }

.hero-visual {
  border: 1px solid rgba(209, 218, 255, 0.42);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(86, 99, 246, 0.44), rgba(60, 73, 220, 0.36));
  min-height: 340px;
  padding: .8rem;
  display: grid;
  place-items: center;
}

.hero-visual svg {
  width: 100%;
  height: auto;
  max-width: 420px;
}

.section { margin-top: 1.2rem; }

.card {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(20, 43, 110, 0.94), rgba(14, 35, 92, 0.96));
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: 0 14px 32px rgba(14, 24, 68, 0.22);
}

.triad,
.feature-grid,
.clients {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
}

.feature-grid,
.clients {
  grid-template-columns: repeat(2, 1fr);
}

.kpi { color: #9ce2c9; font-size: 1.2rem; font-weight: 700; }

.client-link {
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, border-color .18s ease;
}

.client-link:hover {
  transform: translateY(-2px);
  border-color: #9cb1ff;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  border: 1px solid #2c4267;
  background: rgba(17, 27, 41, 0.75);
  color: #c7ddff;
  font-family: "IBM Plex Mono", monospace;
  font-size: .75rem;
  text-transform: uppercase;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--brand);
}

.cta {
  margin-top: 1.2rem;
  text-align: center;
  padding: 2rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(133, 162, 235, 0.46);
  background: linear-gradient(160deg, rgba(20, 43, 110, 0.9), rgba(14, 35, 92, 0.92));
}

footer {
  color: #b8c8ff;
  text-align: center;
  margin-top: 1.4rem;
  font-size: .9rem;
}

.demo-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
  margin-bottom: .9rem;
}

.demo-controls { display: flex; gap: .5rem; }

.demo-nav {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #476ba3;
  background: rgba(8, 24, 63, 0.96);
  color: #d6e6ff;
  cursor: pointer;
  font-size: 1rem;
}

.demo-slider { position: relative; overflow: hidden; min-height: 430px; }

.demo-card {
  border: 1px solid #4a72af;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(20, 43, 110, 0.93), rgba(14, 35, 92, 0.95));
  padding: 1rem;
  transition: opacity .18s ease, transform .18s ease;
}

.demo-card h3 { margin: 0; font-size: 1.1rem; }

.demo-form { display: grid; gap: .7rem; margin-top: .8rem; }

.demo-grid-two { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }

.demo-field label {
  display: block;
  margin-bottom: .22rem;
  color: #b5c9e8;
  font-size: .86rem;
}

.demo-field input,
.demo-field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(141, 170, 240, 0.44);
  background: rgba(15, 36, 95, 0.84);
  color: #ecf4ff;
  padding: .62rem .68rem;
  font: inherit;
}

.demo-submit {
  border-radius: 12px;
  border: 1px solid transparent;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 700;
  padding: .7rem .9rem;
  cursor: pointer;
}

.demo-meta { margin-top: .6rem; color: #9bb0d0; font-size: .85rem; min-height: 1.1rem; }

.demo-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .6rem;
  margin-top: .75rem;
  color: #96add0;
  font-size: .83rem;
}

.demo-dots { display: flex; gap: .36rem; }

.demo-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  background: #3f577c;
  cursor: pointer;
}

.demo-dot.active { background: #7ed8bc; }

.demo-chat-box {
  margin-top: .75rem;
  border: 1px solid rgba(141, 170, 240, 0.44);
  background: rgba(15, 36, 95, 0.82);
  border-radius: 12px;
  height: 250px;
  overflow: auto;
  padding: .65rem;
  display: grid;
  gap: .45rem;
}

.chat-msg {
  max-width: 85%;
  border-radius: 10px;
  padding: .48rem .58rem;
  font-size: .88rem;
}

.chat-user {
  justify-self: end;
  background: rgba(121, 245, 199, 0.22);
  border: 1px solid rgba(121, 245, 199, 0.45);
}

.chat-bot {
  justify-self: start;
  background: rgba(138, 184, 255, 0.2);
  border: 1px solid rgba(138, 184, 255, 0.38);
}

@media (max-width: 900px) {
  .shell {
    width: min(1120px, calc(100% - 1rem));
  }

  .hero-shell {
    border-radius: 20px;
  }

  .hero,
  .triad,
  .feature-grid,
  .demo-grid-two,
  .clients {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 1.2rem .8rem .9rem;
    gap: .7rem;
  }

  .hero-copy {
    padding: .8rem .4rem .9rem;
  }

  h1 {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
  }

  .hero-visual {
    min-height: 220px;
    padding: .55rem;
  }

  .hero-visual svg {
    max-width: 300px;
  }

  .card {
    padding: 1rem;
    border-radius: 18px;
  }

  .demo-slider {
    min-height: 460px;
  }

  .nav {
    flex-wrap: wrap;
    padding: .75rem .8rem;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: .45rem;
    margin-top: .2rem;
    padding-top: .45rem;
    border-top: 1px solid rgba(194, 206, 255, 0.24);
  }

  .nav-links.is-open {
    display: flex;
  }

  .pill {
    width: 100%;
    text-align: center;
  }
}
