:root {
  /* Color Palette */
  --clr-primary: #3b82f6;
  --clr-primary-glow: rgba(59, 130, 246, 0.5);
  --clr-background: #0a0a0c;
  --clr-surface: #121216;
  --clr-surface-light: #1c1c22;
  --clr-text-main: #f8fafc;
  --clr-text-muted: #94a3b8;
  --clr-accent: #8b5cf6;
  --clr-gradient: linear-gradient(
    135deg,
    var(--clr-primary),
    var(--clr-accent)
  );

  /* Layout */
  --container-width: 1200px;
  --nav-height: 80px;
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--clr-background);
  color: var(--clr-text-main);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 100px 0;
}

/* Typography Helpers */
span.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 99px;
  color: var(--clr-primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

h1 span,
h2 span {
  background: var(--clr-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

p {
  color: var(--clr-text-muted);
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  gap: 0.5rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-primary {
  background: var(--clr-primary);
  color: white;
  box-shadow: 0 10px 30px -10px var(--clr-primary-glow);
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Navigation */
.navbar {
  height: var(--nav-height);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 12, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  stroke: var(--clr-primary);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--clr-text-muted);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--clr-text-main);
}

.nav-cta {
  display: flex;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding-top: calc(var(--nav-height) + 100px);
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(
    circle,
    var(--clr-primary-glow) 0%,
    transparent 70%
  );
  z-index: -1;
  filter: blur(80px);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
}

.hero-text p {
  margin-bottom: 2.5rem;
  max-width: 600px;
  font-size: 1.25rem;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

/* Hero Visuals */
.viz-container {
  position: relative;
  width: 100%;
  height: 400px;
}

.glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--clr-primary);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  animation: pulse 8s infinite alternate;
}

.grid-backdrop {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(1000px) rotateX(60deg);
  mask-image: linear-gradient(to bottom, black, transparent);
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 160px;
  transition: var(--transition-base);
}

.floating-card i {
  width: 40px;
  height: 40px;
  color: var(--clr-primary);
}

.floating-card span {
  font-size: 0.875rem;
  font-weight: 600;
}

.c1 {
  top: 0;
  left: 20%;
  animation: float 6s ease-in-out infinite;
}
.c2 {
  bottom: 10%;
  right: 10%;
  animation: float 6s ease-in-out infinite 2s;
}
.c3 {
  top: 40%;
  right: 40%;
  animation: float 6s ease-in-out infinite 4s;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 4rem;
}

.stat-item h3 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: var(--clr-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Features */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--clr-surface);
  padding: 2.5rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.icon-box {
  width: 60px;
  height: 60px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.icon-box i {
  color: var(--clr-primary);
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* CTA Section */
.cta-box {
  background: var(--clr-gradient);
  padding: 6rem 4rem;
  border-radius: 32px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-box h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  -webkit-text-fill-color: white;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}

.cta-box .btn-primary {
  background: white;
  color: var(--clr-primary);
}

/* Footer */
.footer {
  padding-top: 100px;
  padding-bottom: 50px;
  background: #050505;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin-top: 1.5rem;
  max-width: 300px;
}

.footer-links h4 {
  margin-bottom: 1.5rem;
}

.footer-links ul li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--clr-text-muted);
}

.footer-links a:hover {
  color: var(--clr-primary);
}

.socials {
  display: flex;
  gap: 1rem;
}

.socials a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.socials a:hover {
  background: var(--clr-primary);
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  text-align: center;
  color: var(--clr-text-muted);
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.15;
  }
  100% {
    transform: scale(1.2);
    opacity: 0.25;
  }
}

.animate-up {
  animation: slideUp 0.8s ease-out forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text p {
    margin: 0 auto 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .features-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 4rem 2rem;
  }

  .cta-box h2 {
    font-size: 2.5rem;
  }
}
