:root {
  --bg: #f4f8fb;
  --surface: #ffffff;
  --surface-soft: #eaf3f8;
  --text: #18324a;
  --muted: #5d7285;
  --blue: #2a5d91;
  --blue-soft: #d9ecf8;
  --cyan: #48b9df;
  --gold: #d5a84d;
  --line: #d8e5ee;
  --shadow: 0 18px 50px rgba(42, 93, 145, 0.12);
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(115deg, rgba(214, 226, 235, 0.99) 0 28%, rgba(176, 215, 232, 0.96) 28% 52%, rgba(207, 222, 233, 0.99) 52% 100%),
    radial-gradient(circle at 86% 8%, rgba(72, 185, 223, 0.4), transparent 25rem),
    radial-gradient(circle at 12% 32%, rgba(213, 168, 77, 0.23), transparent 20rem),
    radial-gradient(circle at 70% 78%, rgba(42, 93, 145, 0.25), transparent 24rem),
    var(--bg);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(42, 93, 145, 0.095) 1px, transparent 1px),
    linear-gradient(rgba(42, 93, 145, 0.08) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), transparent 76%);
}

body.menu-open {
  overflow: hidden;
}

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

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

#particles-js {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

.header,
main,
.footer {
  position: relative;
  z-index: 2;
}

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  padding: 18px clamp(18px, 4vw, 56px);
  transition: padding 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header.scrolled {
  padding-block: 10px;
  background: rgba(244, 248, 251, 0.86);
  box-shadow: 0 12px 36px rgba(42, 93, 145, 0.1);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1120px, 100%);
  min-height: 58px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  width: 148px;
  flex: 0 0 auto;
}

.brand img,
.footer img,
.cta-box img,
.hero-showcase img {
  height: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-menu a {
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--blue);
}

.nav-cta,
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav-cta {
  padding: 0 18px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(42, 93, 145, 0.18);
}

.button {
  min-width: 190px;
  padding: 0 22px;
}

.button svg {
  width: 19px;
  height: 19px;
}

.primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 14px 28px rgba(42, 93, 145, 0.18);
}

.secondary {
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--line);
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 0.2s ease;
}

.hero {
  position: relative;
  padding: 136px clamp(18px, 5vw, 70px) 46px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 96px clamp(14px, 3vw, 46px) 18px;
  z-index: -1;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(225, 236, 244, 0.82), rgba(184, 219, 235, 0.68)),
    radial-gradient(circle at 92% 18%, rgba(72, 185, 223, 0.3), transparent 18rem);
  border: 0;
  box-shadow: none;
}

.hero-content {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(34px, 6vw, 82px);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.section-text h2,
.section-heading h2,
.cta-box h2 {
  line-height: 1.05;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  margin-top: 20px;
  font-size: clamp(1.95rem, 3vw, 3.08rem);
  font-weight: 800;
}

.hero p {
  max-width: 650px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.15vw, 1.06rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-showcase {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
  padding: 0;
  isolation: isolate;
  justify-self: center;
  transform: translateX(34px);
}

.hero-showcase::before {
  content: none;
}

.hero-showcase::after {
  content: none;
}

.showcase-panel {
  position: relative;
  width: min(430px, calc(100vw - 56px));
  height: 430px;
  display: flex;
  place-items: center;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transform: none;
}

.showcase-panel::before {
  content: none;
}

.planet-animation {
  position: relative;
  z-index: 1;
  width: 455px;
  height: 455px;
  pointer-events: none;
  opacity: 1;
  animation: planetFreeFloat 6.4s ease-in-out infinite;
}

.planet-glow {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: rgba(72, 205, 255, 0.52);
  filter: blur(28px);
  animation: planetPulse 3.8s ease-in-out infinite;
}

.planet-core {
  position: absolute;
  inset: 48px;
  overflow: hidden;
  border: 1px solid rgba(220, 249, 255, 0.86);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), transparent 0.36rem),
    radial-gradient(circle at 62% 64%, rgba(255, 255, 255, 0.78), transparent 0.3rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(72, 205, 255, 0.22));
  box-shadow: inset 0 0 28px rgba(255, 255, 255, 0.26), 0 0 48px rgba(72, 205, 255, 0.46);
  animation: planetFloat 5.2s ease-in-out infinite;
}

.planet-core::before,
.planet-core::after {
  content: "";
  position: absolute;
  inset: 13% 18%;
  border: 1px solid rgba(220, 249, 255, 0.48);
  border-radius: 50%;
}

.planet-core::before {
  transform: rotate(28deg);
}

.planet-core::after {
  transform: rotate(-34deg);
}

.planet-line {
  position: absolute;
  left: -20%;
  right: -20%;
  height: 1px;
  background: rgba(220, 249, 255, 0.44);
}

.line-one { top: 34%; }
.line-two { top: 50%; }
.line-three { top: 66%; }

.planet-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 16px rgba(123, 229, 255, 0.95);
  animation: dotBlink 2.6s ease-in-out infinite;
}

.dot-one { top: 32%; left: 28%; }
.dot-two { top: 52%; right: 24%; animation-delay: 0.7s; }
.dot-three { bottom: 24%; left: 50%; animation-delay: 1.3s; }

.planet-orbit {
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(220, 249, 255, 0.46);
  border-radius: 50%;
}

.planet-orbit b {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 18px rgba(123, 229, 255, 1);
}

.orbit-one {
  transform: rotateX(66deg) rotateZ(-18deg);
  animation: orbitSpin 8.5s linear infinite;
}

.orbit-two {
  inset: 48px;
  transform: rotateX(70deg) rotateZ(44deg);
  animation: orbitSpin 11s linear reverse infinite;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 58px 0;
}

.section-text {
  max-width: 780px;
}

.section-text h2,
.section-heading h2,
.cta-box h2 {
  margin-top: 14px;
  font-size: clamp(1.45rem, 2.3vw, 2.25rem);
  font-weight: 800;
}

.section-text p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.05rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.about-grid article,
.services-list article,
.steps article {
  position: relative;
  overflow: hidden;
  --mx: 50%;
  --my: 50%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(72, 185, 223, 0.16), transparent 12rem),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 32px rgba(42, 93, 145, 0.08);
  transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.about-grid article::before,
.services-list article::before,
.steps article::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  opacity: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(72, 185, 223, 0.75), rgba(213, 168, 77, 0.28), rgba(42, 93, 145, 0.08));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  transition: opacity 0.32s ease;
}

.about-grid article::after,
.services-list article::after,
.steps article::after {
  content: "";
  position: absolute;
  left: var(--mx);
  top: var(--my);
  width: 180px;
  height: 180px;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(72, 185, 223, 0.18) 42%, transparent 70%);
  filter: blur(8px);
  transform: translate(-50%, -50%) scale(0.72);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.about-grid article:hover,
.services-list article:hover,
.steps article:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(42, 93, 145, 0.22);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 58px rgba(42, 93, 145, 0.16);
}

.about-grid article:hover::before,
.services-list article:hover::before,
.steps article:hover::before {
  opacity: 1;
}

.about-grid article:hover::after,
.services-list article:hover::after,
.steps article:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.about-grid article > *,
.services-list article > *,
.steps article > * {
  position: relative;
  z-index: 1;
}

.about,
.services,
.process {
  position: relative;
}

.about::before,
.services::before,
.process::before {
  content: "";
  position: absolute;
  inset: 52px -28px;
  z-index: -1;
  border-radius: 24px;
  pointer-events: none;
}

.about::before {
  background: linear-gradient(135deg, rgba(215, 229, 239, 0.74), rgba(181, 215, 231, 0.54));
}

.services::before {
  background: linear-gradient(135deg, rgba(188, 220, 236, 0.78), rgba(215, 229, 239, 0.6));
}

.process::before {
  background: linear-gradient(135deg, rgba(235, 219, 180, 0.68), rgba(188, 219, 234, 0.58));
}

.about-grid article {
  padding: 26px;
}

.about-grid svg {
  width: 28px;
  height: 28px;
  color: var(--blue);
}

.about-grid h3,
.services-list h3,
.steps h3 {
  margin-top: 16px;
  font-size: 1.12rem;
}

.about-grid p,
.services-list p,
.steps p,
.cta-box p,
.footer p,
.footer a {
  color: var(--muted);
}

.about-grid p,
.services-list p,
.steps p {
  margin-top: 8px;
  font-size: 0.96rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 30px;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.services-list article {
  display: flex;
  gap: 18px;
  padding: 24px;
}

.services-list svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  color: var(--blue);
  transition: transform 0.28s ease, color 0.28s ease;
}

.services-list article:hover svg,
.about-grid article:hover svg {
  color: var(--cyan);
  transform: translateY(-3px) scale(1.08);
}

.process {
  padding-top: 48px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.steps article {
  padding: 26px;
}

.steps strong {
  color: var(--gold);
  font-size: 1.05rem;
}

.cta-section {
  width: min(1040px, calc(100% - 36px));
  margin: 0 auto;
  padding: 52px 0 68px;
}

.cta-box {
  padding: clamp(32px, 6vw, 68px);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(234, 243, 248, 0.95), rgba(255, 255, 255, 0.94)),
    #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}

.cta-box img {
  width: min(300px, 82%);
  margin: 0 auto 24px;
}

.cta-box h2 {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.cta-box p {
  max-width: 620px;
  margin: 18px auto 28px;
}

.footer {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer img {
  width: 144px;
}

.footer div {
  text-align: right;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .hero-content,
  .about-grid,
  .services-list,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 118px;
  }

  .hero-showcase {
    max-width: 560px;
    transform: none;
  }

  .section-heading {
    display: block;
  }
}

@media (max-width: 780px) {
  .brand {
    width: 126px;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 24;
  }

  .menu-open .menu-toggle span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-open .menu-toggle span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    inset: 0;
    z-index: 22;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    padding: 90px 24px 32px;
    background: rgba(244, 248, 251, 0.96);
    backdrop-filter: blur(22px);
    transform: translateY(-100%);
    transition: transform 0.25s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-menu a {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding-bottom: 34px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(1.55rem, 6.2vw, 1.85rem);
    overflow-wrap: break-word;
  }

  .hero-copy,
  .hero p,
  .hero-actions {
    width: 320px;
    max-width: calc(100vw - 48px);
    min-width: 0;
  }

  .hero-showcase {
    width: 300px;
    max-width: calc(100vw - 56px);
    justify-self: start;
    min-height: 310px;
    padding: 18px;
  }

  .planet-animation {
    width: 348px;
    height: 348px;
    opacity: 1;
  }

  .showcase-panel {
    width: 100%;
    height: 360px;
    transform: none;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
    min-width: 0;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }

  .footer div {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section,
  .cta-section,
  .footer {
    width: min(100% - 28px, 1120px);
  }

  .section {
    padding-block: 44px;
  }

  .cta-section {
    padding-block: 42px 54px;
  }

  .tag {
    font-size: 0.68rem;
    line-height: 1.3;
    min-height: 38px;
    padding-inline: 10px;
  }

  .services-list article {
    display: block;
  }
}

@keyframes orbitSpin {
  to {
    rotate: 360deg;
  }
}

@keyframes planetFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-5px) rotate(5deg);
  }
}

@keyframes planetFreeFloat {
  0%, 100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-12px) rotate(2deg);
  }
}

@keyframes planetPulse {
  0%, 100% {
    opacity: 0.55;
    transform: scale(0.96);
  }

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

@keyframes dotBlink {
  0%, 100% {
    opacity: 0.42;
    transform: scale(0.85);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

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