/* Design System Tokens */
:root {
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --bg-dark: #09080f;
  --bg-card: rgba(20, 18, 33, 0.45);
  --border-light: rgba(255, 255, 255, 0.08);
  
  --primary-gradient: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
  --secondary-gradient: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Dynamic Ambient Glows */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -3;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  z-index: -2;
  pointer-events: none;
}

.bg-glow-1 {
  width: 300px;
  height: 300px;
  background: #a855f7;
  top: 10%;
  left: -50px;
  animation: float-glow 15s ease-in-out infinite alternate;
}

.bg-glow-2 {
  width: 400px;
  height: 400px;
  background: #06b6d4;
  bottom: 10%;
  right: -100px;
  animation: float-glow 20s ease-in-out infinite alternate-reverse;
}

@keyframes float-glow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 30px) scale(1.2); }
}

/* Glassmorphism Styles */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-premium);
}

/* Navigation */
.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(9, 8, 15, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.logo-accent {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: none; /* Mobile first hidden */
}

/* Controls */
.controls {
  display: flex;
  align-items: center;
}

/* Buttons */
.btn-primary, .btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(168, 85, 247, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

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

/* Hero Section */
.hero-section {
  padding: 8rem 1.5rem 4rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-badge {
  background: var(--secondary-gradient);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #c084fc;
  margin-bottom: 2rem;
  font-family: var(--font-display);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 3rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

/* Features Section */
.features-section {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.3);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

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

/* What's New Section */
.whats-new-section {
  padding: 4rem 1.5rem 8rem;
  max-width: 800px;
  margin: 0 auto;
}

.whats-new-card {
  padding: 2.5rem 2rem;
}

.changelog-list {
  list-style: none;
  margin-top: 2rem;
}

.changelog-list li {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 2rem;
}

.changelog-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  width: fit-content;
  text-transform: uppercase;
  font-family: var(--font-display);
}

.badge-success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-update {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.changelog-content h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.changelog-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Footer */
.glass-footer {
  border-top: 1px solid var(--border-light);
  background: rgba(9, 8, 15, 0.8);
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-container p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Installation Section */
.installation-section {
  padding: 4rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.installation-card {
  padding: 2.5rem 2rem;
  text-align: center;
}

.prompt-container {
  margin-top: 2rem;
  background: rgba(15, 12, 30, 0.6);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  text-align: left;
  max-width: 100%;
}

.prompt-header {
  background: rgba(20, 18, 33, 0.8);
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
}

.prompt-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-copy {
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.btn-copy:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(168, 85, 247, 0.5);
}

.prompt-body {
  padding: 1.5rem;
}

.prompt-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Use Cases Section */
.use-cases-section {
  padding: 4rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.use-cases-card {
  padding: 2.5rem 2rem;
}

.use-case-container {
  margin-top: 2rem;
}

.use-case-info {
  margin-bottom: 2rem;
  text-align: center;
}

.use-case-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.use-case-desc {
  color: var(--text-secondary);
  font-size: 1rem;
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.flow-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.25rem;
  transition: var(--transition-smooth);
}

.flow-step:hover {
  transform: translateX(4px);
  border-color: rgba(168, 85, 247, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.step-num {
  background: var(--primary-gradient);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(168, 85, 247, 0.3);
}

.step-content h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.step-content code {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #c084fc;
}

/* Lang Toggle styles */
body.lang-en [lang="id"] { display: none !important; }
body.lang-id [lang="en"] { display: none !important; }

/* Responsive adjustments (Desktop view) */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
    gap: 2rem;
  }
  
  .nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
  }
  
  .nav-links a:hover {
    color: var(--text-primary);
  }

  .hero-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-actions {
    flex-direction: row;
    width: auto;
    gap: 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .changelog-list li {
    flex-direction: row;
    align-items: flex-start;
  }

  .badge {
    margin-top: 0.2rem;
  }
}
