@font-face {
  font-family: 'MonoLisa';
  src: url('assets/MonoLisaVariableNormal.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}

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

:root {
  --bg-primary: #1a1b26;
  --bg-secondary: #24283b;
  --bg-tertiary: #292e42;
  --text-primary: #c0caf5;
  --text-secondary: #a9b1d6;
  --text-dim: #565f89;
  --accent: #7aa2f7;
  --accent-hover: #89b4fa;
  --red: #f7768e;
  --green: #9ece6a;
  --yellow: #e0af68;
  --blue: #7aa2f7;
  --magenta: #bb9af7;
  --cyan: #7dcfff;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}

.logo {
  font-family: 'MonoLisa', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--accent);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 60px 0 80px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
}

/* Terminal Window */
.terminal-window {
  background: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  margin: 0 auto 48px;
  max-width: 700px;
}

.terminal-window.small {
  max-width: fit-content;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .terminal-window.small {
    max-width: 100%;
    overflow-x: auto;
  }
}

.terminal-header {
  background: var(--bg-tertiary);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
  margin-left: 8px;
  font-family: 'MonoLisa', monospace;
  font-size: 0.875rem;
  color: var(--text-dim);
}

.terminal-content {
  font-family: 'MonoLisa', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  padding: 20px 24px;
  overflow-x: auto;
  color: var(--text-secondary);
  white-space: pre;
  text-align: left;
}

.graph-demo .terminal-content {
  line-height: 0.7;
}

.terminal-content .line {
  display: block;
}

.terminal-content span {
  white-space: pre;
}

.graph-red, .graph-blue, .graph-magenta, .graph-green, .graph-cyan {
  letter-spacing: 0.1em;
}

.terminal-window.small .terminal-content {
  padding: 16px 20px;
  overflow: hidden;
}

.terminal-window.with-copy .terminal-body {
  display: flex;
  align-items: center;
}

.terminal-window.with-copy .terminal-content {
  flex: 1;
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 8px 16px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

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

.copy-btn.copied {
  color: var(--green);
}

/* Graph colors */
.graph-red { color: var(--red); }
.graph-blue { color: var(--blue); }
.graph-magenta { color: var(--magenta); }
.graph-green { color: var(--green); }
.graph-cyan { color: var(--cyan); }
.dim { color: var(--text-dim); }

/* Buttons */
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 1rem;
}

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

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

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

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

.btn-large {
  padding: 18px 48px;
  font-size: 1.1rem;
}

/* Features Section */
.features {
  padding: 80px 0;
}

.features h2,
.screenshots h2,
.keybindings h2,
.pricing h2,
.install h2 {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 48px;
}

.section-header {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.section-header .anchor-link {
  color: var(--text-dim);
  opacity: 0;
  transition: opacity 0.2s;
  text-decoration: none;
}

.section-header:hover .anchor-link {
  opacity: 1;
}

.section-header .anchor-link:hover {
  color: var(--accent);
}

.anchor-link svg {
  width: 20px;
  height: 20px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature {
  background: var(--bg-secondary);
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--bg-tertiary);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

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

.feature code {
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'MonoLisa', monospace;
  font-size: 0.85rem;
  color: var(--accent);
}

/* Screenshots Section */
.screenshots {
  padding: 80px 0;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
}

.screenshot-item {
  text-align: center;
}

.screenshot-item img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  margin-bottom: 16px;
  cursor: pointer;
  transition: transform 0.2s;
}

.screenshot-item img:hover {
  transform: scale(1.02);
}

/* Screenshot Overlay */
.screenshot-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  cursor: pointer;
}

.screenshot-overlay.active {
  opacity: 1;
  visibility: visible;
}

.screenshot-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.screenshot-overlay-close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.screenshot-overlay-close:hover {
  opacity: 1;
}

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

/* Keybindings Section */
.keybindings {
  padding: 80px 0;
}

.keybinding-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.keybinding-group h4 {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.keybinding {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.keybinding kbd {
  background: var(--bg-tertiary);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'MonoLisa', monospace;
  font-size: 0.85rem;
  color: var(--text-primary);
  border: 1px solid var(--text-dim);
}

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

/* Pricing Section */
.pricing {
  padding: 80px 0;
}

.price-cards {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.price-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 48px;
  width: 320px;
  text-align: center;
  border: 1px solid var(--bg-tertiary);
  display: flex;
  flex-direction: column;
}

.price-card .price-features {
  flex: 1;
}

.price-card .btn {
  margin-top: auto;
  width: 100%;
}

.price-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 16px;
}

.price {
  margin-bottom: 32px;
  white-space: nowrap;
}

.price .amount {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price .period {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.price-features {
  list-style: none;
  margin-bottom: 32px;
}

.price-features li {
  padding: 12px 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--bg-tertiary);
}

.price-features li:last-child {
  border-bottom: none;
}

/* Install Section */
.install {
  padding: 80px 0;
  text-align: center;
}

.install-intro {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
}

.btn-download {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--bg-tertiary);
  padding: 16px 24px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
  min-width: 240px;
}

.btn-download:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-download.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.download-icon {
  font-size: 1.5rem;
  color: var(--accent);
}

.download-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.download-platform {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
}

.download-meta {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.install-instructions {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.install-instructions h4 {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.install-note code {
  background: var(--bg-tertiary);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'MonoLisa', monospace;
  color: var(--accent);
}

/* Pricing intro and note */
.pricing-intro {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 32px;
  text-align: center;
}

.price-note {
  margin-top: 16px;
  margin-bottom: 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.price-note code {
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'MonoLisa', monospace;
  font-size: 0.8rem;
  color: var(--accent);
}

.pricing-note {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.pricing-note a {
  color: var(--accent);
  text-decoration: none;
}

.pricing-note a:hover {
  text-decoration: underline;
}

.pricing-footer {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 32px;
}

.pricing-footer code {
  background: var(--bg-tertiary);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'MonoLisa', monospace;
  font-size: 0.85rem;
  color: var(--accent);
}

/* Footer */
footer {
  padding: 48px 0;
  text-align: center;
  border-top: 1px solid var(--bg-tertiary);
}

footer p {
  color: var(--text-dim);
}

footer .copyright {
  margin-top: 16px;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1.1rem;
  }

  .terminal-content {
    font-size: 0.75rem;
  }

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

  .keybinding-columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-download {
    width: 100%;
    max-width: 300px;
  }
}
