/* ========================================
   devcontainer-mcp landing page
   Dark theme, Inter font, inspired by anionline.me
   ======================================== */

:root {
  --bg: #0f1117;
  --bg-surface: #161822;
  --bg-card: #1c1f2e;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --accent: #0078D4;
  --accent-glow: rgba(0, 120, 212, 0.15);
  --orange: #FF6B35;
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #eab308;
  --border: #2a2d3e;
  --radius: 12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

code {
  font-family: var(--mono);
  font-size: 0.875em;
}

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}
.logo-icon {
  font-size: 1.4rem;
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}
.nav-github {
  background: var(--bg-card);
  padding: 0.4rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.25rem;
}

/* ---- Hero ---- */
.hero {
  padding: 10rem 2rem 3rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-glow) 0%, transparent 60%);
}
.hero-inner {
  max-width: 800px;
  margin: 0 auto;
}
.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.hero-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.github-stars img {
  height: 24px;
  vertical-align: middle;
}
.github-button {
  vertical-align: middle;
}
.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.install-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--green);
  max-width: 100%;
  overflow-x: auto;
}
.copy-btn {
  background: var(--bg-card);
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.copy-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}
.copy-btn.copied {
  border-color: var(--green);
  color: var(--green);
}
.btn-secondary {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-weight: 500;
  transition: all 0.2s;
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--text);
  text-decoration: none;
}
.hero-platforms {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.hero-works-with {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.works-with-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.client-pills {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.client-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: #2a2f42;
  border: 1px solid #3d4358;
  font-size: 0.8rem;
  font-weight: 500;
  color: #cbd5e1;
}
.client-pill img {
  height: 16px;
  width: auto;
}

/* ---- Sections ---- */
.section {
  padding: 3rem 2rem;
}
.section-dark {
  background: var(--bg-surface);
}
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-sub {
  text-align: center;
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* ---- Problem / Solution ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.col h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.col p {
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.col li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
}
.icon-bad {
  color: var(--red);
  font-weight: 700;
}
.icon-good {
  color: var(--green);
  font-weight: 700;
}

/* ---- Terminal ---- */
.terminal {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
  font-family: var(--mono);
  font-size: 0.85rem;
}
.terminal-bar {
  background: #161b22;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  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-title {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font);
}
.terminal-body {
  padding: 1.5rem;
  line-height: 1.8;
}
.term-line {
  white-space: nowrap;
}
.term-comment { color: var(--text-muted); }
.term-fn { color: var(--accent); }
.term-str { color: var(--green); }
.term-result { color: var(--text-dim); padding-left: 1rem; }

/* ---- Cards ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.2s;
}
.card:hover {
  border-color: var(--accent);
}
.card-logo {
  height: 32px;
  width: auto;
  margin-bottom: 1rem;
}
.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}
.card-tag {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
}
.card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.card-cmd {
  display: block;
  background: var(--bg);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--green);
  overflow-x: auto;
}

/* ---- Auth flow ---- */
.auth-flow {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}
.auth-step {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.auth-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.auth-step strong {
  display: block;
  margin-bottom: 0.2rem;
}
.auth-step code {
  color: var(--green);
  font-size: 0.8rem;
}
.auth-step p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}
.auth-providers {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim);
}

/* ---- Tools grid ---- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.tool-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.tool-group h3 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tool-count {
  font-size: 0.75rem;
  background: var(--accent);
  color: white;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-weight: 600;
}
.tool-group ul {
  list-style: none;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* ---- Install steps ---- */
.install-steps {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}
.code-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--green);
  overflow-x: auto;
}
.code-block pre {
  font-family: inherit;
  margin: 0;
  color: var(--text-dim);
}
.step-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}
.prereqs {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.prereq {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
}
.prereq strong {
  min-width: 120px;
  font-size: 0.9rem;
}
.prereq code, .prereq a {
  font-size: 0.85rem;
}
.prereq-logo {
  height: 20px;
  flex-shrink: 0;
}
.badge-logo {
  height: 16px;
  width: auto;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-sep {
  color: var(--border);
}
.footer-right {
  display: flex;
  gap: 1.5rem;
}
.footer-right a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-right a:hover {
  color: var(--text);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.4rem; }
  .cards { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .two-col { gap: 2rem; }
}

@media (max-width: 768px) {
  .hero { padding: 7rem 1.5rem 3rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero-sub { font-size: 0.95rem; }
  .hero-badges { flex-direction: column; gap: 0.75rem; }
  .hero-works-with { flex-direction: column; gap: 0.5rem; }
  .client-pills { flex-wrap: wrap; justify-content: center; }
  .install-box {
    font-size: 0.7rem;
    padding: 0.6rem 0.8rem;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  .install-box code {
    word-break: break-all;
    white-space: normal;
  }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    gap: 0.8rem;
  }
  .nav-toggle { display: block; }
  .section { padding: 3rem 1.5rem; }
  .two-col { grid-template-columns: 1fr; gap: 1.5rem; }
  .cards { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .auth-flow { padding: 0 0.5rem; }
  .auth-providers { flex-wrap: wrap; justify-content: center; }
  .terminal { font-size: 0.75rem; }
  .terminal-body { padding: 1rem; overflow-x: auto; }
  .term-line { white-space: pre; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .col { padding: 1.5rem; }
  .card { padding: 1.5rem; }
}


/* ---- Demo GIFs ---- */
.hero-demo {
  margin-bottom: 2rem;
}
.demo-gif {
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
.demo-container {
  max-width: 700px;
  margin: 0 auto;
}
