/* Alfred Website Styles */
:root {
  /* Dark Theme Colors */
  --primary: #6d8eff;
  --primary-dark: #5a75e6;
  --secondary: #aaaaaa;
  --dark: #e0e0e0;
  --light: #1e1e1e;
  --success: #4ade80;
  --info: #22d3ee;
  --warning: #facc15;
  --danger: #f87171;
  --white: #121212;
  --gray-100: #1e1e1e;
  --gray-200: #2d2d2d;
  --gray-300: #404040;
  --gray-400: #525252;
  --gray-500: #737373;
  --gray-600: #a3a3a3;
  --gray-700: #d4d4d4;
  --gray-800: #e5e5e5;
  --gray-900: #f5f5f5;
  --transition: all 0.3s ease-in-out;
  --shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
  --glow: 0 0 20px rgba(109, 142, 255, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
  overflow-x: hidden;
  background: linear-gradient(135deg, #121212 0%, #1a1a1a 50%, #121212 100%);
  min-height: 100vh;
}

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

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(45deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background: linear-gradient(45deg, var(--primary-dark), var(--primary));
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--glow), var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--secondary);
}

.btn-secondary:hover {
  background-color: var(--gray-700);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(15px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
  border-bottom: 1px solid rgba(109, 142, 255, 0.1);
}

.header-scrolled {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: var(--gray-700);
  font-weight: 500;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, #1a1a1a 0%, #252525 50%, #1a1a1a 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 70%, rgba(109, 142, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 70% 30%, rgba(109, 142, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gray-900);
}

.hero-title span {
  color: var(--primary);
  background: linear-gradient(45deg, var(--primary), #8b9cff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--gray-600);
  margin-bottom: 30px;
}

.hero-btns {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.hero-image {
  flex: 1;
  position: relative;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}

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

/* Features Section */
.features {
  padding: 80px 0;
  background-color: var(--white);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(109, 142, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 15px;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 700px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

/* Ensure proper wrapping for 5 feature cards */
@media (min-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .features-grid .feature-card:nth-child(4),
  .features-grid .feature-card:nth-child(5) {
    grid-column: span 1;
  }
  
  .features-grid .feature-card:nth-child(4) {
    margin-left: auto;
    margin-right: 15px;
  }
  
  .features-grid .feature-card:nth-child(5) {
    margin-left: 15px;
    margin-right: auto;
  }
}

.feature-card {
  background: linear-gradient(145deg, var(--gray-100), var(--gray-200));
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  border: 1px solid rgba(109, 142, 255, 0.1);
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: var(--glow), var(--shadow-lg);
  border-color: rgba(109, 142, 255, 0.3);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(145deg, transparent, rgba(109, 142, 255, 0.05));
  border-radius: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(74, 108, 247, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 1.5rem;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--gray-900);
}

.feature-desc {
  color: var(--gray-600);
}

/* Use Cases Section */
.use-cases {
  padding: 80px 0;
  background-color: var(--gray-100);
}

.use-cases-list {
  margin-top: 50px;
}

.use-case-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  background-color: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.use-case-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.use-case-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background-color: rgba(74, 108, 247, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  color: var(--primary);
  font-size: 1.2rem;
}

.use-case-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--gray-900);
}

.use-case-content p {
  color: var(--gray-600);
}

/* How It Works Section */
.how-it-works {
  padding: 80px 0;
  background-color: var(--white);
}

.steps {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 250px;
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 40px;
  right: 0;
  width: 50%;
  height: 2px;
  background-color: var(--gray-300);
}

.step:not(:first-child)::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 0;
  width: 50%;
  height: 2px;
  background-color: var(--gray-300);
}

.step-number {
  width: 80px;
  height: 80px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--gray-900);
}

.step-desc {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* Inline link styles for steps */
.inline-link {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
  transition: var(--transition);
}

.inline-link:hover {
  color: var(--primary-dark);
  text-decoration-color: var(--primary-dark);
}

/* Code element styles */
code {
  background-color: var(--gray-200);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9em;
  font-weight: 500;
  border: 1px solid var(--gray-300);
}

/* Demo Section */
.demo {
  padding: 80px 0;
  background-color: var(--gray-100);
  text-align: center;
}

.video-container {
  margin-top: 50px;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
}

/* Download Section */
.download {
  padding: 80px 0;
  background: linear-gradient(135deg, #4a6cf7 0%, #3a56d4 100%);
  color: var(--white);
  text-align: center;
}

.download .section-title h2,
.download .section-title p {
  color: var(--white);
}

.download-btn {
  display: inline-flex;
  align-items: center;
  background-color: var(--white);
  color: var(--primary);
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 40px;
  transition: var(--transition);
}

.download-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.download-btn i {
  margin-right: 10px;
  font-size: 1.5rem;
}

/* Testimonials Section */
.testimonials {
  padding: 100px 0;
  background-color: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.testimonial-card {
  background-color: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.testimonial-content {
  font-style: italic;
  color: var(--gray-700);
  margin-bottom: 20px;
  position: relative;
}

.testimonial-content::before {
  content: '"';
  font-size: 4rem;
  color: var(--gray-200);
  position: absolute;
  top: -20px;
  left: -10px;
  z-index: -1;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.author-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--gray-900);
}

.author-info p {
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* Footer */
.footer {
  background-color: var(--gray-900);
  color: var(--gray-400);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  display: inline-block;
}

.footer-desc {
  margin-bottom: 20px;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 25px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--gray-400);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Simple Animation Classes */
.animate-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .step:not(:last-child)::after,
  .step:not(:first-child)::before {
    display: none;
  }
  
  .steps {
    flex-direction: column;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .use-case-item {
    flex-direction: column;
  }
  
  .use-case-icon {
    margin-bottom: 15px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .feature-card,
  .use-case-item,
  .testimonial-card {
    padding: 20px;
  }
  
  .hero-btns {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn {
    width: 100%;
  }
}