/* Ralphify landing page — brand guidelines applied */

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

:root {
  --purple: #8B6CF0;
  --purple-dark: #7C5CE0;
  --purple-light: #A78BF5;
  --purple-deep: #7C4DFF;
  --orange: #E06030;
  --orange-light: #E87B4A;
  --bg: #FFFFFF;
  --bg-subtle: #F8F7FC;
  --text: #2E2E3E;
  --text-muted: #6B6B7B;
  --radius: 8px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1A2E;
    --bg-subtle: #222238;
    --text: #E0E0E0;
    --text-muted: #9999AA;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

code {
  font-family: "SF Mono", "Fira Code", "JetBrains Mono", Consolas, monospace;
}

a {
  color: var(--purple-dark);
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  a {
    color: var(--purple-light);
  }
}

a:hover {
  text-decoration: underline;
}

/* ── Nav ─────────────────────────────────────────────────── */

header {
  background: linear-gradient(90deg, rgba(139, 108, 240, 0.95), rgba(124, 77, 255, 0.95));
  padding: 1rem 2rem;
}

nav {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover {
  color: #fff;
  text-decoration: none;
}

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 5rem 2rem 3rem;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero h1 code {
  background: linear-gradient(135deg, var(--purple), var(--orange-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Buttons ─────────────────────────────────────────────── */

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

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: #fff;
  border: 2px solid var(--purple);
}

.btn-primary:hover {
  box-shadow: 0 4px 12px rgba(139, 108, 240, 0.35);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--purple);
  border: 2px solid var(--purple);
}

.btn-secondary:hover {
  background: rgba(139, 108, 240, 0.08);
}

@media (prefers-color-scheme: dark) {
  .btn-secondary {
    color: var(--purple-light);
    border-color: var(--purple-light);
  }
}

/* ── Terminal ────────────────────────────────────────────── */

.terminal {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

.terminal-window {
  background: #1E1E2E;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.terminal-header {
  background: #2A2A3E;
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.5rem;
}

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

.terminal-dot.red { background: #FF5F57; }
.terminal-dot.yellow { background: #FEBC2E; }
.terminal-dot.green { background: #28C840; }

.terminal-window pre {
  padding: 1.25rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
}

.terminal-window code {
  color: #CDD6F4;
}

.terminal-window .prompt { color: var(--purple-light); font-weight: 600; }
.terminal-window .dim { color: #6C7086; }
.terminal-window .success { color: #A6E3A1; }
.terminal-window .fail { color: #F38BA8; }

.terminal-caption {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 1rem;
}

/* ── Install ─────────────────────────────────────────────── */

.install {
  text-align: center;
  padding: 3rem 2rem;
}

.install h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.install-command {
  display: inline-block;
  background: #1E1E2E;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.install-command code {
  color: #CDD6F4;
  font-size: 1rem;
}

/* ── Features ────────────────────────────────────────────── */

.features {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.features h2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.features-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-subtle);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  .card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

.card h3 {
  color: var(--purple);
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

@media (prefers-color-scheme: dark) {
  .card h3 {
    color: var(--purple-light);
  }
}

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

/* ── Bottom CTA ──────────────────────────────────────────── */

.cta-bottom {
  text-align: center;
  padding: 4rem 2rem;
}

.cta-bottom h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.cta-bottom .install-command {
  margin-bottom: 1.5rem;
}

/* ── Footer ──────────────────────────────────────────────── */

footer {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(90deg, rgba(139, 108, 240, 0.08), rgba(232, 123, 74, 0.06));
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (prefers-color-scheme: dark) {
  footer {
    background: rgba(0, 0, 0, 0.3);
  }
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 640px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .terminal-window pre {
    font-size: 0.75rem;
  }

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