:root {
  --bg: #04050f;
  --bg-soft: #0b1030;
  --panel: rgba(17, 23, 56, 0.6);
  --text: #e9f4ff;
  --muted: #9bb4d8;
  --brand: #33d6ff;
  --brand-2: #9a7bff;
  --border: rgba(118, 146, 255, 0.32);
  --glow: rgba(51, 214, 255, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(124, 66, 255, 0.25) 0, transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(38, 199, 255, 0.22) 0, transparent 28%),
    linear-gradient(180deg, #03040d 0%, #060a1a 50%, #050816 100%);
  color: var(--text);
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.65), transparent 70%),
    radial-gradient(1px 1px at 27% 43%, rgba(132, 180, 255, 0.75), transparent 70%),
    radial-gradient(1px 1px at 52% 61%, rgba(173, 255, 246, 0.7), transparent 70%),
    radial-gradient(1px 1px at 76% 25%, rgba(255, 255, 255, 0.55), transparent 70%),
    radial-gradient(1px 1px at 90% 72%, rgba(175, 165, 255, 0.7), transparent 70%);
}

body::after {
  background:
    url("./bg-web.svg") center top / min(1200px, 120vw) no-repeat,
    linear-gradient(120deg, rgba(22, 50, 122, 0.08), rgba(95, 44, 170, 0.1));
  opacity: 0.42;
}

main {
  position: relative;
}

main::before {
  content: "";
  position: absolute;
  right: -180px;
  top: 120px;
  width: min(700px, 72vw);
  height: 520px;
  background: url("./bg-server.svg") right center / contain no-repeat;
  opacity: 0.2;
  pointer-events: none;
  z-index: -1;
  filter: saturate(1.1);
}

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 9, 25, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-shadow: 0 0 18px rgba(147, 210, 255, 0.45);
}

.brand img {
  width: 100px;
  height: auto;
  object-fit: contain;
  border-radius: 0.65rem;
  padding: 0.25rem;
  box-shadow: 0 0 16px rgba(114, 173, 255, 0.35);
}

.brand span {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  color: var(--muted);
  font-weight: 500;
}

.site-nav a:hover {
  color: #dff8ff;
}

.menu-toggle {
  display: none;
}

.btn {
  display: inline-block;
  border: 1px solid transparent;
  background: linear-gradient(105deg, var(--brand), var(--brand-2));
  color: #000;
  font-weight: 700;
  padding: 0.7rem 1rem;
  border-radius: 0.65rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 10px 25px rgba(55, 171, 255, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.site-nav .btn,
.site-nav .btn:hover {
  color: #000;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset, 0 12px 28px rgba(86, 164, 255, 0.4);
}

.btn-sm {
  padding: 0.5rem 0.9rem;
}

.btn-outline {
  background: transparent;
  border-color: var(--brand);
  color: var(--text);
  box-shadow: 0 0 18px rgba(62, 198, 255, 0.2);
}

.hero {
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  width: 520px;
  height: 520px;
  right: -220px;
  top: -170px;
  border: 1px solid rgba(119, 182, 255, 0.26);
  border-radius: 54% 46% 58% 42% / 45% 55% 45% 55%;
  box-shadow:
    0 0 0 18px rgba(122, 74, 255, 0.08),
    0 0 0 42px rgba(37, 189, 255, 0.06);
}

.hero::after {
  width: 360px;
  height: 360px;
  left: -150px;
  bottom: -170px;
  border: 1px solid rgba(78, 211, 255, 0.24);
  border-radius: 63% 37% 41% 59% / 52% 48% 52% 48%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  color: #9fdcff;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

h1 {
  margin: 0.25rem 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  text-shadow: 0 0 20px rgba(130, 187, 255, 0.25);
}

.lead {
  color: var(--muted);
  max-width: 58ch;
}

.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-card,
.service-card,
.about-card,
.product-card {
  background: linear-gradient(165deg, rgba(18, 29, 72, 0.68) 0%, rgba(12, 20, 47, 0.78) 100%);
  border: 1px solid var(--border);
  border-radius: 1rem;
  backdrop-filter: blur(7px);
  box-shadow: 0 0 0 1px rgba(154, 186, 255, 0.08) inset, 0 14px 40px rgba(2, 6, 21, 0.55);
}

.hero-card {
  padding: 1.4rem;
}

.hero-card h2 {
  margin-top: 0;
}

.hero-card ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

section {
  padding: 1.5rem 0 2rem;
}

.section-head h2 {
  margin-bottom: 0.35rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.55rem;
}

.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(180px, 45vw);
  height: 6px;
  background: linear-gradient(90deg, rgba(54, 220, 255, 0.95), rgba(147, 110, 255, 0.85), transparent);
  border-radius: 999px;
  filter: drop-shadow(0 0 8px rgba(80, 203, 255, 0.45));
}

.section-head p {
  color: var(--muted);
}

.product-grid {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.product-art {
  position: absolute;
  right: -26px;
  top: -18px;
  width: 150px;
  opacity: 0.16;
  pointer-events: none;
  filter: saturate(1.15);
}

.product-art img {
  width: 100%;
  height: auto;
  display: block;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(98, 213, 255, 0.55);
  box-shadow: 0 0 24px rgba(51, 214, 255, 0.22), 0 18px 42px rgba(2, 6, 21, 0.65);
}

.product-card h3 {
  margin: 0;
}

.price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #caf2ff;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 0.35rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  padding: 1rem;
}

.about-card {
  padding: 1.2rem;
}

.policy-content h2 {
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.policy-content p,
.policy-content li {
  color: var(--muted);
}

.policy-content ul {
  padding-left: 1.15rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding: 2rem 0;
  background: linear-gradient(180deg, rgba(7, 12, 33, 0) 0%, rgba(8, 13, 35, 0.75) 100%);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: -120px;
  top: -110px;
  width: 420px;
  height: 220px;
  border-top: 1px solid rgba(112, 198, 255, 0.28);
  border-right: 1px solid rgba(146, 104, 255, 0.22);
  border-radius: 58% 42% 0 0;
  transform: rotate(-8deg);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
}

.footer-grid h4 {
  margin-bottom: 0.5rem;
}

.footer-grid a {
  display: block;
  color: var(--muted);
  margin: 0.3rem 0;
}

.footer-grid a:hover {
  color: #d8f7ff;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  width: min(440px, calc(100% - 2rem));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: linear-gradient(160deg, rgba(16, 24, 60, 0.92), rgba(8, 14, 40, 0.95));
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(140, 176, 255, 0.16) inset, 0 16px 45px rgba(2, 8, 23, 0.7);
}

.cookie-copy {
  width: 100%;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.cookie-banner a {
  color: #d7f8ff;
  text-decoration: underline;
}

.cookie-actions {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-preferences-panel {
  width: 100%;
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
  display: grid;
  gap: 0.6rem;
}

.cookie-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.cookie-option input {
  accent-color: var(--brand);
}

.chat-widget {
  position: fixed;
  right: 1rem;
  bottom: 6.6rem;
  z-index: 49;
  display: grid;
  justify-items: end;
  gap: 0.6rem;
}

.chat-toggle {
  color: #000;
}

.chat-panel {
  width: min(380px, calc(100vw - 2rem));
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: linear-gradient(170deg, rgba(14, 22, 56, 0.95), rgba(8, 14, 35, 0.96));
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 45px rgba(2, 8, 25, 0.68);
  padding: 0.75rem;
}

.chat-header {
  margin-bottom: 0.55rem;
  color: #d7f5ff;
}

.chat-messages {
  display: grid;
  gap: 0.45rem;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.chat-message {
  font-size: 0.92rem;
  padding: 0.52rem 0.64rem;
  border-radius: 0.7rem;
  line-height: 1.4;
}

.chat-message.bot {
  background: rgba(75, 137, 255, 0.17);
  border: 1px solid rgba(127, 180, 255, 0.26);
  color: #d8eeff;
}

.chat-message.bot.pending {
  opacity: 0.85;
  font-style: italic;
}

.chat-message.user {
  background: rgba(125, 91, 255, 0.2);
  border: 1px solid rgba(168, 135, 255, 0.28);
  color: #ece2ff;
  justify-self: end;
}

.chat-form {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
}

.chat-form input {
  background: rgba(8, 14, 36, 0.8);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 0.55rem;
  padding: 0.58rem 0.62rem;
}

.chat-disclaimer {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.chat-disclaimer a {
  color: #d8f7ff;
  text-decoration: underline;
}

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

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

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

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

@media (max-width: 680px) {
  .menu-toggle {
    display: inline-flex;
    border: 1px solid var(--border);
    color: var(--text);
    background: transparent;
    border-radius: 0.6rem;
    padding: 0.45rem 0.7rem;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(7, 12, 31, 0.96);
    border-bottom: 1px solid var(--border);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 4%;
    gap: 0.7rem;
  }

  .site-nav.open {
    display: flex;
  }

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

  .product-art {
    width: 132px;
    right: -20px;
    top: -14px;
    opacity: 0.13;
  }

  .cookie-banner {
    left: 1rem;
    right: 1rem;
    width: auto;
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-actions {
    width: 100%;
  }

  .chat-widget {
    bottom: 7rem;
  }

  .hero::before {
    width: 330px;
    height: 330px;
    right: -170px;
    top: -120px;
  }

  .hero::after {
    width: 220px;
    height: 220px;
    left: -100px;
    bottom: -110px;
  }

  main::before {
    width: 90vw;
    right: -130px;
    top: 220px;
    opacity: 0.14;
  }

  .chat-widget {
    left: 1rem;
    right: 1rem;
    justify-items: stretch;
  }
}
