.hero-grid {
  align-items: start;
}

.hero h1 {
  font-size: clamp(2.7rem, 5.2vw, 4.85rem);
}

.hero-panel {
  padding: 18px 18px 26px;
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.hero-visual-shell {
  position: relative;
  min-height: 300px;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
}

.hero-visual-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,16,29,0.02) 0%, rgba(7,16,29,0.24) 100%),
    linear-gradient(90deg, rgba(7,16,29,0.18) 0%, transparent 46%);
  pointer-events: none;
}

.hero-visual-shell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.visual-badge {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(7,16,29,0.7);
  backdrop-filter: blur(10px);
  color: #e9f4ff;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(0,0,0,0.24);
}

.visual-badge-top {
  top: 14px;
  left: 14px;
}

.visual-badge-bottom {
  right: 14px;
  bottom: 14px;
}

.service-strip-inner {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card {
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(132,240,218,0.22);
  background: rgba(16, 33, 56, 0.86);
}

.cards {
  align-items: stretch;
}

.visual-card,
.industry-card {
  padding: 16px;
}

.card-visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(170,220,255,0.18);
  box-shadow: 0 18px 42px rgba(0,0,0,0.28);
  object-fit: cover;
  background: #0f2035;
  filter: saturate(1.05) contrast(1.03);
}

.visual-card .card-icon,
.industry-card .card-icon {
  margin-top: 2px;
}

.visual-card h3,
.industry-card h3 {
  font-size: 1.04rem;
  line-height: 1.25;
}

.visual-card p,
.industry-card p {
  font-size: 0.93rem;
}

.proof-visual {
  aspect-ratio: 16 / 8.5;
}

.industry-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.industry-visual {
  aspect-ratio: 16 / 9;
  object-position: center;
}

.contact-grid > * {
  min-width: 0;
}

.contact-link a {
  overflow-wrap: anywhere;
}

.ai-assistant-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 160;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid rgba(132,240,218,0.28);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(94,168,255,0.98), rgba(132,240,218,0.92));
  color: #06111f;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 22px 54px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.16) inset;
}

.ai-assistant-toggle span:first-child {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(7,16,29,0.92);
  color: #9cf5e3;
}

.ai-assistant-panel {
  position: fixed;
  right: 22px;
  bottom: 84px;
  z-index: 161;
  width: min(410px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 110px));
  display: none;
  overflow: hidden;
  border: 1px solid rgba(170,220,255,0.2);
  border-radius: 20px;
  background: rgba(7, 16, 29, 0.96);
  box-shadow: 0 28px 90px rgba(0,0,0,0.48);
  backdrop-filter: blur(20px);
}

.ai-assistant-panel.open {
  display: grid;
  grid-template-rows: auto minmax(170px, 1fr) auto;
}

.ai-assistant-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(135deg, rgba(94,168,255,0.12), rgba(132,240,218,0.08));
}

.ai-assistant-header strong {
  display: block;
  line-height: 1.2;
}

.ai-assistant-header span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.ai-assistant-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
}

.ai-assistant-messages {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  overflow: auto;
}

.ai-msg {
  width: fit-content;
  max-width: 92%;
  padding: 11px 13px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.055);
  color: #eaf4ff;
  font-size: 0.92rem;
}

.ai-msg-user {
  justify-self: end;
  background: rgba(94,168,255,0.16);
  border-color: rgba(94,168,255,0.24);
}

.ai-msg a {
  color: #9cf5e3;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ai-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
}

.ai-quick-actions button {
  border: 1px solid rgba(132,240,218,0.18);
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(132,240,218,0.08);
  color: #dffef8;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
}

.ai-assistant-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.ai-assistant-input input,
.ai-lead-form input,
.ai-lead-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font: inherit;
  padding: 11px 12px;
}

.ai-assistant-input button,
.ai-lead-form button {
  border: 0;
  border-radius: 12px;
  padding: 10px 13px;
  background: var(--primary-2);
  color: #06111f;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.ai-lead-form {
  display: grid;
  gap: 9px;
  width: min(100%, 320px);
}

@media (max-width: 1080px) {
  .industry-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hero-visual-shell {
    min-height: 220px;
  }

  .visual-badge {
    font-size: 0.76rem;
    max-width: calc(100% - 28px);
  }

  .ai-assistant-toggle {
    right: 16px;
    bottom: 16px;
    padding: 11px 13px;
  }

  .ai-assistant-panel {
    right: 16px;
    bottom: 76px;
  }
}
