/* Design System & Variables */
:root {
  /* Colors */
  --bg-dark: #0a0a0f;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.1);
  --primary: #00f2ea;
  --primary-glow: rgba(0, 242, 234, 0.5);
  --secondary: #7000ff;
  --secondary-glow: rgba(112, 0, 255, 0.5);
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --border: rgba(255, 255, 255, 0.1);

  /* Gradients */
  --gradient-main: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-text: linear-gradient(to right, #fff, #a0a0a0);

  /* Spacing */
  --container-padding: 2rem;
  --section-spacing: 8rem;

  /* Effects */
  --glass: blur(20px);
  --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

html {
  scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Typography */
.display-text {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2rem;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.flex {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.flex-center {
  justify-content: center;
}

.section {
  padding: var(--section-spacing) 0;
  position: relative;
}

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--primary-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  color: white;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.card {
  background: var(--bg-card);
  backdrop-filter: var(--glass);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 40px -10px rgba(0, 242, 234, 0.2);
}

/* Navbar */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.5rem;
  font-family: 'Outfit', sans-serif;
}

.logo img {
  height: 40px;
  border-radius: 8px;
}

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

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

.nav-link:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: radial-gradient(circle at 50% 0%, rgba(112, 0, 255, 0.2), transparent 50%);
}

.hero-content {
  max-width: 600px;
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, var(--primary-glow), transparent 70%);
  z-index: -1;
  opacity: 0.5;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(0, 242, 234, 0.1);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 242, 234, 0.2);
}

/* Features Section */
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* How It Works */
.step-card {
  position: relative;
  overflow: hidden;
}

.step-number {
  font-size: 4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  top: 0;
  right: 1rem;
  line-height: 1;
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

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

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

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .display-text {
    font-size: 2.5rem;
  }

  .nav-links {
    display: none;
  }

  .logo span {
    display: none;
    /* Hide brand name on small screens if needed, or keep it and hide button text */
  }

  /* Better approach: Keep brand name, hide button text or make button smaller */
  .logo span {
    display: block;
    font-size: 1.2rem;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .nav-actions .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .hero {
    text-align: center;
    padding-top: 120px;
  }

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

  .hero-content {
    margin: 0 auto 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .logo span {
    display: none;
    /* Hide text on very small screens to prevent overlap */
  }

  .nav-actions .btn-primary {
    display: none;
    /* Hide the CTA button in nav on very small screens as it's in Hero */
  }
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}