/* Dzunisoft Solutions public site styles. No inline styles are used (strict CSP). */
:root {
  --navy: #0b1437;
  --ink: #1a2347;
  --muted: #5b6485;
  --line: #e4e8f2;
  --blue: #0a6cff;
  --sky: #06a0ff;
  --violet: #7b13ff;
  --bg: #ffffff;
  --soft: #f5f8ff;
  --grad: linear-gradient(110deg, var(--violet), var(--blue) 55%, var(--sky));
  --r: 16px;
  --max: 1180px;
  --display: 'Sora', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.12;
}
h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 700;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--grad);
}
.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 60ch;
}
section {
  padding: 96px 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
  font-family: var(--body);
}
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(10, 108, 255, 0.4);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -10px rgba(10, 108, 255, 0.7);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--navy);
  background: #fff;
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* nav */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}
.nav img {
  height: 64px;
  width: auto;
}
.nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}
.nav ul a:hover {
  color: var(--blue);
}
.nav .btn {
  min-height: 42px;
  padding: 0 20px;
  font-size: 0.92rem;
}
@media (max-width: 860px) {
  .nav ul {
    display: none;
  }
}
@media (max-width: 520px) {
  .nav {
    height: 76px;
  }
  .nav img {
    height: 48px;
  }
  .nav .btn {
    padding: 0 14px;
    font-size: 0.85rem;
  }
}

/* hero */
.hero {
  padding: 56px 0 80px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(900px 500px at 85% 20%, #eef4ff 0, transparent 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  margin-bottom: 2rem;
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stage {
  position: relative;
  aspect-ratio: 1/1;
  max-height: 560px;
  width: 100%;
}
#ai-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.chip {
  position: absolute;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  padding: 10px 16px 10px 10px;
  box-shadow: 0 10px 26px -16px rgba(11, 20, 55, 0.3);
  display: flex;
  gap: 0.7rem;
  align-items: center;
  animation: float 6s ease-in-out infinite;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}
.chip b {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
}
.chip small {
  display: block;
  font-family: var(--body);
  font-weight: 400;
  font-size: 0.74rem;
  color: var(--muted);
}
.chip.c1 {
  top: 6%;
  left: 0;
}
.chip.c2 {
  top: 30%;
  right: 0;
  animation-delay: -1.5s;
}
.chip.c3 {
  top: 60%;
  left: 0;
  animation-delay: -3s;
}
.chip.c4 {
  bottom: 3%;
  right: 4%;
  animation-delay: -4.5s;
}
@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .stage {
    max-width: 440px;
    margin: 0 auto;
  }
  .chip small {
    display: none;
  }
  .chip {
    padding: 8px 12px 8px 8px;
    font-size: 0.82rem;
  }
}

/* clients */
.clients {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.clients h2 {
  font-size: 0.95rem;
  font-family: var(--body);
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-align: center;
  margin-bottom: 32px;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.logos {
  display: flex;
  align-items: center;
  gap: 72px;
  list-style: none;
  width: max-content;
  animation: scroll 32s linear infinite;
}
.marquee:hover .logos {
  animation-play-state: paused;
}
.logos li {
  height: 48px;
  display: flex;
  align-items: center;
  flex: none;
}
.logos img {
  height: 100%;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}
.logos .wide img {
  max-width: 190px;
  height: 34px;
}
@keyframes scroll {
  to {
    transform: translateX(calc(-50% - 36px));
  }
}

/* services */
.head {
  max-width: 680px;
  margin-bottom: 48px;
}
.head .lead {
  margin-top: 1rem;
}
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 34px;
  background: #fff;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  border-color: #c6d6f5;
  box-shadow: 0 24px 50px -28px rgba(10, 108, 255, 0.45);
}
.card .ico {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--soft);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: var(--blue);
}
.card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}
.card p {
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.more {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.92rem;
}
.card.feature .more {
  color: #6cc2ff;
}

.card.feature {
  background: var(--navy);
  border-color: var(--navy);
  color: #cfd7f5;
}
.card.feature h3 {
  color: #fff;
}
.card.feature p {
  color: #aab5df;
}
.card.feature .ico {
  background: rgba(255, 255, 255, 0.08);
  color: #6cc2ff;
}

@media (max-width: 760px) {
  .services {
    grid-template-columns: 1fr;
  }
  section {
    padding: 72px 0;
  }
}

/* training */
.training {
  background: var(--soft);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.topics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0 32px;
}
.topic {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy);
}
.topic small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.8rem;
  margin-top: 2px;
}
.term {
  background: #0b1437;
  border-radius: var(--r);
  box-shadow: 0 30px 60px -30px rgba(11, 20, 55, 0.6);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: #c8d2f5;
}
.term-bar {
  display: flex;
  gap: 7px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  align-items: center;
}
.term-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2a3566;
}
.term-bar em {
  margin-left: auto;
  font-style: normal;
  color: #6f7ca8;
  font-size: 0.72rem;
}
.term pre {
  padding: 20px;
  white-space: pre-wrap;
  line-height: 1.75;
}
.k {
  color: #6cc2ff;
}
.v {
  color: #b78cff;
}
.g {
  color: #4fe0a8;
}
.d {
  color: #6f7ca8;
}
.cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: #6cc2ff;
  vertical-align: -2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* faq */
.faq-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
}
details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
summary {
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '+';
  color: var(--blue);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s;
}
details[open] summary::after {
  transform: rotate(45deg);
}
details p {
  color: var(--muted);
  margin-top: 0.8rem;
  max-width: 62ch;
}
@media (max-width: 860px) {
  .faq-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* contact */
.contact {
  background: var(--soft);
}
.contact-box {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px;
  display: grid;
  gap: 16px;
  box-shadow: 0 24px 50px -34px rgba(11, 20, 55, 0.35);
}
label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}
input,
select,
textarea {
  font: inherit;
  font-weight: 400;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  min-height: 46px;
  width: 100%;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
}
.err {
  color: #d6336c;
  font-size: 0.8rem;
  font-weight: 400;
  min-height: 0;
}

@media (max-width: 860px) {
  .contact-box {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--line);
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.foot img {
  height: 72px;
  margin-bottom: 12px;
}
.foot p {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 36ch;
}
.foot nav {
  display: flex;
  gap: 56px;
  font-size: 0.92rem;
  color: var(--muted);
}
.foot nav div {
  display: grid;
  gap: 8px;
  align-content: start;
}
.foot nav strong {
  color: var(--navy);
  font-family: var(--display);
  font-size: 0.85rem;
}
.foot a:hover {
  color: var(--blue);
}
.copy {
  margin-top: 40px;
  font-size: 0.82rem;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s,
    transform 0.7s;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .logos {
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px 56px;
  }
  .logos li[aria-hidden] {
    display: none;
  }
  .marquee {
    mask-image: none;
    -webkit-mask-image: none;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* helpers (replace inline style attributes, which the CSP forbids) */
.mt-1 {
  margin-top: 1rem;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}

/* contact */
.contact-intro p {
  color: var(--muted);
  margin-top: 1rem;
  max-width: 44ch;
}
.contact-intro dl {
  margin-top: 1.6rem;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}
.contact-intro dt {
  font-weight: 600;
  color: var(--navy);
}
.form-fields {
  display: grid;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
.optional {
  font-weight: 400;
  color: var(--muted);
}
fieldset {
  border: 0;
  display: grid;
  gap: 8px;
  min-width: 0;
}
legend {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.slot {
  position: relative;
}
.slot input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  min-height: 0;
}
.slot span {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--navy);
  background: #fff;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.slot input:hover + span {
  border-color: var(--blue);
}
.slot input:checked + span {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.slot input:focus-visible + span {
  outline: 3px solid rgba(10, 108, 255, 0.4);
  outline-offset: 2px;
}
.slot input:disabled {
  cursor: not-allowed;
}
.slot input:disabled + span {
  color: #a5acc4;
  background: var(--soft);
  text-decoration: line-through;
}
.hint {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
}
.alert {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
}
.alert-error {
  background: #fdecf2;
  color: #9c1f4b;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

/* form field layout: label on one line, then control, then hint/error */
.field {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
}
.field > label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}
.form-row {
  align-items: start;
}
.form-fields input:not([type='checkbox']):not([type='radio']),
.form-fields select {
  height: 48px;
  min-height: 48px;
}
.form-fields select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b6485' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat right 16px center;
}
.err:empty {
  display: none;
}

/* website assistant */
.chat-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font: 600 0.95rem var(--body);
  cursor: pointer;
  box-shadow: 0 14px 34px -12px rgba(11, 20, 55, 0.55);
  transition:
    transform 0.2s,
    background 0.2s;
}
.chat-launcher:hover {
  background: var(--blue);
  transform: translateY(-2px);
}
.chat-launcher.is-open span {
  display: none;
}
.chat-launcher.is-open {
  padding: 0 15px;
}
.chat-panel {
  padding: 0;
  position: fixed;
  right: 20px;
  bottom: 84px;
  z-index: 60;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 70px -30px rgba(11, 20, 55, 0.55);
  overflow: hidden;
}
.chat-panel[hidden] {
  display: none;
}
.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--navy);
  color: #fff;
}
.chat-head strong {
  display: block;
  font-family: var(--display);
  font-size: 0.95rem;
}
.chat-head small {
  display: block;
  color: #aab5df;
  font-size: 0.74rem;
  margin-top: 2px;
}
.chat-close {
  border: 0;
  background: none;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--soft);
}
.chat-msg {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.chat-msg p + p,
.chat-msg p + ul,
.chat-msg ul + p {
  margin-top: 6px;
}
.chat-msg ul {
  margin: 4px 0 0 18px;
}
.chat-assistant {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.chat-user {
  align-self: flex-end;
  background: var(--navy);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-typing {
  color: var(--muted);
  letter-spacing: 2px;
}
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 10px;
  background: var(--soft);
}
.chat-suggestions:empty {
  display: none;
}
.chat-suggestions button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 6px 12px;
  font: 500 0.8rem var(--body);
  cursor: pointer;
}
.chat-suggestions button:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.chat-form {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}
.chat-form textarea {
  flex: 1;
  min-height: 42px;
  max-height: 120px;
  resize: none;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 0.9rem;
}
.chat-form textarea:focus {
  border-color: var(--blue);
  outline: none;
}
.chat-send {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
}
.chat-cta {
  display: block;
  padding: 8px 14px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
  text-align: center;
}
@media (max-width: 520px) {
  .chat-launcher {
    right: 16px;
    bottom: 16px;
  }
  .chat-panel {
    right: 16px;
    bottom: 78px;
  }
}

.contact-forms {
  min-width: 0;
}
.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}
.nav-login {
  font-weight: 600;
  white-space: nowrap;
}

/* The announcement strip above the header */
.promo-banner {
  background: var(--navy);
  color: #fff;
  font-size: 0.9rem;
}
.promo-banner-in {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 9px 0;
  text-align: center;
}
.promo-banner strong {
  font-weight: 700;
}
.promo-banner span {
  color: rgba(255, 255, 255, 0.85);
}
.promo-banner-btn {
  padding: 4px 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  background: #fff;
  border-radius: 999px;
  white-space: nowrap;
}
.promo-banner-btn:hover {
  background: #e6f0ff;
}
