:root {
  --bg: #0f0f0f;
  --bg-alt: #1a1a1a;
  --bg-code: #141414;
  --surface: #222222;
  --border: #333333;
  --border-light: #2a2a2a;
  --text: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --accent: #e95420;
  --accent-dim: #8b3212;
  --accent-bg: rgba(233, 84, 32, 0.1);
  --accent-hover: #ff6b3d;
  --success: #4ade80;
  --warning: #fbbf24;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

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

.btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--text-muted);
}

/* Landing */
.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  background: 
    radial-gradient(ellipse at 50% 30%, rgba(233, 84, 32, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 70%, rgba(233, 84, 32, 0.05) 0%, transparent 40%),
    radial-gradient(ellipse at 70% 70%, rgba(233, 84, 32, 0.05) 0%, transparent 40%);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(233, 84, 32, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 84, 32, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(233, 84, 32, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(233, 84, 32, 0.1) 0%, transparent 30%);
  pointer-events: none;
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 1;
  padding-top: 2rem;
}

.logo-large {
  margin-bottom: 2rem;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 10px 30px rgba(233, 84, 32, 0.3));
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  25% { transform: translateY(-8px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
  75% { transform: translateY(-8px) rotate(0deg); }
}

.hero h1 {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #ffffff 0%, #e95420 50%, #ff7b4d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(233, 84, 32, 0.3);
}

.tagline {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-family: var(--font-mono);
}

.install-box {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}

.install-cmd {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--accent);
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  background: var(--accent-bg);
  border: 1px solid var(--accent-dim);
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-copy:hover {
  background: var(--accent);
  color: #fff;
}

.btn-copy.copied {
  background: var(--success);
  border-color: var(--success);
  color: #000;
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Terminal */
.terminal-section {
  padding: 2rem;
  display: flex;
  justify-content: center;
  background: linear-gradient(180deg, transparent 0%, rgba(233, 84, 32, 0.03) 100%);
}

.terminal-window {
  width: 100%;
  max-width: 700px;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(233, 84, 32, 0.1);
  animation: terminalGlow 3s ease-in-out infinite;
}

@keyframes terminalGlow {
  0%, 100% { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(233, 84, 32, 0.1); }
  50% { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(233, 84, 32, 0.2), 0 0 30px rgba(233, 84, 32, 0.1); }
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

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

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

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-left: auto;
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.8;
}

.terminal-line {
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

.terminal-line:nth-child(1) { animation-delay: 0.2s; }
.terminal-line:nth-child(2) { animation-delay: 0.5s; }
.terminal-line:nth-child(3) { animation-delay: 0.8s; }
.terminal-line:nth-child(4) { animation-delay: 1.2s; }
.terminal-line:nth-child(5) { animation-delay: 1.5s; }
.terminal-line:nth-child(6) { animation-delay: 2s; }
.terminal-line:nth-child(7) { animation-delay: 2.5s; }
.terminal-line:nth-child(8) { animation-delay: 3s; }
.terminal-line:nth-child(9) { animation-delay: 3.5s; }
.terminal-line:nth-child(10) { animation-delay: 4s; }
.terminal-line:nth-child(11) { animation-delay: 4.5s; }
.terminal-line:nth-child(12) { animation-delay: 5s; }

@keyframes fadeIn {
  to { opacity: 1; }
}

.prompt { color: var(--accent); }
.cmd { color: var(--text); }
.output { color: var(--text-secondary); }
.success { color: var(--success); }
.total { color: var(--accent); font-weight: 600; }
.loading { animation: blink 1s infinite; }

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

.options {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.5rem 0;
}

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

.cursor {
  animation: cursorBlink 1s infinite;
}

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

/* Features */
.features {
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(233, 84, 32, 0.02) 0%, transparent 100%);
}

.features h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: left;
  transition: all 0.2s;
}

.feature-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(233, 84, 32, 0.15);
}

.feature-card svg {
  color: var(--accent);
  margin-bottom: 1rem;
}

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

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

/* Badges */
.badges-section {
  padding: 2rem;
  text-align: center;
}

.badges-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 100px;
}

/* Footer */
.landing-footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border-light);
}

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

.landing-footer a {
  color: var(--accent);
  text-decoration: none;
}

.landing-footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
  .hero { padding: 3rem 1rem; }
  .hero h1 { font-size: 2.5rem; }
  .install-box {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }
  .install-cmd { font-size: 0.8125rem; }
  .btn-copy { width: 100%; justify-content: center; }
  .cta-group { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .terminal-section { padding: 1rem; }
  .terminal-body { padding: 1rem; font-size: 0.8125rem; }
  .features { padding: 3rem 1rem; }
  .features-grid { grid-template-columns: 1fr; }
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f5f5;
    --bg-alt: #ffffff;
    --bg-code: #fafafa;
    --surface: #ffffff;
    --border: #e0e0e0;
    --border-light: #f0f0f0;
    --text: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --accent: #e95420;
    --accent-dim: #d04010;
    --accent-bg: rgba(233, 84, 32, 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}