:root {
  --primary: #2c66a5;
  --muted: #6b7785;
  --bg: #f7fbff;
  --accent: #6fb1e6;
  --glass: rgba(255, 255, 255, 0.7);
  --radius: 12px;
}
/* enable smooth anchor scrolling across the landing page */
html {
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
}
body {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial;
  margin: 0;
  background: linear-gradient(180deg, var(--bg), #ffffff);
  color: #16324a;
  -webkit-font-smoothing: antialiased;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 999; /* ensure header stays on top */
  padding: 8px 0; /* subtle vertical padding */
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(20, 40, 60, 0.06);
  box-shadow: 0 6px 20px rgba(22, 50, 74, 0.04);
}
.site-header .container {
  display: flex;
  align-items: center;
  /* gap: 16px; */
  justify-content: space-between;
}
.logo {
  font-weight: 800;
  color: var(--primary);
  font-size: 20px;
  letter-spacing: 0.2px;
  text-decoration: none;
}
.nav {
  margin-left: auto;
  display: flex;
  gap: 12px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 600;
  transition: color 0.18s ease, background 0.18s ease, transform 0.12s ease;
}
.nav a:hover {
  color: var(--primary);
  background: rgba(44, 102, 165, 0.06);
  transform: translateY(-1px);
}
.nav a.active {
  color: var(--primary);
}
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.btn.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 30px rgba(44, 102, 165, 0.16);
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}
.btn.primary:hover {
  transform: translateY(-3px);
  filter: brightness(0.99);
}
.btn.ghost {
  border: 1px solid rgba(20, 40, 60, 0.06);
  color: var(--primary);
  background: transparent;
}
.btn.large {
  padding: 14px 22px;
  font-weight: 600;
}
.hero {
  position: relative;
  padding: 72px 0 40px;
  background: linear-gradient(
    0deg,
    rgba(44, 102, 165, 0.04),
    rgba(111, 177, 230, 0.02)
  );
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 32px;
  align-items: center;
}
.hero-copy h1 {
  font-size: 40px;
  line-height: 1.06;
  margin: 0 0 14px;
  color: var(--primary);
  font-weight: 700;
}
/* Animated heading split into spans for subtle entrance and color emphasis */
.animated-heading {
  display: inline-block;
  line-height: 1.06;
}
.animated-heading span {
  display: inline-block;
  transform: translateY(12px) skewY(-1deg);
  opacity: 0;
}
.animated-heading .a1 {
  animation: slideIn 700ms cubic-bezier(0.2, 0.9, 0.2, 1) 120ms both;
}
.animated-heading .a2 {
  animation: slideIn 700ms cubic-bezier(0.2, 0.9, 0.2, 1) 260ms both;
  color: var(--muted);
  font-weight: 600;
}
.animated-heading .a3 {
  animation: slideIn 700ms cubic-bezier(0.2, 0.9, 0.2, 1) 380ms both;
  color: #15324a;
}
@keyframes slideIn {
  to {
    transform: translateY(0) skewY(0);
    opacity: 1;
  }
}
.animated-heading .a1 {
  color: var(--primary);
}

/* subtle underline accent that fades in */
.animated-heading::after {
  content: '';
  display: block;
  height: 6px;
  width: 36px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin-top: 12px;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1) 520ms;
}
.animated-heading.visible::after {
  transform: scaleX(1);
}
.hero-copy .lead {
  max-width: 56ch;
}
.hero-copy .lead {
  color: var(--muted);
  margin: 0 0 18px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  margin: 18px 0;
}
.features {
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  color: var(--muted);
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  color: var(--muted);
}
.features li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(20, 40, 60, 0.04);
  font-weight: 700;
  color: #16324a;
  box-shadow: 0 8px 30px rgba(15, 30, 50, 0.04);
}
.feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 26px rgba(44, 102, 165, 0.12);
}
.feat-icon svg {
  display: block;
}
.feat-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.feat-body strong {
  font-size: 15px;
  color: var(--primary);
}
.feat-body span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.hero-art-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 22px 60px rgba(15, 30, 50, 0.08);
  transform: rotate(-3deg);
  overflow: visible;
}
.hero-art-device {
  position: absolute;
  right: -10px;
  bottom: -18px;
  width: 140px;
  height: 260px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #eef9ff);
  box-shadow: 0 14px 40px rgba(11, 30, 46, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  transform: rotate(6deg);
}
.hero-art-card .illustration {
  transform: translateY(-6px);
}
.hero-art {
  display: flex;
  justify-content: center;
}
.illustration {
  width: 100%;
  height: auto;
  max-width: 520px;
}
.card {
  transition: transform 0.9s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.card-1 {
  transform-origin: 20% 20%;
}
.card-2 {
  transform-origin: 80% 80%;
}
.floating-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.35;
}
.o1 {
  width: 160px;
  height: 160px;
  background: linear-gradient(120deg, var(--primary), #3f93d1);
  left: -40px;
  top: 10px;
  mix-blend-mode: screen;
  animation: float 8s ease-in-out infinite;
}
.o2 {
  width: 96px;
  height: 96px;
  background: linear-gradient(120deg, #7ad0ff, #59c0ff);
  right: 40px;
  top: 40px;
  mix-blend-mode: screen;
  animation: float 6s ease-in-out infinite;
}
.o3 {
  width: 120px;
  height: 120px;
  background: linear-gradient(120deg, #ffd2a6, #ffd6c0);
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
  mix-blend-mode: screen;
  animation: float 10s ease-in-out infinite;
}
@keyframes float {
  0% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-18px) rotate(8deg);
  }
  100% {
    transform: translateY(0) rotate(0);
  }
}

.section {
  padding: 64px 0;
}
.section h2 {
  color: var(--primary);
  margin: 0 0 12px;
}
.about .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}
.card.small {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(11, 30, 46, 0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 140px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card.small:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(11, 30, 46, 0.08);
}

/* Styled list for about-services: light primary-accented cards */
.about-services {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}
.about-services li {
  background: linear-gradient(
    90deg,
    rgba(44, 102, 165, 0.08),
    rgba(111, 177, 230, 0.03)
  );
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--primary);
  font-weight: 700;
  border: 1px solid rgba(44, 102, 165, 0.08);
  box-shadow: 0 8px 22px rgba(44, 102, 165, 0.04);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.about-services li::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(44, 102, 165, 0.12);
}
.about-services li:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(44, 102, 165, 0.08);
}

.how .steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.step {
  background: linear-gradient(180deg, #fff, #f8fbff);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(11, 30, 46, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.step:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(11, 30, 46, 0.08);
}
.step h4 {
  margin: 0;
  .telegram-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    align-items: center;
  }
  .telegram-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
  }
  .telegram-copy h2 {
    margin-top: 0;
    color: var(--primary);
  }
  .telegram-copy p {
    color: var(--muted);
    margin-bottom: 8px;
  }

  @media (max-width: 880px) {
    .telegram-grid {
      grid-template-columns: 1fr;
      text-align: center;
    }
    .telegram-copy {
      padding: 0 8px;
    }
  }
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.step-icon {
  flex-shrink: 0;
}
.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
}
.contact-form {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(11, 30, 46, 0.04);
}
.contact-form label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(11, 30, 46, 0.06);
  margin-top: 6px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: 0 8px 24px rgba(44, 102, 165, 0.08);
  border-color: var(--primary);
}
.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.contact-info {
  background: linear-gradient(180deg, #fff, #fbfeff);
  padding: 18px;
  border-radius: 12px;
}
.social {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.social a {
  color: var(--primary);
  text-decoration: none;
}

.site-footer {
  padding: 18px 0;
  border-top: 1px solid rgba(11, 30, 46, 0.03);
  background: transparent;
}

/* reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .nav {
    display: none;
  }
  .hero-copy h1 {
    font-size: 28px;
  }
}

/* small helper for interaction */
.cta {
  margin-left: 12px;
}
