:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --grey-900: #111111;
  --grey-800: #1a1a1a;
  --grey-700: #242424;
  --grey-500: #555555;
  --grey-400: #888888;
  --grey-200: #cccccc;

  --font-display: "Montserrat", sans-serif;
  --font-body: "Montserrat", sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --nav-h: 64px;
  --max-w: 1100px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  z-index: 0;
  transition: left 0.12s ease, top 0.12s ease;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: clamp(5rem, 10vw, 9rem) 0;
  position: relative;
}

.section-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.75rem;
}
.section-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.125rem;
  height: 1px;
  background: var(--grey-500);
}

.heading-xl {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.heading-lg {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--white);
  color: var(--black);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255,255,255,0.2);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn--outline:hover {
  border-color: var(--white);
  transform: translateY(-2px);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  z-index: 100;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(20px);
  border-color: rgba(255,255,255,0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-400);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out-expo);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--grey-500);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.5rem;
  transition: color 0.2s ease;
  border-radius: 2px;
}
.lang-btn.active { color: var(--white); }
.lang-btn:hover { color: var(--grey-200); }

#hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 0.2s forwards;
}

.hero__headline {
  margin-bottom: 2.5rem;
}

.hero__h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 0.35s forwards;
}

.hero__h2 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.35);
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 0.5s forwards;
}

.hero__sub {
  max-width: 50ch;
  font-size: 1rem;
  color: var(--grey-400);
  line-height: 1.6;
  margin-bottom: 2.75rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 0.65s forwards;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 0.8s forwards;
}

.hero__watermark {
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-family: var(--font-display);
  font-size: 18vw;
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.03);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 0.05em;
  user-select: none;
}

.hero__rule {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

#about {
  background: var(--grey-900);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.about__heading { margin-bottom: 1.5rem; }

.about__body {
  font-size: 1rem;
  color: var(--grey-400);
  line-height: 1.8;
}

.about__stats {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-top: 1rem;
}

.stat {
  border-left: 1px solid rgba(255,255,255,0.08);
  padding-left: 1.25rem;
}

.stat__val {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.stat__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-400);
}

#solutions { background: var(--black); }

.solutions__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
  gap: 2rem;
  flex-wrap: wrap;
}

.solutions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.07);
}

.service-card {
  background: var(--black);
  padding: 2.75rem 2.5rem;
  position: relative;
  transition: background 0.3s ease;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover { background: var(--grey-900); }
.service-card:hover::before { opacity: 1; }

.service-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1.5rem;
  color: var(--white);
  opacity: 0.8;
}

.service-card__number {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--grey-700);
  margin-bottom: 2rem;
}

.service-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.service-card__desc {
  font-size: 0.875rem;
  color: var(--grey-400);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.service-card__tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--grey-500);
  text-transform: uppercase;
}
#showcase {
  background: var(--grey-900);
  overflow: hidden;
}

.showcase__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.showcase__heading { margin-bottom: 1rem; }
.showcase__sub {
  font-size: 0.875rem;
  color: var(--grey-500);
  margin-bottom: 2.5rem;
}

.messenger {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
}

.messenger__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
}

.messenger__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--black);
  flex-shrink: 0;
}

.messenger__info { flex: 1; }

.messenger__name {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
}

.messenger__status {
  font-size: 0.6875rem;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.messenger__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
}

.messenger__body {
  padding: 1.25rem;
  min-height: 340px;
  max-height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.msg {
  display: flex;
  opacity: 0;
  animation: msgIn 0.4s var(--ease-out-expo) forwards;
}
.msg--user { justify-content: flex-end; }
.msg--bot { justify-content: flex-start; }

.msg__bubble {
  max-width: 78%;
  padding: 0.625rem 0.875rem;
  border-radius: 12px;
  font-size: 0.8125rem;
  line-height: 1.55;
  white-space: pre-line;
}

.msg--user .msg__bubble {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.msg--bot .msg__bubble {
  background: rgba(255,255,255,0.06);
  color: var(--grey-200);
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255,255,255,0.08);
}

.messenger__footer {
  padding: 0.875rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
}

.messenger__try-btn {
  display: block;
  text-align: center;
  padding: 0.75rem;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.messenger__try-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
}

#pricing { background: var(--black); }

.pricing__header {
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.pricing-category {
  margin-bottom: 4rem;
}
.pricing-category:last-child { margin-bottom: 0; }

.pricing-category__name {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.pricing-grid {
  display: flex;
  gap: 1px;
  background: rgba(255,255,255,0.07);
  flex-wrap: wrap;
}

.plan-card {
  flex: 1 1 220px;
  background: var(--black);
  padding: 2rem 1.75rem;
  transition: background 0.25s ease;
  position: relative;
}
.plan-card:hover { background: var(--grey-900); }

.plan-card--highlight {
  border: 1px solid rgba(255,255,255,0.25);
  background: var(--grey-900);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  z-index: 1;
}
.plan-card--highlight::after {
  content: "POPULAR";
  position: absolute;
  top: -1px;
  left: 1.75rem;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--black);
  background: var(--white);
  padding: 0.2rem 0.6rem;
}

.plan-card__tier {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 0.875rem;
}

.plan-card__price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 0.375rem;
}

.plan-card__duration {
  font-size: 0.75rem;
  color: var(--grey-500);
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}

.plan-card__desc {
  font-size: 0.875rem;
  color: var(--grey-400);
  line-height: 1.7;
}

footer {
  background: var(--grey-900);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 4rem 0 2.5rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.footer__tagline {
  font-size: 0.875rem;
  color: var(--grey-500);
}

.footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.625rem;
}
.footer__links a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-400);
  transition: color 0.2s ease;
}
.footer__links a:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__rights {
  font-size: 0.6875rem;
  color: var(--grey-600, #444);
  letter-spacing: 0.05em;
}

.footer__author {
  font-size: 0.6875rem;
  color: var(--grey-500);
  letter-spacing: 0.05em;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  margin: 0;
}

@media (max-width: 900px) {
  .nav { height: 52px; }
  .nav-logo { height: 38px; }
  .nav-links { display: flex; gap: 1.5rem; }
  .nav-links li:not(.nav-link-products) { display: none; }
  .nav-link-products a { 
    color: var(--white);
  }
  
  #hero { padding-top: 52px; }
  section { padding: 3rem 0; }
  
  .about__grid,
  .showcase__grid {
    grid-template-columns: 1fr;
  }
  .solutions__grid {
    grid-template-columns: 1fr;
  }

  .solutions__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__h1,
  .hero__h2 {
    font-size: clamp(2.5rem, 12vw, 4.5rem);
  }
  .footer__inner {
    grid-template-columns: 1fr;
  }
  .footer__links { 
    align-items: flex-start; 
    gap: 1rem;
  }

  .nav__inner {
    padding: 0 1.25rem;
  }
}

@media (max-width: 600px) {
  .pricing-grid {
    flex-direction: column;
  }
  .plan-card--highlight {
    transform: none;
  }
  .hero__ctas { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  
  .products-grid { grid-template-columns: 1fr; }
  .doc-content { padding-top: calc(var(--nav-h) + 2rem); }
  .install-box { 
    flex-direction: row; 
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    font-size: 0.8rem;
  }
  .copy-hint { 
    font-size: 0.6rem;
    background: rgba(255,255,255,0.05);
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
  }
}

/* ══════════════════════ PRODUCTS ══════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.product-card {
  background: var(--grey-900);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.25rem;
  border-radius: 4px;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.3s ease, background 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.3);
  background: var(--grey-800);
}

.product-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
}

.product-card__desc {
  font-size: 0.875rem;
  color: var(--grey-400);
  line-height: 1.6;
  min-height: 3em;
}

.product-card__badges {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.product-card__badges img {
  height: 20px;
  filter: grayscale(1) brightness(1.2);
  transition: filter 0.3s ease;
}

.product-card:hover .product-card__badges img {
  filter: none;
}

/* ══════════════════════ DOCS ══════════════════════ */
.doc-content {
  max-width: 900px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 4rem) var(--gutter) 6rem;
}

.install-box {
  background: var(--grey-900);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  font-family: monospace;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.install-box:hover {
  border-color: rgba(255,255,255,0.3);
  background: var(--grey-800);
}

.copy-hint {
  font-size: 0.7rem;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}