:root {
  --background: #070b14;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-hover: rgba(255, 255, 255, 0.1);
  --surface-border: rgba(255, 255, 255, 0.12);
  --text: #f7f8fc;
  --muted: #a8b0c0;
  --accent: #7c6cff;
  --accent-light: #b0a7ff;
  --maximum-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 5%, #222063 0, transparent 30%),
    radial-gradient(circle at 10% 40%, #132c4e 0, transparent 30%),
    var(--background);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maximum-width);
  margin: 0 auto;
  padding: 1.3rem 1.5rem;
  background: rgba(7, 11, 20, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.navigation {
  display: flex;
  gap: 2rem;
}

.navigation a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 180ms ease;
}

.navigation a:hover {
  color: var(--text);
}

.menu-button {
  display: none;
  color: var(--text);
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
}

main,
footer {
  max-width: var(--maximum-width);
  margin: 0 auto;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}

.hero {
  min-height: 82vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 4rem;
  padding: 5rem 0;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--accent-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 1.5rem;
  font-size: clamp(3.2rem, 8vw, 6.7rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.hero-description {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2.2rem 0 3rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

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

.primary-button {
  background: var(--accent);
}

.primary-button:hover {
  background: #9185ff;
}

.secondary-button {
  background: var(--surface);
  border-color: var(--surface-border);
}

.secondary-button:hover {
  background: var(--surface-hover);
  border-color: rgba(176, 167, 255, 0.4);
}

.statistics {
  display: flex;
  gap: 3rem;
}

.statistics div {
  display: grid;
}

.statistics strong {
  font-size: 1.1rem;
}

.statistics span {
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-art {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
}

.glass-card {
  position: relative;
  z-index: 2;
  width: min(100%, 380px);
  padding: 2.5rem;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.035)
  );
  border: 1px solid var(--surface-border);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(22px);
  transform: rotate(3deg);
}

.card-label,
.card-number {
  color: var(--accent-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.glass-card h2 {
  margin: 1.5rem 0 3rem;
  font-size: 2.2rem;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
}

.glow-one {
  width: 230px;
  height: 230px;
  top: 25px;
  right: 15px;
  background: rgba(124, 108, 255, 0.4);
}

.glow-two {
  width: 180px;
  height: 180px;
  bottom: 35px;
  left: 15px;
  background: rgba(36, 177, 255, 0.3);
}

.mini-animation {
  position: relative;
  height: 110px;
}

.mini-circle {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  animation: float-circle 4s ease-in-out infinite;
}

.circle-one {
  left: 5%;
  bottom: 10px;
  background: #7c6cff;
}

.circle-two {
  left: 40%;
  bottom: 35px;
  background: #31c9ff;
  animation-delay: -1.2s;
}

.circle-three {
  right: 5%;
  bottom: 5px;
  background: #e86cff;
  animation-delay: -2.2s;
}

@keyframes float-circle {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-25px) scale(1.15);
  }
}

.section {
  padding: 7rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.section-heading {
  max-width: 720px;
}

.section-introduction {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.2rem;
}

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

.animation-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.animation-card:hover {
  transform: translateY(-7px);
  border-color: rgba(176, 167, 255, 0.5);
}

.animation-preview {
  position: relative;
  height: 210px;
  overflow: hidden;
  background:
    radial-gradient(circle at 60% 30%, #252364, transparent 40%),
    #0c1220;
}

.animation-card-content {
  padding: 1.8rem;
}

.animation-card-content h3 {
  margin-top: 1.5rem;
}

.animation-card-content p {
  min-height: 78px;
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.preview-link {
  display: block;
  cursor: pointer;
}

.animation-preview-image {
  display: block;
  width: 100%;
  height: 100%;
  padding: 1rem;
  object-fit: contain;
  transition: transform 250ms ease;
}

.preview-link:hover .animation-preview-image,
.preview-link:focus-visible .animation-preview-image {
  transform: scale(1.04);
}

.preview-link:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: -3px;
}

.animation-card:hover .animation-preview-image {
  transform: scale(1.04);
}

.wave-preview span {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 80px;
  border: 3px solid transparent;
  border-top-color: rgba(124, 108, 255, 0.8);
  border-radius: 50%;
  animation: preview-wave 3.5s ease-in-out infinite;
}

.wave-preview span:nth-child(1) {
  top: 60px;
}

.wave-preview span:nth-child(2) {
  top: 95px;
  border-top-color: rgba(49, 201, 255, 0.65);
  animation-delay: -1s;
}

.wave-preview span:nth-child(3) {
  top: 130px;
  border-top-color: rgba(232, 108, 255, 0.65);
  animation-delay: -2s;
}

@keyframes preview-wave {
  0%,
  100% {
    transform: translateX(-15px) rotate(-2deg);
  }

  50% {
    transform: translateX(15px) rotate(2deg);
  }
}

.particle-preview span {
  position: absolute;
  width: 13px;
  height: 13px;
  background: var(--accent-light);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(176, 167, 255, 0.9);
  animation: preview-particle 5s linear infinite;
}

.particle-preview span:nth-child(1) {
  left: 15%;
  top: 30%;
}

.particle-preview span:nth-child(2) {
  left: 70%;
  top: 20%;
  animation-delay: -1s;
}

.particle-preview span:nth-child(3) {
  left: 40%;
  top: 70%;
  animation-delay: -2s;
}

.particle-preview span:nth-child(4) {
  left: 80%;
  top: 75%;
  animation-delay: -3s;
}

.particle-preview span:nth-child(5) {
  left: 20%;
  top: 80%;
  animation-delay: -4s;
}

@keyframes preview-particle {
  0% {
    transform: translate(-20px, 20px) scale(0.8);
  }

  50% {
    transform: translate(30px, -30px) scale(1.3);
  }

  100% {
    transform: translate(-20px, 20px) scale(0.8);
  }
}

.orbit-preview {
  display: grid;
  place-items: center;
}

.orbit-center {
  position: absolute;
  width: 50px;
  height: 50px;
  background: #31c9ff;
  border-radius: 50%;
  box-shadow: 0 0 35px rgba(49, 201, 255, 0.7);
}

.orbit-ring {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.orbit-object {
  position: absolute;
  width: 150px;
  height: 150px;
  animation: preview-orbit 4s linear infinite;
}

.orbit-object::after {
  position: absolute;
  top: -8px;
  left: 67px;
  width: 17px;
  height: 17px;
  content: "";
  background: #e86cff;
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(232, 108, 255, 0.8);
}

@keyframes preview-orbit {
  to {
    transform: rotate(360deg);
  }
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

footer {
  padding-top: 2rem;
  padding-bottom: 2rem;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

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

  .animation-card {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
  }

  .animation-preview {
    height: 100%;
    min-height: 280px;
  }
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 4rem;
  }

  .hero-art {
    min-height: 390px;
  }

  .menu-button {
    display: block;
  }

  .navigation {
    position: absolute;
    top: 72px;
    right: 1.5rem;
    display: none;
    width: 200px;
    padding: 1rem;
    background: #111725;
    border: 1px solid var(--surface-border);
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  }

  .navigation.open {
    display: grid;
  }

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

  .statistics {
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }

  .statistics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .animation-card {
    display: block;
  }

  .animation-preview {
    min-height: 210px;
  }

  .animation-card-content p {
    min-height: auto;
  }
}