/* General Styles & Custom Properties */
:root {
  --bg-color: #0f172a;
  --bg-alt: #1e293b;
  --text-color: #f8fafc;
  --text-muted: #94a3b8;
  --primary-color: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.4);
  --secondary-color: #a855f7;
  --accent-color: #22c55e;
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(30, 41, 59, 0.6);
  --max-width: 1100px;
  --transition-speed: 0.3s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

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

.section {
  padding: 6rem 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 1rem 0;
}

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

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-accent {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

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

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

.nav-btn-github {
  background: var(--bg-alt);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  color: var(--text-color) !important;
}

.nav-btn-github:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-speed);
}

.lang-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-color);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: 10rem;
  padding-bottom: 6rem;
  background: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.15), transparent 40%),
              radial-gradient(circle at 10% 80%, rgba(168, 85, 247, 0.1), transparent 50%);
}

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

.badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--primary-color);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
  background: var(--bg-alt);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

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

.hero-image-wrapper {
  perspective: 1000px;
}

.hero-image {
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transform: rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s;
}

.hero-image-wrapper:hover .hero-image {
  transform: rotateY(0) rotateX(0);
}

/* Features Section */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

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

.section-header p {
  color: var(--text-muted);
  font-size: 1.15rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 6rem;
}

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  transition: all var(--transition-speed);
}

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

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

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

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Feature Detail */
.feature-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 4rem;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.4));
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.detail-image {
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.detail-content h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.detail-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.feature-detail.reversed {
  grid-template-columns: 1fr 1fr;
}

.feature-detail.reversed .detail-image-wrapper {
  grid-column: 1;
  grid-row: 1;
}

.feature-detail.reversed .detail-content {
  grid-column: 2;
  grid-row: 1;
}

@media (max-width: 768px) {
  .feature-detail.reversed {
    grid-template-columns: 1fr;
  }
  .feature-detail.reversed .detail-image-wrapper {
    grid-column: auto;
    grid-row: auto;
  }
  .feature-detail.reversed .detail-content {
    grid-column: auto;
    grid-row: auto;
  }
}

/* Roadmap Section */
.roadmap-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 30px;
  height: 100%;
  width: 2px;
  background: var(--border-color);
}

.roadmap-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 3.5rem;
}

.roadmap-badge {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 1.1rem;
  z-index: 2;
  transition: all var(--transition-speed);
}

.roadmap-item.completed .roadmap-badge {
  border-color: var(--primary-color);
  color: var(--primary-color);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.roadmap-content {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
}

.roadmap-item.completed .roadmap-content {
  border-left: 4px solid var(--primary-color);
}

.roadmap-content h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.roadmap-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.status-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
}

.roadmap-item.completed .status-tag {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
}

/* Install Section */
.install-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.step {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 3rem 2rem 2rem 2rem;
}

.step-num {
  position: absolute;
  top: -20px;
  left: 2rem;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px var(--primary-glow);
}

.step h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

pre {
  background: var(--bg-color);
  padding: 0.8rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  overflow-x: auto;
}

code {
  font-family: Consolas, Monaco, 'Andale Mono', monospace;
  font-size: 0.85rem;
  color: #a855f7;
}

/* Footer */
.footer {
  background: #090d16;
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
}

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

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .feature-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
  }
}
