:root {
  --bg: #02060d;
  --bg-soft: #06111d;
  --panel: rgba(4, 12, 22, 0.72);
  --panel-strong: rgba(4, 12, 22, 0.92);
  --frost: rgba(4, 10, 18, 0.34);
  --cyan: #12c9ff;
  --cyan-2: #78e5ff;
  --blue: #0b61ff;
  --white: #f5f8ff;
  --muted: #9eb2c7;
  --line: rgba(120, 210, 255, 0.24);
  --max: 1520px;
  --header-height: 76px;
  --banner-ratio: 2.095;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 38%, rgba(18, 201, 255, 0.08), transparent 28rem),
    radial-gradient(circle at 90% 10%, rgba(11, 97, 255, 0.1), transparent 24rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.018), transparent 22rem),
    var(--bg);
  color: var(--white);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(118deg, transparent 0 48%, rgba(18, 201, 255, 0.055) 48.1% 48.4%, transparent 48.5%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(180deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px) 0 0 / 120px 120px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, transparent 94%);
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(18, 201, 255, 0.12), transparent 24rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 32rem),
    rgba(2, 6, 13, 0.96);
  backdrop-filter: blur(18px) saturate(125%);
  opacity: 1;
  transition:
    opacity 520ms ease,
    visibility 520ms ease;
}

.page-loader.is-done {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.page-loader-inner {
  width: min(360px, calc(100vw - 56px));
  display: grid;
  justify-items: center;
  gap: 22px;
}

.page-loader-inner img {
  width: 72px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(18, 201, 255, 0.5));
  animation: loader-logo-pulse 1.45s ease-in-out infinite;
}

.page-loader-bar {
  position: relative;
  width: 100%;
  height: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.055);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.page-loader-track {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent),
    rgba(18, 201, 255, 0.08);
}

.page-loader-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--loader-progress, 8%);
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow:
    0 0 18px rgba(18, 201, 255, 0.82),
    0 0 42px rgba(11, 97, 255, 0.38);
  transition: width 260ms ease;
}

.page-loader-flare {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -30%;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  animation: loader-flare 1.1s ease-in-out infinite;
  mix-blend-mode: screen;
}

.page-loader-tip {
  position: absolute;
  top: -4px;
  left: calc(var(--loader-progress, 8%) - 3px);
  width: 6px;
  height: 16px;
  background: var(--cyan);
  box-shadow: 0 0 22px rgba(18, 201, 255, 0.95);
  transition: left 260ms ease;
}

@keyframes loader-flare {
  0% {
    transform: translateX(0);
    opacity: 0;
  }

  28% {
    opacity: 0.85;
  }

  100% {
    transform: translateX(460%);
    opacity: 0;
  }
}

@keyframes loader-logo-pulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.82;
  }

  50% {
    transform: translateY(-2px) scale(1.045);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader,
  .page-loader-fill,
  .page-loader-tip {
    transition-duration: 1ms;
  }

  .page-loader-inner img,
  .page-loader-flare {
    animation: none;
  }
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 12px max(20px, calc((100vw - var(--max)) / 2));
  border: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    var(--frost);
  backdrop-filter: blur(24px) saturate(138%);
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.055),
    0 18px 54px rgba(0, 0, 0, 0.2);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--cyan), var(--blue), transparent);
  box-shadow: 0 0 18px rgba(18, 201, 255, 0.72);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand img,
.footer-brand img {
  width: 54px;
  height: 42px;
  object-fit: contain;
}

.main-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 3vw, 34px);
  color: #d7e9ff;
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.main-menu a {
  position: relative;
  padding: 10px 0;
}

.main-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(18, 201, 255, 0.8);
  transition: transform 180ms ease;
}

.main-menu a:hover,
.main-menu a.is-active {
  color: var(--white);
}

.main-menu a:hover::after,
.main-menu a.is-active::after {
  transform: scaleX(1);
}

.language-toggle,
.contact-panel button,
.consent button,
.consent-link,
.chat-form button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
  color: var(--white);
}

.language-toggle {
  min-width: 50px;
  min-height: 42px;
  font-weight: 950;
  backdrop-filter: blur(14px);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.language-toggle:hover,
.contact-panel button:hover,
.consent button:hover,
.consent-link:hover,
.chat-form button:hover {
  border-color: var(--cyan);
  background: rgba(18, 201, 255, 0.16);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
}

.hero {
  position: relative;
  padding-top: var(--header-height);
  overflow: hidden;
  background: #000;
}

.hero > img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: initial;
  object-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 13, 0.84));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--pointer-x, 24%) var(--pointer-y, 58%), rgba(18, 201, 255, 0.12), transparent 18rem);
  mix-blend-mode: screen;
  opacity: 0.78;
  transition: opacity 180ms ease;
}

.hero-phrase {
  position: absolute;
  left: calc(
    (100vw - min(100vw, calc((100vw - var(--header-height)) * var(--banner-ratio)))) / 2 +
      clamp(36px, 9vw, 280px)
  );
  bottom: clamp(150px, 11vw, 220px);
  z-index: 2;
  width: min(520px, calc(100vw - 56px));
}

.hero-phrase h1 {
  margin: 0 0 14px;
  color: #f7fbff;
  font-size: clamp(1.25rem, 2.25vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.74),
    0 18px 42px rgba(0, 0, 0, 0.64);
}

.hero-line {
  position: relative;
  width: min(210px, 46vw);
  height: 8px;
  border: 0;
  border-radius: 2px;
  padding: 0;
  overflow: hidden;
  background: rgba(18, 201, 255, 0.22);
}

.hero-line::before {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--line-width, 42%);
  min-width: 58px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 0 24px rgba(18, 201, 255, 0.8);
  transition: width 160ms ease;
}

.hero-line:hover::before,
.hero-line:focus-visible::before {
  width: 100%;
}

.section,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(calc(100% - clamp(44px, 8vw, 140px)), var(--max));
  margin-inline: auto;
}

.section {
  scroll-margin-top: 96px;
  padding: clamp(72px, 10vw, 126px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.about-section {
  width: min(calc(100% - clamp(44px, 8vw, 140px)), 1440px);
  padding-top: clamp(56px, 7vw, 92px);
}

.section-heading {
  position: relative;
  display: grid;
  grid-template-columns: clamp(120px, 10vw, 170px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  margin-bottom: 42px;
}

.about-section .section-heading {
  grid-template-columns: clamp(120px, 10vw, 170px) minmax(0, 1fr);
  margin-bottom: clamp(34px, 5vw, 58px);
}

.about-section .section-heading h2 {
  max-width: 830px;
  font-size: clamp(2.1rem, 4vw, 4.15rem);
}

.about-section .section-heading p:last-child {
  max-width: 360px;
  margin-top: 56px;
}

.section-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: -18px;
  width: 74px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  box-shadow: 0 0 24px rgba(18, 201, 255, 0.42);
}

.section-heading.compact {
  grid-template-columns: clamp(110px, 9vw, 150px) minmax(0, 1fr);
}

.section-label {
  margin: 0;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  opacity: 0.88;
}

.section-heading h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 4.7rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--white);
}

.section-heading p:last-child,
.contact-copy p,
.portfolio-card p,
.blog-card p,
.team-card p,
.team-card span,
.terms-content p {
  color: var(--muted);
}

.team-grid,
.portfolio-grid,
.blog-grid {
  display: grid;
  gap: 16px;
}

.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.portfolio-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-card,
.portfolio-card,
.blog-card,
.contact-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.014) 42%),
    linear-gradient(180deg, rgba(18, 201, 255, 0.045), rgba(11, 97, 255, 0.018)),
    rgba(3, 10, 18, 0.64);
  backdrop-filter: blur(18px) saturate(118%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 24px 70px rgba(0, 0, 0, 0.22);
}

.team-card,
.portfolio-card,
.blog-card {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.portfolio-card,
.blog-card,
.contact-panel {
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.team-card::before,
.portfolio-card::before,
.blog-card::before,
.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 58%, rgba(18, 201, 255, 0.12) 58.2%, transparent 58.8%),
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.1), transparent 13rem);
  opacity: 0;
  transition: opacity 240ms ease;
}

.portfolio-card::after,
.blog-card::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  pointer-events: none;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  border-right: 1px solid rgba(255, 255, 255, 0.24);
}

.team-card:hover::before,
.portfolio-card:hover::before,
.blog-card:hover::before,
.contact-panel:hover::before {
  opacity: 1;
}

.team-card {
  min-height: 486px;
  display: grid;
  grid-template-rows: 1fr auto;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.team-card img {
  width: 100%;
  height: 374px;
}

.team-card img {
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1) contrast(1.08) brightness(0.96);
  transition: transform 360ms ease;
}

.team-card:nth-child(1) img {
  object-position: center 18%;
}

.team-card:nth-child(2) img {
  object-position: center 12%;
}

.team-card:nth-child(3) img {
  object-position: center 10%;
}

.team-card:hover img {
  transform: scale(1.04);
}

.team-card div:last-child {
  position: relative;
  z-index: 1;
  min-height: 112px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: center;
  padding: 22px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(18, 201, 255, 0.1), transparent 52%),
    rgba(2, 7, 14, 0.38);
}

.team-card h3 {
  grid-column: 1;
}

.team-card p {
  grid-column: 1;
}

.linkedin-link {
  grid-row: 1 / span 2;
  grid-column: 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #dff4ff;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.11);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.linkedin-link:hover {
  color: var(--cyan);
  border-color: rgba(18, 201, 255, 0.48);
  background: rgba(18, 201, 255, 0.08);
}

.linkedin-link svg,
.footer-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.team-card h3,
.portfolio-card h3,
.blog-card h3 {
  margin: 0 0 8px;
  text-transform: uppercase;
}

.team-card p,
.team-card span,
.portfolio-card p,
.blog-card p {
  margin: 0;
}

.portfolio-card,
.blog-card {
  min-height: 280px;
  padding: 26px;
  isolation: isolate;
}

.portfolio-card:hover,
.blog-card:hover {
  transform: perspective(900px) translateY(-6px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 34px 86px rgba(0, 0, 0, 0.3),
    0 0 34px rgba(18, 201, 255, 0.08);
}

.portfolio-card h3,
.portfolio-card p,
.portfolio-card span,
.blog-card h3,
.blog-card p,
.blog-card span {
  position: relative;
  z-index: 1;
}

.portfolio-card span,
.blog-card span {
  display: inline-block;
  margin-bottom: 90px;
  color: var(--cyan);
  font-weight: 950;
}

.portfolio-card em {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 24px;
  color: var(--cyan);
  font-style: normal;
  font-weight: 850;
}

.portfolio-card.featured {
  min-height: 300px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(18, 201, 255, 0.045) 44%, rgba(11, 97, 255, 0.035)),
    rgba(3, 10, 18, 0.66);
}

.contact-section {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.contact-copy p {
  max-width: 620px;
  margin: 24px 0 0;
}

.contact-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.contact-panel a,
.contact-panel button {
  position: relative;
  z-index: 1;
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #dff4ff;
  overflow-wrap: anywhere;
  text-align: left;
}

.contact-panel a:hover {
  border-color: rgba(18, 201, 255, 0.52);
  background: rgba(18, 201, 255, 0.08);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.012) 42%),
    rgba(3, 10, 18, 0.62);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.faq-list summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  color: var(--white);
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.faq-list summary::after {
  content: "+";
  color: var(--cyan);
  font-size: 1.4rem;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
}

.chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 35;
  width: 64px;
  height: 48px;
  border: 1px solid rgba(18, 201, 255, 0.5);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(3, 12, 22, 0.76);
  color: var(--cyan);
  font-weight: 950;
  backdrop-filter: blur(14px);
  box-shadow: 0 0 36px rgba(18, 201, 255, 0.28);
}

.chat-launcher::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(18, 201, 255, 0.18);
  clip-path: inherit;
  animation: pulse-frame 2.8s ease-in-out infinite;
}

.chatbot {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 34;
  width: min(360px, calc(100vw - 28px));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(2, 7, 14, 0.82);
  backdrop-filter: blur(20px) saturate(125%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.chatbot header,
.terms-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chatbot header span,
.chat-note {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.chatbot header button,
.terms-header button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
}

.chat-messages {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding: 14px;
}

.chat-quick-actions {
  display: flex;
  gap: 8px;
  padding: 0 14px 14px;
}

.chat-quick-actions button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #dff4ff;
  background: rgba(255, 255, 255, 0.04);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.chat-quick-actions button:hover {
  color: var(--cyan);
  border-color: rgba(18, 201, 255, 0.46);
}

.engagement-prompt {
  position: fixed;
  right: 22px;
  bottom: 86px;
  z-index: 33;
  width: min(330px, calc(100vw - 44px));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.018)),
    rgba(3, 10, 18, 0.84);
  backdrop-filter: blur(20px) saturate(125%);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.engagement-prompt p {
  margin: 0;
  color: #dbe9f7;
  font-size: 0.86rem;
}

.engagement-prompt a {
  grid-column: 1;
  color: var(--cyan);
  font-weight: 850;
  font-size: 0.82rem;
}

.engagement-prompt button {
  grid-column: 2;
  grid-row: 1;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.bot-message,
.user-message {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #dbe9f7;
}

.user-message {
  margin-left: 28px;
  border-color: rgba(18, 201, 255, 0.36);
}

.bot-message {
  margin-right: 28px;
  background: rgba(255, 255, 255, 0.035);
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.chat-form input {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
}

.chat-form button {
  padding: 0 12px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.chat-note {
  margin: 0;
  padding: 0 14px 14px;
}

.consent {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 36;
  width: min(620px, calc(100vw - 44px));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(2, 7, 14, 0.84);
  backdrop-filter: blur(20px) saturate(125%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.consent p {
  margin: 4px 0 0;
  color: #d5e6f7;
  font-size: 0.9rem;
}

.consent-actions {
  display: flex;
  gap: 8px;
}

.consent button,
.consent-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  font-weight: 850;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.terms-modal {
  width: min(820px, calc(100vw - 32px));
  max-height: min(780px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    rgba(3, 9, 17, 0.92);
  color: var(--white);
  backdrop-filter: blur(22px) saturate(125%);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.4);
}

.terms-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.terms-header h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  text-transform: uppercase;
}

.terms-content {
  max-height: 68vh;
  overflow: auto;
  padding: 22px;
}

.terms-content h3 {
  margin: 24px 0 8px;
  color: var(--cyan-2);
}

.site-footer {
  padding: 76px 0 34px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 0.8fr 0.8fr;
  gap: clamp(38px, 7vw, 112px);
}

.footer-brand-block p {
  max-width: 310px;
  margin: 24px 0 18px;
}

.footer-accent {
  display: block;
  width: fit-content;
  color: var(--cyan);
  font-weight: 850;
}

.footer-col {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-col h2 {
  margin: 0 0 12px;
  color: rgba(245, 248, 255, 0.45);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-col a {
  color: #d7e1ef;
}

.footer-col a:hover,
.footer-accent:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #dff4ff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}

.footer-bottom {
  margin-top: 64px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  margin: 0;
  color: rgba(158, 178, 199, 0.76);
}

.legal-header {
  width: min(calc(100% - 44px), var(--max));
  margin: 0 auto;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-back {
  color: #dff4ff;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.legal-main {
  width: min(calc(100% - 44px), 900px);
  margin: 0 auto;
  padding: clamp(64px, 10vw, 122px) 0;
}

.legal-main h1 {
  margin: 16px 0 8px;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.legal-updated {
  color: var(--muted);
}

.legal-doc {
  margin-top: 42px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.014) 42%),
    rgba(3, 10, 18, 0.66);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.legal-doc h2 {
  margin: 30px 0 8px;
  color: var(--white);
}

.legal-doc h2:first-child {
  margin-top: 0;
}

.legal-doc p {
  color: var(--muted);
}

[data-reveal] {
  transform: translateY(18px);
  opacity: 1;
  transition:
    transform 520ms ease,
    opacity 520ms ease;
}

[data-reveal].is-visible {
  transform: translateY(0);
}

@keyframes pulse-frame {
  0%,
  100% {
    opacity: 0.22;
    transform: scale(1);
  }

  50% {
    opacity: 0.72;
    transform: scale(1.08);
  }
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: auto auto auto;
    justify-content: space-between;
  }

  .brand span {
    max-width: 130px;
  }

  .menu-toggle {
    display: block;
    order: 3;
  }

  .language-toggle {
    order: 2;
  }

  .main-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 18px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
      rgba(2, 7, 14, 0.72);
    border-bottom: 0;
    backdrop-filter: blur(22px) saturate(135%);
  }

  .main-menu.is-open {
    display: flex;
  }

  .main-menu a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .section-heading,
  .section-heading.compact,
  .about-section .section-heading,
  .contact-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .about-section .section-heading p:last-child {
    max-width: 620px;
    margin-top: 0;
  }

  .team-grid,
  .portfolio-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    min-height: auto;
    margin: 0;
  }

  .team-card img {
    height: min(420px, 78vw);
  }

  .site-footer,
  .site-footer p {
    text-align: left;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand img {
    width: 46px;
    height: 36px;
  }

  .brand span {
    font-size: 0.78rem;
  }

  .hero {
    min-height: clamp(500px, 98vw, 580px);
    background:
      linear-gradient(90deg, rgba(2, 6, 13, 0.42), transparent 48%),
      #000;
  }

  .hero > img {
    height: clamp(500px, 98vw, 580px);
    object-fit: cover;
    object-position: right center;
  }

  .hero-phrase {
    left: 18px;
    bottom: clamp(28px, 9vw, 42px);
    width: min(300px, calc(100% - 36px));
  }

  .hero-phrase h1 {
    max-width: 260px;
    font-size: clamp(1rem, 6vw, 1.42rem);
  }

  .hero-line {
    width: 154px;
    height: 6px;
  }

  .section,
  .site-footer {
    width: calc(100% - 32px);
  }

  .section {
    padding: 62px 0;
  }

  .section-heading h2,
  .contact-copy h2,
  .about-section .section-heading h2 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .portfolio-card span,
  .blog-card span {
    margin-bottom: 54px;
  }

  .consent {
    left: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    grid-template-columns: 1fr;
  }

  .consent-actions {
    flex-wrap: wrap;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .chat-launcher {
    right: 14px;
    bottom: 14px;
    width: 58px;
    height: 44px;
  }

  .chatbot {
    right: 14px;
    bottom: 82px;
  }

  .engagement-prompt {
    right: 14px;
    bottom: 72px;
    width: calc(100vw - 28px);
  }
}

@media (max-width: 420px) {
  .brand span {
    display: none;
  }

  .language-toggle {
    min-width: 44px;
  }

  .team-card div:last-child {
    padding: 18px;
  }

  .hero {
    min-height: 470px;
  }

  .hero > img {
    height: 470px;
    object-position: 90% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .team-card,
  .portfolio-card,
  .blog-card {
    transform: none !important;
  }
}
