@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --font-body: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --bg-dark: #1a1f2e;
  --bg-card: #222838;
  --text-primary: #e8eaed;
  --text-secondary: #9ca3af;
  --color-primary: #4a9eff;
  --color-accent: #14b8a6;
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-medium: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

::selection {
  background-color: rgba(74, 158, 255, 0.3);
  color: var(--text-primary);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.grid-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(26, 31, 46, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  opacity: 0;
  animation: fadeInDown 0.8s ease forwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--color-primary);
}

main {
  padding-top: 8rem;
  padding-bottom: 5rem;
}

.hero-section {
  text-align: center;
  margin-bottom: 8rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: rgba(74, 158, 255, 0.1);
  border: 1px solid rgba(74, 158, 255, 0.2);
  border-radius: 9999px;
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.badge svg {
  width: 16px;
  height: 16px;
}

h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2rem;
  background: linear-gradient(to right, var(--color-primary), var(--color-accent), var(--color-primary));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 8s ease infinite, fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 48rem;
  margin: 0 auto 3rem;
  line-height: 1.8;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.6s forwards;
}

.subtitle span {
  color: var(--text-primary);
  font-weight: 600;
}

.button-group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 8rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.8s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  white-space: nowrap;
}

.btn-primary {
  background-color: #ffffff;
  color: var(--bg-dark);
}

.btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(74, 158, 255, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(74, 158, 255, 0.3);
}

.btn svg {
  width: 20px;
  height: 20px;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 8rem;
}

.card {
  position: relative;
  padding: 2rem;
  background-color: rgba(34, 40, 56, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  backdrop-filter: blur(8px);
  text-decoration: none;
  overflow: hidden;
  transition: all 0.3s;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.card:nth-child(1) {
  animation-delay: 1s;
}

.card:nth-child(2) {
  animation-delay: 1.2s;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom right, rgba(74, 158, 255, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.5s;
}

.card:hover {
  background-color: rgba(34, 40, 56, 0.7);
  border-color: rgba(74, 158, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  position: relative;
  z-index: 1;
  width: fit-content;
  padding: 0.75rem;
  background-color: rgba(74, 158, 255, 0.1);
  border-radius: 0.75rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  transition: all 0.3s;
}

.card:hover .card-icon {
  background-color: var(--color-primary);
  color: var(--bg-dark);
}

.card-icon svg {
  width: 32px;
  height: 32px;
  display: block;
}

.card-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.card-description {
  position: relative;
  z-index: 1;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.card-link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
}

.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}

.card:hover .card-link svg {
  transform: translateX(4px);
}

.feature-section {
  background-color: rgba(34, 40, 56, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
  padding: 2rem;
  backdrop-filter: blur(8px);
  margin-bottom: 8rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 1.4s forwards;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.feature-content h2 {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.feature-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInLeft 0.6s ease forwards;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.feature-list li:nth-child(1) { animation-delay: 1.6s; }
.feature-list li:nth-child(2) { animation-delay: 1.7s; }
.feature-list li:nth-child(3) { animation-delay: 1.8s; }
.feature-list li:nth-child(4) { animation-delay: 1.9s; }
.feature-list li:nth-child(5) { animation-delay: 2s; }

.feature-list svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.feature-visual {
  position: relative;
  height: 300px;
  background: linear-gradient(to bottom right, rgba(74, 158, 255, 0.2), rgba(74, 158, 255, 0.05), transparent);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  mix-blend-mode: overlay;
}

.feature-stat {
  position: relative;
  z-index: 1;
  text-align: center;
}

.feature-stat-number {
  font-family: var(--font-display);
  font-size: 3.75rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeInScale 0.8s ease 2.1s forwards;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.feature-stat-label {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  animation: fadeInUp 0.8s ease 2.3s forwards;
}

footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border-subtle);
  background-color: rgba(26, 31, 46, 0.5);
  backdrop-filter: blur(20px);
  opacity: 0;
  animation: fadeIn 0.8s ease 2.5s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-logo:hover {
  opacity: 0.8;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.footer-logo span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
}

.footer-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
}

.footer-text a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-text a:hover {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-divider {
  color: rgba(255, 255, 255, 0.1);
  display: none;
}

@media (min-width: 640px) {
  .button-group {
    flex-wrap: nowrap;
  }
}

@media (min-width: 768px) {
  h1 {
    font-size: 4.5rem;
  }

  .feature-content h2 {
    font-size: 2.25rem;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-section {
    padding: 3rem;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-text {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .footer-divider {
    display: inline;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 6rem;
  }
}