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

/* CSS Custom Properties */
:root {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --secondary-color: #10b981;
  --accent-color: #f59e0b;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --background: #ffffff;
  --background-secondary: #f9fafb;
  --background-dark: #111827;
  --surface: #ffffff;
  --border: #e5e7eb;
  --border-hover: #d1d5db;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-secondary: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Base Styles */
body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--background);
}

/* Main Container */
.main-container {
  margin-top: 0;
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  text-align: center;
}

/* Main Grid Layout */
.main-grid {
  padding: 2rem 0;
  background: var(--background);
}

.grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.left-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.right-column {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: sticky;
  top: 100px;
  align-self: start;
}

/* Hero Section Overrides */
.hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--text-primary);
}

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

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.primary-button {
  background: var(--primary-color);
  color: white;
}

.primary-button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.secondary-button {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.secondary-button:hover {
  background: var(--background-secondary);
  border-color: var(--primary-color);
}

/* Selling Points Section */
.selling-points {
  background: var(--surface);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--border);
}

.selling-points h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  text-align: center;
}

.selling-point {
  margin-bottom: 1.5rem;
}

.selling-point:last-child {
  margin-bottom: 0;
}

.selling-point-content {
  padding: 1.5rem;
  border-radius: 0.75rem;
  text-align: center;
}

.selling-point:nth-child(2) .selling-point-content {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.selling-point:nth-child(3) .selling-point-content {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.selling-point h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
  text-align: center;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
}

/* Terminal Demo */
.terminal-demo {
  max-width: 800px;
  margin: 0 auto;
  background: var(--background-dark);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.terminal-header {
  background: #374151;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-dots {
  display: flex;
  gap: 0.5rem;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red {
  background: #ef4444;
}
.terminal-dot.yellow {
  background: #f59e0b;
}
.terminal-dot.green {
  background: #10b981;
}

.terminal-title {
  color: #d1d5db;
  font-size: 0.9rem;
  margin-left: 1rem;
}

.terminal-content {
  padding: 1.5rem;
  font-family: "Menlo", "Monaco", "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #d1d5db;
  min-height: 300px;
}

.terminal-line {
  display: block;
  margin-bottom: 0.5rem;
}

.terminal-prompt {
  color: var(--secondary-color);
}

.terminal-command {
  color: #fbbf24;
}

.terminal-output {
  color: #d1d5db;
  margin-left: 1rem;
}

.terminal-cursor {
  display: inline-block;
  width: 10px;
  height: 20px;
  background: #10b981;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* Core Commands Section */
.core-commands {
  background: var(--surface);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--border);
}

.core-commands h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  text-align: center;
}

.section-description {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

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

.command-item {
  background: var(--background-secondary);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.command-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.command-header {
  margin-bottom: 1rem;
}

.command-name {
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.25rem;
}

.command-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.command-example {
  margin-bottom: 1rem;
}

.command-example code {
  display: block;
  padding: 0.75rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: var(--text-primary);
  word-break: break-all;
  line-height: 1.4;
}

.command-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.feature-tag {
  background: var(--background);
  color: var(--text-primary);
  padding: 0.2rem 0.6rem;
  border-radius: 0.75rem;
  font-size: 0.7rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

/* Key Features Section */
.key-features {
  padding: 6rem 0;
  background: var(--background);
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

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

.feature-card {
  padding: 2rem;
  background: var(--surface);
  border-radius: 1rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  background: var(--gradient-primary);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Quick Start Section */
.quick-start {
  background: var(--surface);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--border);
}

.quick-start h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  text-align: center;
}

.steps {
  margin-bottom: 2rem;
}

.step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.step:last-child {
  margin-bottom: 0;
}

.step-number {
  width: 2rem;
  height: 2rem;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.step .code-block {
  background: var(--background-dark);
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: #d1d5db;
  overflow-x: auto;
}

.next-time {
  background: var(--background-secondary);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}

.next-time h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.next-time p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Installation Section */
.installation {
  padding: 4rem 0;
  background: var(--background-secondary);
}

.install-section {
  margin-bottom: 3rem;
}

.install-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.install-option h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* Quick Start Steps in Installation */
.quick-start-steps {
  background: var(--surface);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--border);
  margin-bottom: 3rem;
}

.quick-start-steps h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  text-align: center;
}

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

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

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

/* Remove old hero-demo styles */

.terminal {
  background: #1a1b26;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 100%;
}

.terminal-header {
  background: #24273a;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.terminal-buttons {
  display: flex;
  gap: 0.5rem;
}

.terminal-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-button.close {
  background: #ff5f56;
}
.terminal-button.minimize {
  background: #ffbd2e;
}
.terminal-button.maximize {
  background: #27ca3f;
}

.terminal-title {
  color: #a5adcb;
  font-weight: 500;
  font-size: 0.9rem;
}

.terminal-content {
  padding: 1.5rem;
  background: #1a1b26;
  color: #a5adcb;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  height: 400px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.command-line {
  margin-bottom: 0.5rem;
}

.prompt {
  color: #7aa2f7;
  font-weight: 500;
}

.command {
  color: #9ece6a;
}

.output {
  margin-bottom: 1rem;
}

.output-line {
  color: #a5adcb;
  margin-bottom: 0.25rem;
}

.install-tabs {
  background: var(--surface);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tab-buttons {
  display: flex;
  background: var(--background-secondary);
  border-bottom: 1px solid var(--border);
}

.tab-button {
  flex: 1;
  padding: 1rem 2rem;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.tab-button.active {
  color: var(--primary-color);
  background: var(--surface);
  border-bottom: 2px solid var(--primary-color);
}

.tab-content {
  display: none;
  padding: 2rem;
}

.tab-content.active {
  display: block;
}

.code-block {
  background: var(--background-dark);
  border-radius: 0.5rem;
  padding: 1.5rem;
  font-family: "Menlo", "Monaco", "Courier New", monospace;
  font-size: 0.9rem;
  color: #d1d5db;
  overflow-x: auto;
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #d1d5db;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Upgrade Section */
.upgrade-section {
  max-width: 800px;
  margin: 4rem auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.upgrade-section h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.upgrade-section > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.upgrade-tabs {
  margin-bottom: 2rem;
}

.upgrade-tab-buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  background: var(--background-secondary);
  padding: 0.5rem;
  border-radius: 0.75rem;
}

.upgrade-tab-button {
  flex: 1;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.upgrade-tab-button.active {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.upgrade-tab-button:not(.active):hover {
  background: var(--background);
  color: var(--text-primary);
}

.upgrade-tab-panel {
  display: none;
}

.upgrade-tab-panel.active {
  display: block;
}

.upgrade-option h5 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.upgrade-option p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.upgrade-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.upgrade-benefits {
  background: var(--background-secondary);
  padding: 1.5rem;
  border-radius: 0.75rem;
  margin-top: 2rem;
}

.upgrade-benefits h5 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.upgrade-benefits ul {
  list-style: none;
  padding: 0;
}

.upgrade-benefits li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  padding-left: 0;
}

.upgrade-benefits code {
  background: var(--background);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.875rem;
  color: var(--primary-color);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero {
    padding: 2rem 0;
  }

  .main-grid {
    padding: 2rem 0;
  }

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

  .right-column {
    position: static;
  }

  .commands-grid {
    grid-template-columns: 1fr;
  }

  .selling-points,
  .core-commands,
  .quick-start,
  .quick-start-steps {
    padding: 1.5rem;
  }

  .install-options {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .terminal-content {
    height: 300px;
    font-size: 0.8rem;
    padding: 1rem;
  }
}

/* Scroll Animations */
@media (prefers-reduced-motion: no-preference) {
  .command-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
  }

  .command-item:nth-child(1) {
    animation-delay: 0.1s;
  }
  .command-item:nth-child(2) {
    animation-delay: 0.2s;
  }
  .command-item:nth-child(3) {
    animation-delay: 0.3s;
  }
  .command-item:nth-child(4) {
    animation-delay: 0.4s;
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
