:root {
  color-scheme: dark;
  --bg: #0a0e1a;
  --bg-secondary: #111827;
  --text: #ffffff;
  --muted: #94a3b8;
  --accent: #6366f1;
  --accent-2: #06b6d4;
  --accent-3: #8b5cf6;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-strong: 0 40px 100px rgba(0, 0, 0, 0.7);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family:
    "Space Grotesk",
    system-ui,
    -apple-system,
    sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  perspective: 1000px;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(99, 102, 241, 0.15),
      transparent 50%
    ),
    radial-gradient(
      circle at 85% 20%,
      rgba(139, 92, 246, 0.12),
      transparent 50%
    ),
    radial-gradient(circle at 50% 80%, rgba(6, 182, 212, 0.1), transparent 50%),
    linear-gradient(180deg, #0a0e1a 0%, #111827 100%);
  animation: bg-shift 25s ease-in-out infinite alternate;
}

@keyframes bg-shift {
  0% {
    background-position:
      0% 0%,
      100% 0%,
      50% 100%;
    filter: hue-rotate(0deg) brightness(1);
  }
  100% {
    background-position:
      100% 100%,
      0% 100%,
      50% 0%;
    filter: hue-rotate(10deg) brightness(1.05);
  }
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 72%);
  opacity: 0.3;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float-3d 15s ease-in-out infinite;
  opacity: 0.6;
  will-change: transform;
}

.orb-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.6), transparent 70%);
  top: 10%;
  left: 8%;
  animation-delay: 0s;
}

.orb-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.5), transparent 70%);
  bottom: 5%;
  right: 10%;
  animation-delay: -5s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.5), transparent 70%);
  top: 50%;
  left: 50%;
  animation-delay: -10s;
}

.shell {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 100px;
  display: flex;
  flex-direction: column;
  gap: 100px;
  animation: shell-in 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes shell-in {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 10px 28px 10px 10px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.06)
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 1px 2px rgba(255, 255, 255, 0.1) inset;
  backdrop-filter: blur(24px) saturate(180%);
  animation: slide-down 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.brand::before {
  content: "";
  position: absolute;
  inset: -100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  animation: shimmer-brand 4s infinite;
}

@keyframes shimmer-brand {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.brand:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.08)
  );
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(99, 102, 241, 0.3),
    0 1px 2px rgba(255, 255, 255, 0.15) inset;
  transform: translateY(-2px);
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, #f3f4f6);
  padding: 7px;
  border: 2px solid rgba(99, 102, 241, 0.3);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(99, 102, 241, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.logo:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 0 50px rgba(99, 102, 241, 0.5),
    inset 0 1px 3px rgba(255, 255, 255, 0.9);
  border-color: rgba(99, 102, 241, 0.6);
}

.wordmark {
  color: var(--text);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #ffffff, #e0e7ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 800px;
}

.badge {
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.15);
  color: #c8beff;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid rgba(124, 92, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: badge-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.badge-large {
  align-self: flex-start;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(124, 92, 255, 0.2),
    rgba(93, 242, 214, 0.15)
  );
  backdrop-filter: blur(20px);
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  border: 2px solid rgba(124, 92, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: badge-in-large 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
  box-shadow:
    0 0 30px rgba(124, 92, 255, 0.4),
    0 0 60px rgba(93, 242, 214, 0.2);
  position: relative;
  overflow: hidden;
}

.badge-large::before {
  content: "";
  position: absolute;
  inset: -100%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: shimmer-badge 3s infinite;
}

.badge-text {
  position: relative;
  z-index: 1;
}

@keyframes badge-in-large {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shimmer-badge {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: pulse-dot 2s ease-in-out infinite;
}

.dot-large {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: pulse-dot-large 2s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(93, 242, 214, 0.6);
  position: relative;
  z-index: 1;
}

@keyframes pulse-dot-large {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(93, 242, 214, 0.9),
      0 0 20px rgba(93, 242, 214, 0.6);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 0 12px rgba(93, 242, 214, 0),
      0 0 30px rgba(93, 242, 214, 0.8);
    transform: scale(1.1);
  }
}

@keyframes badge-in {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(93, 242, 214, 0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(93, 242, 214, 0);
  }
}

h1 {
  font-size: clamp(48px, 6.5vw, 80px);
  line-height: 1.03;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.line {
  display: block;
  animation: text-reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.line:nth-child(1) {
  animation-delay: 0.5s;
}

.line:nth-child(2) {
  animation-delay: 0.65s;
}

@keyframes text-reveal {
  from {
    opacity: 0;
    transform: translateY(30px) rotateX(-90deg);
    transform-origin: top;
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

.gradient-text {
  background: linear-gradient(135deg, #06b6d4, #6366f1, #8b5cf6);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

p {
  color: var(--muted);
  font-size: 21px;
  line-height: 1.65;
  font-weight: 400;
}

.fade-up {
  animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
  animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1s both;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-item:hover {
  transform: translateY(-8px) scale(1.08);
}

.icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.icon-item:hover .icon {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.4);
  transform: rotateY(360deg);
}

.details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  perspective: 1000px;
}

.card {
  position: relative;
  padding: 32px 26px;
  border-radius: 24px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(124, 92, 255, 0.5),
    rgba(93, 242, 214, 0.5)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.card:hover::before {
  opacity: 1;
}

.card-glow {
  position: absolute;
  inset: -100%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.4), transparent 70%);
  opacity: 0;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.card:hover .card-glow {
  opacity: 1;
  transform: scale(1.2);
}

.card-content {
  position: relative;
  z-index: 1;
  transform: translateZ(20px);
}

.card:hover {
  transform: translateY(-12px) rotateX(5deg) scale(1.02);
  box-shadow:
    0 40px 100px rgba(10, 14, 32, 0.7),
    0 0 40px rgba(124, 92, 255, 0.3);
  border-color: rgba(124, 92, 255, 0.5);
}

.card-1 {
  animation: card-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.2s both;
}

.card-2 {
  animation: card-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.35s both;
}

.card-3 {
  animation: card-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.5s both;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(40px) rotateX(-15deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

.card-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: inline-block;
  animation: icon-float 3s ease-in-out infinite;
}

@keyframes icon-float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 600;
}

.card p {
  font-size: 15px;
  line-height: 1.5;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.6s both;
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(93, 242, 214, 0.8);
  animation: pulse-ring 2s cubic-bezier(0.46, 0.03, 0.52, 0.96) infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(93, 242, 214, 0.8);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(93, 242, 214, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(93, 242, 214, 0);
  }
}

.floating-shapes {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  opacity: 0.15;
  filter: blur(40px);
}

.shape-1 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #7c5cff, #5df2d6);
  top: 20%;
  right: 15%;
  animation:
    morph 20s ease-in-out infinite,
    float-shape 15s ease-in-out infinite;
}

.shape-2 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, #5df2d6, #ffc658);
  bottom: 30%;
  left: 10%;
  animation:
    morph 18s ease-in-out infinite reverse,
    float-shape 12s ease-in-out infinite 2s;
}

.shape-3 {
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, #ff6ec4, #7c5cff);
  top: 60%;
  right: 25%;
  animation:
    morph 22s ease-in-out infinite,
    float-shape 14s ease-in-out infinite 4s;
}

.shape-4 {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #ffc658, #ff6ec4);
  bottom: 15%;
  left: 40%;
  animation:
    morph 16s ease-in-out infinite reverse,
    float-shape 11s ease-in-out infinite 6s;
}

@keyframes morph {
  0%,
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  25% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
  }
  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
  }
  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  }
}

@keyframes float-shape {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

@keyframes float-3d {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    transform: translate3d(30px, -40px, 50px) scale(1.05);
  }
  66% {
    transform: translate3d(-25px, 30px, -30px) scale(0.95);
  }
}

@media (max-width: 640px) {
  .shell {
    padding-top: 40px;
    gap: 60px;
  }

  .brand {
    justify-content: center;
  }

  .hero {
    text-align: center;
    align-items: center;
  }

  .badge {
    align-self: center;
  }

  .feature-icons {
    justify-content: center;
  }

  .details {
    gap: 16px;
  }

  .card {
    padding: 24px 20px;
  }
}

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

  .orb,
  .shape,
  .floating-shapes {
    animation: none !important;
  }
}
