@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Dark Theme Colors (Default) */
  --bg-color: #0b0f19;
  --bg-gradient: radial-gradient(circle at 50% 0%, #151e33 0%, #0b0f19 100%);
  --panel-bg: rgba(22, 28, 45, 0.5);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --primary: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.4);
  --secondary: #10b981;
  --secondary-glow: rgba(16, 185, 129, 0.3);
  --accent: #6366f1;
  --card-hover-border: rgba(59, 130, 246, 0.3);
  --terminal-bg: rgba(10, 15, 29, 0.85);
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  /* Light Theme Colors */
  --bg-color: #f8fafc;
  --bg-gradient: radial-gradient(circle at 50% 0%, #e2e8f0 0%, #f8fafc 100%);
  --panel-bg: rgba(255, 255, 255, 0.85);
  --panel-border: rgba(0, 0, 0, 0.08);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --primary: #2563eb;
  --primary-glow: rgba(37, 99, 235, 0.2);
  --secondary: #059669;
  --secondary-glow: rgba(5, 150, 105, 0.2);
  --accent: #4f46e5;
  --card-hover-border: rgba(37, 99, 235, 0.3);
  --terminal-bg: #f1f5f9;
  --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

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

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

/* Mobile-First Base Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header & Navbar */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--panel-border);
  transition: var(--transition);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  text-decoration: none;
}

.logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  flex-shrink: 0;
  object-fit: contain;
}

.controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon {
  background: var(--panel-border);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-icon:hover {
  background: var(--primary-glow);
  border-color: var(--primary);
}

/* Hero Section */
.hero {
  padding: 50px 0 40px;
  text-align: center;
  position: relative;
}

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.8px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 30px;
  font-weight: 400;
}

/* Hero Download Buttons: 4 in one row */
.hero-downloads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 35px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-hero-zip {
  background: #059669;
  color: #ffffff;
  border: 1px solid #059669;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.btn-hero-zip:hover {
  background: #10b981;
  transform: translateY(-2px);
}

.btn-hero-script {
  background: var(--panel-bg);
  color: var(--text-primary);
  border: 1px solid var(--panel-border);
}

.btn-hero-script:hover {
  background: var(--panel-border);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}

.btn-hero-github {
  background: var(--text-primary);
  color: var(--bg-color);
  border: 1px solid var(--text-primary);
}

.btn-hero-github:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Section Containers for Methods */
.methods-container {
  max-width: 800px;
  margin: 0 auto 50px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.method-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.method-card-emerald {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, var(--panel-bg) 60%);
}

.method-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.method-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.badge-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

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

.method-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
  text-align: left;
}

/* Prompt Box Styling */
.prompt-box-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.prompt-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.prompt-lang-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.prompt-item {
  background: var(--terminal-bg);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: var(--transition);
}

.prompt-item:hover {
  border-color: var(--secondary);
}

.prompt-text {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.5;
  word-break: break-word;
  user-select: all;
  flex: 1;
}

.btn-copy {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-copy:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
  background: var(--panel-border);
}

.prompt-footer-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--panel-border);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.prompt-footer-note code {
  font-family: monospace;
  background: var(--terminal-bg);
  border: 1px solid var(--panel-border);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--primary);
  font-size: 0.78rem;
}

/* Method 2 Action Row */
.method-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.method-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.method-btn-zip {
  background: #059669;
  color: #ffffff;
  border: 1px solid #059669;
}

.method-btn-zip:hover {
  background: #10b981;
}

.method-btn-script {
  background: var(--terminal-bg);
  color: var(--text-primary);
  border: 1px solid var(--panel-border);
}

.method-btn-script:hover {
  border-color: var(--text-secondary);
}

/* Method 3 Desktop Client Grid */
.desktop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.desktop-card {
  background: var(--terminal-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

.desktop-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.desktop-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 8px;
}

.desktop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff;
  transition: var(--transition);
}

.desktop-btn-purple {
  background: #7c3aed;
}

.desktop-btn-purple:hover {
  background: #6d28d9;
}

.desktop-btn-blue {
  background: #2563eb;
}

.desktop-btn-blue:hover {
  background: #1d4ed8;
}

.desktop-btn-pink {
  background: #db2777;
}

.desktop-btn-pink:hover {
  background: #be185d;
}

/* Agents Grid Section */
.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: var(--primary);
  margin: 12px auto 0;
  border-radius: 2px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 80px;
}

.card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--card-hover-border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-glow);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

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

/* Whats New Section */
.whats-new {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 80px;
  box-shadow: var(--shadow);
}

.whats-new h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 25px;
}

.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.changelog-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.changelog-badge {
  background: var(--secondary-glow);
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

/* Footer */
footer {
  background: var(--panel-bg);
  border-top: 1px solid var(--panel-border);
  padding: 40px 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

footer a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
}

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

/* Responsive Breakpoints */
@media (min-width: 640px) {
  .desktop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.2rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
  
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid .card:last-child:nth-child(3n + 1) {
    grid-column: 2;
  }
}
